ReferenceDriverTask Basics

Task Basics

Learn the fundamentals of working with tasks in Synnax.

Prerequisites

Before creating any tasks, you’ll need to have connected and configured a hardware device:

What Are Tasks?

Tasks are the primary method for communicating with hardware devices in Synnax. Tasks can be used for both control and data acquisition purposes. A task defines a background process that either reads data from or writes data to your hardware.

Tasks can be started, stopped, and re-configured at any time. Synnax permanently stores the configuration of each task, so it’s easy to set up multiple tasks for different purposes and switch between them as needed.

Creating a Task

The examples below apply to all hardware tasks types (analog Write, labjack read, etc.).

Devices Toolbar

Search and Command Palette

Layout Selector

Click on the device icon () on the left-hand side of the screen. Find the device you’d like to create the task for, right-click on it, and select the appropriate task type.

Task Lifecycle

Configuring the Task

After making any changes to your task configuration, click the Configure button. If there are no errors, Synnax will enable the play button in the task form.

Starting the Task

Click the play () button to start the task. The task will begin executing in the background, either reading data from or writing data to your hardware.

Stopping the Task

To stop a running task, click the pause button (). The task will stop executing, but the configuration will remain saved.

Starting and stopping a task does not re-apply the task configuration. If you’ve made changes to the configuration, you’ll need to re-configure the task by clicking the “Configure” button before those changes take effect.

How-To

Console

Python

TypeScript

Next Steps

Now that you understand the basics of working with tasks, you can learn how to configure a specific task type:

LabJack

National Instruments

OPC UA

Modbus