LabVIEW driver/example VIs for the Windows UD library. The Windows UD library is the high-level Windows library for the LabJack U3, U6 and UE9. For other LabJack devices, go to the Software page.
LabVIEW is one of the most popular programming languages used by our customers. LabVIEW is a graphical programming language, as demonstrated in the code snippet below, but understand that it is still a powerful programming language not a simple software tool.
http://www.ni.com/gettingstarted/labviewbasics/
Note that using a LabJack in LabVIEW is not identical to using NI hardware in LabVIEW. The NI hardware is talked to through the NI-DAQ driver, while the LabJack is talked to through the LabJack UD library. That means that you will not use measurement & automation explorer, DAQ assistant, or similar NI wizards.
The LabVIEW_LJUD archive is maintained in LabVIEW 7.1, but also available below are the last supported archives for LabVIEW 5 & 6.
The LabVIEW_NXG_LJUD archive is only compatible with LabVIEW NXG and similarly the LabVIEW_LJUD archive is not compatible with LabVIEW NXG.
Our normal software installation package is required by the attached LabVIEW examples. You can find the latest version of that here.
The UD library has easy functions to read or write a single analog or digital I/O. For basic applications these might be all that are needed:
For more flexible and efficient operation you would move on to the basic Add-Go-Get technique described in Section 4.1 of the U3/U6/UE9 User's Guide. With this technique you give the drive a list of requests to perform (Add), execute the list (Go), and read the results of each request (Get). There are a few different functions to perform different variations of Add-Go-Get, but they all have the same parameters:
Refer to Section 4.2 of the U3/U6/UE9 User's Guide for documentation of the parameters of each function.
The pseudocode sections, 4.3 of the U3/U6/UE9 User's Guide, are a good spot to look for this information. Also see the applicable Hardware Description section in the U3/U6/UE9 User's Guide.
The downloadable zip file "LabVIEW_LJUD-year-month-day.zip" extracts to a single folder called "LabVIEW_LJUD-year-month-day" which contains a few subfolders. The folder can be stored anywhere, but if you want icons to show up on the LabVIEW function palette (after restarting LabVIEW), place this folder under ...\national instruments\labview #\vi.lib\addons\ (create the addons folder if it does not exist). Be sure the folder containing our LabVIEW functions is named "LabVIEW_LJUD" when added to the LabVIEW addons folder or else the icons may not load properly. If you just see question marks, see this related forum topic.
Many people, including us, do not use the palette icons but rather just copy paste from examples and use the "Select a VI..." balloon from the function palette. In that case you can put the LabVIEW_LJUD folder wherever you want.
We recommend not having more than one copy of the VIs, and not changing these VIs. If you want to make your own variation of one of the examples, make a copy in a different location and modify that.
If you download new VIs from labjack.com, delete and replace the entire LabVIEW_LJUD folder.