This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyvisa | |
visa_rm = pyvisa.ResourceManager() | |
## Access at the address may require enabling/configuring the interface on the instrument (S)FP | |
pxi_vna_addr = 'TCPIP0::<HOSTNAME>::hislip_PXI0_CHASSIS1_SLOT10_INDEX0::INSTR' | |
inst_vna = visa_rm.open_resource(pxi_vna_addr) | |
inst_vna.write('SYST:PRES') | |
inst_vna.close() | |
## No need to close the RM as it is not connected to anything unless told to | |
import Labber |
NewerOlder