mpiControlDigitalOutGet

Declaration

int32_t  mpiControlDigitalOutGet(MPIControl     control,
int32_t bitStart,
int32_t bitCount unsigned int32_t *state);

Required Header: stdmpi.h
Change History: Added in the 03.03.00

Description

mpiControlDigitalOutGet function reads the current output state of one or more controller output bits.

control a handle to the Control object
bitStart the first controller output bit that will be returned by the function.
bitCount the number of controller output bits that will be returned by the function.
*state the address of the current state of the controller output bits that will be returned.
Return Values
MPIMessageOK

Sample Code

The following code shows how to get the state of controller input 1.

unsigned int32_t output1;
mpiControlDigitalOutGet(control, 1, 1, &output1);

See Also

Controller I/O | mpiControlDigitalOutSet | mpiControlDigitalIn