LabJack | Measurement & Automation
 

Stand Alone 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

LabJack T4

Product Announcement

Updated 12/21/2017

We are excited to introduce our newest multifunction DAQ device, the LabJack T4. The T4 is a low cost USB and Ethernet DAQ device that is compatible with Modbus TCP/UDP, making it suitable for a wide range of industrial automation, logging and control applications. The LabJack T4 is officially released and for sale!

Low Cost Ethernet DAQ

T4

T4: $209

  • Lowest cost Modbus TCP Ethernet DAQ device. Also supports USB communication.
  • 4 dedicated high voltage analog inputs (±10V, 12-bit resolution)
  • 8 configurable low voltage analog inputs (0-2.5V, 12-bit resolution) that can function as digital I/O lines
  • 8 dedicated digital I/O lines (EIO4-EIO7 and CIO0-CIO3)
  • Multiple timers and counters (Pulse Timing, PWM Output, Quadrature Input, ...)
  • Digital I/O lines support SPI, I2C, 1-Wire, and UART (Master modes only)
  • 2 Analog Outputs (10-bit, 0-5 volts)

T7, Raspberry Pi 3, and Cloud9

Raspberry Pi 3, LCD Screen, and LabJack T7

Combining the processing power from today's latest single board computers with LabJack's DAQ devices allow for some really cool projects. The T-series' built-in Lua Scripting feature allows for the T4/T7/T7-Pro to operate as a standalone device, but sometimes projects require more processing power. The Raspberry Pi 3 has a quad-core ARMv8 CPU, WiFi, Ethernet, and Bluetooth 4.1 but is missing industrial strength, precision, and calibrated analog inputs which you get when you connect a T7. This tutorial will hopefully help some of our customers get started with the Raspberry Pi and the T-series devices as well as introduce existing Raspberry Pi users to the idea of using Cloud9 as a remote IDE that is introduced by the BeagleBone Black. Developing directly on a Raspberry Pi can sometimes be slow as you don't have access to modern web-browsers and it usually takes up one of your monitors. With Cloud9 running locally on the Raspberry Pi you can simply navigate to the device's IP address and code away!

To learn more, please continue to the full App-Note: T7, Raspberry Pi 3, and Cloud9.

LJM Processing Examples

With the help of one of our customers, LabJack now has Processing examples for the LJM library that use a T7.

Processing is a high-level programming language designed to help students, artists, designers, researchers, and hobbyists create visually appealing drawings, illustrations, and applications.  It is a cross-platform application which pairs well with LJM, allowing examples written in Processing to run on Windows, Mac OS X, GNU/Linux, and even the Raspberry Pi.  A .zip file containing the LJM Processing examples can be found on the Processing Example Code/Wrappers page.  A screen shot of the example program running on Windows is below:

T7 DAQ via LJM and Processing

Windows - Example LabJack Installer

If you have an application that incorporates LJM-supported devices and you want to deploy to Windows machines, LabJack now has an example installer that you can use with minimal changes:

https://github.com/labjack/windows_example_installer

By modifying windows_example_installer, you can easily create your own installer, whether it's for internal or external use. The GitHub link above has all the technical details, so start reading to begin.

Pages