ReferenceDriverNIDigital Write Task

NI digital write task

Learn how to send digital commands to 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 write to
state_rate number No 10 Rate (Hz) at which state channels are updated
channels array Yes - List of digital output channel configurations

Channel configuration reference

DO Channel NI-DAQmx C API Reference

Table

Parameter Type Required Default Description
cmd_channel number Yes - Synnax channel key for command values
state_channel number Yes - Synnax channel key for state feedback
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.

How-to