mpiSqNodeAnalogIn

Declaration

long mpiSqNodeAnalogIn(MPISqNode     node,
                       long          channel,
                       long          *state);

Required Header: stdmpi.h
Change History: Added in the 03.02.00. mpiSqNodeAnalogIn replaced mpiSqNodeAnalogInput.

Description

mpiSqNodeAnalogIn gets the current state of an analog input on a SynqNet node.

NOTE: mpiSqNodeAnalogIn replaced mpiSqNodeAnalogInput in the MPI library.

node a handle to a SynqNet node object.
channel the index of the analog input channel (with respect to the node).
*state a pointer to where the current state of the input is written by this function.
Return Values
MPIMessageOK

Sample Code

The following MPI code reads the current state of the first analog input on Node 2:

long x;
mpiSqNodeAnalogIn( sqNode2, 0, &x );

See Also

Accessing Analog Data | MPISqNodeInfoIo