Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(23)  |  Call(23)  |  Derive(0)  |  Import(0)

src/p/y/PyVXI11-1.12a12/test_dso.py   PyVXI11(Download)
def test(hostaddr="169.254.254.254"):
    osc=AgilentDSO.AglDSO(hostaddr, device="gpib0,7", proto="tcp")
    osc.CLS()
    osc.Stop()
    osc.write(":WAV:FORM BYTE")
    osc.CLS()
    #osc.write("*SRE 161") # OPER/ESB/TRG
    osc.write("*SRE 32") # ESB
    #osc.write("*ESE 255") # 
    osc.write("*ESE 1") # OPC
    osc.write(":OPEE 0") # OPER/ESB/MAV
        #osc.Run()
        s=time.time()
        osc.write("*OPC")
        while osc.svc_lock.acquire(True): # block
            if osc.qOPC():

src/p/y/PyVXI11-1.12a12/test_dso_anim.py   PyVXI11(Download)
    #osc.set_wf_point("5000")
    osc.set_wf_point("20000")
    osc.write("*ESE 1")#Pon(7)/URQ(6)/CME(5)/EXE(4)/DDE(3)/QYE(2)/RQL(1)/OPC(0)
    osc.write("*SRE 32") # enable OPC/ESB
    # SRE OPER(7)/ESB(5)/MAV(4)/MSG(2)/USR(1)/TRG(0)
    #osc.write("*SRE 191") # enable all SRQ source
    osc.write("*SRE 177") # OPER/ESB/MAV
    osc.write(":HWE 65535")
    osc.write(":OVL 65535")