Mercurial > hg > fxanalyse
comparison FXAnalyse.h @ 232:52f882f39c16
Implement correction proportional to frequency in dedrift code
Reorganize code and options handling
author | Daniele Nicolodi <daniele.nicolodi@obspm.fr> |
---|---|
date | Mon, 27 Oct 2014 18:08:17 +0100 |
parents | a2f99632a80c |
children | b3581a75a0b7 |
comparison
equal
deleted
inserted
replaced
231:c10236b5a3e9 | 232:52f882f39c16 |
---|---|
107 #define PANEL_SIGN1 67 /* control type: numeric, callback function: CB_BeatnoteSign */ | 107 #define PANEL_SIGN1 67 /* control type: numeric, callback function: CB_BeatnoteSign */ |
108 #define PANEL_ADJUST_DDS4 68 /* control type: command, callback function: CB_AdjustDDSFreq */ | 108 #define PANEL_ADJUST_DDS4 68 /* control type: command, callback function: CB_AdjustDDSFreq */ |
109 #define PANEL_ADJUST_DDS3 69 /* control type: command, callback function: CB_AdjustDDSFreq */ | 109 #define PANEL_ADJUST_DDS3 69 /* control type: command, callback function: CB_AdjustDDSFreq */ |
110 #define PANEL_ADJUST_DDS2 70 /* control type: command, callback function: CB_AdjustDDSFreq */ | 110 #define PANEL_ADJUST_DDS2 70 /* control type: command, callback function: CB_AdjustDDSFreq */ |
111 #define PANEL_RESETSLOPE 71 /* control type: command, callback function: CB_OnResetSlope */ | 111 #define PANEL_RESETSLOPE 71 /* control type: command, callback function: CB_OnResetSlope */ |
112 #define PANEL_CHECKBOX_STOPIFAUTODE 72 /* control type: radioButton, callback function: CB_OnStopSlopeCancellingOnUnlocked */ | 112 #define PANEL_DEDRIFT_STOP_ON_UNLOC 72 /* control type: radioButton, callback function: CB_OnStopSlopeCancellingOnUnlocked */ |
113 #define PANEL_CHECKBOX_KEEPSLOPE 73 /* control type: radioButton, callback function: CB_OnCROX */ | 113 #define PANEL_DEDRIFT_KEEP_SLOPE 73 /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */ |
114 #define PANEL_CHECKBOX_KEEP 74 /* control type: radioButton, callback function: CB_OnCROX */ | 114 #define PANEL_DEDRIFT_KEEP_FREQ 74 /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */ |
115 #define PANEL_SLOPE_REFERENCE 75 /* control type: ring, callback function: CB_OnSlopeReference */ | 115 #define PANEL_SLOPE_REFERENCE 75 /* control type: ring, callback function: CB_OnSlopeReference */ |
116 #define PANEL_ESTIMATE_N2 76 /* control type: command, callback function: cb_onEstimateN */ | 116 #define PANEL_ESTIMATE_N2 76 /* control type: command, callback function: cb_onEstimateN */ |
117 #define PANEL_ESTIMATE_N3 77 /* control type: command, callback function: cb_onEstimateN */ | 117 #define PANEL_ESTIMATE_N3 77 /* control type: command, callback function: cb_onEstimateN */ |
118 #define PANEL_INVERT_SLOPE_SIGN 78 /* control type: radioButton, callback function: CB_InvertSlopeSign */ | 118 #define PANEL_DEDRIFT_PROPORTIONAL 78 /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */ |
119 #define PANEL_RECENTER 79 /* control type: LED, callback function: CB_RecenterEnable */ | 119 #define PANEL_DEDRIFT_INVERT_SIGN 79 /* control type: radioButton, callback function: CB_InvertSlopeSign */ |
120 #define PANEL_MEASURE_SLOPE 80 /* control type: LED, callback function: CB_MeasureSlope */ | 120 #define PANEL_RECENTER 80 /* control type: LED, callback function: CB_RecenterEnable */ |
121 #define PANEL_SLOPE_MEASURED 81 /* control type: numeric, callback function: (none) */ | 121 #define PANEL_MEASURE_SLOPE 81 /* control type: LED, callback function: CB_MeasureSlope */ |
122 #define PANEL_RESET_DEDRIFT_DDS 82 /* control type: command, callback function: CB_ResetDedriftDDS */ | 122 #define PANEL_SLOPE_MEASURED 82 /* control type: numeric, callback function: (none) */ |
123 #define PANEL_SAVE_RAW 83 /* control type: radioButton, callback function: CB_SaveData */ | 123 #define PANEL_RESET_DEDRIFT_DDS 83 /* control type: command, callback function: CB_ResetDedriftDDS */ |
124 #define PANEL_SHOWLOG 84 /* control type: radioButton, callback function: CB_ShowLog */ | 124 #define PANEL_SAVE_RAW 84 /* control type: radioButton, callback function: CB_SaveData */ |
125 #define PANEL_SLOPEX2 85 /* control type: radioButton, callback function: CB_SlopeX2 */ | 125 #define PANEL_SHOWLOG 85 /* control type: radioButton, callback function: CB_ShowLog */ |
126 #define PANEL_SAVE_DDS 86 /* control type: radioButton, callback function: CB_SaveData */ | 126 #define PANEL_DEDRIFT_DOUBLE_CORR 86 /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */ |
127 #define PANEL_DECORATION_2 87 /* control type: deco, callback function: (none) */ | 127 #define PANEL_SAVE_DDS 87 /* control type: radioButton, callback function: CB_SaveData */ |
128 #define PANEL_DECORATION_8 88 /* control type: deco, callback function: (none) */ | 128 #define PANEL_DECORATION_2 88 /* control type: deco, callback function: (none) */ |
129 #define PANEL_DECORATION 89 /* control type: deco, callback function: (none) */ | 129 #define PANEL_DECORATION_8 89 /* control type: deco, callback function: (none) */ |
130 #define PANEL_DECORATION_3 90 /* control type: deco, callback function: (none) */ | 130 #define PANEL_DECORATION 90 /* control type: deco, callback function: (none) */ |
131 #define PANEL_TEXTMSG_6 91 /* control type: textMsg, callback function: (none) */ | 131 #define PANEL_DECORATION_3 91 /* control type: deco, callback function: (none) */ |
132 #define PANEL_TEXTMSG_22 92 /* control type: textMsg, callback function: (none) */ | 132 #define PANEL_TEXTMSG_6 92 /* control type: textMsg, callback function: (none) */ |
133 #define PANEL_TEXTMSG_21 93 /* control type: textMsg, callback function: (none) */ | 133 #define PANEL_TEXTMSG_22 93 /* control type: textMsg, callback function: (none) */ |
134 #define PANEL_TEXTMSG_7 94 /* control type: textMsg, callback function: (none) */ | 134 #define PANEL_TEXTMSG_21 94 /* control type: textMsg, callback function: (none) */ |
135 #define PANEL_DECORATION_4 95 /* control type: deco, callback function: (none) */ | 135 #define PANEL_TEXTMSG_7 95 /* control type: textMsg, callback function: (none) */ |
136 #define PANEL_DECORATION_7 96 /* control type: deco, callback function: (none) */ | 136 #define PANEL_DECORATION_4 96 /* control type: deco, callback function: (none) */ |
137 #define PANEL_DECORATION_6 97 /* control type: deco, callback function: (none) */ | 137 #define PANEL_DECORATION_7 97 /* control type: deco, callback function: (none) */ |
138 #define PANEL_DECORATION_5 98 /* control type: deco, callback function: (none) */ | 138 #define PANEL_DECORATION_6 98 /* control type: deco, callback function: (none) */ |
139 #define PANEL_TEXTMSG_20 99 /* control type: textMsg, callback function: (none) */ | 139 #define PANEL_DECORATION_5 99 /* control type: deco, callback function: (none) */ |
140 #define PANEL_TEXTMSG_19 100 /* control type: textMsg, callback function: (none) */ | 140 #define PANEL_TEXTMSG_20 100 /* control type: textMsg, callback function: (none) */ |
141 #define PANEL_MATH4 101 /* control type: string, callback function: (none) */ | 141 #define PANEL_TEXTMSG_19 101 /* control type: textMsg, callback function: (none) */ |
142 #define PANEL_MATH5 102 /* control type: string, callback function: (none) */ | 142 #define PANEL_MATH4 102 /* control type: string, callback function: (none) */ |
143 #define PANEL_MATH3 103 /* control type: string, callback function: (none) */ | 143 #define PANEL_MATH5 103 /* control type: string, callback function: (none) */ |
144 #define PANEL_MATH2 104 /* control type: string, callback function: (none) */ | 144 #define PANEL_MATH3 104 /* control type: string, callback function: (none) */ |
145 #define PANEL_MATH1 105 /* control type: string, callback function: (none) */ | 145 #define PANEL_MATH2 105 /* control type: string, callback function: (none) */ |
146 #define PANEL_RECENTER_SR 106 /* control type: radioButton, callback function: CB_RecenterChannel */ | 146 #define PANEL_MATH1 106 /* control type: string, callback function: (none) */ |
147 #define PANEL_RECENTER_HG 107 /* control type: radioButton, callback function: CB_RecenterChannel */ | 147 #define PANEL_RECENTER_SR 107 /* control type: radioButton, callback function: CB_RecenterChannel */ |
148 #define PANEL_RECENTER_LO 108 /* control type: radioButton, callback function: CB_RecenterChannel */ | 148 #define PANEL_RECENTER_HG 108 /* control type: radioButton, callback function: CB_RecenterChannel */ |
149 #define PANEL_ERROR 109 /* control type: LED, callback function: CB_ShowError */ | 149 #define PANEL_RECENTER_LO 109 /* control type: radioButton, callback function: CB_RecenterChannel */ |
150 #define PANEL_ERROR 110 /* control type: LED, callback function: CB_ShowError */ | |
150 | 151 |
151 | 152 |
152 /* Control Arrays: */ | 153 /* Control Arrays: */ |
153 | 154 |
154 /* (no control arrays in the resource file) */ | 155 /* (no control arrays in the resource file) */ |
172 int CVICALLBACK CB_InvertSlopeSign(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 173 int CVICALLBACK CB_InvertSlopeSign(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
173 int CVICALLBACK CB_MeasureSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 174 int CVICALLBACK CB_MeasureSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
174 int CVICALLBACK CB_OnAcceptN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 175 int CVICALLBACK CB_OnAcceptN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
175 int CVICALLBACK CB_OnAllanPlot(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 176 int CVICALLBACK CB_OnAllanPlot(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
176 int CVICALLBACK CB_OnChangeNdiv(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 177 int CVICALLBACK CB_OnChangeNdiv(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
177 int CVICALLBACK CB_OnCROX(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 178 int CVICALLBACK CB_OnDedriftSettingsChange(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
178 int CVICALLBACK cb_onEstimateN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 179 int CVICALLBACK cb_onEstimateN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
179 int CVICALLBACK cb_onEstimateNChange(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 180 int CVICALLBACK cb_onEstimateNChange(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
180 int CVICALLBACK cb_onEstimateNClose(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 181 int CVICALLBACK cb_onEstimateNClose(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
181 int CVICALLBACK cb_onEstimateNFrequency(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 182 int CVICALLBACK cb_onEstimateNFrequency(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
182 int CVICALLBACK cb_onEstimateNSet(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 183 int CVICALLBACK cb_onEstimateNSet(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
199 int CVICALLBACK CB_ResetDedriftDDS(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 200 int CVICALLBACK CB_ResetDedriftDDS(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
200 int CVICALLBACK CB_SaveData(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 201 int CVICALLBACK CB_SaveData(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
201 int CVICALLBACK CB_SetSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 202 int CVICALLBACK CB_SetSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
202 int CVICALLBACK CB_ShowError(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 203 int CVICALLBACK CB_ShowError(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
203 int CVICALLBACK CB_ShowLog(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 204 int CVICALLBACK CB_ShowLog(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
204 int CVICALLBACK CB_SlopeX2(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | |
205 int CVICALLBACK CB_SrDatalogger(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 205 int CVICALLBACK CB_SrDatalogger(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
206 int CVICALLBACK QuitCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); | 206 int CVICALLBACK QuitCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
207 | 207 |
208 | 208 |
209 #ifdef __cplusplus | 209 #ifdef __cplusplus |