Skip to content
GitLab
Explore
Sign in
Register
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
0250a4aa
Commit
0250a4aa
authored
9 months ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
Add missing UNB2TR points, NaN on startup
parent
cc4d8c62
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#100333
failed
7 months ago
Stage: run
Stage: image
Changes
2
Pipelines
73
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
pypcc/config/UNB2TR.yaml
+18
-0
18 additions, 0 deletions
pypcc/config/UNB2TR.yaml
pypcc/opcuaserv/yamlreader.py
+2
-1
2 additions, 1 deletion
pypcc/opcuaserv/yamlreader.py
with
20 additions
and
1 deletion
pypcc/config/UNB2TR.yaml
+
18
−
0
View file @
0250a4aa
...
...
@@ -389,6 +389,15 @@ variables:
dim
:
2
monitor
:
true
-
name
:
[
UNB2_POL_QSFP_N01_IOUT
,
UNB2_POL_QSFP_N23_IOUT
]
driver
:
switch_PS
devreg
:
[
POL_QSFP0.IOUT
,
POL_QSFP1.IOUT
]
width
:
16
rw
:
ro
dtype
:
double
scale
:
smbus_2bytes_to_float
dim
:
2
-
name
:
UNB2_DC_DC_48V_12V_IOUT
driver
:
switch_PS
# devreg: [DC_DC.IOUT,0x2.0x8C,0x1.0x8C,0xF.0x8C,0xE.0x8C,0xD.0x8C]
...
...
@@ -413,6 +422,15 @@ variables:
dim
:
2
monitor
:
true
-
name
:
[
UNB2_POL_QSFP_N01_TEMP
,
UNB2_POL_QSFP_N23_TEMP
]
driver
:
switch_PS
devreg
:
[
POL_QSFP0.TEMP
,
POL_QSFP1.TEMP
]
width
:
16
rw
:
ro
dtype
:
double
scale
:
smbus_2bytes_to_float
dim
:
2
-
name
:
UNB2_DC_DC_48V_12V_TEMP
driver
:
switch_PS
# devreg: DC_DC.TEMP
...
...
This diff is collapsed.
Click to expand it.
pypcc/opcuaserv/yamlreader.py
+
2
−
1
View file @
0250a4aa
...
...
@@ -3,6 +3,7 @@ import struct
import
time
from
pypcc.yamlconfig
import
*
import
logging
import
numpy
as
np
from
.smbus_float
import
*
from
pypcc.opcuaserv
import
convert_unit
def
bytes2int
(
bts
):
...
...
@@ -165,7 +166,7 @@ class yamlreader(yamlconfig):
#print(v.name,dim)
varvalue2
=
0
if
datatype
in
[
'
uint8
'
,
'
uint16
'
,
'
uint32
'
,
'
uint64
'
]:
varvalue2
=
dim1
*
[
0
]
elif
datatype
==
'
double
'
:
varvalue2
=
dim1
*
[
0.0
]
elif
datatype
==
'
double
'
:
varvalue2
=
dim1
*
[
np
.
nan
]
elif
datatype
==
'
boolean
'
:
varvalue2
=
dim1
*
[
False
]
elif
datatype
==
'
string
'
:
varvalue2
=
dim1
*
[
""
]
if
len
(
varvalue2
)
==
1
:
varvalue2
=
varvalue2
[
0
];
...
...
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