changeset 113:6691728a0c58

Add option to save DDS frequencies to disk
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Tue, 02 Jul 2013 13:05:50 +0200
parents e501896c0e7c
children 77b442322984
files FXAnalyse.c FXAnalyse.h FXAnalyse.uir
diffstat 3 files changed, 10 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 	}
--- 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: */
Binary file FXAnalyse.uir has changed