ReferenceDriverNIDigital Read Task

NI digital read task

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

This task follows the standard task lifecycle.

Task configuration reference

Table

Parameter Type Required Default Description
device string Yes - Device key to read from
sample_rate number No 10 Samples per second (Hz)
stream_rate number No 5 Rate data is streamed to Synnax (Hz), must be ≤ sample_rate
channels array Yes - List of digital input channel configurations

Channel configuration reference

DI Channel NI-DAQmx C API Reference

Table

Parameter Type Required Default Description
channel number Yes - Synnax channel key for digital input data
port number Yes - Physical port
line number Yes - 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