예제 #1
0
    public void Deconnection( )
    {
        device.Deconnection( );

        StateAcquisition = AcquisitionState.NotRun;

        bitalinoSerialPort = null;

        isConnected = false;
    }
예제 #2
0
    public void Connection( )
    {
        bitalinoSerialPort = new BitalinoSerialPort(PortName);

        BitalinoCommunication = bitalinoSerialPort.BitalinoCommunication;

        device = new BITalinoDevice(BitalinoCommunication, defaultAnalogChannels, defaultSamplingRate);

        device.Connection( );

        isConnected = true;
    }