we_OutputValue

long we_OutputValue(
     long Handle,   //handle returned by we_OpenCard
     long Port,   //identifies the port that the value will be written to
     long Value   //specifies what value to output
     );

Summary

The we_OutputValue function is used to write to an output port on an I/O card.

Parameters

Handle:
    Identifies the card to be written to.
Port:
    Identifies the port on the card that should be written to.
Value:
    Specifies the value to be written to the port.

Return Values

If the value was successfully written, the function will return 0 to indicate success. If an error occurs, a negative error code will be returned. Errors that may be returned include:

More Information

Be sure that you configure the port that you want to use to be an output port before using this function. The ports can be configured by using the we_ConfigureCard function. If you fail to configure the port for output, an error will be returned.

Related

we_OpenCard, we_ConfigureCard, we_InputValue


Copyright 2004 Winford Engineering.