import vxi11
d=None
if d is None:
d = vxi11.Instrument('10.42.0.100','hpib7,1')
print d.read_stb() # returns 0
print d.write("init;*wai;calc:mark1:max") # returns None. Meanwhile, instrument currectly execute single sweep and then measure the peak of the waveform
print d.ask("calc:mark1:y?") # Wait indefinitely, have to abort the program with Ctrl-C
d.close() # Program never reaches here.
--
You received this message because you are subscribed to the Google Groups "python-ivi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python-ivi+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
import vxi11
d=None
if d is None:
d = vxi11.Instrument('10.42.0.100','hpib7,1')
d.open()
d.max_recv_size = 1024
print d.read_stb()
print d.write("init;*wai;calc:mark1:max")
print d.ask("calc:mark1:y?")
d.close()