changeset 30:56095062acd4

Allow manual setting of frequency dedrifting rate
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Tue, 02 Oct 2012 19:05:58 +0200
parents 585c60175bd5
children 4a1378ac1b8b
files FXAnalyse.c FXAnalyse.uir
diffstat 2 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/FXAnalyse.c	Tue Oct 02 18:55:48 2012 +0200
+++ b/FXAnalyse.c	Tue Oct 02 19:05:58 2012 +0200
@@ -2652,3 +2652,19 @@
 	}
 	return 0;
 }
+
+int CVICALLBACK CB_SetSlope (int panel, int control, int event,
+		void *callbackData, int eventData1, int eventData2)
+{
+	double frequency, slope;
+	
+	switch (event)
+	{
+		case EVENT_COMMIT:
+			GetCtrlVal(panel, control, &slope);
+			frequency = DDSFox_ReadFreq(&DDS1xAD9956);
+			DDSFox_Set(&DDS1xAD9956, frequency, slope);
+			break;
+	}
+	return 0;
+}
Binary file FXAnalyse.uir has changed