void SegmentDigitalOutSet ( long  segmentNumber,
long  startBitNumber,
long  bitCount,
long  value 
)

Description:
SegmentDigitalOutSet sets 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).
value State of the outputs.
Sample Code:
On Segment [segNum] starting at [bitStart], set [bitNum] output bits to [value].
   // -- C++ -- //
  printf("%d output bits from %d on segment %d are being set to: 0x%x.\n", bitNum, 
        bitStart, segNum, value);
  io->SegmentDigitalOutSet(segNum, bitStart, bitNum, value);
   // -- C# -- //
  Console.Writeline("{0} output bits from {1} on segment {2} are being set to: 0x{3}.", 
        bitNum, bitStart, segNum, value);
  io.SegmentDigitalOutSet(segNum, bitStart, bitNum, value);
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:
SegmentDigitalOutGet
Examples:
SliceIO.cs.