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:02]
admin [Remote control via Python & sockets]
projects:test_and_measurement_home_lab [2021/05/20 19:49] (current)
admin [Binocular microscops]
Line 1: Line 1:
 ====== Test & measurement home lab ====== ====== Test & measurement home lab ======
 ===== DMM Keysight 34465A ===== ===== DMM Keysight 34465A =====
-==== Remote control ​via Python ​==== +==== Remote control ==== 
-=== Using sockets ===+=== Netcat - using sockets === 
 +<​code>​ 
 +$ echo "​*IDN?"​ | nc 34465a 5025 
 +Keysight Technologies,​34465A,​MY59008429,​A.03.01-03.15-03.01-00.52-03-02 
 +$ echo "​MEAS:​VOLT:​DC?​ 10,​0.001"​ | nc 34465a 5025 
 ++1.62349138E-04 
 +$ echo "​SYST:​ERR?"​ | nc 34465a 5025 
 ++0,"No error"​ 
 +
 +</​code>​ 
 +=== Python - using sockets ===
 <​code>​ <​code>​
 $ python $ python
Line 11: Line 21:
 >>>​ s.sendall('​meas:​volt:​dc?​ 10,​0.001\n'​) >>>​ s.sendall('​meas:​volt:​dc?​ 10,​0.001\n'​)
 >>>​ data=s.recv(1024) >>>​ data=s.recv(1024)
 +>>>​ data
 +'​+7.33658297E-05\n'​
 >>>​ print data >>>​ print data
 ++7.33658297E-05
 +
 >>>​ s.close() >>>​ s.close()
 </​code>​ </​code>​
-=== 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 44: 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 54: 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 65: 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 106: 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 ===
Line 165: 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.1574409763.txt.gz · Last modified: 2019/11/22 09:02 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0