ReferenceDriverNIAnalog Write Task

NI Analog Write Task

Learn how to send analog commands to NI devices with Synnax.

For the task lifecycle, see Task Basics.

Task Configuration Reference

ParameterTypeRequiredDefaultDescription
devicestringYes-Device key to write to
state_ratenumberNo10Rate (Hz) at which state channels are updated
channelsarrayYes-List of analog output channel configurations

Channel Types Reference

Voltage (ao_voltage)

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
state_channelnumberYes-Synnax state channel key
portnumberYes-Physical port
min_valnumberNo0Minimum voltage (Volts)
max_valnumberNo1Maximum voltage (Volts)
custom_scaleobjectNo-Custom scaling

Current (ao_current)

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
state_channelnumberYes-Synnax state channel key
portnumberYes-Physical port
min_valnumberNo0Minimum current (Amps)
max_valnumberNo1Maximum current (Amps)
custom_scaleobjectNo-Custom scaling

Function Generator (ao_func_gen)

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
state_channelnumberYes-Synnax state channel key
portnumberYes-Physical port
wave_typeenumNoSineSine, Triangle, Square, Sawtooth
frequencynumberNo0Waveform frequency (Hz)
amplitudenumberNo0Waveform amplitude
offsetnumberNo0Waveform DC offset

Important Rules

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

How-To