ReferenceDriverLabJackWrite Task

LabJack Write Task

Learn how to send commands to LabJack devices with Synnax.

For task lifecycle management, see the Task Basics page.

How Commands Work

Write tasks use command and state channels:

  • Command channels (_cmd): Write values here to set outputs
  • State channels (_state): Reflect the current output state
  • Command time channels (_cmd_time): Index channels storing command timestamps

When you write to a command channel, the task processes it and updates the state channel, providing acknowledgment that the command was executed.

Task Configuration Reference

ParameterTypeRequiredDefaultDescription
namestringYes-Human-readable task name
state_ratenumberNo20Rate (Hz) at which state channels are updated
data_savingbooleanNofalseEnable permanent storage in Synnax
auto_startbooleanNofalseAutomatically start task after configuration
channelsarrayYes-List of output channel configurations

Channel Types Reference

Analog Output (AO)

Writes analog voltage to a specified output terminal (DAC).

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
state_channelnumberYes-Synnax state channel key
portstringYes-Port location (e.g., DAC0, DAC1)

Digital Output (DO)

Writes digital state (0 or 1) to a specified digital I/O line.

ParameterTypeRequiredDefaultDescription
cmd_channelnumberYes-Synnax command channel key
state_channelnumberYes-Synnax state channel key
portstringYes-Port location (e.g., DIO4, FIO5)

Important Rules

  • Command/State pairs: Each output requires both a command and state channel.
  • State rate: Higher state rates provide faster feedback but consume more resources.
  • One running task per channel: A channel can only send commands to one task at a time.

How-To

Console

Python

TypeScript