- Teststand Libraries
- Product Libraries
This LabVIEW library leverages easy use of National Instruments data acquisition / generation devices of the “DAQmx” series. The plethora of functionality the native NI-DAQmx driver offers is ditched in favor of a handy interface to the most common use cases of data acquisition and generation. DriveTest IO Library is ideal for use with National Instruments TestStand and supports running multiple instances simultaneously.
Use cases for IO Library are:
A license is required to use this library. Please contact DriveTest GmbH for more information.
IO Library uses NI-DAQmx Global Virtual Channels as input and output channels. Global Virtual Channels are handled in National Instruments Measurment and Automation Explorer (NI MAX). This software comes free of charge with the NI-DAQmx driver. Global Virtual Channles define the physical channel and offer an optional scaling to a virtual value. Functionality for import and export is available in NI MAX.
In NI-DAQmx jargon a measurement process is called Task. There are several kinds of task: analog input task, analog output task, digital input task and so on. Most NI-DAQmx devices can run one of a kind task at a time. For example, it is not possible to run a finite and a continuous analog acquistion at the same time on the same piece of hardware. It is possible to run a finite analog acquisition and a continuous analog output at the same time.
In short: The driver does not allow simultaneous use of the same piece of hardware by different measurement processes.
Overview Image to be added.
Initialize an IO Instance to perform input and output operations with NI-DAQmx devices. This is the first VI to call when working with this library. IO Instances should be closed after use with “shutdown.vi”.
It is possible to run several IO Instances simultaneously as long as there is no hardware access conflict. Hardware access conflicts create NI-DAQmx run-time errors. Instances and their channels can be distinguished with the inputs “Instance No.” and “instance No. suffix on channels”.
The data type of this connection is “Boolean”. Wiring this connection is recommended. If this input is TRUE, an underscorce and the instance number (e.g. “_0”) are appended automatically to all channel names. This is useful for running multiple instances of IO Library simultaneously. By default, this input is FALSE.
Close IOref reference. The reference can not be used after calling this VI.
DriveTest GmbH, 14.1.2015 (TOP)
The data type of this connection is “Path”. Wiring this connection is required. Measurement data log file including path and file name. If the path does not exist, it is created. File ending must be *.tdms.
The data type of this connection is “Enum U16”. Wiring this connection is recommended. If the measurement data log file specified with input “log file” does not exist, it is created. This input defines what happens if the file already exists.
append (0): append measurement data to the existing file replace (1): delete the existing file and create a new file
Sets the acquisition / generation sample rates for input and output operations. Sample rates for different IO types are store independently.
analog output (1): continuous and finite analog output sample rate is defined
digital input (2): continuous and finite digital input sample rate is defined
digital output (3): continuous and finite digital output sample rate is defined
noise input (4): noise acquisition sample rate is defined
Set a property in measurement data log TDMS file. The property is applied to file level or group level, if a group of channels is specified.
DriveTest GmbH, 29.1.2015 (TOP)
Checks if a previously started Finite Task has finished. This VI works with the task types Analog Input, Analog Output, Digital Input and Digital Output.
DriveTest GmbH, 13.2.2015 (TOP)