Open alexfournierahizoune opened 9 months ago
You define your instrument write_termination as \r\n
in the yaml file but do not specify the write termination in your script so the "instrument" never sees a complete query and does not answer.
Let me know if that fixes your issue.
@MatthieuDartiailh Changed \r\n
to \n
instead (in the yaml
file) and added a field write_termination
to my OSP320Configuration
class. I am setting this property in the get_osp320_instrument
function above.
I am still getting 'ERROR'
instead of 'OSP320, 1234...001, 23.1.1/3'
Another issue is that the "CONFigure:COMPatible 0"
is not declared in your yaml so you most likely see the complaint from this.
Another issue is that the
"CONFigure:COMPatible 0"
is not declared in your yaml so you most likely see the complaint from this.
thanks for the prompt reply, this seems to have fix the previous issue although now I am getting 'ERROR'
on self.connection.query("*STB?")
, the query "*STB?"
returns an 'ERROR'
and I'm not sure why since I've defined the query like so in the yaml
file:
...
error:
response:
command_error: ERROR
status_register:
- q: "*ESR?"
command_error: 32
query_error: 4
properties:
status:
default: 0
getter:
q: "*STB?"
r: "{:d}"
setter:
q: "*STB {:d}"
specs:
type: int
...
And this error always happens, no matter if tests ran before it or not so it cannot be linked to a previous command failure
Can someone explain to me why this simple test does not seem to work?
pyvisa-sim version: 0.5.1
error:
test_file.py
test_file.yaml
instrument.py
What am I missing?
Thanks