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

[Dashboard] SCPI channels (@{var}) don't interpret variables correctly #684

Open
fietser28 opened this issue Jan 4, 2025 · 1 comment
Open
Assignees
Labels
Milestone

Comments

@fietser28
Copy link
Collaborator

Describe the bug
When using a variable inside the channel specification of a SCPI command the variable is not interpreted.
E.g:

volt = meas:volt? (@{channel}01)

will not send ```mess:volt? (@201)` but the raw string. Studio doesn't generate an error on the SCPI syntax, but the BB3 of course does.

To Reproduce
See screenshot, the last SCPI command.

Expected behavior
A clear and concise description of what you expected to happen.

** Work around**
Use inst command, this works (but is not exactly the same because it changes the current instrument).

Screenshots
image

Desktop (please complete the following information):

  • OS: Mac OS 14
  • studio from GitHub (2 commits behind)
@mvladic
Copy link
Contributor

mvladic commented Jan 4, 2025

Another workaround is:

volt = meas:volt? {"(@" + channel + "01)"}

@mvladic mvladic added this to the 0.22.0 milestone Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants