Skip to content
Snippets Groups Projects
Commit fd1a82e6 authored by JupyterHub User's avatar JupyterHub User
Browse files

added query commands to understand I-V measurement

i will test this functionallity in the clean room and try to get data back
parent 0093a285
No related branches found
No related tags found
No related merge requests found
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 5
}
%% Cell type:code id:51782d0d-4e75-4c8a-ad34-91fd1b68d7ed tags:
``` python
import module
```
%% Cell type:code id:4a75fca0-ef41-43b1-85d4-d01dcd264ce1 tags:
``` python
device = module.HP4155a('GPIB0::17::INSTR')
print(device.idn())
```
%% Cell type:code id:c34373ce-a07c-4ee9-ad18-6f75d5b7f842 tags:
``` python
device.setup_sweep()
```
......@@ -73,3 +73,20 @@ class HP4155a(object):
def show_variables(self):
return self.inst.query(":DATA:CAT?")
#sweep functions
def setup_sweep(self):
self.inst.write(":PAGE:CHAN:MODE SWEEP")
self.inst.query(":PAGE:MEAS:VAR1:START?")
self.inst.query(":PAGE:MEAS:VAR1:STOP?")
''' smu1 is constant and common, SMU3 is controlled through the Var1(v) which has a start value, a stop value, and a step
We don't need SMU2 and SMU4
:PAGE:CHANnels[:CDEFinition]:SMU<n>:FUNCtion this command is used to define the variable of SMU3
:PAGE:CHANnels[:CDEFinition]:SMU<n>:MODE
This command sets the output MODE of SMU<n>. This command also has a query
form. It is different that the one we used for the stress setup.
Important! we dont set a value for smu1.
\ No newline at end of file
......@@ -208,7 +208,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.4"
"version": "3.9.7"
}
},
"nbformat": 4,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment