17 releases

0.1.1 Jan 9, 2024
0.1.0 Jan 9, 2024
0.0.17 Dec 15, 2023
0.0.8 Nov 4, 2023
0.0.5 Sep 12, 2023

#6 in #series

Download history 1/week @ 2024-02-16 17/week @ 2024-02-23 11/week @ 2024-03-01 3/week @ 2024-03-08 18/week @ 2024-03-15 92/week @ 2024-03-29 19/week @ 2024-04-05 9/week @ 2024-04-26 203/week @ 2024-05-03

212 downloads per month

MIT license

19KB
276 lines

ljmrs

A rust library which allows you to connect with the LabJack T7 and T8 series through the C/C++ Bindings. This is a rust abstraction layer for stronger types and safety.

You can install the crate with:

cargo add ljmrs

Types are provided for LabJack error codes, as a return value for each function.

Support

This does not support every function yet, you are welcome to create a PR to add any functions you want.

The official documentation from LabJack is found here. ljm-rs simply provides abstraction to the C/C++ library, through the libloading crate.

Examples

Examples are found in the /examples folder. To try an example, run the following:

cargo run --example <example_name>

For example:

# cargo run --example info
Opened LabJack, got handle: 1
Got IP, 109.61.99.68

Addendum

Note, running on MacOS with an ARM CPU requires newer versions of LabJack software, found here. Alternatively, you can use Rosetta 2 with older software, and the following command:

cargo build && arch -x86_64 ./target/x86_64-apple-darwin/debug/ljm-rs

Dependencies

~0–5MB