Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import usbtmc
- instr = usbtmc.Instrument(2391, 5973) // the 2391 and 5973 are USB idVendor and idProduct of the Agilent MSO7104A converted to decimal
- print(instr.ask("***IDN?"))
- # returns 'AGILENT TECHNOLOGIES,MSO7104A,MY********,06.16.0001'
- freq = 1000
- write("FREQ %f" % freq)
- amplitude = 5
- write("VOLT %f" % amplitude)
- //Downloading
- oFio.WriteIEEEBlock("SOURce1:DATA:ARBitrary testarb,",z,true); binary write
Add Comment
Please, Sign In to add comment