Subversion Repositories f9daq

Compare Revisions

Ignore whitespace Rev 252 → Rev 253

/cvi/RedPitaya/soccli/redpitaya_gui.h
60,20 → 60,32
#define PANEL_NCH_2 45 /* control type: numeric, callback function: (none) */
#define PANEL_MAXX_6 46 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_6 47 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_5 48 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_5 49 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_1 50 /* control type: numeric, callback function: (none) */
#define PANEL_MINX_1 51 /* control type: numeric, callback function: (none) */
#define PANEL_NCH_1 52 /* control type: numeric, callback function: (none) */
#define PANEL_CONNECT 53 /* control type: textButton, callback function: StartCB */
#define PANEL_START 54 /* control type: textButton, callback function: StartCB */
#define PANEL_ADCTYPE 55 /* control type: binary, callback function: (none) */
#define PANEL_AUTOY 56 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_LOGY_4 57 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_LOGY_3 58 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_LOGY_2 59 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_LOGY_1 60 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_AUTOX 61 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_10 48 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_10 49 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_9 50 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_9 51 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_8 52 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_8 53 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_7 54 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_7 55 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_5 56 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_MINX_5 57 /* control type: numeric, callback function: SetGraphPropertiesCB */
#define PANEL_AUTOY_5 58 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_MAXX_1 59 /* control type: numeric, callback function: (none) */
#define PANEL_MINX_1 60 /* control type: numeric, callback function: (none) */
#define PANEL_AUTOY_4 61 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_NCH_1 62 /* control type: numeric, callback function: (none) */
#define PANEL_CONNECT 63 /* control type: textButton, callback function: StartCB */
#define PANEL_AUTOY_3 64 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_AUTOY_2 65 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_START 66 /* control type: textButton, callback function: StartCB */
#define PANEL_ADCTYPE 67 /* control type: binary, callback function: (none) */
#define PANEL_AUTOY 68 /* control type: radioButton, callback function: SetGraphPropertiesCB */
#define PANEL_LOGY_4 69 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_LOGY_3 70 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_LOGY_2 71 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_LOGY_1 72 /* control type: radioButton, callback function: SetGraphLogYCB */
#define PANEL_AUTOX 73 /* control type: radioButton, callback function: SetGraphPropertiesCB */
 
 
/* Control Arrays: */
/cvi/RedPitaya/soccli/redpitaya_gui.uir
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
/cvi/RedPitaya/soccli/soccli.c
178,8 → 178,42
SetAxisScalingMode (panelHandle, PANEL_GRAPH, VAL_BOTTOM_XAXIS, VAL_AUTOSCALE, min, max);
else
SetAxisScalingMode (panelHandle, PANEL_GRAPH, VAL_BOTTOM_XAXIS, VAL_MANUAL, min, max);
GetCtrlVal(panelHandle,PANEL_MINX_7, &min);
GetCtrlVal(panelHandle,PANEL_MAXX_7, &max);
GetCtrlVal(panelHandle,PANEL_AUTOY_2, &autoscale);
if (autoscale)
SetAxisScalingMode (panelHandle, PANEL_TDC1, VAL_LEFT_YAXIS, VAL_AUTOSCALE, min, max);
else
SetAxisScalingMode (panelHandle, PANEL_TDC1, VAL_LEFT_YAXIS, VAL_MANUAL, min, max);
GetCtrlVal(panelHandle,PANEL_MINX_8, &min);
GetCtrlVal(panelHandle,PANEL_MAXX_8, &max);
GetCtrlVal(panelHandle,PANEL_AUTOY_3, &autoscale);
if (autoscale)
SetAxisScalingMode (panelHandle, PANEL_ADC1, VAL_LEFT_YAXIS, VAL_AUTOSCALE, min, max);
else
SetAxisScalingMode (panelHandle, PANEL_ADC1, VAL_LEFT_YAXIS, VAL_MANUAL, min, max);
GetCtrlVal(panelHandle,PANEL_MINX_9, &min);
GetCtrlVal(panelHandle,PANEL_MAXX_9, &max);
GetCtrlVal(panelHandle,PANEL_AUTOY_4, &autoscale);
if (autoscale)
SetAxisScalingMode (panelHandle, PANEL_TDC2, VAL_LEFT_YAXIS, VAL_AUTOSCALE, min, max);
else
SetAxisScalingMode (panelHandle, PANEL_TDC2, VAL_LEFT_YAXIS, VAL_MANUAL, min, max);
 
GetCtrlVal(panelHandle,PANEL_MINX_10, &min);
GetCtrlVal(panelHandle,PANEL_MAXX_10, &max);
GetCtrlVal(panelHandle,PANEL_AUTOY_5, &autoscale);
if (autoscale)
SetAxisScalingMode (panelHandle, PANEL_ADC2, VAL_LEFT_YAXIS, VAL_AUTOSCALE, min, max);
else
SetAxisScalingMode (panelHandle, PANEL_ADC2, VAL_LEFT_YAXIS, VAL_MANUAL, min, max);
 
 
break;
}
return 0;