ADS Write Assistant

Like the ADS FlexDAQ, the ADS Write Assistant VI is a LabVIEW™ Express VI that simplifies the configuration of transfer tasks. The ADS Write Assistant VI can be used to write data from LabVIEW™ to TwinCAT 3.

The user interface of the ADS Write Assistant VI guides you step by step through the configuration of your transfer task:

The configuration window opens after placing the ADS Write Assistant instance in the LabVIEW™ block diagram or by double-clicking. The configurations can be made with the help of the selection windows described below. After the configuration is complete, the instance creates all the necessary resources for writing the data.

ADS Write Assistant 1:

Save VI before using the ADS Write Assistant VI

The ADS Write Assistant VI saves the instance configuration in the path of the current project. Therefore it is necessary that the project has been saved before.

Open ADS Write Assistant VI in an accelerated way

The library must be precompiled.
1. Open the settings for "Mass Compile" in the LabVIEW settings at Tools > Advanced.
2. Select the folder of the TwinCAT 3 Interfaces for LabVIEW™ library, e.g. C:\Program Files\ National Instruments\LabVIEW 2023\user.lib\Beckhoff-LabVIEW-Interface.
3. Start "Mass Compile".
ADS Write Assistant 2:

Input/output

Meaning

[1] SumUp handle

Handle to the SumUp Writer

[20] Handle

Handle to the ADS client

Symbol selection window

The symbol selection window at the ADS Write Assistant offers the same functionality as at ADS FlexDAQ. Here one of the options can be selected to start a new configuration or to apply the settings of an existing configuration. If you start a new configuration via Symbol Interface, you will automatically move on to the next window.

ADS Write Assistant 3:

Loop-ID window

In this window, the symbols are assigned a unique Loop-ID. This distributes the writing of the symbols to different while loops. If two symbols have the same Loop-ID, both symbols have used the same loop. The number of Loop-IDs determines the number of generated while loops in the LabVIEW™ block diagram.

ADS Write Assistant 4:

Write operation configurator (selection window)

In this window the start/stop condition for the data transport from LabVIEW™ to TwinCAT 3 can be configured. The configurator behaves identically to ADS DAQ except for the stop condition.

ADS Write Assistant 5:

With the control Stop Job you configure the stopping of the writing process. The parameter Stop Condition describes the stop condition.

ADS Write Assistant 6:

Automatically generated code in the block diagram

In the following, two variants of the automatically generated code are explained as examples.

In the first example, the ADS Write Assistant VI is generated with default settings, i.e. Start with LabVIEW™ Run, Stop with LabVIEW™ Stop. An ADS symbol MAIN.aSine is written. A sine signal generated by LabVIEW™ and transferred to the TwinCAT 3 Runtime.

ADS Write Assistant 7:
ADS Write Assistant 8:

In the second example, the start/stop conditions are set to Trigger on LabVIEW™ Event. In addition, two symbols are written here with the SumUp handle: MAIN.aSquare and MAIN.aSine. The two symbols are assigned the same Loop-ID. Thus, both symbols use a while loop and the same event structure.

ADS Write Assistant 9: