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

Keithley first successful connection-disconection and current setting

parent 4def77e4
No related branches found
No related tags found
No related merge requests found
%% Cell type:code id:29f2491b-d6fe-4d60-88f8-7c2341b404fe tags:
``` python
import pyvisa
import time
```
%% Cell type:code id:9bd148de-3fbb-44a7-98b9-408b83f4226c tags:
``` python
rm =pyvisa.ResourceManager()
rm.list_resources()
k224= rm.open_resource('GPIB0::15::INSTR')
k224.timeout = None
```
%% Cell type:code id:33cf3ace-54b1-44ab-8be5-5d32ea2b4ca8 tags:
``` python
k224.write("I7.5E-2X")
```
%% Output
10
%% Cell type:code id:440d2ced-b449-4ca6-bd2d-ef7c9955a346 tags:
``` python
k224.control_ren(3)
```
%% Output
<StatusCode.success: 0>
%% Cell type:code id:65f1c08d-e8d6-4af6-957c-6b502bfa364c tags:
``` python
"""
VI_GPIB_REN_DEASSERT = 0
VI_GPIB_REN_ASSERT = 1
VI_GPIB_REN_DEASSERT_GTL = 2
VI_GPIB_REN_ASSERT_ADDRESS = 3
VI_GPIB_REN_ASSERT_LLO = 4
VI_GPIB_REN_ASSERT_ADDRESS_LLO = 5
VI_GPIB_REN_ADDRESS_GTL = 6
"""
# in comparison with the manual and the pyvisa constants
```
%% Output
'\nVI_GPIB_REN_DEASSERT = 0\nVI_GPIB_REN_ASSERT = 1\nVI_GPIB_REN_DEASSERT_GTL = 2\nVI_GPIB_REN_ASSERT_ADDRESS = 3\nVI_GPIB_REN_ASSERT_LLO = 4\nVI_GPIB_REN_ASSERT_ADDRESS_LLO = 5\nVI_GPIB_REN_ADDRESS_GTL = 6\n'
%% Cell type:code id:9f123901-72cb-46ca-bff7-82336e6f5fa1 tags:
``` python
k224.write("D0X")
```
%% Output
5
%% Cell type:code id:4d4cbcef-908f-4cd0-89be-790fccb51cb3 tags:
``` python
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment