.

meiSqNodeAnalogIn

Declaration

 
long meiSqNodeAnalogIn(MEISqNode     node,
                       long          channel,
                       long          *state);
  Required Header: stdmei.h
Change History: Added in the 03.02.00. meiSqNodeAnalogIn replaced meiSqNodeAnalogInput.

Description

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

NOTE: meiSqNodeAnalogIn replaced meiSqNodeAnalogInput 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;
meiSqNodeAnalogIn( sqNode2, 0, &x );

See Also

Accessing Analog Data | MEISqNodeInfoIo

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2010 Motion Engineering