Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/float command resolution #503

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

martin-gustafsson
Copy link
Contributor

Each Command subclass for a SCPI instrument defines a "formatter" which translates an assigned value to a string that can get sent to the instrument hardware. In some cases, the default formatter is inadequate, and this fix lets the Command be instantiated with a formatter that overrides the generic one defined as a class variable for the Command class.

Example: FloatCommand defaults to the "{:E}" formatter, which produces a string with six digits of precision. This isn't sufficient to set frequency start, stop, and span for a VNA with better than 1 kHz resolution.

This fix updates the Agilent NetowrkAnalyzer to permit 1-Hz frequency resolution.

@martin-gustafsson martin-gustafsson merged commit 53e5b3b into develop Aug 28, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant