Hi Andrea, thank you for your reply.
I think there were two problems at play here, one of them you identified when you said "
The instrument can accept only one connection at a time," of which I was not aware.
I was using Test Script Builder interactively to do a sanity-check of my TSP commands, but was leaving it running so that explains why I could no longer communicate after starting TSB.
My underlying problem -- the reason why my Python script was not working in the first place, was I think due to a quirk with TSP when running over PyVISA. Please confirm my suspicion here, but I think that this line of code will not work:
my_instr.query('dmm.measure.read()')
The code above causes a timeout for me (my original problem). This however does work:
my_instr.query('print(dmm.measure.read())')
The subtle distinction being that TSP
print(...)
produces something on stdout which I suppose is captured and returned by the
query()
command, but
dmm.measure.read()
does not produce anything on stdout. So that I and maybe others aren't tripped up by this in the future, can you advise what TSP statements
can be used with VISA q
uery()
, other than
print(..)
?
Thanks in advance,
Richard