# HG changeset patch # User Daniele Nicolodi # Date 1372763150 -7200 # Node ID 6691728a0c58535413bdf1c651fd40b651280f49 # Parent e501896c0e7c97306821c976918944ae80c070f2 Add option to save DDS frequencies to disk diff -r e501896c0e7c -r 6691728a0c58 FXAnalyse.c --- a/FXAnalyse.c Tue Jul 02 12:58:34 2013 +0200 +++ b/FXAnalyse.c Tue Jul 02 13:05:50 2013 +0200 @@ -1385,6 +1385,15 @@ if (save) { writeData(DATAFOLDER, "Ex", id, timestr, utc, Math5); } + + // write DDS freqs to disk + GetCtrlVal(MainPanel, PANEL_SAVE_DDS_FREQS, &save); + if (save) { + writeData4(DATAFOLDER, "DDS", id, timestr, utc, + DDS4xAD9912.Frequency1, DDS4xAD9912.Frequency2, + DDS4xAD9912.Frequency3, DDS4xAD9912.Frequency4); + } + } break; } diff -r e501896c0e7c -r 6691728a0c58 FXAnalyse.h --- a/FXAnalyse.h Tue Jul 02 12:58:34 2013 +0200 +++ b/FXAnalyse.h Tue Jul 02 13:05:50 2013 +0200 @@ -149,6 +149,7 @@ #define PANEL_RESET_DEDRIFT_DDS 112 /* control type: command, callback function: CB_ResetDedriftDDS */ #define PANEL_SHOWLOG 113 /* control type: command, callback function: CB_ShowLog */ #define PANEL_SAVE_RAW_DATA 114 /* control type: radioButton, callback function: (none) */ +#define PANEL_SAVE_DDS_FREQS 115 /* control type: radioButton, callback function: (none) */ /* Menu Bars, Menus, and Menu Items: */ diff -r e501896c0e7c -r 6691728a0c58 FXAnalyse.uir Binary file FXAnalyse.uir has changed