I have this hardware and software running and giving output on the serial port. When I run the calibration routine it seems to give reasonable data but when I run the S2MM code the output seems to be in hex. My guess is that the cal file isn't referenced properly but its a guess and I can't seem to locate where a file such as this is read in the code, I see the scope_calibration.c file Below are the serial result of the calibration_reader_system and s2mm_cyclic_transfer_test_system.
Eventually I want to perform some math on channel acquisitions and spit out a result. I've input a 1kHz +/- 1V sine wave but direct conversion from hex to decimal in Exce (sorry I hate it too) gives nonsense huge numbers column H & I converting B and C.
Thanks for any insight.
========= Zmod Port A : Zmod ADC 1410-105 Calibration Coefficients =========
Question
Xband
I have this hardware and software running and giving output on the serial port. When I run the calibration routine it seems to give reasonable data but when I run the S2MM code the output seems to be in hex. My guess is that the cal file isn't referenced properly but its a guess and I can't seem to locate where a file such as this is read in the code, I see the scope_calibration.c file Below are the serial result of the calibration_reader_system and s2mm_cyclic_transfer_test_system.
Eventually I want to perform some math on channel acquisitions and spit out a result. I've input a 1kHz +/- 1V sine wave but direct conversion from hex to decimal in Exce (sorry I hate it too) gives nonsense huge numbers column H & I converting B and C.
Thanks for any insight.
========= Zmod Port A : Zmod ADC 1410-105 Calibration Coefficients =========
Factory Calibration: December 24, 2021 at 02:55:34
CHAN_1_LG_GAIN: -0.000055
CHAN_1_LG_OFFSET: -0.076329
CHAN_1_HG_GAIN: 0.011868
CHAN_1_HG_OFFSET: -0.002765
CHAN_2_LG_GAIN: -0.001325
CHAN_2_LG_OFFSET: 0.130576
CHAN_2_HG_GAIN: 0.010189
CHAN_2_HG_OFFSET: 0.006026
Ch1LgCoefMultStatic: 0x10CC9
Ch1LgCoefAddStatic: 0x3FE71
Ch1HgCoefMultStatic: 0x11951
Ch1HgCoefAddStatic: 0x3FE97
Ch2LgCoefMultStatic: 0x10C72
Ch2LgCoefAddStatic: 0x002AD
Ch2HgCoefMultStatic: 0x118D9
Ch2HgCoefAddStatic: 0x00316
User Calibration: December 24, 2021 at 02:55:34
CHAN_1_LG_GAIN: -0.000055
CHAN_1_LG_OFFSET: -0.076329
CHAN_1_HG_GAIN: 0.011868
CHAN_1_HG_OFFSET: -0.002765
CHAN_2_LG_GAIN: -0.001325
CHAN_2_LG_OFFSET: 0.130576
CHAN_2_HG_GAIN: 0.010189
CHAN_2_HG_OFFSET: 0.006026
Ch1LgCoefMultStatic: 0x10CC9
Ch1LgCoefAddStatic: 0x3FE71
Ch1HgCoefMultStatic: 0x11951
Ch1HgCoefAddStatic: 0x3FE97
Ch2LgCoefMultStatic: 0x10C72
Ch2LgCoefAddStatic: 0x002AD
Ch2HgCoefMultStatic: 0x118D9
Ch2HgCoefAddStatic: 0x00316
Done initializing device drivers
TestMode: 0
Initialization done
ADC initialization done
Waiting for trigger...
Last beat found:
BD base address: 00124168
BD actual length: 0000000C
Buffer base address: 00124168
Buffer high address: 00128164
Length of buffer (words): 4096
Index of buffer head: 3
Trigger position: 0
Index of trigger position: 3
Detected trigger condition: 00000002
Transfer done
@00124174 FFE70007 3FF9 0001 0 3
@00124178 FFECFFFF 3FFB 3FFF 0 -3
@0012417C FFF0FFEE 3FFC 3FFB 0 -15
@00124180 FFE7FFFF 3FF9 3FFF 0 -3
@00124184 FFDE0003 3FF7 0000 -1 0
@00124188 FFDEFFEA 3FF7 3FFA -1 -18
@0012418C FFD60003 3FF5 0000 -1 0
@00124190 FFDE0003 3FF7 0000 -1 0
@00124194 FFDAFFEA 3FF6 3FFA -1 -18
@00124198 FFEC0003 3FFB 0000 0 0
@0012419C FFECFFFF 3FFB 3FFF 0 -3
@001241A0 FFDA0003 3FF6 0000 -1 0
@001241A4 FFE3FFFB 3FF8 3FFE 0 -6
@001241A8 FFECFFF6 3FFB 3FFD 0 -9
@001241AC 036C0003 00DB 0000 26 0
@001241B0 0BD20035 02F4 000D 92 39
@001241B4 0A9100D5 02A4 0035 82 161
@001241B8 04E60157 0139 0055 38 259
@001241BC 049C0191 0127 0064 36 305
@001241C0 055D01AB 0157 006A 41 323
@001241C4 0611019A 0184 0066 47 311
@001241C8 064601AF 0191 006B 48 326
@001241CC 066901BB 019A 006E 50 335
@001241D0 06B401C0 01AD 0070 52 341
@001241D4 06FF01BB 01BF 006E 54 335
@001241D8 073C01C8 01CF 0072 56 347
@001241DC 078201BB 01E0 006E 58 335
@001241E0 07CD01DD 01F3 0077 60 363
@001241E4 082101E5 0208 0079 63 369
@001241E8 087401DD 021D 0077 66 363
@001241EC 08CC0
Link to comment
Share on other sites
33 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now