long SegmentDigitalOutGet ( long  segmentNumber,
long  startBitNumber,
long  bitCount 
)

Description:
SegmentDigitalOutGet returns the state of a segment's digital output bits. It is passed a starting bit ID relative to the Segment (not Node).
Parameters:
segmentNumber The segment's (slice) number on the node, starts from 0.
startBitNumber The starting digital output bit number on the segment, starts from 0.
bitCount The number of digital output bits to get (1 minimum, 32 maximum).
Returns:
(long) State of the outputs.
Sample Code:
On Segment [segNum] starting at [bitStart], check [bitNum] output bits.
   // -- C++ -- //
  printf("The state of %d output bits starting from %d on segment %d: 0x%x.\n", bitNum, 
        bitStart, segNum, io->SegmentDigitalOutGet(segNum, bitStart, bitNum));
   // -- C# -- //
  Console.Writeline("The state of {0} output bits starting from {1} on segment {2}: 0x{3}.", 
        bitNum, bitStart, segNum, io.SegmentDigitalOutGet(segNum, bitStart, bitNum));
Notes:
Method will fail if segmentNumber or startBitNumber through bitCount attempts to read a segement or a bit that does not exist on the I/O node. 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:
SegmentDigitalOutSet SegmentDigitalInGet
Examples:
SliceIO.cs.