.st0{fill:#FFFFFF;}

Tools

5 Experiments with the LabJack T4 

 March 7, 2020

By  Peter

Join Our Mailing List

We publish fresh content each week. Read how-to's on Arduino, ESP32, KiCad, Node-RED, drones and more. Listen to interviews. Learn about new tech with our comprehensive reviews. Get discount offers for our courses and books. Interact with our community.

One email per week, no spam, unsubscribe at any time.

In this video, I document 5 experiments and my first impressions after spending a few hours with the LabJack T4

In this post, I describe my first impressions after spending a few hours with the LabJack T4. I conducted five simple experiments, and recorded the process in a video.

You are probably familiar with test instruments like the multimeter or the oscilloscope, but did you know about the LabJack

The LabJack is not a multimeter or an oscilloscope. It’s not a signal generator or some other kind of instrument that I can recognize. The LabJack seems to be defining a new category of tools for electronics engineers and Makers.

LabJack is a tool for electronics measurement and automation. 

You can use it to do things like:

  • take simple voltage measurements, 
  • check the state of an analog or digital output of a microcontroller, 
  • produce PWM signals, 
  • communicate with other devices or sensors using SPI, I2C, or other digital communication protocols, 
  • count the frequency of a square signal, and more. 

You can access the LabJack directly via USB, or through your Wifi or Ethernet network. This means that you don’t need to connect it permanently to your computer. You can place it where you need it for your measurements.

The LabJack T4 connected to various peripherals
The LabJack T4 connected to various peripherals

The LabJack mixes functionality from various other instruments but offers the flexibility of an end-user programmable microcontroller and with support from a neat (=friendly and quick to learn) array of software applications.

I received the LabJack T4 model back in December, but only got around to play with it in the last few days. I had done some reading about this device and what it can do, so I wanted to try it out.

My first impression: Nice! For something with a high degree of sophistication and lots of capabilities, it is refreshing to experience trouble-free first steps. 

I plugged it into my Ethernet network, started Kipling, and detected it right away. 

Kipling detected my LabJack T4 connected to my Ethernet network without any issues
Kipling detected my LabJack T4 connected to my Ethernet network without any issues

I was able to control an LED and read the state of a button in my first attempt. And this without having to read the documentation. 

Well done to the people that designed the software. They succeeded in creating a powerful application that does not confuse and discourage beginners like me.

Kipling offers an intuitive UI so you can enjoy your LabJack effortlessly
Kipling offers an intuitive UI so you can enjoy your LabJack effortlessly

Within a couple of hours, I had completed 5 simple experiments and recorded a video to show you.

Here’s what I did (for the first 4 experiments I used the Dashboard graphical interface and wrote no code) :

  1. Control an LED using the Dashboard.
  2. Read the state of a button using the Dashboard.
  3. Generated arbitrary voltage and measured it with my multimeter.
  4. Generated a 1Hz square signal and measured its frequency with my multimeter.
  5. Wrote a simple Lua script to make the LED blink.

As I worked my way through these experiments, I began to appreciate the capabilities of the LabJack. These simple experiments opened up my appetite for more, so I plan to design and conduct more learning experiments.

To unlock a seriously powerful tool:

  1. Get your head around the fundamentals of the LabJack system, such as the registers and line (more about this further down in this post), 
  2. and learn a bit of Lua, which is not a problem if you have some experience with Python.

For example, LabJack’s pins (or “lines” as per the LabJack documentation) have an address. You can use this address in your Lua script to read and write its registers, and therefore enable functions.

Each pin exposes numerous functions controlled by registers. You can easily access those registers via the Kipling software. In most cases, it is a matter of changing a single value to enable or disable a function.

You can also access line and their functions through Lua scripts. 

The LabJack has an onboard interpreter, and you can set it to run the script on power-up. This way, you can implement any measurement and data logging logic you can think of, and set LabJack to work independently of your computer and Kipling. Lua scripting in LabJack is something I want to explore more in the future.

LabJack contains a Lua interpreter so that you can program it with any kind of data-acquisition scenario you can imagine
LabJack contains a Lua interpreter so that you can program it with any kind of data-acquisition scenario you can imagine

I have documented my experiments in this video. Please watch and feel free to comment or ask questions. Is there any experiment you suggest I should try out? Have you played with a LabJack? What do you do with it?

Disclosure: In case you are wondering, LabJack has given me a LabJack T4 to play with, but they did not pay me or promised to pay for this blog post. I did not receive any “VIP” support to help me produce the video or this post. I didn’t have to ask for assistance as I was going through my experiments because everything just worked. I decided to write this post in addition to the video because I genuinely enjoyed playing with this device 🙂


Tags


You may also like

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

I’m thrilled to announce that my upcoming course, Introduction to Electronics, is just a few weeks away from being released on both Udemy and Tech Explorations. This course was designed with the absolute beginner in

Read More
New Course Coming soon: Introduction to Electronics

Robotics is one of the most engaging and effective ways to teach programming, problem-solving, and critical thinking. Today, we’re diving into the CrowBot Bolt, a programmable robot car explicitly designed for STEAM (Science, Technology, Engineering,

Read More
Exploring the CrowBot Bolt: A Hands-On Robotics Kit for STEAM Education