Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iexcode
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
29id
iexcode
Commits
c96827dd
Commit
c96827dd
authored
2 years ago
by
rodolakis
Browse files
Options
Downloads
Patches
Plain Diff
debug before switching to old code
parent
9646f45f
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
build/lib/iexcode/instruments/IEX_VPU.py
+6
-10
6 additions, 10 deletions
build/lib/iexcode/instruments/IEX_VPU.py
iexcode/instruments/IEX_VPU.py
+2
-8
2 additions, 8 deletions
iexcode/instruments/IEX_VPU.py
iexcode/instruments/scanRecord.py
+1
-1
1 addition, 1 deletion
iexcode/instruments/scanRecord.py
with
9 additions
and
19 deletions
build/lib/iexcode/instruments/IEX_VPU.py
+
6
−
10
View file @
c96827dd
...
...
@@ -33,7 +33,8 @@ def ID_pvs():
'
start_ramp
'
:
pv
+
'
StartRamp.VAL
'
,
'
energy_eV_rbv
'
:
pv
+
'
EnergyRBV
'
,
'
energy_eV_sp
'
:
pv
+
'
EnergyScanSeteV
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSeteV
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSet.VAL
'
,
'
scan_val_eV
'
:
pv
+
'
EnergyScanSeteV
'
,
'
table_dir
'
:
pv
+
'
TableDirection
'
,
'
By_q
'
:
pv
+
'
ByqRdbk
'
,
'
Bx_q
'
:
pv
+
'
BxqRdbk
'
,
...
...
@@ -228,13 +229,7 @@ def ID_off(verbose=True):
def
ID_on
(
verbose
=
True
):
"""
waits for permission then turns on the main coils On
"""
ID_wait_for_permission
(
verbose
=
False
)
if
verbose
:
print
(
"
Starting ID -
"
+
dateandtime
())
print
(
"
Starting ID -
"
+
dateandtime
())
#caput(ID_pvs()['energy_sp'],3.8)
caput
(
ID_pvs
()[
'
main_power
'
],
'
On
'
,
wait
=
True
,
timeout
=
18000
)
...
...
@@ -334,7 +329,8 @@ def _ID_write_SP_proc(keV):
# caput(ID_pvs()['energy_sp'],keV,wait=True,timeout=18000)
# sleep(ramp_delay)
# caput(ID_pvs()['start_ramp'],1,wait=True,timeout=18000)
caput
(
ID_pvs
()[
'
energy_eV_sp
'
],
keV
,
wait
=
True
,
timeout
=
18000
)
caput
(
ID_pvs
()[
'
scan_val
'
],
keV
,
wait
=
True
,
timeout
=
18000
)
#caput(ID_pvs()['energy_sp'],keV,wait=True,timeout=18000) # just for bookkeeping
sleep
(
1
)
...
...
@@ -526,7 +522,7 @@ def ID_scan_pvs():
"""
returns the rbv and val for scanning
"""
val_pv
=
ID_pvs
()[
'
scan_val
'
]
val_pv
=
ID_pvs
()[
'
scan_val
_eV
'
]
rbv_pv
=
""
return
rbv_pv
,
val_pv
...
...
This diff is collapsed.
Click to expand it.
iexcode/instruments/IEX_VPU.py
+
2
−
8
View file @
c96827dd
...
...
@@ -33,7 +33,7 @@ def ID_pvs():
'
start_ramp
'
:
pv
+
'
StartRamp.VAL
'
,
'
energy_eV_rbv
'
:
pv
+
'
EnergyRBV
'
,
'
energy_eV_sp
'
:
pv
+
'
EnergyScanSeteV
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSet
'
,
'
scan_val
'
:
pv
+
'
EnergyScanSet
.VAL
'
,
'
scan_val_eV
'
:
pv
+
'
EnergyScanSeteV
'
,
'
table_dir
'
:
pv
+
'
TableDirection
'
,
'
By_q
'
:
pv
+
'
ByqRdbk
'
,
...
...
@@ -229,13 +229,7 @@ def ID_off(verbose=True):
def
ID_on
(
verbose
=
True
):
"""
waits for permission then turns on the main coils On
"""
ID_wait_for_permission
(
verbose
=
False
)
if
verbose
:
print
(
"
Starting ID -
"
+
dateandtime
())
print
(
"
Starting ID -
"
+
dateandtime
())
#caput(ID_pvs()['energy_sp'],3.8)
caput
(
ID_pvs
()[
'
main_power
'
],
'
On
'
,
wait
=
True
,
timeout
=
18000
)
...
...
This diff is collapsed.
Click to expand it.
iexcode/instruments/scanRecord.py
+
1
−
1
View file @
c96827dd
...
...
@@ -411,7 +411,7 @@ class ScanRecord:
kwargs
.
setdefault
(
'
scan_dim
'
,
1
)
scan_pv
=
self
.
ioc
+
"
scan
"
+
str
(
kwargs
[
'
scan_dim
'
])
caput
(
scan_pv
+
"
.CMND
"
,
3
)
# Clear all Positionners
#
caput(scan_pv+".CMND",3) # Clear all Positionners
if
verbose
:
print
(
"
\n
All extra positionners cleared
"
)
...
...
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