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

Parameter Type Required Default Description
device string - Device key to write to
state_rate number 10 Rate (Hz) at which state channels are updated
channels array - List of digital output channel configurations

Channel configuration reference

DO Channel NI-DAQmx C API Reference

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

How-to

When you create channels with a client library, give each command channel its own index channel. A writer that holds several commands on one index must write all of them in every frame.