Serial port | LabJack
 

Serial port

2 posts / 0 new
Last post
hnasr2001
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:

https://labjack.com/support/software/installers/u12/u12-mac-and-linux-lj...

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):

https://labjack.com/support/software/installers/exodriver

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

https://labjack.com/support/datasheets/u12

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.