public void UnloadDriver() { if (_emgSensorInput != null) { _emgSensorInput.Destroy(); _isLoaded = false; _emgSensorInput = null; } }
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; } }