ReferenceDriverNIDigital Read Task

NI Digital Read Task

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

For task lifecycle management, see the Task Basics page.

Task Configuration Reference

ParameterTypeRequiredDefaultDescription
namestringYes-Human-readable task name
sample_ratenumberYes-Samples per second (Hz)
stream_ratenumberNosample_rateRate data is streamed to Synnax (Hz), must be ≤ sample_rate
data_savingbooleanNofalseEnable permanent storage in Synnax
auto_startbooleanNofalseAutomatically start task after configuration
channelsarrayYes-List of digital input channel configurations

Channel Configuration

DI Channel NI-DAQmx C API Reference

ParameterTypeRequiredDefaultDescription
devicestringYes-Device identifier
portnumberYes-Physical port
linenumberYes-Line number on the port

Important Rules

  • Sample rates: All channels in a task sample at the same rate. Create separate tasks for different rates.
  • One task per module: Only one running task can claim a module at a time.
  • Stream rate optimization: For low-rate tasks (< 50 Hz), set the stream rate to the sample rate. For high-rate tasks, keep the stream rate less than 50 Hz for better performance.

How-To

Console

Python

TypeScript