Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyPCC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
LOFAR2.0
PyPCC
Commits
a3d3184d
Commit
a3d3184d
authored
1 year ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
fix monitor mask bug
parent
bc2df747
No related branches found
No related tags found
No related merge requests found
Pipeline
#85276
passed
1 year ago
Stage: run
Stage: image
Changes
3
Pipelines
6
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pypcc/config/RECVTR_HB.yaml
+7
-7
7 additions, 7 deletions
pypcc/config/RECVTR_HB.yaml
pypcc/config/RECVTR_LB.yaml
+8
-8
8 additions, 8 deletions
pypcc/config/RECVTR_LB.yaml
pypcc/opcuaserv/yamlreader.py
+4
-0
4 additions, 0 deletions
pypcc/opcuaserv/yamlreader.py
with
19 additions
and
15 deletions
pypcc/config/RECVTR_HB.yaml
+
7
−
7
View file @
a3d3184d
...
@@ -358,7 +358,7 @@ variables:
...
@@ -358,7 +358,7 @@ variables:
dim
:
32
dim
:
32
monitor
:
true
monitor
:
true
read_parallel
:
true
read_parallel
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_3V3
-
name
:
RCU_PWR_3V3
description
:
RCU 3.3V voltage (V)
description
:
RCU 3.3V voltage (V)
...
@@ -371,7 +371,7 @@ variables:
...
@@ -371,7 +371,7 @@ variables:
dim
:
32
dim
:
32
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_1V8
-
name
:
RCU_PWR_1V8
description
:
RCU 1.8V voltage (V)
description
:
RCU 1.8V voltage (V)
...
@@ -384,7 +384,7 @@ variables:
...
@@ -384,7 +384,7 @@ variables:
dim
:
32
dim
:
32
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_2V5
-
name
:
RCU_PWR_2V5
description
:
RCU 2.5V voltage (V)
description
:
RCU 2.5V voltage (V)
...
@@ -397,7 +397,7 @@ variables:
...
@@ -397,7 +397,7 @@ variables:
dim
:
32
dim
:
32
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANT_VOUT
-
name
:
RCU_PWR_ANT_VOUT
description
:
Voltage on antenna output of RCU (V). Controlled by ANT_PWR_ON.
description
:
Voltage on antenna output of RCU (V). Controlled by ANT_PWR_ON.
...
@@ -411,7 +411,7 @@ variables:
...
@@ -411,7 +411,7 @@ variables:
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANT_VIN
-
name
:
RCU_PWR_ANT_VIN
description
:
RCU antenna voltage before switch (V)
description
:
RCU antenna voltage before switch (V)
...
@@ -425,7 +425,7 @@ variables:
...
@@ -425,7 +425,7 @@ variables:
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANT_IOUT
-
name
:
RCU_PWR_ANT_IOUT
description
:
Current drawn on antenna output of RCU (A). 15mA offset due to LED on RCU
description
:
Current drawn on antenna output of RCU (A). 15mA offset due to LED on RCU
...
@@ -439,7 +439,7 @@ variables:
...
@@ -439,7 +439,7 @@ variables:
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_DIGITAL_on
-
name
:
RCU_PWR_DIGITAL_on
description
:
RCU digital power enable. Controlled by calling RCU_on/RCU_off
description
:
RCU digital power enable. Controlled by calling RCU_on/RCU_off
...
...
This diff is collapsed.
Click to expand it.
pypcc/config/RECVTR_LB.yaml
+
8
−
8
View file @
a3d3184d
...
@@ -317,7 +317,7 @@ variables:
...
@@ -317,7 +317,7 @@ variables:
dim
:
32
dim
:
32
monitor
:
true
monitor
:
true
read_parallel
:
true
read_parallel
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_3V3
-
name
:
RCU_PWR_3V3
description
:
RCU 3.3V voltage (V)
description
:
RCU 3.3V voltage (V)
...
@@ -330,7 +330,7 @@ variables:
...
@@ -330,7 +330,7 @@ variables:
dim
:
32
dim
:
32
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_1V8
-
name
:
RCU_PWR_1V8
description
:
RCU 1.8V voltage (V)
description
:
RCU 1.8V voltage (V)
...
@@ -343,7 +343,7 @@ variables:
...
@@ -343,7 +343,7 @@ variables:
dim
:
32
dim
:
32
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_2V5
-
name
:
RCU_PWR_2V5
description
:
RCU 2.5V voltage (V)
description
:
RCU 2.5V voltage (V)
...
@@ -356,7 +356,7 @@ variables:
...
@@ -356,7 +356,7 @@ variables:
dim
:
32
dim
:
32
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANT_VOUT
-
name
:
RCU_PWR_ANT_VOUT
description
:
Voltage on antenna output of RCU (V). Controlled by ANT_PWR_ON.
description
:
Voltage on antenna output of RCU (V). Controlled by ANT_PWR_ON.
...
@@ -370,7 +370,7 @@ variables:
...
@@ -370,7 +370,7 @@ variables:
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANT_VIN
-
name
:
RCU_PWR_ANT_VIN
description
:
RCU antenna voltage before switch (V)
description
:
RCU antenna voltage before switch (V)
...
@@ -384,7 +384,7 @@ variables:
...
@@ -384,7 +384,7 @@ variables:
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANT_IOUT
-
name
:
RCU_PWR_ANT_IOUT
description
:
Current drawn on antenna output of RCU (A). 15mA offset due to LED on RCU
description
:
Current drawn on antenna output of RCU (A). 15mA offset due to LED on RCU
...
@@ -398,7 +398,7 @@ variables:
...
@@ -398,7 +398,7 @@ variables:
dim2
:
[
3
,
32
]
dim2
:
[
3
,
32
]
read_parallel
:
true
read_parallel
:
true
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_DIGITAL_on
-
name
:
RCU_PWR_DIGITAL_on
description
:
RCU digital power enable. Controlled by calling RCU_on/RCU_off
description
:
RCU digital power enable. Controlled by calling RCU_on/RCU_off
...
@@ -422,7 +422,7 @@ variables:
...
@@ -422,7 +422,7 @@ variables:
dtype
:
boolean
dtype
:
boolean
dim
:
32
dim
:
32
monitor
:
true
monitor
:
true
mask
:
RECVTR_I2C_error
#
mask: RECVTR_I2C_error
-
name
:
RCU_PWR_ANALOG_on
-
name
:
RCU_PWR_ANALOG_on
description
:
RCU analog power enable. Controlled by RCU_on/off
description
:
RCU analog power enable. Controlled by RCU_on/off
...
...
This diff is collapsed.
Click to expand it.
pypcc/opcuaserv/yamlreader.py
+
4
−
0
View file @
a3d3184d
...
@@ -191,6 +191,8 @@ class yamlreader(yamlconfig):
...
@@ -191,6 +191,8 @@ class yamlreader(yamlconfig):
mask
=
Find
(
self
.
conf
[
'
variables
'
],
'
name
'
,
mask
)
mask
=
Find
(
self
.
conf
[
'
variables
'
],
'
name
'
,
mask
)
if
not
(
mask
):
continue
;
if
not
(
mask
):
continue
;
mask
=
mask
.
get
(
'
OPCR
'
,
None
)
mask
=
mask
.
get
(
'
OPCR
'
,
None
)
if
(
mask
is
None
):
mask
=
mask
.
get
(
'
OPCW
'
,
None
)
if
(
mask
==
None
):
continue
;
if
(
mask
==
None
):
continue
;
v
[
'
maskOPC
'
]
=
mask
v
[
'
maskOPC
'
]
=
mask
if
not
self
.
monitorvarid
is
None
:
if
not
self
.
monitorvarid
is
None
:
...
@@ -319,6 +321,8 @@ class yamlreader(yamlconfig):
...
@@ -319,6 +321,8 @@ class yamlreader(yamlconfig):
v
=
self
.
conf
[
'
variables
'
][
self
.
monitorvarcnt
];
v
=
self
.
conf
[
'
variables
'
][
self
.
monitorvarcnt
];
if
v
.
get
(
'
monitor
'
):
if
v
.
get
(
'
monitor
'
):
mask
=
(
v
[
'
maskOPC
'
].
get_value
()
if
v
.
get
(
'
maskOPC
'
)
else
[])
mask
=
(
v
[
'
maskOPC
'
].
get_value
()
if
v
.
get
(
'
maskOPC
'
)
else
[])
if
isinstance
(
mask
,
list
)
and
(
len
(
mask
)
>
0
)
and
isinstance
(
mask
[
0
],
int
):
mask
=
[
m
==
0
for
m
in
mask
]
# print("monitor",v['name'],mask)
# print("monitor",v['name'],mask)
# self.SetBusy()
# self.SetBusy()
self
.
lastRecv
=
time
.
time
()
self
.
lastRecv
=
time
.
time
()
...
...
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