Skip to content

Connection

Martin Lim edited this page May 17, 2019 · 2 revisions

VISA Instrument Communication

  • All instruments drivers inherit from yaVISA.py
  • yaVISA.py
    • default VISA connection.
    • Requires installation of VISA driver on local machine
    • Typical use:
      • HiSlip: instrument.jav_Open('192.168.1.10')
      • Direct: instrument.jav_openvisa('TCPIP0::192.168.1.10::hislip0')

Socket Instrument Communication

  • yaVISA_socket.py
    • Replaces VISA open, write, & query methods with socket equivalent.
  • To use:
    • Delete/rename jaVISA.py
    • Rename jaVISA_socket.py to jaVISA.py
    • Code will now make socket connections alone.

Socket port

  • Default instrument.jav_Open('192.168.1.10') opens w/ port 5025
  • Specify port w/ instrument.jav_Open('192.168.1.10',port=100)