Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cs
util
sequencer
scan-p-gun-vgrid
Commits
2dcadf2b
Commit
2dcadf2b
authored
May 28, 2022
by
Francesco Tripaldi
Browse files
Better loop in TopUp Test
parent
21d7b441
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ScanPGunVgrid.py
View file @
2dcadf2b
...
...
@@ -100,7 +100,11 @@ def main():
first_time
=
True
temp_store
=
0
for
mean
in
range
(
0
,
dcct_samples
,
1
):
temp_store
+=
dcct_dev
.
read_attribute
(
'BCurrent'
).
value
if
topup_test_mode
==
True
and
(
plc_status
[
9
]
==
True
or
bool
(
trigger_gun
.
read_attribute
(
"gun_trigger_on"
).
value
)
==
False
):
dcct_samples
=
mean
+
1
break
else
:
temp_store
+=
dcct_dev
.
read_attribute
(
'BCurrent'
).
value
time
.
sleep
(
interval
)
dcct_value
=
temp_store
/
dcct_samples
X
.
append
(
x
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment