voltage

Contents

voltage#

method

MAX31X.voltage(channel: int, percent: int = None) int#

Sets the output voltage of the requested channel. If no voltage is specified, simply returns the current voltage.

Parameters:
channelint

The channel to get or set the position for (1-n).

percentint, optional

The voltage as a percentage of max_voltage, range -32767 to 32767 equivalent to -100% to 100%. If not specified, current voltage is returned.

Returns:
percentint

The current voltage of the selected channel as a percentage of maximum output voltage, range -32767 to 32767 equivalent to -100% to 100%.

Raises:
RuntimeError

If the request to the Kinesis DLL fails.