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
e585da6b
Commit
e585da6b
authored
3 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
debuged
parent
09ba42c1
No related branches found
No related tags found
1 merge request
!11
Pypcc2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
config/CLK.yaml
+13
-1
13 additions, 1 deletion
config/CLK.yaml
opcuaserv/yamlreader.py
+1
-0
1 addition, 0 deletions
opcuaserv/yamlreader.py
testCLK.py
+1
-1
1 addition, 1 deletion
testCLK.py
with
15 additions
and
2 deletions
config/CLK.yaml
+
13
−
1
View file @
e585da6b
...
@@ -47,7 +47,6 @@ variables:
...
@@ -47,7 +47,6 @@ variables:
driver
:
I2C_CLK
driver
:
I2C_CLK
rw
:
variable
#server RW variable, not linked to IO
rw
:
variable
#server RW variable, not linked to IO
dtype
:
boolean
dtype
:
boolean
debug
:
True
-
name
:
CLK_Enable_PWR
-
name
:
CLK_Enable_PWR
description
:
Power enabled
description
:
Power enabled
...
@@ -58,6 +57,7 @@ variables:
...
@@ -58,6 +57,7 @@ variables:
bitoffset
:
1
bitoffset
:
1
width
:
1
width
:
1
-
name
:
CLK_PLL_locked
-
name
:
CLK_PLL_locked
description
:
First status pin give lock status
description
:
First status pin give lock status
rw
:
ro
rw
:
ro
...
@@ -72,6 +72,7 @@ variables:
...
@@ -72,6 +72,7 @@ variables:
description
:
Second status pin give error
description
:
Second status pin give error
rw
:
ro
rw
:
ro
dtype
:
boolean
dtype
:
boolean
monitor
:
true
driver
:
I2C_CLK
driver
:
I2C_CLK
devreg
:
IO1.GPIO1
devreg
:
IO1.GPIO1
bitoffset
:
3
bitoffset
:
3
...
@@ -108,8 +109,12 @@ methods:
...
@@ -108,8 +109,12 @@ methods:
driver
:
I2C_CLK
driver
:
I2C_CLK
hidden
:
True
hidden
:
True
instructions
:
instructions
:
-
CLK_I2C_OK
:
1
-
RCU_IO1_GPIO1
:
Update
-
RCU_IO1_GPIO1
:
Update
-
IO1.CONF1
:
Update
-
IO1.CONF1
:
Update
-
CLK_Enable_PWR
:
Update
-
CLK_PLL_locked
:
Update
-
CLK_PLL_error
:
Update
-
name
:
CLK_on
-
name
:
CLK_on
driver
:
I2C_CLK
driver
:
I2C_CLK
...
@@ -118,6 +123,13 @@ methods:
...
@@ -118,6 +123,13 @@ methods:
-
IO1.GPIO1
:
0x42
#0100 0010 high:PWR enable, CS
-
IO1.GPIO1
:
0x42
#0100 0010 high:PWR enable, CS
-
CLK_Enable_PWR
:
Update
-
CLK_Enable_PWR
:
Update
-
name
:
CLK_off
driver
:
I2C_CLK
instructions
:
-
IO1.CONF1
:
0x2C
#0010 1100 PPS/PWR output, SCLK,CS,SDI
-
IO1.GPIO1
:
0x00
#all low
-
CLK_Enable_PWR
:
Update
# - WAIT: 100 #ms to wait before checking lock
# - WAIT: 100 #ms to wait before checking lock
# - CLK_PLL_setup: 0
# - CLK_PLL_setup: 0
# - WAIT: 100 #ms to wait before checking lock
# - WAIT: 100 #ms to wait before checking lock
...
...
This diff is collapsed.
Click to expand it.
opcuaserv/yamlreader.py
+
1
−
0
View file @
e585da6b
...
@@ -185,6 +185,7 @@ class yamlreader(yamlconfig):
...
@@ -185,6 +185,7 @@ class yamlreader(yamlconfig):
logging
.
warn
(
"
OPC variable not found!!
"
);
logging
.
warn
(
"
OPC variable not found!!
"
);
return
;
return
;
data3
=
var1
.
get_value
();
data3
=
var1
.
get_value
();
if
not
(
isinstance
(
data3
,
list
)):
data3
=
[
data3
];
# print("OPCset",v['name'],data3,mask)
# print("OPCset",v['name'],data3,mask)
if
mask
:
#Only update masked values
if
mask
:
#Only update masked values
step
=
len
(
data2
)
//
len
(
mask
)
step
=
len
(
data2
)
//
len
(
mask
)
...
...
This diff is collapsed.
Click to expand it.
testCLK.py
+
1
−
1
View file @
e585da6b
...
@@ -42,7 +42,7 @@ RCU_I2C.readvar(var1,[])
...
@@ -42,7 +42,7 @@ RCU_I2C.readvar(var1,[])
var1
=
RCU_conf
.
getvarid
(
'
CLK_PLL_locked_SPI
'
)
var1
=
RCU_conf
.
getvarid
(
'
CLK_PLL_locked_SPI
'
)
#var1=RCU_conf.getvarid('CLK_PLL_r3')
#var1=RCU_conf.getvarid('CLK_PLL_r3')
RCU_I2C
.
readvar
(
var1
,[])
#
RCU_I2C.readvar(var1,[])
#var1=RCU_conf.getmethodid('CLK_on');
#var1=RCU_conf.getmethodid('CLK_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