Download This Notebook:
The vi module is not well written or tested at this point. Basic support is available for data retrieval.
This tutorial is mostly a stub.
The vi module holds classes for GPIB/VISA instruments that are intricately related to skrf, so take a look there. To use the virtual instrument classes you must have pyvisa and python-ivi installed, AND a working VISA installation. A list of VNA’s that have been are partially supported.
An example usage of the
PNA class to retrieve some s-parameter data
In : from skrf.vi import vna In : my_vna = vna.HP8510C(address =16) #if an error is thrown at this point there is most likely a problem with your visa setup In : dut_1 = my_vna.s11 In : dut_2 = my_vna.s21 In : dut_3 = my_vna.two_port
Unfortunately, the syntax is different for every VNA class, so the above example wont directly translate to other VNA’s, but you get the idea,