ReferenceDevice driversNational InstrumentsDigital 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

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

Channel configuration reference

DI Channel NI-DAQmx C API Reference

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