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
85d9d4ff
Commit
85d9d4ff
authored
2 years ago
by
Paulus Kruger
Browse files
Options
Downloads
Patches
Plain Diff
RCU2L L2TS test working
parent
171bb46a
No related branches found
No related tags found
No related merge requests found
Pipeline
#47532
passed
2 years ago
Stage: run
Stage: image
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pypcc/config/RECVTR_LB_TEST.yaml
+16
-7
16 additions, 7 deletions
pypcc/config/RECVTR_LB_TEST.yaml
python_scripts/RCU_test1.py
+13
-5
13 additions, 5 deletions
python_scripts/RCU_test1.py
with
29 additions
and
12 deletions
pypcc/config/RECVTR_LB_TEST.yaml
+
16
−
7
View file @
85d9d4ff
...
...
@@ -33,12 +33,12 @@ drivers:
-
name
:
SPIbb2
type
:
spibitbang1
devreg
:
[
IO3.GPIO1
,
IO3.GPIO1
,
IO3.CONF1
,
IO3.GPIO2
]
parameters
:
[
3
,
2
,
2
,
1
]
parameters
:
[
1
,
2
,
2
,
1
]
parent
:
I2C_RCU
-
name
:
SPIbb3
type
:
spibitbang1
devreg
:
[
IO3.GPIO1
,
IO3.GPIO1
,
IO3.CONF1
,
IO3.GPIO2
]
parameters
:
[
5
,
4
,
4
,
2
]
parameters
:
[
1
,
4
,
4
,
2
]
parent
:
I2C_RCU
...
...
@@ -328,13 +328,22 @@ variables:
rw
:
rw
#rw for testing
dtype
:
boolean
-
name
:
[
CH1_DTH_shutdown
,
CH2_DTH_shutdown
,
CH3
_DTH_shutdown
]
description
:
False means dither source
& ADC
powered on.
-
name
:
RCU
_DTH_shutdown
description
:
False means dither source powered on.
driver
:
I2C_RCU
devreg
:
[
IO3.GPIO1
,
IO3.GPIO1
,
IO3.GPIO2
]
devreg
:
IO3.GPIO2
width
:
1
bitoffset
:
[
7
,
6
,
7
]
rw
:
ro
bitoffset
:
7
rw
:
rw
dtype
:
boolean
-
name
:
[
CH1_ADC_shutdown
,
CH2_ADC_shutdown
,
CH3_ADC_shutdown
]
description
:
False means ADC powered on.
driver
:
I2C_RCU
devreg
:
[
IO3.GPIO1
,
IO3.GPIO1
,
IO3.GPIO1
]
width
:
1
bitoffset
:
[
6
,
3
,
5
]
rw
:
rw
dtype
:
boolean
-
name
:
CH1_PWR_ANT_on
...
...
This diff is collapsed.
Click to expand it.
python_scripts/RCU_test1.py
+
13
−
5
View file @
85d9d4ff
...
...
@@ -83,15 +83,23 @@ def dither_config(d1): #Switch dither on
#RCU_off(d1)
#sleep(1.0)
RCU_on
(
d1
)
sleep
(
1.0
)
ADC_config
(
d1
)
#RCU_on(d1)
#sleep(1.0)
#ADC_config(d1)
#if False:
# d1.runmethod("RCU_off");
# sleep(1.0)
if
True
:
d1
.
runmethod
(
"
RCU_on
"
);
sleep
(
1.0
)
if
True
:
d1
.
runmethod
(
"
ADC_on
"
);
#enable_ant_pwr(d1)
#dither_config(d1)
for
varname
in
[
'
RCU_PCB_ID
'
,
'
RCU_PCB_version
'
,
'
RCU_PCB_number
'
,
'
RCU_PWR_good
'
,
'
RCU_PWR_DIGITAL_on
'
,
'
RCU_PWR_ANALOG_on
'
,
'
RCU_PWR_good
'
,
'
RCU_PWR_DIGITAL_on
'
,
'
RCU_PWR_ANALOG_on
'
,
'
RCU_DTH_shutdown
'
,
'
RCU_IO1_GPIO1
'
,
'
RCU_IO1_GPIO2
'
,
'
RCU_IO2_GPIO1
'
,
'
RCU_IO2_GPIO2
'
,
"
RCU_LED_red_on
"
,
"
RCU_LED_green_on
"
]:
data
,
var1
=
d1
.
GetVal
(
varname
);
...
...
@@ -103,7 +111,7 @@ for varname in ['RCU_TEMP','RCU_PWR_3V3','RCU_PWR_2V5','RCU_PWR_1V8']:
for
ch
in
[
'
CH1
'
,
'
CH2
'
,
'
CH3
'
]:
print
(
"
Channel
"
,
ch
)
for
varname
in
[
'
band_select
'
,
'
attenuator_dB
'
,
'
DTH
_shutdown
'
,
for
varname
in
[
'
band_select
'
,
'
attenuator_dB
'
,
'
ADC
_shutdown
'
,
'
PWR_ANT_on
'
,
'
PWR_ANT_VOUT
'
,
'
PWR_ANT_VIN
'
,
'
PWR_ANT_IOUT
'
,
'
ADC_locked
'
,
'
ADC_sync
'
,
'
ADC_JESD
'
,
'
ADC_CML_level
'
,
'
DTH_freq
'
,
'
DTH_PWR
'
,
'
DTH_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