braamotto / LibreVisa

My Fork of LibreVisa, extended for use with PyVisa.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

My Fork of LibreVisa, extended for use with PyVisa.


Languages

Language:C++ 65.8%Language:C 33.8%Language:Shell 0.3%