int ReadVoltage(int, string)

Reads the current voltage of the specified port/pin.

Security

Trust Level Required: Full Trust

Parameters

Name Description
portIndex int
The port/pin index.
deviceName (Optional) string
The name of the device, as specified in the Config Tool. Default: null.

Return

The current voltage of the specified port/pin, normally between 0 and 1023, inclusive.