comparison FXAnalyse.c @ 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 3ea9fb26ecdf
comparison
equal deleted inserted replaced
29:585c60175bd5 30:56095062acd4
2650 SetCtrlVal(panel, ESTIMATEN3_N, N); 2650 SetCtrlVal(panel, ESTIMATEN3_N, N);
2651 break; 2651 break;
2652 } 2652 }
2653 return 0; 2653 return 0;
2654 } 2654 }
2655
2656 int CVICALLBACK CB_SetSlope (int panel, int control, int event,
2657 void *callbackData, int eventData1, int eventData2)
2658 {
2659 double frequency, slope;
2660
2661 switch (event)
2662 {
2663 case EVENT_COMMIT:
2664 GetCtrlVal(panel, control, &slope);
2665 frequency = DDSFox_ReadFreq(&DDS1xAD9956);
2666 DDSFox_Set(&DDS1xAD9956, frequency, slope);
2667 break;
2668 }
2669 return 0;
2670 }