MATLAB Examples (Windows UD)
MATLAB drivers and examples version 1.32. See the PDF included in the download zip. Tested on MATLAB 7.0, but should work with 6.5 or newer.
This should work for most 32-bit versions of MATLAB. Due to how MATLAB handles calls to .dlls, additional steps are needed for work with 64-bit MATLAB. In addition to needing the 64-bit LabJackUD.dll you must also have a set of compiler tools to call the functions.
See this for an example of how to set that up with MATLAB 7.7For MATLAB R2010a you can get more information here for 32-bit versions and here for 64-bit versions.
For MATLAB R2011b you can get more information here for 32-bit versions and here for 64-bit versions.
File attachment:
DAQ Devices
- UD Series (U3, U6, UE9)
- U3
- U6
- UE9
- Software Options
- Installers and Drivers
- Applications
- Programming (UD)
- Windows Example Code
- DAQFactory Examples (Windows UD)
- DASYLab
- Delphi (Windows UD)
- Dev-C (C, C++, Windows UD)
- DotNet (.NET)
- FlowStone
- Igor Pro Windows
- Java (Windows UD)
- LabVIEW
- LabWindows/CVI (Windows UD)
- MATLAB Examples (Windows UD)
- PureBasic (Windows UD)
- VC6 (Windows UD)
- VEE (Windows UD)
- Visual Basic (VB6, VBA, Windows UD)
- LabJackPython
- LabVIEW Mac OS X Linux
- Windows Example Code
- DAQFactory
- CloudDot
- U12
- T Series
All Support Guides
Search
Shopping Cart
Testimonials
-
Wow, 15 minutes for a reply that I understand. You guys perform great support!
—Flo, Germany


Comments
#1
I noticed in the U3_Simple_Logger.m file that you don't preinitialize the size of the array for Error, AINX, and FIOX. This will dramatically decrease the speed of data acquisition as the array gets larger. Since you are already requesting the 'time' and 'dt' variables, the following lines should be added at the beginning of the program to increase program speed for longer tests.
It may be desirable to initialize values to -100 in case samples are missed (these values could get filtered later).
- A concerned citizen with Matlab expertise
#2
Thank you for your suggestion and we will be sure to fix that in the examples as soon as possible.
-- Labjack Support