setVoltage()
setVoltage()
Description
Sets a fixed voltage on an output channel until the next time the channel is triggered
Syntax
setVoltage(channel, voltage)
Parameters
channel: The index of the output channel to set. Range = 1-4.
voltage (volts): The target voltage. Range = -10 to 10.
Returns
None
Examples
% 1. This produces a fixed -7.5V voltage on output channel 2
P.setVoltage(2, -7.5);