Control tektronix osciloscope with pyvisa in linux. Tested with tektronix 2014B and python 3.7.5
Replace line #7 with your device details as below :
rm.open_resource('USB0::{Vendor ID}::{Model ID}::{Serial Number}::INSTR')
To get device details run findID.py
If you get a timeout error, follow the given steps. After connecting the tektronix oscilloscope :
sudo chmod a+w /dev/usbtmc0
sudo echo "*IDN?" > /dev/usbtmc0
measures the values and outputs the plot of Freq vs Vrms
this will output the live plot