APIs, concepts, guides, and more

◆ AnalogOutGet()

int32_t AnalogOutGet ( int32_t analogChannel)
AnalogOutGet returns the value of an analog output. It is passed a starting channel ID relative to the Node (not Segment).
analogChannelThe analog output number on the node, starts from 0.
(int32_t) Value of the input.

Part of the IO Members method group.

Sample Code:
Get the Analog Output value on [channel].
// -- C++ -- //
printf("Analog Output %d is %ld.\n", channel, io->AnalogOutGet(channel));
// -- C# -- //
Console.Writeline("Analog Output {0} is {1}.", channel, io.AnalogOutGet(channel));
Slice I/O has multiple segments of same type (Digital/Analog In/Out) which are grouped together. The reference number for any channel of a given type can be defined as when it is encounted relative to the Slice I/O Node or an individual Slice.
See also