Commit d023cc87 authored by Matthieu Cattin's avatar Matthieu Cattin

test17: Print gnum local bus frequency, comment-out test pattern for debug.

parent f1b8818f
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment