Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Testing
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Testing
Commits
d023cc87
Commit
d023cc87
authored
Mar 07, 2013
by
Matthieu Cattin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test17: Print gnum local bus frequency, comment-out test pattern for debug.
parent
f1b8818f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
test17.py
test/fmcadc100m14b4cha/python/test17.py
+4
-3
No files found.
test/fmcadc100m14b4cha/python/test17.py
View file @
d023cc87
...
...
@@ -136,7 +136,7 @@ def acquisition_all(fmc, spec_fmc):
return
1
# Retrieve data trough DMA
trig_pos
=
fmc
.
get_trig_pos
()
#
print('Trigger position; 0x%X')%(trig_pos)
print
(
'Trigger position; 0x
%
X'
)
%
(
trig_pos
)
channels_data
=
spec_fmc
.
get_data
((
trig_pos
<<
3
),
ACQ_LENGTH
*
8
)
return
channels_data
...
...
@@ -224,7 +224,8 @@ def main (default_directory = '.'):
box
=
calibr_box
.
CCalibr_box
(
box_tty
[
0
])
# Work-around to make dma work with sdb firmware
carrier
.
gnum
.
set_local_bus_freq
(
100
)
#carrier.gnum.set_local_bus_freq(200)
print
"GN4124 local bus freq: "
,
carrier
.
gnum
.
get_local_bus_freq
()
# Enable "DMA finished" IRQ
carrier
.
set_irq_en_mask
(
0x1
)
...
...
@@ -233,7 +234,7 @@ def main (default_directory = '.'):
fmc_adc_init
(
spec
,
fmc
)
# Use test data instead of data from ADC
fmc
.
test_data_en
()
#
fmc.test_data_en()
# Use data pattern instead of ADC data
#fmc.testpat_en(0x2000)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment