Processing for LJM - Windows, Mac, Linux
Cross-platform Processing examples for the LJM library.
Prerequisites
A T-series LabJack Device
LJM Library - Install the LJM Library
Processing 3.x - Download from https://processing.org/download/
Operating system - Windows, Mac OS X, or Linux
Latest Example Package
processing_ljm_2016_09_26_0.zip
Communication Basics
With the LJM library, pretty much everything you might want to do with a device is accomplished by writing and/or reading some registers. Look at the T-series Datasheet or the Modbus Map to determine what registers you need to write and read, then use eWriteName (or eWriteNames) to write the desired registers and eReadName (or eReadNames) to read the desired registers.
Instructions
Go to your device Quickstart Tutorial and follow the steps to install LabJack software and confirm basic operation.
Download/extract the .zip file attached at the top of this page.
Start the processing program.
Use the
File
→Open
dialog box to navigate to the extracted .zip folder and into one of the two examples. Open the*.pde
file.Press the
Play
button.
Further Resources
These examples are based off of the original work by Jason and sent to us in the forum topic processing-language. Further explanations and some ideas for distributing processing applications can be found on the forum topic as well. Jason's description and example .zip file is located in comments #3, #4, and #6.
File list
Processing_LJM_2016_09_26.zip contains:
Processing_LJM_2016_09_26\.DS_Store
Processing_LJM_2016_09_26\LICENSE.txt
Processing_LJM_2016_09_26\README.txt
Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\LJM.java
Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\LJMException.java
Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\Serial_number_4_AINs_and_DAC0.pde
Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\code\jna.jar
Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\code\ljm.jar
Processing_LJM_2016_09_26\Serial_number_and_4_AINs\LJM.java
Processing_LJM_2016_09_26\Serial_number_and_4_AINs\LJMException.java
Processing_LJM_2016_09_26\Serial_number_and_4_AINs\Serial_number_and_4_AINs.pde
Processing_LJM_2016_09_26\Serial_number_and_4_AINs\code\jna.jar
Processing_LJM_2016_09_26\Serial_number_and_4_AINs\code\ljm.jar
__MACOSX\Processing_LJM_2016_09_26\._.DS_Store
__MACOSX\Processing_LJM_2016_09_26\._Serial_number_and_4_AINs
__MACOSX\Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\._code
__MACOSX\Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\._LJM.java
__MACOSX\Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\._LJMException.java
__MACOSX\Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\code\._jna.jar
__MACOSX\Processing_LJM_2016_09_26\Serial_number_4_AINs_and_DAC0\code\._ljm.jar
__MACOSX\Processing_LJM_2016_09_26\Serial_number_and_4_AINs\._code
__MACOSX\Processing_LJM_2016_09_26\Serial_number_and_4_AINs\._LJM.java
__MACOSX\Processing_LJM_2016_09_26\Serial_number_and_4_AINs\._LJMException.java
__MACOSX\Processing_LJM_2016_09_26\Serial_number_and_4_AINs\code\._jna.jar
__MACOSX\Processing_LJM_2016_09_26\Serial_number_and_4_AINs\code\._ljm.jar