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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
PyPCC
Commits
da7cf526
"RTCP/Cobalt/OutputProc/src/OutputThread.h" did not exist on "37486e189998f98534e00fd3206fbb530294e578"
Commit
da7cf526
authored
2 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
UNB2 on/off time update, reduce logging
parent
56076dbd
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#31879
passed
2 years ago
Stage: image
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
pypcc/config/UNB2TR.yaml
+2
-2
2 additions, 2 deletions
pypcc/config/UNB2TR.yaml
pypcc/i2cserv/i2c_switch2.py
+1
-1
1 addition, 1 deletion
pypcc/i2cserv/i2c_switch2.py
pypcc/opcuaserv/yamlreader.py
+2
-2
2 additions, 2 deletions
pypcc/opcuaserv/yamlreader.py
with
5 additions
and
5 deletions
pypcc/config/UNB2TR.yaml
+
2
−
2
View file @
da7cf526
...
@@ -501,11 +501,11 @@ methods:
...
@@ -501,11 +501,11 @@ methods:
-
UNB2_Front_Panel_LED_colour
:
3
#green
-
UNB2_Front_Panel_LED_colour
:
3
#green
-
UNB2_PCB_ID
:
Update
-
UNB2_PCB_ID
:
Update
-
UNB2_PCB_version
:
Update
-
UNB2_PCB_version
:
Update
-
WAIT
:
18
000
-
WAIT
:
5
000
-
name
:
UNB2_off
-
name
:
UNB2_off
mask
:
UNB2_mask
mask
:
UNB2_mask
instructions
:
instructions
:
-
UNB2_PWR_on
:
1
#inverted
-
UNB2_PWR_on
:
1
#inverted
-
WAIT
:
2
00
-
WAIT
:
5
00
# - UNB2_Front_Panel_LED_colour: 2
# - UNB2_Front_Panel_LED_colour: 2
This diff is collapsed.
Click to expand it.
pypcc/i2cserv/i2c_switch2.py
+
1
−
1
View file @
da7cf526
...
@@ -16,7 +16,7 @@ class i2c_switch2(i2c):
...
@@ -16,7 +16,7 @@ class i2c_switch2(i2c):
def
setI2Cswitch
(
self
,
addr
,
state
):
def
setI2Cswitch
(
self
,
addr
,
state
):
res
=
self
.
i2csetget
(
addr
,[
state
]);
res
=
self
.
i2csetget
(
addr
,[
state
]);
if
not
(
res
):
if
not
(
res
):
logging
.
warning
(
"
Error setting switch, switch reset not implemented!
"
);
logging
.
info
(
"
Error setting switch, switch reset not implemented!
"
);
return
res
;
return
res
;
def
SetSW1
(
self
,
channelbit
):
def
SetSW1
(
self
,
channelbit
):
...
...
This diff is collapsed.
Click to expand it.
pypcc/opcuaserv/yamlreader.py
+
2
−
2
View file @
da7cf526
...
@@ -172,7 +172,7 @@ class yamlreader(yamlconfig):
...
@@ -172,7 +172,7 @@ class yamlreader(yamlconfig):
logging
.
warn
(
"
setvar unsupported type
"
);
logging
.
warn
(
"
setvar unsupported type
"
);
return
;
return
;
data2
=
[
d
for
d
in
data2
]
data2
=
[
d
for
d
in
data2
]
logging
.
warning
(
str
((
"
setvar
"
,
v
[
'
name
'
],
data2
,
mask
)));
logging
.
info
(
str
((
"
setvar
"
,
v
[
'
name
'
],
data2
,
mask
)));
self
.
SetBusy
()
self
.
SetBusy
()
self
.
server
.
setvar
(
id1
,
data2
,
mask
)
self
.
server
.
setvar
(
id1
,
data2
,
mask
)
...
@@ -265,7 +265,7 @@ class yamlreader(yamlconfig):
...
@@ -265,7 +265,7 @@ class yamlreader(yamlconfig):
else
:
else
:
data3
=
data2
;
data3
=
data2
;
# print("OPCset",v['name'],data3[:64],mask)
# print("OPCset",v['name'],data3[:64],mask)
logging
.
warning
(
str
((
"
OPCset
"
,
v
[
'
name
'
],
data3
[:
64
],
mask
)))
logging
.
info
(
str
((
"
OPCset
"
,
v
[
'
name
'
],
data3
[:
64
],
mask
)))
# if v['name']=='UNB2_FPGA_POL_ERAM_IOUT': logging.warn(str((data3,data2,mask,var1.get_value(),[hex(d) for d in data])));
# if v['name']=='UNB2_FPGA_POL_ERAM_IOUT': logging.warn(str((data3,data2,mask,var1.get_value(),[hex(d) for d in data])));
if
len
(
data3
)
==
1
:
data3
=
data3
[
0
];
if
len
(
data3
)
==
1
:
data3
=
data3
[
0
];
var1
.
set_value
(
data3
,
datatype
);
var1
.
set_value
(
data3
,
datatype
);
...
...
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