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
projects:test_and_measurement_home_lab [2019/11/22 09:10]
admin [Remote control via LAN]
projects:test_and_measurement_home_lab [2021/05/20 19:49] (current)
admin [Binocular microscops]
Line 29: Line 29:
 </​code>​ </​code>​
 === Python - using pyvisa package === === Python - using pyvisa package ===
-  * install pyvisa first - following example is run on s11.4+  * install pyvisa first - on Ubuntu 18.04 
 +<​code>​ 
 +$ sudo apt-get install pyvisa 
 +</​code>​ 
 +  * on Oracle Solaris ​s11.4
 <​code>​ <​code>​
 # pip install pyvisa # pip install pyvisa
Line 58: 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 68: 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"​)
Line 180: Line 188:
   * price w/ DPH: 25 703,-   * price w/ DPH: 25 703,-
   * 3-year warranty   * 3-year warranty
- +===== Binocular microscops ===== 
 +  * [[https://​www.hotair.cz/​mikroskopy/​binokularni/​stranka-1-24.html|www.hotair.cz]] 
 +  * [[https://​www.mikroshop.cz/​cz/​mikroskop-levenhuk-4st-binokularni|www.mikroshop.cz]] - Levenhuk 4ST 20x,40x 130mm
projects/test_and_measurement_home_lab.1574410256.txt.gz · Last modified: 2019/11/22 09:10 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0