/******************************************************************* * * ロード * *******************************************************************/ public Form1() { InitializeComponent(); matlab.MinimizeCommandWindow(); matlab.Execute(@"cd " + MfileDir); //matlab.Execute("load param03"); //matlab.Execute("load param200"); matlab.Execute("load param06150"); btnJudgment.Enabled = false; btnSave.Enabled = false; btnSave.Enabled = false; }
public Form1() { InitializeComponent(); AccurateTimer = new System.Timers.Timer(); AccurateTimer.AutoReset = true; AccurateTimer.Elapsed += new ElapsedEventHandler(OnTimerEvent); if (radioButton1.Checked) { SIZE = DATA_SIZE_1SEC; NeuralNetDataDir = NeuralNetDir1sec; } else if (radioButton2.Checked) { SIZE = DATA_SIZE_15SEC; NeuralNetDataDir = NeuralNetDir15sec; } else if (radioButton3.Checked) { SIZE = DATA_SIZE_2SEC; NeuralNetDataDir = NeuralNetDir2sec; } else if (radioButton4.Checked) { SIZE = DATA_SIZE_25SEC; NeuralNetDataDir = NeuralNetDir25sec; } else if (radioButton5.Checked) { SIZE = DATA_SIZE_3SEC; NeuralNetDataDir = NeuralNetDir3sec; } #if _DEBUG_ stCurrentDir = @"C:\Users\Simeon\ゆうきたんHandActionVR"; #else stCurrentDir = System.Environment.CurrentDirectory; #endif UnityExecNameFullPath = stCurrentDir + @"\Unity\" + UnityExecName; // UnityExecNameFullPath = @"C:\Users\Simeon\Documents\UnityProjects\HandAction_HakoVision_001\bin\" + UnityExecName; textBox9.Text = MATLAB_EXECUTE_INTERVAL.ToString(); textBox10.Text = STABLE_RECOGNIZE_THRESHOLD.ToString(); textBox11.Text = CIRCLE_RECOGNIZE_THRESHOLD.ToString(); textBox12.Text = WAVE_RECOGNIZE_THRESHOLD.ToString(); textBox13.Text = PUNCH_RECOGNIZE_THRESHOLD.ToString(); textBox14.Text = ROTATE_RECOGNIZE_THRESHOLD.ToString(); textBox15.Text = SEND_CLIENT_INTERVAL.ToString(); THRESHOLDS[0] = STABLE_RECOGNIZE_THRESHOLD; THRESHOLDS[1] = CIRCLE_RECOGNIZE_THRESHOLD; THRESHOLDS[2] = WAVE_RECOGNIZE_THRESHOLD; THRESHOLDS[3] = PUNCH_RECOGNIZE_THRESHOLD; THRESHOLDS[4] = ROTATE_RECOGNIZE_THRESHOLD; label23.Text = null; label32.Text = "Client:"; #region Label Array labels[0] = label14; labels[1] = label15; labels[2] = label18; labels[3] = label19; labels[4] = label20; labels[5] = label12; labels[6] = label21; labels[7] = label24; labels[8] = label25; labels[9] = label26; #endregion matlab.MinimizeCommandWindow(); matlab.Execute(@"cd " + MfileDir); matlab.Execute(@"cd " + NeuralNetDataDir); matlab.Execute("load nn_system"); matlab.Execute(@"cd " + MfileDir); }
public void MinimizeCommandWindow() { matlab.MinimizeCommandWindow(); }