Skip to content
Snippets Groups Projects
Commit 83c6d947 authored by Alexandros Asonitis's avatar Alexandros Asonitis
Browse files

Upload first settings that are sent to the tools

parent 66958677
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id: tags:
``` python
import pyvisa
```
%% Cell type:code id: tags:
``` python
rm =pyvisa.ResourceManager()
rm.list_resources()
k224= rm.open_resource('GPIB0::15::INSTR')
k224.timeout = None
k224.control_ren(3)
hp3497a = rm.open_resource('GPIB0::9::INSTR')
hp3497a.control_ren(3)
hp3497a.timeout= None
```
%% Cell type:code id: tags:
``` python
hp3497a.write('AR')
hp3497a.write("AF0")
hp3497a.write("AL19")
hp3497a.write("AV1")
```
%% Output
5
%% Cell type:code id: tags:
``` python
k224.write("F0X")
k224.write("I100E-3X")
k224.write("F1X")
print(hp3497a.query("AI1"))
```
%% Output
+0.52974E+1
%% Cell type:code id: tags:
``` python
hp3497a.write("DV3")
```
%% Output
5
%% Cell type:code id: tags:
``` python
hp3497a.write("DW3,303")
```
%% Output
9
%% Cell type:code id: tags:
``` python
k224.control_ren(0)
k224.close()
hp3497a.close()
```
%% Cell type:code id: tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment