This download allows Igor Pro developers to utilize the Windows UD library, featuring both an XOP and examples. Only a 32-bit XOP is provided. See the 32-bit XOP section for more details. The Windows UD library is the high-level Windows library/driver for the LabJack U3, U6 and UE9. For other LabJack devices, go to the Software page.
Example Package
UD Library Overview
First read the general overview of the UD library.
The UD driver has a handful of functions, many with the same 4 to 6 parameters.
Functions
The main functions are used to build a list of requests (Add), execute the list (Go), and read the result of each request (Get). Some functions (e.g. eGet) combine a single add/go/get into one function call.
Parameters
The parameters are described at the bottom of the Overview page. The meaning of each parameter should be apparent (e.g. Channel is the channel number you are operating on), but when it is not the pseudocode section of the device's datasheet has the extra information needed.
-
Handle: Always the handle.
-
IOType: Always the IOType.
-
Channel: If something besides a channel number the pseudocode section will tell you.
-
Value: Always the value.
-
X1: Usually not used, but if used the pseudocode section will tell you.
-
UserData: Usually not used, but if used the pseudocode section will tell you.
Pseudocode
Device specific pseudocode can be found in the device datasheet pseudocode section (U3/U6/UE9).
32-bit XOP
Currently only a 32-bit XOP is provided. It will work with 32-bit Igor Pro but is not compatible with 64-bit Igor Pro. If Igor Pro gives the "unknown/inappropriate name or symbol" error when using our examples, that usually indicates the LabJack XOP couldn't be used or found.
For a solution, use the 32-bit Igor Pro to use the LabJack XOP. For example, Igor Pro 9 has an "Igor.exe" 32-bit executable in it's folder:
\Program Files\WaveMetrics\Igor Pro 9 Folder\IgorBinaries_Win32
Copy labjack.xop, labjackConstants.ipf, and labjackHelp.ihf to the folder:
\Program Files\WaveMetrics\Igor Pro 9 Folder\Igor Extensions
The 32-bit Igor Pro should be able to find it then. Note to close Igor Pro first, copy files to the extensions folder, and run Igor Pro again.
If the 32-bit Igor Pro still has issues finding the XOP, there is one more extension location it may look at. You can find that folder in Igor Pro using the help menu, "Help -> Show Igor Pro User Files". In that folder there is an "Igor Extensions" to copy the LabJack XOP files to.