Included here is the very useful "Read Write Loop with Config.vi" example which forms the basis for most customer applications. The \Examples\Basics folder contains core examples that demonstrate the basics of interfacing LabVIEW with our LJM library. These are used by other VIs from the \Functions\ and \Examples\ folders to handle things unique to LabVIEW. The \LVUtilities folder contains VIs that encapsulate some useful functions. Most of these need a valid Handle input so are intended to be sub-VIs not standalone top level VIs. The \Functions folder contains simple VIs that do little more than call functions from LJM.
If you download new VIs from, delete and replace the entire LabVIEW_LJM folder. If you want to make your own variation of one of the examples, make a copy in a different location and modify that. We recommend not having more than one copy of the VIs, and not changing these VIs. In that case you can put the LabVIEW_LJM folder wherever you want. 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. If you just see question marks, see this forum topic. Be sure the folder containing our LabVIEW functions is named "LabVIEW_LJM" when added to the LabVIEW addons folder or else the icons may not load properly. 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).
The downloadable zip file "LabVIEW_LJM.zip" extracts to a single folder called "LabVIEW_LJM" which contains a few subfolders.
Stream mode and other operations that don't fit in "Write Read Loop with Config" will usually have specific examples, and if something seems to be missing let us know. Or just use "Write Read Loop with Config", which provides the basic structure used by many user applications.
Most operations simply involve writing and reading different registers, so you really just need examples that show you how to write and read any register. The reason for this stems from the "Overview" section above. You will find lots of examples in this archive, but there is not an example for everything the LabJack can do. The following examples in the Basic folder are a great place to start:
Look at the device's datasheet ( T7 or T4) or the Modbus Map to determine what registers you need to write and read, then use eWriteName (or eWriteNames) to write the desired registers and eReadName (or eReadNames) to read the desired registers. With the LJM library, pretty much everything you might want to do with a device is accomplished by writing and/or reading some registers. Move on to the very useful example "Write Read Loop with Config.vi".Navigate to the folder \LabVIEW_LJM\Examples\Basics and try out "LJM_eReadName Example.vi".For more information about what registers to write and read, see the T4 or T7 Datasheet and the Modbus Map.Go to the main LJM Page for an introduction, and proceed to the LJM User's Guide for more details. In LabVIEW you will be making calls to our LJM Library to write and read registers on the device.
Download the LabVIEW_LJM archive (at the top of this page) and extract the entire archive.