mpiSqNodeSegmentAnalogOutSet

Declaration

int32_t mpiSqNodeSegmentAnalogOutSet(MPISqNode    node,
                                  int32_t         segment,
int32_t channel, int32_t state, MPI_BOOL wait);

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

Description

mpiSqNodeSegmentAnalogOutSet changes the current state of an analog output on the specified slice on a SynqNet node.

node a handle to a SynqNet node object.
segment the index of the slice/module attached to this SynqNet node.
For more information, please see the Overview of MPI I/O.
channel the index of the analog input channel (with respect to the slice).
For more information, please see the Overview of MPI I/O.
state the desired state of the analog output.
wait determines what happens if two output functions are called in short succession.
See Overview of Motor I/O: Output Waits.
Return Values
MPIMessageOK

Sample Code

The following MPI code sets the analog output Number 2 on Segment 1 of Node 1 to +5V.

mpiSqNodeSegmentAnalogOutSet( sqNode1, 1, 2, 0x3FFF );

See Also

mpiSqNodeSegmentAnalogOutGet | Accessing Analog Data | MPISqNodeInfoIo | Overview of MPI I/O