How can I use the CEI-x20 API to read and write discretes on a CEI-x20 board?

This is a simple example program that sets a user-specified discrete output and then displays the current values of the discrete inputs. To externally wrap a discrete output to a discrete input, consult the CEI-x20 User's Manual for pinout information.

Download this example by clicking the link on the right.