|
|
| void DigitalOutSet |
( |
long |
startBitNumber, |
|
|
long |
bitCount, |
|
|
long |
value | |
|
) |
| | |
- Description:
- DigitalOutSet sets the state of multiple digital output bits. It is passed a starting bit ID relative to the Node (not Segment).
- Parameters:
-
| startBitNumber | The starting digital output bit number on the node, starts from 0. |
| bitCount | The number of digital output bits to set (1 minimum, 32 maximum). |
| value | State of the outputs. |
- Sample Code:
- Set [numberBits] starting at [startBit] to value(s) [hexValue].
io->DigitalOutSet(startBit, numberBits, hexValue);
io.DigitalOutSet(startBit, numberBits, hexValue);
- Notes:
- Method will fail if startBitNumber and bitCount attempt to set more bits than 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:
- DigitalOutGet
|