dscSetRelay

BYTE dscSetRelay(DSCB board, BYTE relay, BYTE value);

Sets the state of one relay on the board to either open or closed.

Name

Description

DSCB

The handle of the board to operate on

relay

Selected relay

value

New relay state (0 or 1). Please consult the user manual for your particular product to determine the relationship between the value and the relay state.

Return Value

Error code or 0.

Last updated