Visa Device Handler
Based on the visa crate, this crate aims to provide a wrapper to allow multiple device connections and handling, and make the usage of NI-VISA easier to use.
The crate supports Windows, and sould support Linux and MacOS. but is being tested mainly on Windows.
Example
let sdm_result:SafeDeviceMap = init;
match sdm_result
Tauri
The next Tauri project utilizes the crate as a peripheral for NI-VISA. https://github.com/LiorBuch/showcaser. this project uses React and Mantine as the UI, it's not failproof as it's just a POC.
Change Log 0.3.0
-
get_first_devicenow returns the device instead of printing. -
get_first_deviceandfind_all_devicesnow won't print unlessdebugboolean is true. -
Fixed the error where the CString parses null terminators.
-
Added key error map in some functions.
Change Log 0.3.1
- Opened project as open source.
- Added Tauri example project -> https://github.com/LiorBuch/showcaser
- Added filter keywords for
get_first_deviceandfind_all_devices
Change Log 0.4.0
- Fixed the disconnect issue.
- Cleaned structure.
Change Log 0.5.0
- All Device operations now use its address, more uniform approch since the address is always presented.
- Linux is now enabled, yet not fully tested.
- Added logger to the Map to save all the warnings and suppress them. (set to Debug by default)
- status codes are now fully tested to give more accurate information.