public void openPhidget() { vin.DeviceSerialNumber = 315981; //Address //vin.HubPort = 2; vin.Channel = 0; vin.SensorChange += new VoltageInputSensorChangeEventHandler(vin_InputChange); vin.Open(5000); //Open }
public override void OpenConnection() { try { //Open the connection device.Open(4000); } catch (Exception ex) { throw new Exception($"There was an error with the {_sensorType} sensor connected to port {hubPort} on hub: {hubName}. Check connections and try again. \n \n System Error Message: \n" + ex.Message); } }