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

parsing of whitespace after the parameter #159

Open
hinxx opened this issue Aug 15, 2024 · 0 comments
Open

parsing of whitespace after the parameter #159

hinxx opened this issue Aug 15, 2024 · 0 comments

Comments

@hinxx
Copy link

hinxx commented Aug 15, 2024

I'm playing with the CONFigure:VOLTage:DC from examples using pyVISA under linux against the test-tcp example.

Python:

>>> dev.write('CONFigure:VOLTage:DC 1,3')
25
>>> dev.write('CONFigure:VOLTage:DC 1, 3')
26
>>> dev.write('CONFigure:VOLTage:DC 1 , 3')
27

test-tcp:

conf:volt:dc
	P1=1.000000
	P2=3.000000
conf:volt:dc
	P1=1.000000
	P2=3.000000
conf:volt:dc
**ERROR: -151, "Invalid string data"
	P1=1.000000
	P2=0.000000

The space after the 1 seems to be troublesome.

Interestingly if the following is done:

>>> dev.write('CONFigure:VOLTage:DC 1 , 3.0')
29

test-tcp seems happy:

conf:volt:dc
	P1=1.000000
	P2=3.000000
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

No branches or pull requests

1 participant