= SetOutput = Set one or more digital outputs for the main board or a DIO option card. {{{ int SetOutput(int bd, int out, bool on); }}} == Parameters == * bd - 0 for main board or number of digital output card. == Return Value == * Returns the result - OK success == Remarks == The main board or option card must already be opened by calling OpenMnBd first. The call does a wait for acknowledgement. If the application is using main board communication events these events may be called during this call. == Examples == {{{ if(SetOutput(MNBD_DEV, 1, true) == OK) DisplayText(0, 0, "Output 1 is ON"); }}} {{{ if(SetOutput(1, 4, false) == OK) DisplayText(0, 0, "Card 1 Output 4 is now OFF"); }}} == See Also == * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/GetOutput GetOutput] * [http://tech.825spectrum.com/trac/wiki/Docs/Prog/Manual/ApplicationLibraries/lib825ev/IO/SetOutputMask SetOutputMask]