Guest User

Untitled

a guest
Jul 20th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. import usbtmc
  2. instr = usbtmc.Instrument(2391, 5973) // the 2391 and 5973 are USB idVendor and idProduct of the Agilent MSO7104A converted to decimal
  3. print(instr.ask("***IDN?"))
  4. # returns 'AGILENT TECHNOLOGIES,MSO7104A,MY********,06.16.0001'
  5.  
  6. freq = 1000
  7. write("FREQ %f" % freq)
  8.  
  9. amplitude = 5
  10. write("VOLT %f" % amplitude)
  11.  
  12. //Downloading
  13. oFio.WriteIEEEBlock("SOURce1:DATA:ARBitrary testarb,",z,true); binary write
Add Comment
Please, Sign In to add comment