ReferenceDriverNIDigital Read Task

NI Digital Read Task

Learn how to acquire digital data from NI devices with Synnax.

For the task lifecycle, see Task Basics.

Task Configuration Reference

ParameterTypeRequiredDefaultDescription
devicestringYes-Device key to read from
sample_ratenumberNo10Samples per second (Hz)
stream_ratenumberNo5Rate data is streamed to Synnax (Hz), must be ≤ sample_rate
channelsarrayYes-List of digital input channel configurations

Channel Configuration Reference

DI Channel NI-DAQmx C API Reference

ParameterTypeRequiredDefaultDescription
channelnumberYes-Synnax channel key for digital input data
portnumberYes-Physical port
linenumberYes-Line number on the port

Important Rules

  • One task per module -> Only one running task can claim a module at a time.
  • Stream rate -> For sample rates under 50 Hz, set the stream rate equal to the sample rate. Above that, keep the stream rate under 50 Hz.

How-To