Crates.io | owon-spe |
lib.rs | owon-spe |
version | 0.1.0 |
source | src |
created_at | 2023-01-09 21:14:23.669782 |
updated_at | 2023-01-09 21:14:23.669782 |
description | OWON SPE programmable power-suppy api crate |
homepage | https://github.com/sjoerdsimons/owon-spe |
repository | https://github.com/sjoerdsimons/owon-spe |
max_upload_size | |
id | 754790 |
size | 54,371 |
Helper crate for the SCPI protocol as spoken by the Owon SPE power supplies; Tested on an Owon SPE 3102
use owon_spe::SPE;
fn main() {
let mut spe = SPE::from_serialport("/dev/ttyUSB0").unwrap();
let info = spe.idn().unwrap();
println!("Model: {}, Serial: {}, FW: {}", info.model, info.serial, info.fw);
}