Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:test_and_measurement_home_lab [2019/11/23 08:00]
admin [Remote control]
projects:test_and_measurement_home_lab [2019/11/27 09:06]
admin [Remote control]
Line 62: Line 62:
 $ python $ python
 >>>​ import pyvisa >>>​ import pyvisa
->>>​ rm = pyvisa.ResourceManager()+>>>​ rm = pyvisa.ResourceManager() ​       <​--- work on Solaris, not on Ubuntu 
 +>>>​ rm = pyvisa.ResourceManager('​@py'​) ​  <​--- works on both Solaris and Ubuntu
 >>>​ inst = rm.open_resource('​TCPIP0::​34465a::​inst0::​INSTR'​) >>>​ inst = rm.open_resource('​TCPIP0::​34465a::​inst0::​INSTR'​)
 >>>​ print (inst.query("​*IDN?"​)) >>>​ print (inst.query("​*IDN?"​))
Line 72: Line 73:
 >>>​ print(inst.query("​MEAS:​VOLT:​DC?​ 10,​0.001"​)) >>>​ print(inst.query("​MEAS:​VOLT:​DC?​ 10,​0.001"​))
 +7.79228646E-01 +7.79228646E-01
 +
 +>>>​ print(float(inst.query("​MEAS:​VOLT:​DC?​ 100,​0.00001"​)))
 +12.7884186
  
 >>>​ data=inst.query("​MEAS:​VOLT:​DC?​ 10,​0.001"​) >>>​ data=inst.query("​MEAS:​VOLT:​DC?​ 10,​0.001"​)
projects/test_and_measurement_home_lab.txt · Last modified: 2021/05/20 19:49 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0