Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Scan-Operator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
YARR
Utilities
Scan-Operator
Commits
ecbc77fa
Commit
ecbc77fa
authored
4 years ago
by
Lingxin Meng
Browse files
Options
Downloads
Patches
Plain Diff
use labRemote's isOn() function for iviscan
parent
a83db15c
Branches
Branches containing commit
No related tags found
2 merge requests
!23
Devel
,
!6
use labRemote's isOn() function for iviscan
Pipeline
#2735086
passed
4 years ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libDCS/iviscan.py
+4
-4
4 additions, 4 deletions
libDCS/iviscan.py
with
4 additions
and
4 deletions
libDCS/iviscan.py
+
4
−
4
View file @
ecbc77fa
...
...
@@ -79,8 +79,8 @@ def ramp(varName, pschannel, target, step = None, tsleep = None):
# Get current values of V and I
xmeas
=
measXvar
()
ymeas
=
measYvar
()
#
isOn = pschannel.getPowerSupply().isOn(pschannel.getChannel())
isOn
=
(
measXvar
()
!=
0
or
measYvar
()
!=
0
)
isOn
=
pschannel
.
getPowerSupply
().
isOn
(
pschannel
.
getChannel
())
#
isOn = (measXvar() != 0 or measYvar() != 0)
diff
=
target
-
xmeas
logging
.
debug
(
varName
+
"
difference (target - meas):
"
+
str
(
diff
)
+
"
"
+
xUnit
)
...
...
@@ -180,8 +180,8 @@ def doivi(config, w, dbSink=""):
step
=
ch
[
"
step_size
"
]
startX
=
measXvar
()
#
wasOn = ps.isOn()
wasOn
=
(
measXvar
()
!=
0
or
measYvar
()
!=
0
)
wasOn
=
ps
.
isOn
()
#
wasOn = (measXvar() != 0 or measYvar() != 0)
# Ramp to the starting point if PSU is already on
...
...
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