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
c3162c26
Commit
c3162c26
authored
1 month ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
DANTE readback working
parent
0ef795d4
Branches
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#116549
failed
19 hours ago
Stage: run
Stage: image
Changes
3
Pipelines
58
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pypcc/config/RECVTR_HB.yaml
+6
-6
6 additions, 6 deletions
pypcc/config/RECVTR_HB.yaml
scripts/AHBAT_test.py
+1
-0
1 addition, 0 deletions
scripts/AHBAT_test.py
scripts/Ant_Pwr.py
+8
-2
8 additions, 2 deletions
scripts/Ant_Pwr.py
with
15 additions
and
8 deletions
pypcc/config/RECVTR_HB.yaml
+
6
−
6
View file @
c3162c26
...
@@ -195,8 +195,8 @@ device_registers:
...
@@ -195,8 +195,8 @@ device_registers:
-
{
name
:
SW_version
,
address
:
0x0C
}
-
{
name
:
SW_version
,
address
:
0x0C
}
-
{
name
:
config
,
address
:
0x10
}
-
{
name
:
config
,
address
:
0x10
}
-
{
name
:
config2
,
address
:
0x18
}
-
{
name
:
config2
,
address
:
0x18
}
-
{
name
:
PCB_version
,
address
:
0x2
4
}
-
{
name
:
PCB_version
,
address
:
0x2
0
}
-
{
name
:
PCB_number
,
address
:
0x3
2
}
-
{
name
:
PCB_number
,
address
:
0x3
0
}
-
{
name
:
ADC
,
address
:
0x50
}
-
{
name
:
ADC
,
address
:
0x50
}
-
{
name
:
Vref
,
address
:
0x1c
}
-
{
name
:
Vref
,
address
:
0x1c
}
...
@@ -846,13 +846,13 @@ variables:
...
@@ -846,13 +846,13 @@ variables:
dim2
:
[
16
,
96
]
dim2
:
[
16
,
96
]
endian
:
"
<"
endian
:
"
<"
mask
:
AHBAT_mask
mask
:
AHBAT_mask
wait
:
7
00
wait
:
6
00
-
name
:
AHBAT_PCB_version
-
name
:
AHBAT_PCB_version
description
:
DANTE PCB version
description
:
DANTE PCB version
driver
:
I2C_AHBAT
driver
:
I2C_AHBAT
devreg
:
[
AHBAT1.PCB_version
,
AHBAT2.PCB_version
,
AHBAT3.PCB_version
]
devreg
:
[
AHBAT1.PCB_version
,
AHBAT2.PCB_version
,
AHBAT3.PCB_version
]
width
:
8
0
width
:
12
8
rw
:
ro
rw
:
ro
dtype
:
string
dtype
:
string
dim
:
1536
dim
:
1536
...
@@ -864,7 +864,7 @@ variables:
...
@@ -864,7 +864,7 @@ variables:
description
:
DANTE PCB number
description
:
DANTE PCB number
driver
:
I2C_AHBAT
driver
:
I2C_AHBAT
devreg
:
[
AHBAT1.PCB_number
,
AHBAT2.PCB_number
,
AHBAT3.PCB_number
]
devreg
:
[
AHBAT1.PCB_number
,
AHBAT2.PCB_number
,
AHBAT3.PCB_number
]
width
:
8
0
width
:
12
8
rw
:
ro
rw
:
ro
dtype
:
string
dtype
:
string
dim
:
1536
dim
:
1536
...
@@ -895,7 +895,7 @@ variables:
...
@@ -895,7 +895,7 @@ variables:
dim
:
96
dim
:
96
dim2
:
[
1
,
96
]
dim2
:
[
1
,
96
]
mask
:
AHBAT_mask
mask
:
AHBAT_mask
wait
:
7
00
wait
:
2
00
-
name
:
AHBAT_dummy
-
name
:
AHBAT_dummy
description
:
nothing
description
:
nothing
...
...
This diff is collapsed.
Click to expand it.
scripts/AHBAT_test.py
+
1
−
0
View file @
c3162c26
...
@@ -34,6 +34,7 @@ if False:
...
@@ -34,6 +34,7 @@ if False:
set_value
(
"
AHBAT_Vref_RW
"
,[
0x04
]
*
96
)
set_value
(
"
AHBAT_Vref_RW
"
,[
0x04
]
*
96
)
wait_not_busy
(
busy
,
timeout_sec
=
4
)
wait_not_busy
(
busy
,
timeout_sec
=
4
)
if
False
:
if
False
:
print
(
"
Configuration:
"
)
print
(
"
Configuration:
"
)
callmethod
(
"
AHBAT_update
"
)
callmethod
(
"
AHBAT_update
"
)
...
...
This diff is collapsed.
Click to expand it.
scripts/Ant_Pwr.py
+
8
−
2
View file @
c3162c26
...
@@ -2,8 +2,8 @@ from test_common import *
...
@@ -2,8 +2,8 @@ from test_common import *
name
=
"
RCU_PWR_ANT_on
"
name
=
"
RCU_PWR_ANT_on
"
RCU
=
[
0
];
RCU
=
[
0
];
On
=
[
False
,
Tru
e
,
False
]
On
=
[
True
,
Fals
e
,
False
]
#On
=[False,False,False]
Off
=
[
False
,
False
,
False
]
#Att=[10,10,10]
#Att=[10,10,10]
#RCU=[1,2,3];
#RCU=[1,2,3];
#Att=[0,0,0]
#Att=[0,0,0]
...
@@ -13,6 +13,12 @@ setAntmask(RCU)
...
@@ -13,6 +13,12 @@ setAntmask(RCU)
att
=
get_value
(
name
+
"
_R
"
)
att
=
get_value
(
name
+
"
_R
"
)
print
(
"
Att old:
"
,
att
[:
18
])
print
(
"
Att old:
"
,
att
[:
18
])
for
r
in
RCU
:
att
[
3
*
r
:
3
*
r
+
3
]
=
Off
print
(
"
Att set:
"
,
att
[:
18
])
set_value
(
name
+
"
_RW
"
,
att
)
time
.
sleep
(
1
)
for
r
in
RCU
:
for
r
in
RCU
:
att
[
3
*
r
:
3
*
r
+
3
]
=
On
att
[
3
*
r
:
3
*
r
+
3
]
=
On
print
(
"
Att set:
"
,
att
[:
18
])
print
(
"
Att set:
"
,
att
[:
18
])
...
...
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