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/22 09:08]
admin
projects:test_and_measurement_home_lab [2019/11/27 09:06]
admin [Remote control]
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 79: Line 87:
   * channel 1: 0-30V/0-12A   * channel 1: 0-30V/0-12A
   * channel 2: 0-6V/0-3A   * channel 2: 0-6V/0-3A
-==== Remote control ​via LAN ====+==== Remote control ==== 
 +=== Telnet ​===
 <​code>​ <​code>​
 $ telnet 192.168.1.99 3000 $ telnet 192.168.1.99 3000
Line 120: Line 129:
   * port 1861   * port 1861
   * LeCroy VICP protocol   * LeCroy VICP protocol
-===== 6,5 DMM =====+===== Available ​6,5 DMMs =====
 ==== www.amt.cz ==== ==== www.amt.cz ====
 === Siglent SDM 3065X === === Siglent SDM 3065X ===
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