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: