Closed laborleben closed 8 years ago
Thanks, do you know where pyvisa-py has the @sim backend definition?
I know, but I see only "?IDN" support for standard "@sim" backend. Where are the these commands defined: identifier : ERROR set_on : "!OUT" get_on : "?OUT" get_frequency : "?FREQ"
Additional commands (like the ones above) can be implemented via a yaml file. But I cant find that.
OK, it is an extra package ... pip install -U pyvisa-sim
Correct.
Default IEEE 488.2 commands are in a dict.
Yep, that's nicer
ERROR: test_write (test_SimScpi.TestSimScpi)
Traceback (most recent call last): File "/home/travis/build/SiLab-Bonn/basil/tests/test_SimScpi.py", line 43, in test_write self.device['Pulser'].set_on() File "/home/travis/build/SiLab-Bonn/basil/basil/HL/scpi.py", line 65, in method raise ValueError('Invalid SCPI command %s for device %s' % (name, self.name)) ValueError: Invalid SCPI command set_on for device Pulser
The error in the test never occurred because set_on command was never executed because "if .. elif .." statement had no final "else". I added "else" recently, so the error is visible now.
What was the intention of "set_on" / "get_on"? These commands doesn't exist in our device drivers. There is only "on" / "off". We might just implement "set_on" / "get_on" / "set_off" / "get_off" if that makes sense.