Skip to content

Latest commit

 

History

History
25 lines (22 loc) · 896 Bytes

README.md

File metadata and controls

25 lines (22 loc) · 896 Bytes

LibreVisa

My Fork of LibreVisa, extended for use with PyVisa.

I am trying to control a USBTMC Device using PyVisa and LibreVisa on a Debian Linux System. For use with PyVisa I had to implement the viParseRsrc() function in LibreVisa.

My Python Script:

  #!/usr/bin/env python3
  import visa
  rm = visa.ResourceManager('/home/charly/dev/librevisa.git/src/.libs/libvisa.so')
  rm.list_resources()
  inst = rm.open_resource('USB5::0x03eb::0x2423::123456');
  idn = inst.query('*IDN?')
  print(idn)

Links: