Create digital outputs

The DAQ features 8 digital outputs which can be controlled as a group or individually. It's also possible to 'pulse' a digital output. To work with a digital output, it needs to be allocated with the Add() function: var d0 = (GpioOutput)daq.Add(new GpioOutput(GpioId.D0, false)); If a digital output is no longer needed, it must be freed with a call to the Remove() function: daq.Remove(d0); The following sample can be tested by connecting an LED and a resistor to each digital output (D0-D7) of the DAQ.

Advanced configuration

A digital output can be configured using its Type property as a 'Push-Pull' or as an 'Open-Drain' output. It is also possible to specify that the digital output should use an internal resistor of type 'Pull-Up', 'Pull-Down' or 'None' using the ResistorType property. By default, all digital outputs are configured as Type 'Push-Pull' and ResistorType 'None'.