コード例 #1
0
 public void UnloadDriver()
 {
     if (_emgSensorInput != null)
     {
         _emgSensorInput.Destroy();
         _isLoaded       = false;
         _emgSensorInput = null;
     }
 }
コード例 #2
0
        public void LoadDriver(Dictionary <string, string> parameters)
        {
            _emgSensorInput = new TrignoEmgInput(this, parameters);

            try
            {
                //_emgSensorInput.Start();
                _isLoaded = true;
            }
            catch (Exception e)
            {
                Trace.TraceError("FlexVolt Emg sensor: " + e.Message);
                Trace.TraceError(e.StackTrace);

                _emgSensorInput = null;
                _isLoaded       = false;
            }
        }