| Crates.io | libvisa |
| lib.rs | libvisa |
| version | 0.4.0 |
| created_at | 2025-03-21 19:51:31.301432+00 |
| updated_at | 2025-09-13 19:32:37.736085+00 |
| description | Bindings to the VISA library |
| homepage | |
| repository | https://github.com/caliangroup/libvisa |
| max_upload_size | |
| id | 1601088 |
| size | 251,536 |
This crate provides a safe wrapper around the NIST VISA library.
It is designed to be as simple to use as possible.
To build, you will need the VISA_DIR environment variable set to the location of the VISA library.
For example C:\\Program Files\\IVI Foundation\\VISA\\Win64
Here is a simple example that searches for available local devices:
use libvisa::{error::Error, ResourceManager};
fn main() -> Result<(), Error> {
// Open the resource manager and search for a matching device
let manager = ResourceManager::new()?;
let matches = manager.search("?*")?;
println!("Found devices:");
for device in matches {
println!(" {}", device);
}
Ok(())
}
Safe wrappers are not yet implemented for several attributes: