long SegmentDigitalInGet ( long  segmentNumber,
long  startBitNumber,
long  bitCount 
)

Description:
SegmentDigitalInGet returns the state of a segment's digital input 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 input bit number on the segment, starts from 0.
bitCount The number of digital input bits to get (1 minimum, 32 maximum).
Returns:
(long) State of the inputs.
Sample Code:
On Segment [segNum] starting at [bitStart], check [bitNum] input bits.
   // -- C++ -- //
  printf("The state of %d input bits starting from %d on segment %d: 0x%x.\n", bitNum,
        bitStart, segNum, io->SegmentDigitalInGet(segNum, bitStart, bitNum));
   // -- C# -- //
  Console.Writeline("The state of {0} input bits starting from {1} on segment {2}: 0x{3}.", 
      bitNum, bitStart, segNum, io.SegmentDigitalInGet(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
Examples:
SliceIO.cs.