coburnw / python-vxi11-server

A VXI-11 Instrument Server written in Python
27 stars 13 forks source link

to upstream srq support #14

Closed ulda closed 3 years ago

ulda commented 3 years ago

Hi Coburn This is the rebased srq branch for upstreaming you asked for. feel free to pull.

regards Ulf

coburnw commented 3 years ago

Ulf,

Thank you for this work. I have a four channel dvm that i have been toying with and look forward to exploring srq in that project.

Regards, Coburn.

ulda commented 3 years ago

Thanks for merging. I got a Keithley 2604B into my hands to test srq support and it works with this instrument. You can find a small test program in my tree.

python 2604B_srq.py send: IDN? answer: Keithley Instruments Inc., Model 2604B, 4317693, 3.0.3 send: stb? answer: 0 send: sre? answer: 0 init my srq handler INFO:vxi11_server.vxi11:setting up srq handler INFO:vxi11_server.vxi11:IntrServer started... INFO:vxi11_server.vxi11:intr handler may connect to 192.168.178.27, 52415 INFO:vxi11_server.rpc:starting new request handler for client ('192.168.178.42', 49183), request <socket.socket fd=5, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.178.27', 52415), raddr=('192.168.178.42', 49183)> activate SRQ for errors send: sre? answer: 20 write blabla? to provoke error DEBUG:vxi11_server.rpc:running proceduire: 30 DEBUG:vxi11_server.vxi11:got srq for handle b'\x0f\xdc\x1d\x81' got SRQ for instrument STB: hex 44 srq was True