Serial port | LabJack

Serial port

2 posts / 0 new
Last post
hnasr2001's picture
Serial port

How to use U12 to read a string from serial (USB) port?

Any sample code available?

LabJack Support
LabJack Support's picture
We provide a U12 high-level

We provide a U12 high-level library, ljacklm, for the U12 with C/C++ examples here:

ljacklm requires the Exodriver library, which is the low-level USB library. That library provides an interface for USB communications to send and receive U12 command-responses (packets):

Last, the U12 high-level functions and low-level command-response are documented in the U12 datasheet:

I recommended using the ljacklm library interface which handles the low-level command-response packets and USB communications. If you want to handle the low-level USB packets yourself, use the Exodriver directly.