meiCanNodeAnalogOutSet
Declaration
|
long meiCanNodeAnalogOutSet(MEICan can,
long node,
long channel,
long state,
long wait);
|
|
Required Header: stdmei.h
Change History: Added in the 03.03.00 |
Description
meiCanNodeAnalogOutSet changes the state of an analog output on the specified CAN node.
|
can |
handle to the CAN object |
node |
the node number of the CANOpen node. |
channel |
the index of the analog output. |
state |
the new state of the analog output. See CAN Analog Values. |
wait |
a Boolean flag that indicates if the new output state is immediately applied or a wait is inserted so that any previously set output is transmitted over CAN first before applying the new output state. |
|
|
|
|
|
Sample Code
The following code shows how to change the state of analog output 3 on node 5 to the maximum value 7FFFh.
|
meiCanNodeAnalogOutGet( can, 5, 3, 0x7FFF, 1 );
|
See Also
meiCanNodeAnalogIn | meiCanNodeAnalogOutGet | CAN Analog Values
|