| Crates.io | ljmrs |
| lib.rs | ljmrs |
| version | 0.2.2 |
| created_at | 2023-09-07 11:39:25.625816+00 |
| updated_at | 2025-05-08 10:22:04.305526+00 |
| description | LabJack LJM Bindings for Rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 966134 |
| size | 212,040 |
ljmrsA 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.
The library documentation is under the [ljm] module. You can add the crate with
cargo add ljmrs.
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 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
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