12 lines
371 B
Python
12 lines
371 B
Python
import MeasKit
|
|
import pyvisa
|
|
|
|
rm = pyvisa.ResourceManager()
|
|
print(rm.list_resources())
|
|
inst = MeasKit.instrument('TCPIP::192.168.0.3::INSTR','DS1054Z')
|
|
inst.conf_channel('1','ON',10,'20M','DC')
|
|
inst.conf_channel('2','ON',10,'20M','DC')
|
|
inst.conf_channel('3','ON',10,'20M','DC')
|
|
inst.conf_channel('4','ON',10,'20M','DC')
|
|
inst.send_trigger('TFORCE')
|
|
print(inst.get_data(1)) |