public void Deconnection( ) { device.Deconnection( ); StateAcquisition = AcquisitionState.NotRun; bitalinoSerialPort = null; isConnected = false; }
public void Connection( ) { bitalinoSerialPort = new BitalinoSerialPort(PortName); BitalinoCommunication = bitalinoSerialPort.BitalinoCommunication; device = new BITalinoDevice(BitalinoCommunication, defaultAnalogChannels, defaultSamplingRate); device.Connection( ); isConnected = true; }