| 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 |
| ); |
The we_OutputValue function is used to write to an output port on an I/O card.
| Handle: |
|
| Port: |
|
| Value: |
|
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:
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.
we_OpenCard, we_ConfigureCard, we_InputValue
Copyright 2004 Winford Engineering.