APIs, concepts, guides, and more

◆ DigitalOutGet()

bool DigitalOutGet ( int32_t digitalOutNumber)
Description:
DigitalOutGet returns the state of a single Digital Output bit. It is passed a bit ID relative to the Node (not Segment).
Parameters
digitalOutNumberThe digital output number on the node, starts from 0.
Returns
(bool) State of the output.

Part of the IO Members method group.

Sample Code:
// Check Output Bit [bitNum].
// -- C++ -- //
printf("Bit %d shows a value of: %d.\n", bitNum, io->DigitalOutGet(bitNum));
// -- C# -- //
Console.Writeline("Bit {0} shows a value of: {1}.", bitNum, io.DigitalOutGet(bitNum));
Note
Slice I/O has multiple segments of same type (Digital/Analog In/Out) which are grouped together. The reference number for any bit 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
DigitalOutSet