Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Python-Beispiele
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vaclab
Python-Beispiele
Commits
6f791337
Commit
6f791337
authored
2 years ago
by
Rolf Niepraschk
Browse files
Options
Downloads
Patches
Plain Diff
...
parent
1ba0d92e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Prologix/combi-test.py
+4
-4
4 additions, 4 deletions
Prologix/combi-test.py
Prologix/hp34401a-test.py
+3
-3
3 additions, 3 deletions
Prologix/hp34401a-test.py
Prologix/keithley2700-test.py
+3
-3
3 additions, 3 deletions
Prologix/keithley2700-test.py
with
10 additions
and
10 deletions
Prologix/combi-test.py
+
4
−
4
View file @
6f791337
...
...
@@ -55,8 +55,8 @@ def set_gpib_addr(adr):
current_device_address
=
adr
def
init_prologix
():
gpib_write
(
'
++savecfg 0
'
)
#
d
on't write configuration to eprom
gpib_write
(
'
++mode 1
'
)
# Set mode as
CONTROLLER
gpib_write
(
'
++savecfg 0
'
)
#
D
on't write configuration to eprom
(!)
gpib_write
(
'
++mode 1
'
)
# Set mode as
controller
#gpib_write('++ifc')# Controller-In-Charge # nötig?
gpib_write
(
'
++auto 0
'
)
# Turn off read-after-write
gpib_write
(
'
++ver
'
)
...
...
@@ -74,9 +74,9 @@ def init_voltage():
gpib_write
(
'
*IDN?
'
,
adr
)
print
(
gpib_read
(
adr
))
print
(
'
=
'
*
72
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
TRIG:COUN 1
'
,
adr
)
gpib_write
(
'
TRIG:SOUR IMM
'
,
adr
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
CONF:VOLT:DC
'
,
adr
)
time
.
sleep
(.
1
)
# nötig?
...
...
@@ -89,10 +89,10 @@ def init_temperature():
gpib_write
(
'
*IDN?
'
,
adr
)
print
(
gpib_read
(
adr
))
print
(
'
=
'
*
72
)
# Messgröße, Messbereich und Auflösung anpassen
###gpib_write('INIT:CONT OFF', adr)# Continuous measurement mode off
gpib_write
(
'
TRIG:COUN 1
'
,
adr
)
gpib_write
(
'
TRIG:SOUR IMM
'
,
adr
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
CONF:VOLT:DC
'
,
adr
)
time
.
sleep
(.
1
)
# nötig?
...
...
This diff is collapsed.
Click to expand it.
Prologix/hp34401a-test.py
+
3
−
3
View file @
6f791337
...
...
@@ -52,8 +52,8 @@ def set_gpib_addr(n):
current_device_address
=
n
def
init_prologix
():
gpib_write
(
'
++savecfg 0
'
)
#
d
on't write configuration to eprom
gpib_write
(
'
++mode 1
'
)
# Set mode as
CONTROLLER
gpib_write
(
'
++savecfg 0
'
)
#
D
on't write configuration to eprom
(!)
gpib_write
(
'
++mode 1
'
)
# Set mode as
controller
#gpib_write('++ifc')# Controller-In-Charge # nötig?
gpib_write
(
'
++auto 0
'
)
# Turn off read-after-write
gpib_write
(
'
++ver
'
)
...
...
@@ -68,9 +68,9 @@ def init_hp34401a(adr):
gpib_write
(
'
*IDN?
'
)
print
(
gpib_read
())
print
(
'
=
'
*
72
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
TRIG:COUN 1
'
)
gpib_write
(
'
TRIG:SOUR IMM
'
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
CONF:VOLT:DC
'
)
time
.
sleep
(.
1
)
# nötig?
...
...
This diff is collapsed.
Click to expand it.
Prologix/keithley2700-test.py
+
3
−
3
View file @
6f791337
...
...
@@ -52,8 +52,8 @@ def set_gpib_addr(n):
current_device_address
=
n
def
init_prologix
():
gpib_write
(
'
++savecfg 0
'
)
#
d
on't write configuration to eprom
gpib_write
(
'
++mode 1
'
)
# Set mode as
CONTROLLER
gpib_write
(
'
++savecfg 0
'
)
#
D
on't write configuration to eprom
(!)
gpib_write
(
'
++mode 1
'
)
# Set mode as
controller
#gpib_write('++ifc')# Controller-In-Charge # nötig?
gpib_write
(
'
++auto 0
'
)
# Turn off read-after-write
gpib_write
(
'
++ver
'
)
...
...
@@ -68,10 +68,10 @@ def init_keithley2700(adr):
gpib_write
(
'
*IDN?
'
)
print
(
gpib_read
())
print
(
'
=
'
*
72
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
INIT:CONT OFF
'
)
# Continuous measurement mode off
gpib_write
(
'
TRIG:COUN 1
'
)
gpib_write
(
'
TRIG:SOUR IMM
'
)
# Messgröße, Messbereich und Auflösung anpassen
gpib_write
(
'
CONF:VOLT:DC
'
)
time
.
sleep
(.
5
)
# nötig?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment