Exemplo n.º 1
0
 public DebugTrace()
 {
     this.InitializeComponent();
     this.listViewDataTrace.Items.Clear();
     this.Device = null;
     this.toolStripButtonStop.Enabled = false;
     this.toolStripButtonStart.Enabled = true;
     this.toolStripButtonSave.Enabled = false;
     this.toolStripButtonClear.Enabled = false;
 }
Exemplo n.º 2
0
 public void InitComponent()
 {
     dlgCom = new ComSettings();
     sdk2Com = new INEMO2_Device();
     dlgSensorSetting = new frmSensorSettings(sdk2Com);
     DeviceData = new INEMO2_FrameData();
     toolStripTxtSamples.Text = "1000";
     toolStripTxtSamples.AutoSize = false;
     toolStripTxtSamples.Width = 15;
     TCPMessages = new List<string>();
     m_Server = null;
     dbgTrace = null;
     availableModules = INEMO2_MODULES.INEMO2_MODULES_NONE;
     Settings.Click += new EventHandler(Settings_Click);
     toolStripCmbMode.SelectedIndexChanged += new EventHandler(toolStripCmbMode_SelectedIndexChanged);
     toolStripBtnConnect.Click += new EventHandler(toolStripBtnConnect_Click);
     toolStripBtnSensorSetting.Click += new EventHandler(toolStripBtnSensorSetting_Click);
     toolStripBtnStart.Click += new EventHandler(toolStripBtnStart_Click);
     toolStripBtnStop.Click += new EventHandler(toolStripBtnStop_Click);
     Connect.Click += new EventHandler(toolStripBtnConnect_Click);
     SensorSetting.Click += new EventHandler(toolStripBtnSensorSetting_Click);
     Start.Click += new EventHandler(toolStripBtnStart_Click);
     Stop.Click += new EventHandler(toolStripBtnStop_Click);
     ResetDevice.Click += new EventHandler(ResetDevice_Click);
     Enter_DFU_Mode.Click += new EventHandler(Enter_DFU_Mode_Click);
     Trace.Click += new EventHandler(Trace_Click);
     Identify.Click += new EventHandler(Identify_Click);
     toolStripTxtSamples.TextChanged += new EventHandler(toolStripTxtSamples_TextChanged);
     Samples.Click += new EventHandler(Samples_Click);
     Continous.Click += new EventHandler(Continous_Click);
     dlgSensorSetting.OnMessageToLogSettings = (MessageToLog) Delegate.Combine(dlgSensorSetting.OnMessageToLogSettings, new MessageToLog(MessageToLogFromSetting));
     TimerGetSamples.Interval = 30;
     TimerGetSamples.Enabled = false;
     base.DeviceConnected = false;
     toolStripBtnStart.Enabled = false;
     toolStripBtnStop.Enabled = false;
     toolStripLblNumSamples.Visible = false;
     toolStripBtnSensorSetting.Enabled = false;
     SensorSetting.Enabled = false;
     Start.Enabled = false;
     Stop.Enabled = false;
     toolStripProgressBarAcqSample.Visible = true;
     toolStripCmbMode.SelectedIndex = 1;
     Clear();
 }
Exemplo n.º 3
0
 public frmSensorSettings(INEMO2_Device comm)
 {
     this.InitializeComponent();
     this.sdk2comm = comm;
     foreach (TabPage page in this.tabControl1.TabPages)
     {
         foreach (Control control in page.Controls)
         {
             if (control is ComboBox)
             {
                 ((ComboBox) control).SelectedIndex = 0;
             }
         }
     }
     this.cmbACC_HPF_ODR.SelectedIndex = 0;
     this.SettingsChanged_Out = false;
     this.SettingsChanged_Acc = false;
     this.SettingsChanged_Mag = false;
     this.SettingsChanged_Gyr = false;
     this.SettingsChanged_Pres = false;
     this.SettingsChanged_Temp = false;
     this.getRegOutPut = new INEMO2_Output();
 }