view FXAnalyse.h @ 265:da38cbbc7ec8

Add DDS clients test code To verify the portabiolity of the clients code and to make testing easier the test code is independent of the CVI environment and runtime.
author Daniele Nicolodi <daniele.nicolodi@obspm.fr>
date Sun, 21 Jun 2015 14:44:33 +0200
parents 708de02ef948
children
line wrap: on
line source

/**************************************************************************/
/* LabWindows/CVI User Interface Resource (UIR) Include File              */
/* Copyright (c) National Instruments 2015. All Rights Reserved.          */
/*                                                                        */
/* WARNING: Do not add to, delete from, or otherwise modify the contents  */
/*          of this include file.                                         */
/**************************************************************************/

#include <userint.h>

#ifdef __cplusplus
    extern "C" {
#endif

     /* Panels and Controls: */

#define  CALCN                            1
#define  CALCN_N                          2       /* control type: numeric, callback function: (none) */
#define  CALCN_STOP                       3       /* control type: command, callback function: CB_OnNStop */
#define  CALCN_SLOPETIME                  4       /* control type: numeric, callback function: (none) */
#define  CALCN_INTEGRATIONTIME            5       /* control type: numeric, callback function: (none) */
#define  CALCN_DELTAFREQ                  6       /* control type: numeric, callback function: (none) */
#define  CALCN_START                      7       /* control type: command, callback function: CB_OnStartNCalculus */
#define  CALCN_ACCEPTN                    8       /* control type: command, callback function: CB_OnAcceptN */

#define  ESTIMATEN                        2
#define  ESTIMATEN_N                      2       /* control type: numeric, callback function: (none) */
#define  ESTIMATEN_FCOUNT                 3       /* control type: numeric, callback function: (none) */
#define  ESTIMATEN_FDDS                   4       /* control type: numeric, callback function: (none) */
#define  ESTIMATEN_FREP                   5       /* control type: numeric, callback function: cb_onEstimateNChange */
#define  ESTIMATEN_CLOSE                  6       /* control type: command, callback function: cb_onEstimateNClose */
#define  ESTIMATEN_SET                    7       /* control type: command, callback function: cb_onEstimateNSet */
#define  ESTIMATEN_SIGN                   8       /* control type: numeric, callback function: cb_onEstimateNChange */
#define  ESTIMATEN_FBEAT                  9       /* control type: numeric, callback function: cb_onEstimateNChange */
#define  ESTIMATEN_FREQUENCY              10      /* control type: numeric, callback function: cb_onEstimateNFrequency */
#define  ESTIMATEN_WAVELENGTH             11      /* control type: numeric, callback function: cb_onEstimateNWaveleght */

#define  LOGGING                          3       /* callback function: CB_OnLoggingPanelEvent */
#define  LOGGING_LOGGING                  2       /* control type: textBox, callback function: (none) */

#define  PANEL                            4       /* callback function: CB_OnEventMain */
#define  PANEL_QUITBUTTON                 2       /* control type: command, callback function: QuitCallback */
#define  PANEL_STARTBUTTON                3       /* control type: command, callback function: CB_OnStart */
#define  PANEL_STOPBUTTON                 4       /* control type: command, callback function: CB_OnStop */
#define  PANEL_CH4                        5       /* control type: numeric, callback function: (none) */
#define  PANEL_CH3                        6       /* control type: numeric, callback function: (none) */
#define  PANEL_CH2                        7       /* control type: numeric, callback function: (none) */
#define  PANEL_CH1                        8       /* control type: numeric, callback function: (none) */
#define  PANEL_ADEV_Math1                 9       /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_ADEV_Ch4                   10      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_ADEV_Ch3                   11      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_PLOT_Ch4                   12      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_ADEV_Ch2                   13      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_PLOT_Ch3                   14      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_ADEV_Ch1                   15      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_PLOT_Ch2                   16      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_PLOT_Math1                 17      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_PLOT_Ch1                   18      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_DDS2                       19      /* control type: numeric, callback function: CB_ChangeDDSOut */
#define  PANEL_TEXTMSG                    20      /* control type: textMsg, callback function: (none) */
#define  PANEL_TEXTMSG_2                  21      /* control type: textMsg, callback function: (none) */
#define  PANEL_RECENTER_THRESHOLD_SR      22      /* control type: numeric, callback function: CB_RecenterThreshold */
#define  PANEL_RECENTER_THRESHOLD_HG      23      /* control type: numeric, callback function: CB_RecenterThreshold */
#define  PANEL_RECENTER_THRESHOLD_LO      24      /* control type: numeric, callback function: CB_RecenterThreshold */
#define  PANEL_RECENTER_INTERVAL          25      /* control type: numeric, callback function: CB_RecenterInterval */
#define  PANEL_SLOPETIME                  26      /* control type: numeric, callback function: CB_ChangeSlopeTime */
#define  PANEL_DEDRIFT_DDS_FREQ           27      /* control type: numeric, callback function: CB_DedriftDDSFreq */
#define  PANEL_DDS1                       28      /* control type: numeric, callback function: CB_ChangeDDSOut */
#define  PANEL_CHANGENDIV                 29      /* control type: numeric, callback function: CB_OnChangeNdiv */
#define  PANEL_N3                         30      /* control type: numeric, callback function: CB_ChangeN */
#define  PANEL_N3CALCULUS                 31      /* control type: command, callback function: CB_OnNCalculus */
#define  PANEL_N1                         32      /* control type: numeric, callback function: CB_ChangeN */
#define  PANEL_N2                         33      /* control type: numeric, callback function: CB_ChangeN */
#define  PANEL_N2CALCULUS                 34      /* control type: command, callback function: CB_OnNCalculus */
#define  PANEL_DDS4STEP                   35      /* control type: ring, callback function: CB_ChangeDDSStep */
#define  PANEL_DDS3STEP                   36      /* control type: ring, callback function: CB_ChangeDDSStep */
#define  PANEL_DDS2STEP                   37      /* control type: ring, callback function: CB_ChangeDDSStep */
#define  PANEL_SLOPE_APPLIED              38      /* control type: numeric, callback function: CB_SetSlope */
#define  PANEL_PLOT_Math5                 39      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_PLOT_Math4                 40      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_ADEV_Math4                 41      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_DDS1STEP                   42      /* control type: ring, callback function: CB_ChangeDDSStep */
#define  PANEL_TEXTMSG_15                 43      /* control type: textMsg, callback function: (none) */
#define  PANEL_ADEV_Math5                 44      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_PLOT_Math3                 45      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_SAVE_EXTRA                 46      /* control type: radioButton, callback function: CB_SaveData */
#define  PANEL_SR_LOGGER                  47      /* control type: radioButton, callback function: CB_SrDatalogger */
#define  PANEL_SAVE_SR                    48      /* control type: radioButton, callback function: CB_SaveData */
#define  PANEL_ADEV_Math3                 49      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_MATHSTRING4                50      /* control type: string, callback function: CB_ChangeMath */
#define  PANEL_PLOT_Math2                 51      /* control type: radioButton, callback function: CB_OnFreqPlot */
#define  PANEL_SAVE_HG                    52      /* control type: radioButton, callback function: CB_SaveData */
#define  PANEL_SAVE_LO                    53      /* control type: radioButton, callback function: CB_SaveData */
#define  PANEL_ADEV_Math2                 54      /* control type: radioButton, callback function: CB_OnAllanPlot */
#define  PANEL_MATHSTRING3                55      /* control type: string, callback function: CB_ChangeMath */
#define  PANEL_MATHSTRING1                56      /* control type: string, callback function: CB_ChangeMath */
#define  PANEL_MATHSTRING2                57      /* control type: string, callback function: CB_ChangeMath */
#define  PANEL_TEXTMSG_16                 58      /* control type: textMsg, callback function: (none) */
#define  PANEL_MATHSTRING5                59      /* control type: textBox, callback function: CB_ChangeMath */
#define  PANEL_UTC                        60      /* control type: numeric, callback function: (none) */
#define  PANEL_TIME                       61      /* control type: string, callback function: (none) */
#define  PANEL_DDS4                       62      /* control type: numeric, callback function: CB_ChangeDDSOut */
#define  PANEL_DDS3                       63      /* control type: numeric, callback function: CB_ChangeDDSOut */
#define  PANEL_N1CALCULUS                 64      /* control type: command, callback function: CB_OnNCalculus */
#define  PANEL_FINDSIGN3                  65      /* control type: command, callback function: CB_OnFindSign */
#define  PANEL_SIGN3                      66      /* control type: numeric, callback function: CB_BeatnoteSign */
#define  PANEL_FINDSIGN2                  67      /* control type: command, callback function: CB_OnFindSign */
#define  PANEL_SIGN2                      68      /* control type: numeric, callback function: CB_BeatnoteSign */
#define  PANEL_FINDSIGN1                  69      /* control type: command, callback function: CB_OnFindSign */
#define  PANEL_SIGN1                      70      /* control type: numeric, callback function: CB_BeatnoteSign */
#define  PANEL_ADJUST_DDS4                71      /* control type: command, callback function: CB_AdjustDDSFreq */
#define  PANEL_ADJUST_DDS3                72      /* control type: command, callback function: CB_AdjustDDSFreq */
#define  PANEL_ADJUST_DDS2                73      /* control type: command, callback function: CB_AdjustDDSFreq */
#define  PANEL_RESETSLOPE                 74      /* control type: command, callback function: CB_OnResetSlope */
#define  PANEL_DEDRIFT_STOP_ON_UNLOC      75      /* control type: radioButton, callback function: CB_OnStopSlopeCancellingOnUnlocked */
#define  PANEL_DEDRIFT_KEEP_SLOPE         76      /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */
#define  PANEL_DEDRIFT_KEEP_FREQ          77      /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */
#define  PANEL_SLOPE_REFERENCE            78      /* control type: ring, callback function: CB_OnSlopeReference */
#define  PANEL_ESTIMATE_N2                79      /* control type: command, callback function: cb_onEstimateN */
#define  PANEL_ESTIMATE_N3                80      /* control type: command, callback function: cb_onEstimateN */
#define  PANEL_DEDRIFT_PROPORTIONAL       81      /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */
#define  PANEL_DEDRIFT_INVERT_SIGN        82      /* control type: radioButton, callback function: CB_InvertSlopeSign */
#define  PANEL_RECENTER                   83      /* control type: LED, callback function: CB_RecenterEnable */
#define  PANEL_MEASURE_SLOPE              84      /* control type: LED, callback function: CB_MeasureSlope */
#define  PANEL_SLOPE_MEASURED             85      /* control type: numeric, callback function: (none) */
#define  PANEL_RESET_DEDRIFT_DDS          86      /* control type: command, callback function: CB_ResetDedriftDDS */
#define  PANEL_SAVE_RAW                   87      /* control type: radioButton, callback function: CB_SaveData */
#define  PANEL_SHOWLOG                    88      /* control type: radioButton, callback function: CB_ShowLog */
#define  PANEL_DEDRIFT_DOUBLE_CORR        89      /* control type: radioButton, callback function: CB_OnDedriftSettingsChange */
#define  PANEL_SAVE_DDS                   90      /* control type: radioButton, callback function: CB_SaveData */
#define  PANEL_DECORATION_2               91      /* control type: deco, callback function: (none) */
#define  PANEL_DECORATION_8               92      /* control type: deco, callback function: (none) */
#define  PANEL_DECORATION                 93      /* control type: deco, callback function: (none) */
#define  PANEL_DECORATION_3               94      /* control type: deco, callback function: (none) */
#define  PANEL_TEXTMSG_6                  95      /* control type: textMsg, callback function: (none) */
#define  PANEL_TEXTMSG_22                 96      /* control type: textMsg, callback function: (none) */
#define  PANEL_TEXTMSG_21                 97      /* control type: textMsg, callback function: (none) */
#define  PANEL_TEXTMSG_7                  98      /* control type: textMsg, callback function: (none) */
#define  PANEL_DECORATION_4               99      /* control type: deco, callback function: (none) */
#define  PANEL_DECORATION_7               100     /* control type: deco, callback function: (none) */
#define  PANEL_DECORATION_6               101     /* control type: deco, callback function: (none) */
#define  PANEL_DECORATION_5               102     /* control type: deco, callback function: (none) */
#define  PANEL_TEXTMSG_20                 103     /* control type: textMsg, callback function: (none) */
#define  PANEL_TEXTMSG_19                 104     /* control type: textMsg, callback function: (none) */
#define  PANEL_MATH4                      105     /* control type: string, callback function: (none) */
#define  PANEL_MATH5                      106     /* control type: string, callback function: (none) */
#define  PANEL_MATH3                      107     /* control type: string, callback function: (none) */
#define  PANEL_MATH2                      108     /* control type: string, callback function: (none) */
#define  PANEL_MATH1                      109     /* control type: string, callback function: (none) */
#define  PANEL_RECENTER_SR                110     /* control type: radioButton, callback function: CB_RecenterChannel */
#define  PANEL_RECENTER_HG                111     /* control type: radioButton, callback function: CB_RecenterChannel */
#define  PANEL_RECENTER_LO                112     /* control type: radioButton, callback function: CB_RecenterChannel */
#define  PANEL_ERROR                      113     /* control type: LED, callback function: CB_ShowError */


     /* Control Arrays: */

          /* (no control arrays in the resource file) */


     /* Menu Bars, Menus, and Menu Items: */

          /* (no menu bars in the resource file) */


     /* Callback Prototypes: */

int  CVICALLBACK CB_AdjustDDSFreq(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_BeatnoteSign(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ChangeDDSOut(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ChangeDDSStep(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ChangeMath(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ChangeN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ChangeSlopeTime(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_DedriftDDSFreq(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_InvertSlopeSign(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_MeasureSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnAcceptN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnAllanPlot(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnChangeNdiv(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnDedriftSettingsChange(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK cb_onEstimateN(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK cb_onEstimateNChange(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK cb_onEstimateNClose(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK cb_onEstimateNFrequency(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK cb_onEstimateNSet(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK cb_onEstimateNWaveleght(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnEventMain(int panel, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnFindSign(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnFreqPlot(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnLoggingPanelEvent(int panel, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnNCalculus(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnNStop(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnResetSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnSlopeReference(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnStart(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnStartNCalculus(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnStop(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_OnStopSlopeCancellingOnUnlocked(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_RecenterChannel(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_RecenterEnable(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_RecenterInterval(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_RecenterThreshold(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ResetDedriftDDS(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_SaveData(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_SetSlope(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ShowError(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_ShowLog(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK CB_SrDatalogger(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);
int  CVICALLBACK QuitCallback(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);


#ifdef __cplusplus
    }
#endif