-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add 'kic-visa' Executable and call into it if visa is installed
- Loading branch information
Showing
9 changed files
with
1,248 additions
and
90 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
[package] | ||
name = "kic-visa" | ||
description = "Keithley Instruments TSP® communications commandline application with VISA support." | ||
version = { workspace = true } | ||
authors = { workspace = true } | ||
edition = { workspace = true } | ||
repository = { workspace = true } | ||
|
||
[dependencies] | ||
anyhow = { workspace = true } | ||
clap = { workspace = true } | ||
colored = { workspace = true } | ||
instrument-repl = { workspace = true } | ||
rpassword = { workspace = true } | ||
serde = { workspace = true } | ||
serde_json = { workspace = true } | ||
thiserror = { workspace = true } | ||
tracing = { workspace = true } | ||
tracing-subscriber = { workspace = true } | ||
tsp-toolkit-kic-lib = { workspace = true, features=["visa"] } | ||
regex = "1.10.3" | ||
windows-sys = { version = "0.52.0", features = [ | ||
"Win32_System_Console", | ||
"Win32_Foundation", | ||
] } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use thiserror::Error; | ||
|
||
/// Define errors that originate from this crate | ||
#[derive(Error, Debug)] | ||
#[allow(clippy::module_name_repetitions)] | ||
pub enum KicError { | ||
/// The user didn't provide required information or the information provided was | ||
/// invalid | ||
#[error("Error parsing arguments: {details}")] | ||
ArgParseError { | ||
/// The reason why the arguments failed to parse. | ||
details: String, | ||
}, | ||
|
||
/// Another user must relinquish the instrument before it can be logged into. | ||
#[error("there is another session connected to the instrument that must logout")] | ||
InstrumentLogoutRequired, | ||
} |
Oops, something went wrong.