ReferenceDevice driversNational InstrumentsAnalog write task

NI analog write task

Learn how to send analog 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 analog output channel configurations

Channel types reference

Voltage (ao_voltage)

Parameter Type Required Default Description
cmd_channel number - Synnax command channel key
state_channel number - Synnax state channel key
port number - Physical port
min_val number 0 Minimum voltage (Volts)
max_val number 1 Maximum voltage (Volts)
custom_scale object - Custom scaling

Current (ao_current)

Parameter Type Required Default Description
cmd_channel number - Synnax command channel key
state_channel number - Synnax state channel key
port number - Physical port
min_val number 0 Minimum current (Amps)
max_val number 1 Maximum current (Amps)
custom_scale object - Custom scaling

Function generator (ao_func_gen)

Parameter Type Required Default Description
cmd_channel number - Synnax command channel key
state_channel number - Synnax state channel key
port number - Physical port
wave_type enum Sine Sine, Triangle, Square, Sawtooth
frequency number 0 Waveform frequency (Hz)
amplitude number 0 Waveform amplitude
offset number 0 Waveform DC offset

Important rules

  • One task per module -> Only one running task can claim a module at a time.

How-to