ProtocolClassID ProtocolClass = ProtocolClassID.SMART_LOWLEVEL_BT; //Mitsar SmartBCI devices public MitsarSmartBCI() { //No preffered serial number, trying to opne any device string PrefferedSerialNumber = null; //PrefferedSerialNumber = "3005"; bool result = MitsarDeviceOperation.Launch(device, ProtocolClass, PrefferedSerialNumber, DataType, test, ref ErrorMessage); m_Sampling = SamplingMode.Frequency250; if (ErrorMessage != null) { MessageBox.Show(ErrorMessage); } }
/// <summary> /// Запуск процесса /// </summary> public bool Start() { Started?.Invoke(this, new EventArgs()); m_Started = 1; //No preffered serial number, trying to opne any device string PrefferedSerialNumber = null; //PrefferedSerialNumber = "3005"; bool result = MitsarDeviceOperation.Launch(device, ProtocolClass, PrefferedSerialNumber, DataType, InputTask, ref ErrorMessage); m_Sampling = SamplingMode.Frequency250; updateBatteryPercent(); if (ErrorMessage != null) { MessageBox.Show(ErrorMessage); return(false); } return(true); }