Beispiel #1
0
        /// <summary>
        /// Connect to a device using a known COM port.
        /// </summary>
        /// <param name="portName"></param>
        void Open(string portName)
        {
            // Try to open specified device
            serialPort = new SerialPortBuffered(portName);
            serialPort.Open();

            scpiProtocol = new SimpleSCPIProtocol(serialPort);
        }
Beispiel #2
0
 public ActiveLoadDevice(SerialPortBuffered serialPort) : this()
 {
     this.serialPort = serialPort;
 }