# HG changeset patch # User Daniele Nicolodi # Date 1349197558 -7200 # Node ID 56095062acd4bc62d2ca910f9d41980a7a00055a # Parent 585c60175bd5eff8f6b3e880ef228076ee8e2ddc Allow manual setting of frequency dedrifting rate diff -r 585c60175bd5 -r 56095062acd4 FXAnalyse.c --- 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; +} diff -r 585c60175bd5 -r 56095062acd4 FXAnalyse.uir Binary file FXAnalyse.uir has changed