LabJack | Measurement & Automation
 

LJM ByteArray Functions

If you need to send or receive bytes to or from an LJM-supported device, consider using the LJM ByteArray functions.

These functions automatically split writes or reads into multiple packets, if necessary. Because of this, you can write or read a large number of bytes without worrying about what the maximum packet size of the connection is. This is especially useful for buffer registers. For example:

UVic Rocketry Upgrades Data Acquisition System

The UVic Rocketry Team is a student-led group at the University of Victoria (British Columbia, Canada) that designs and builds competitive sounding rockets. UVic participates the annual Spaceport America Cup (SA Cup), located at the world’s first purpose-built commercial spaceport located in southern New Mexico, United States.

LCONFIG - A tool for automating experiments and data collection

LCONFIG is a C library for configuration and logging. Log files also serve as configuration files so you can easily repeat experiments. From the LCONFIG_README:

Standalone Operation: One of the key advantages of T-Series Lua Scripting

LabJack Lua Scripting

While running a Lua script, the T4, T7 or T7-Pro can operate without computer involvement.  Basically, user-specified operations (feedback loops, logging, PID loops) can be conducted via on-board script, which was not possible in previous generations of LabJack hardware. Below is a screenshot of the Lua Scripting section in our free cross-platform program called Kipling.

https://labjack.com/sites/default/files/organized/applications/Kipling_v3/photos/KiplingscriptingTN.png

Autonomous scripting operation is common for embedded devices like Arduino, but there are some key advantages of any LabJack T-Series, compared to other embedded solutions:

  • Full access to all device features within script: (24-bit ADC, 14 analog channels, 23 digital I/O, 10 counters, I2C, PWM, etc.)
  • If you require more I/O capability, we have a host of accessories that can be added without extra code or wiring.
  • No code is compiled on the host PC, so there is no need to setup some kind of compiler/interpreter on your system.  Simply send the Lua scripts to the device as a basic text file using Kipling (free, cross-platform), and the T-Series device returns all feedback, including print statements, compiler errors, and all other debugging information.  This debugging information is shown in Kipling in the console, all you do is click the Run button.
  • You get to write code in Lua, which can be easier to learn than C or C++.
  • Any LabJack T-Series can be running a script, and also responding to external requests at the same time. (multitasking)
  • There are dozens of simple examples built into Kipling, so you don't have to dig around to find example code. 
    T-Series device on-board scripting examples

First Hour Working with the LabJack U3-LV

Introduction

My name is Seth Price and I am an instrumentation instructor in the Chemical Engineering department at New Mexico Tech, as well as a National Instruments Certified LabVIEW Associate Developer. The LabJack U3-LV integrates with LabVIEW, and so I was excited to test out this system.

Python 3 Update for LabJack UD Series & U12

LabJack UD Library - Python 3 Support

LabJack is pleased to announce an updated release of LabJackPython that now includes Python 3 support. LabJackPython is our Python module for communicating with the LabJack U3, U6, UE9 and U12. It is compatible with Windows, macOS and Linux. For more information and downloads, please visit the LabJackPython page:

Simple C++ Symbol Visibility Demo

This post gives a demonstration/test of the dangers of using default visibility for symbols in C++ shared libraries. It briefly walks through why and how to use the -fvisibility=hidden compilation flag along with __attribute__((__visibility__("default"))) in symbol declarations.

LJM Timing Functions

Data acquisition often needs to be done at regular and precise intervals. It can also be important to check how long it took an operation to complete. For these purposes, LJM 1.1700 added the following functions:

Power over Ethernet (PoE) and LabJack

Power over Ethernet (PoE) standards celebrates 15 years of official adoption by IEEE 802.3af in 2018, and is just as relevant today as ever. Mainstream adoption of PoE devices has driven down costs of switches, splitters and  injectors combined with an exploding number of PoE capable/compatible devices. This has offered expanded opportunities to not only established industrial processes but also experiments, prototypes and projects on a shoestring budget.

PoE offers innovators a variety of creative applications to the world of data acquisition (DAQ). Recently, LabJack performed thorough product testing to better serve those clients wishing to utilize PoE for their upcoming deployments. Using one of a variety of  inexpensive splitters/adapters our Ethernet capable LabJacks (T7 family, T4, & UE9 Family) can be used with PoE, eliminating the need for nearby AC power. Using Cat 6 cable, PoE can reliably transmit power and data 100 meters/328 feet. The benefits of PoE are already well documented. LabJack engineers have tested 3rd party switches, injectors and splitters, in conjunction with LabJacks so you can incorporate PoE into your next LabJack project with confidence.

Power over Ethernet (PoE) compatible Modbus TCP LabJack DAQ devices

Pages