Overview

This document describes the usage of the LUCAS-NLLE UniTrain-I driver with LabVIEW. The supported programming interfaces are listed.

Installation
To use the library with LabVIEW you have to copy the complete folder "LN UniTrain-I" from CD (or zip file) to your local disk. The prefered location is the LabVIEW folder for the instrument drivers (instr.lib). For standard installation of LabVIEW this folder is found at: 

c:\Program Files\National Instruments\LabVIEW 2009\instr.lib\,
c:\Program Files\National Instruments\LabVIEW 2010\instr.lib\,
c:\Program Files\National Instruments\LabVIEW 2011\instr.lib\.

After copying the files open the folder "LN UniTrain-I" and double click the file "RegisterDLL.cmd" to register the file UniLabVIEW.dll in the system registry. This file is located in the same directory: 

LabVIEW 2009: C:\Program Files\National Instruments\LabVIEW 2009\instr.lib\LN UniTrain-I\,
LabVIEW 2010: C:\Program Files\National Instruments\LabVIEW 2010\instr.lib\LN UniTrain-I\,
LabVIEW 2011: C:\Program Files\National Instruments\LabVIEW 2011\instr.lib\LN UniTrain-I\.

If necessary, you can modify the file "RegisterDLL.cmd" to modify the path according to where the files are to be installed on your computer. Just right click the file and choose "Edit". 

Please run the .cmd file as "Administrator" in Windows 7, and do not install directly in the C:\ directory. 

Tip   You can use the LabVIEW VI 'Check Version' to get the version of the firmware.

Programming
After installation you can directly use either the provided VI's (Functions Palette Output>>Device Drivers>>UniTrain-I) or directly functions from the DLL. The functions are called using "ActiveX" from the function palette of 
LabVIEW (Connectivity/ActiveX).

Use the block "Automation Open" to connect to the DLL. Choose "IUniTrain" as class. By placing a block "Invoke Node" you can create an interface and call the required functions. The supported interfaces are 
listed below. Refer to the LabVIEW help for more information about using ActiveX components.

The folder also contains some examples.

