| /cvi/instr/DRS/drs4.c |
|---|
| 1,3 → 1,5 |
| #include "H1D.h" |
| #include "H2D.h" |
| #include <formatio.h> |
| #include <utility.h> |
| #include <ansi_c.h> |
| 14,6 → 16,7 |
| static int daq_on; |
| static int ph, p2,plothandle[4]= {0,0,0,0}; |
| static int scanplothandle; |
| static int tfID; |
| static int controlID; |
| 21,6 → 24,7 |
| static CmtThreadPoolHandle poolHandle = 0; |
| static float gSum[4]={0,0,0,0}; |
| int main (int argc, char *argv[]) { |
| short port; |
| if (InitCVIRTE (0, argv, 0) == 0) |
| 101,6 → 105,7 |
| } |
| static float xs[4][1024]; |
| int CVICALLBACK daq(void *functionData) { |
| 121,8 → 126,9 |
| int neveold = 0; |
| double rate; |
| int *args = (int *) functionData; |
| double twin[2]; |
| GetCtrlVal(ph, PANEL_FILENAME, filename ); |
| GetCtrlVal(ph, PANEL_CH0, &imask[0] ); |
| GetCtrlVal(ph, PANEL_CH1, &imask[1] ); |
| GetCtrlVal(ph, PANEL_CH2, &imask[2] ); |
| 146,7 → 152,8 |
| GetCtrlVal(ph,PANEL_TRGPOLARITY, &trgpolarity); |
| GetCtrlVal(ph,PANEL_RANGE, &range); |
| GetCtrlVal(ph,PANEL_TWIN0, &twin[0]); |
| GetCtrlVal(ph,PANEL_TWIN1, &twin[1]); |
| //printf("mask=0x%x\n",mask); |
| DRSSetMask( (unsigned char)( mask & 0xF ) ); |
| 165,8 → 172,13 |
| FILE *fp= NULL; |
| if (enabledoutput) { |
| if (args[0]) fp = fopen(filename,"wb"); |
| else fp = fopen(filename,"ab"); |
| if (args[0]) { |
| GetCtrlVal(ph, PANEL_FILENAME, filename ); |
| fp = fopen(filename,"wb"); |
| } else { |
| GetCtrlVal(p2, SCAN_FILENAME, filename ); |
| fp = fopen(filename,"ab"); |
| } |
| } |
| static unsigned char *buffer; |
| 187,8 → 199,11 |
| if (!DRSInit()) { |
| time(&tstart); |
| told=tstart; |
| int i=0; |
| for (i=0; i<neve; i++) { |
| int nev=0; |
| for (int k = 0;k<4;k++){ |
| gSum[k]=0; |
| } |
| for (int i=0; i<neve; i++) { |
| start_timer(1);// 1 s timeout |
| int retval = DRSRead(0); |
| stop_timer(); |
| 195,6 → 210,7 |
| int nb = ( retval == 0 && fp ) ? DRSToBuffer( buffer , i ) : 0; |
| SetCtrlVal(ph,PANEL_CEVE,i); |
| if (retval) i--; |
| nev++; |
| if (!daq_on) break; |
| time(&t); |
| if (t!=told ) { |
| 207,25 → 223,33 |
| // Save data |
| if (nb>0 && fp) fwrite(buffer, 1,nb ,fp); |
| // Plot Data |
| if (i % pfreq == 0) for (int k=0; k<4; k++) { |
| if (! (mask & ( 0x1<<k )) ) continue; |
| float *t=DRSGetTime(k); |
| float *x=DRSGetWave(k); |
| for (int k=0; k<4; k++) { |
| if ( (mask & ( 0x1<<k )) ){ |
| float *t=DRSGetTime(k); |
| float *x=DRSGetWave(k); |
| ; |
| for (int j=0 ; j<1024 ; j++) { |
| xs[k][j]= x[j]*1e-3; |
| if (t[j]> twin[0] && t[j] < twin[1]) gSum[k]+= fabs(xs[k][j]); |
| if (verbose) printf("[%d] %d. x= %3.2f y=%3.2f\n", k, i, t[j], x[j] ); |
| //h[k]->Fill( t[i], x[i]*1e-3); |
| } |
| const int col[4]= {VAL_WHITE,VAL_RED,VAL_GREEN,VAL_BLUE}; |
| if (plothandle[k]) DeleteGraphPlot (ph, PANEL_GRAPH, plothandle[k], VAL_IMMEDIATE_DRAW); |
| plothandle[k] = PlotXY (ph, PANEL_GRAPH, t, x, 1024, VAL_FLOAT, VAL_FLOAT, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[k]); |
| for (int i=0 ; i<1024 ; i++) { |
| if (verbose) printf("[%d] %d. x= %3.2f y=%3.2f\n", k, i, t[i], x[i] ); |
| //h[k]->Fill( t[i], x[i]*1e-3); |
| if (i % pfreq == 0) { |
| const int col[4]= {VAL_WHITE,VAL_RED,VAL_GREEN,VAL_BLUE}; |
| if (plothandle[k]) DeleteGraphPlot (ph, PANEL_GRAPH, plothandle[k], VAL_IMMEDIATE_DRAW); |
| plothandle[k] = PlotXY (ph, PANEL_GRAPH, t, xs[k], 1024, VAL_FLOAT, VAL_FLOAT, VAL_THIN_LINE, VAL_NO_POINT, VAL_SOLID, 1, col[k]); |
| } |
| } |
| } |
| } |
| time(&t); |
| printf("%d events in %2.2f min (%d s) %s",i+1, (double)(t-tstart)/60.,t-tstart, ctime(&t)); |
| printf("%d events in %2.2f min (%d s) %s",nev, (double)(t-tstart)/60.,t-tstart, ctime(&t)); |
| DRSEnd(); |
| } |
| 255,13 → 279,13 |
| int enabledoutput; |
| FILE *fp; |
| GetCtrlVal(ph, PANEL_FILENAME, filename ); |
| GetCtrlVal(p2, SCAN_FILENAME, filename ); |
| GetCtrlVal(ph,PANEL_ENABLEDOUTPUT, &enabledoutput); |
| if ( GetFileInfo(filename,&size) ) { |
| MessagePopup ("Warning", "File exist. Remove it first or choose another file"); |
| return 0; |
| MessagePopup ("Warning","File exist. Remove it first or choose another file"); |
| return 0; |
| } |
| GetCtrlVal(p2, SCAN_STEPX, &dx[0]); |
| GetCtrlVal(p2, SCAN_STEPY, &dx[1]); |
| 269,8 → 293,15 |
| GetCtrlVal(p2, SCAN_NSTEPSY, &nx[1]); |
| GetCtrlVal(p2, SCAN_STARTX, &x0[0]); |
| GetCtrlVal(p2, SCAN_STARTY, &x0[1]); |
| for (int k=0;k<4;k++) { |
| H2D_Init(k, "charge","Induced charge", |
| nx[0], x0[0] - dx[0]*0.5 ,x0[0] + dx[0] * ( nx[0] - 0.5) , |
| nx[1], x0[1] - dx[1]*0.5 ,x0[1] + dx[1] * ( nx[1] - 0.5)); |
| H1D_Init(k, "charge","Induced charge projection x", |
| nx[0], x0[0] - dx[0]*0.5 ,x0[0] + dx[0] * ( nx[0] - 0.5) ); |
| H1D_Init(100 + k, "charge","Induced charge projection y", |
| nx[1], x0[1] - dx[1]*0.5 ,x0[1] + dx[1] * ( nx[1] - 0.5) ); |
| } |
| if (enabledoutput) { |
| fp = fopen(filename,"ab"); |
| if (fp) { |
| 320,6 → 351,13 |
| #endif |
| daq(functionData); |
| for (int k=0;k<4;k++) { |
| H2D_Fill(k, ix[0], ix[1] , gSum[k] ); |
| H1D_Fill(k, ix[0] , gSum[k] ); |
| H1D_Fill(100+ k, ix[1] , gSum[k] ); |
| } |
| PlotScanHistogramCB(0,0,EVENT_COMMIT,NULL, 0,0); |
| if (!daq_on) break; |
| } |
| if (!daq_on) break; |
| 490,3 → 528,42 |
| } |
| return 0; |
| } |
| int CVICALLBACK PlotScanHistogramCB (int panel, int control, int event, |
| void *callbackData, int eventData1, int eventData2) { |
| int hid=0; |
| int nx; |
| int ny; |
| switch (event) { |
| case EVENT_COMMIT: |
| GetCtrlVal (p2, SCAN_CHANNEL, &hid); |
| GetCtrlVal(p2, SCAN_NSTEPSX, &nx); |
| GetCtrlVal(p2, SCAN_NSTEPSY, &ny); |
| if (nx>1 && ny>1) { |
| H2D_Draw(hid,p2,SCAN_GRAPH,&scanplothandle); |
| printf("redraw 2d\n"); |
| } else { |
| if (nx>1) { |
| printf("redraw 1d x\n"); |
| H1D_Draw(hid,p2,SCAN_GRAPH,&scanplothandle); |
| } |
| if (ny>1) { |
| printf("redraw 1d x\n"); |
| H1D_Draw(100+hid,p2,SCAN_GRAPH,&scanplothandle); |
| } |
| } |
| break; |
| } |
| return 0; |
| } |
| int CVICALLBACK OpenGuiCB (int panel, int control, int event, |
| void *callbackData, int eventData1, int eventData2) { |
| switch (event) { |
| case EVENT_COMMIT: |
| DisplayPanel (ph); |
| DisplayPanel (p2); |
| break; |
| } |
| return 0; |
| } |
| /cvi/instr/DRS/drs4.cws |
|---|
| 30,7 → 30,7 |
| Hide Windows = False |
| Break At First Statement = False |
| Sort Type = "File Name" |
| Number of Opened Files = 9 |
| Number of Opened Files = 13 |
| Window Confinement Region Enabled = True |
| MainColumnWidth = 263 |
| FileDateColumnWidth = 70 |
| 46,25 → 46,47 |
| Batch Build Debug = False |
| [File 0001] |
| Path = "/c/home/cvi/instr/HISTO/H1D.fp" |
| File Type = "Function Panel" |
| Disk Date = 3568264729 |
| In Projects = "1," |
| [File 0002] |
| Path = "/c/home/cvi/instr/HISTO/H2D.fp" |
| File Type = "Function Panel" |
| Disk Date = 3568264729 |
| In Projects = "1," |
| [File 0003] |
| Path = "/c/home/cvi/instr/MIKRO/MIKRO.fp" |
| File Type = "Function Panel" |
| Disk Date = 3555477334 |
| In Projects = "1," |
| [File 0002] |
| [File 0004] |
| Path = "/c/Users/f9daq/Downloads/NativeExportsSample/NativeExportsConsumerApp/AitGui.c" |
| File Type = "CSource" |
| Disk Date = 3568700454 |
| In Projects = "" |
| Window Top = 33 |
| Window Left = 10 |
| Window Z-Order = 9 |
| Source Window State = "1,249,249,249,1,65,1,0,3,68,0,0,0,0,0,25,225,0,249,65,349,587,1,0," |
| [File 0005] |
| Path = "/c/home/dania/mcppmt/drs/TwoGaussian.C" |
| File Type = "CSource" |
| Disk Date = 3568017843 |
| Disk Date = 3568644096 |
| In Projects = "" |
| Window Top = 33 |
| Window Left = 10 |
| Window Z-Order = 5 |
| Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,0,0,0,0,349,683,1,0," |
| Window Z-Order = 8 |
| Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,0,0,10,14,349,683,1,0," |
| [File 0003] |
| [File 0006] |
| Path = "/c/home/rok/DRS/drs4.uir" |
| File Type = "User Interface Resource" |
| Disk Date = 3568263468 |
| Disk Date = 3568889201 |
| In Projects = "1," |
| Window Top = 132 |
| Window Left = 49 |
| 72,17 → 94,17 |
| Window Width = 811 |
| Window Z-Order = 1 |
| [File 0004] |
| [File 0007] |
| Path = "/c/home/rok/DRS/drs4.c" |
| File Type = "CSource" |
| Disk Date = 3568263380 |
| Disk Date = 3568889199 |
| In Projects = "1," |
| Window Top = 396 |
| Window Left = 247 |
| Window Z-Order = 3 |
| Source Window State = "1,289,289,289,13,19,13,0,0,80,0,3,0,3,0,25,48,0,66,20,349,683,1,0," |
| Source Window State = "1,39,40,39,2,22,2,0,0,80,0,5,0,5,0,25,522,0,564,6,349,683,1,0," |
| [File 0005] |
| [File 0008] |
| Path = "/c/home/cvi/instr/MIKRO/MIKRO.c" |
| File Type = "CSource" |
| Disk Date = 3555477334 |
| 89,10 → 111,10 |
| In Projects = "" |
| Window Top = 396 |
| Window Left = 202 |
| Window Z-Order = 7 |
| Window Z-Order = 12 |
| Source Window State = "1,367,368,368,0,0,0,0,3,80,0,0,0,0,0,25,339,0,367,20,349,683,1,0," |
| [File 0006] |
| [File 0009] |
| Path = "/c/home/cvi/instr/MIKRO/MIKRO_ui.uir" |
| File Type = "User Interface Resource" |
| Disk Date = 3558584602 |
| 101,12 → 123,12 |
| Window Left = 90 |
| Window Height = 349 |
| Window Width = 683 |
| Window Z-Order = 6 |
| Window Z-Order = 13 |
| [File 0007] |
| [File 0010] |
| Path = "/c/home/rok/DRS/drs4.h" |
| File Type = "Include" |
| Disk Date = 3568263468 |
| Disk Date = 3568889201 |
| In Projects = "" |
| Window Top = 157 |
| Window Left = 74 |
| 113,7 → 135,7 |
| Window Z-Order = 2 |
| Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,62,0,75,17,349,683,1,0," |
| [File 0008] |
| [File 0011] |
| Path = "/c/home/git/arich/daq/sa02_daq/cvi/sa02_CVI.c" |
| File Type = "CSource" |
| Disk Date = 3556593867 |
| 120,10 → 142,10 |
| In Projects = "" |
| Window Top = 188 |
| Window Left = 90 |
| Window Z-Order = 8 |
| Window Z-Order = 11 |
| Source Window State = "1,4397,4397,4397,10,89,10,0,3,80,0,0,0,0,0,25,4378,0,4397,89,349,683,1,0," |
| [File 0009] |
| [File 0012] |
| Path = "/c/home/git/arich/daq/sa02_daq/sa02lib.c" |
| File Type = "CSource" |
| Disk Date = 3556593867 |
| 130,35 → 152,69 |
| In Projects = "" |
| Window Top = 33 |
| Window Left = 10 |
| Window Z-Order = 9 |
| Window Z-Order = 10 |
| Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,0,0,26,39,349,683,1,0," |
| [File 0010] |
| [File 0013] |
| Path = "/c/home/cvi/instr/HISTO/H2D.c" |
| File Type = "CSource" |
| Disk Date = 3568370246 |
| In Projects = "" |
| Window Top = 188 |
| Window Left = 90 |
| Window Z-Order = 7 |
| Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,25,204,0,212,22,349,683,1,0," |
| [File 0014] |
| Path = "/c/home/rok/DRS/drsread.lib" |
| File Type = "Library" |
| Disk Date = 3567673573 |
| In Projects = "1," |
| [File 0011] |
| Path = "/c/Users/f9daq/Downloads/NativeExportsSample/NativeExportsConsumerApp/AitGui.c" |
| [File 0015] |
| Path = "/c/home/cvi/instr/HISTO/H1D.c" |
| File Type = "CSource" |
| Disk Date = 3568180675 |
| Disk Date = 3568878487 |
| In Projects = "" |
| Window Top = 33 |
| Window Left = 10 |
| Window Top = 64 |
| Window Left = 26 |
| Window Z-Order = 6 |
| Source Window State = "1,272,272,272,55,78,55,0,0,80,0,0,0,0,0,25,235,0,272,80,349,683,1,0," |
| [File 0016] |
| Path = "/c/home/cvi/instr/HISTO/H1D.h" |
| File Type = "Include" |
| Disk Date = 3568264728 |
| In Projects = "" |
| Window Top = 188 |
| Window Left = 90 |
| Window Z-Order = 5 |
| Source Window State = "1,68,68,68,17,28,28,0,3,80,0,0,0,0,0,25,31,0,68,17,349,683,1,0," |
| [File 0017] |
| Path = "/c/home/rok/DRS/drsread.h" |
| File Type = "Include" |
| Disk Date = 3566543748 |
| In Projects = "" |
| Window Top = 126 |
| Window Left = 58 |
| Window Z-Order = 4 |
| Source Window State = "1,36,56,36,0,26,0,0,3,80,0,0,0,0,0,25,9,0,56,26,349,683,1,0," |
| Source Window State = "1,18,18,18,18,28,28,0,0,80,0,0,0,0,0,25,0,0,31,6,349,683,1,0," |
| [Tab Order] |
| Tab 0001 = "/c/home/dania/mcppmt/drs/TwoGaussian.C" |
| Tab 0002 = "/c/home/rok/DRS/drs4.uir" |
| Tab 0003 = "/c/home/rok/DRS/drs4.c" |
| Tab 0004 = "/c/home/cvi/instr/MIKRO/MIKRO_ui.uir" |
| Tab 0005 = "/c/home/cvi/instr/MIKRO/MIKRO.c" |
| Tab 0006 = "/c/home/git/arich/daq/sa02_daq/cvi/sa02_CVI.c" |
| Tab 0007 = "/c/home/git/arich/daq/sa02_daq/sa02lib.c" |
| Tab 0008 = "/c/Users/f9daq/Downloads/NativeExportsSample/NativeExportsConsumerApp/AitGui.c" |
| Tab 0009 = "/c/home/rok/DRS/drs4.h" |
| Tab 0001 = "/c/home/rok/DRS/drs4.uir" |
| Tab 0002 = "/c/home/rok/DRS/drs4.c" |
| Tab 0003 = "/c/home/cvi/instr/MIKRO/MIKRO_ui.uir" |
| Tab 0004 = "/c/home/cvi/instr/MIKRO/MIKRO.c" |
| Tab 0005 = "/c/home/git/arich/daq/sa02_daq/cvi/sa02_CVI.c" |
| Tab 0006 = "/c/home/git/arich/daq/sa02_daq/sa02lib.c" |
| Tab 0007 = "/c/Users/f9daq/Downloads/NativeExportsSample/NativeExportsConsumerApp/AitGui.c" |
| Tab 0008 = "/c/home/dania/mcppmt/drs/TwoGaussian.C" |
| Tab 0009 = "/c/home/cvi/instr/HISTO/H2D.c" |
| Tab 0010 = "/c/home/cvi/instr/HISTO/H1D.c" |
| Tab 0011 = "/c/home/cvi/instr/HISTO/H1D.h" |
| Tab 0012 = "/c/home/rok/DRS/drsread.h" |
| Tab 0013 = "/c/home/rok/DRS/drs4.h" |
| [Default Build Config 0001 Debug] |
| Generate Browse Info = True |
| /cvi/instr/DRS/drs4.h |
|---|
| 14,54 → 14,61 |
| /* Panels and Controls: */ |
| #define PANEL 1 |
| #define PANEL_EXIT 2 /* control type: command, callback function: ExitCB */ |
| #define PANEL_STOP 3 /* control type: command, callback function: StopCB */ |
| #define PANEL_START 4 /* control type: command, callback function: StartCB */ |
| #define PANEL_FILENAME 5 /* control type: string, callback function: (none) */ |
| #define PANEL_TIMER 6 /* control type: timer, callback function: (none) */ |
| #define PANEL_TRGLEVEL 7 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGDELAY 8 /* control type: numeric, callback function: (none) */ |
| #define PANEL_RANGE 9 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGCHANNEL 10 /* control type: numeric, callback function: (none) */ |
| #define PANEL_PFREQ 11 /* control type: numeric, callback function: (none) */ |
| #define PANEL_FREQUENCY 12 /* control type: numeric, callback function: (none) */ |
| #define PANEL_NEVE 13 /* control type: numeric, callback function: (none) */ |
| #define PANEL_CEVE 14 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGTYPE 15 /* control type: ring, callback function: (none) */ |
| #define PANEL_ENABLEDOUTPUT 16 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_DEBUG 17 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_CH3 18 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_CH2 19 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_CH1 20 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_GRAPH 21 /* control type: graph, callback function: (none) */ |
| #define PANEL_CH0 22 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_TRGPOLARITY 23 /* control type: binary, callback function: (none) */ |
| #define PANEL_TEXTMSG 24 /* control type: textMsg, callback function: (none) */ |
| #define PANEL_STDIO 25 /* control type: textBox, callback function: (none) */ |
| #define PANEL_OPENGUI 2 /* control type: command, callback function: OpenGuiCB */ |
| #define PANEL_EXIT 3 /* control type: command, callback function: ExitCB */ |
| #define PANEL_STOP 4 /* control type: command, callback function: StopCB */ |
| #define PANEL_START 5 /* control type: command, callback function: StartCB */ |
| #define PANEL_FILENAME 6 /* control type: string, callback function: (none) */ |
| #define PANEL_TIMER 7 /* control type: timer, callback function: (none) */ |
| #define PANEL_TWIN1 8 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TWIN0 9 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGLEVEL 10 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGDELAY 11 /* control type: numeric, callback function: (none) */ |
| #define PANEL_RANGE 12 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGCHANNEL 13 /* control type: numeric, callback function: (none) */ |
| #define PANEL_PFREQ 14 /* control type: numeric, callback function: (none) */ |
| #define PANEL_FREQUENCY 15 /* control type: numeric, callback function: (none) */ |
| #define PANEL_NEVE 16 /* control type: numeric, callback function: (none) */ |
| #define PANEL_CEVE 17 /* control type: numeric, callback function: (none) */ |
| #define PANEL_TRGTYPE 18 /* control type: ring, callback function: (none) */ |
| #define PANEL_ENABLEDOUTPUT 19 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_DEBUG 20 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_CH3 21 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_CH2 22 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_CH1 23 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_GRAPH 24 /* control type: graph, callback function: (none) */ |
| #define PANEL_CH0 25 /* control type: radioButton, callback function: (none) */ |
| #define PANEL_TRGPOLARITY 26 /* control type: binary, callback function: (none) */ |
| #define PANEL_TEXTMSG 27 /* control type: textMsg, callback function: (none) */ |
| #define PANEL_STDIO 28 /* control type: textBox, callback function: (none) */ |
| #define SCAN 2 |
| #define SCAN_BD 2 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_BR 3 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_GETPOSITION 4 /* control type: command, callback function: GetCurrentPositionCB */ |
| #define SCAN_SCAN 5 /* control type: command, callback function: StartCB */ |
| #define SCAN_BU 6 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_HO 7 /* control type: command, callback function: HomeCB */ |
| #define SCAN_BL 8 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_XG 9 /* control type: numeric, callback function: (none) */ |
| #define SCAN_YG 10 /* control type: numeric, callback function: (none) */ |
| #define SCAN_IX 11 /* control type: numeric, callback function: (none) */ |
| #define SCAN_IY 12 /* control type: numeric, callback function: (none) */ |
| #define SCAN_NSTEPSX 13 /* control type: numeric, callback function: (none) */ |
| #define SCAN_NSTEPSY 14 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STEPX 15 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STEPY 16 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STARTX 17 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STARTY 18 /* control type: numeric, callback function: (none) */ |
| #define SCAN_XP 19 /* control type: numeric, callback function: (none) */ |
| #define SCAN_YP 20 /* control type: numeric, callback function: (none) */ |
| #define SCAN_GY 21 /* control type: command, callback function: GoYCB */ |
| #define SCAN_GX 22 /* control type: command, callback function: GoXCB */ |
| #define SCAN_PORT 23 /* control type: numeric, callback function: (none) */ |
| #define SCAN_OPENGUI 2 /* control type: command, callback function: OpenGuiCB */ |
| #define SCAN_BD 3 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_BR 4 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_GETPOSITION 5 /* control type: command, callback function: GetCurrentPositionCB */ |
| #define SCAN_FILENAME 6 /* control type: string, callback function: (none) */ |
| #define SCAN_SCAN 7 /* control type: command, callback function: StartCB */ |
| #define SCAN_BU 8 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_HO 9 /* control type: command, callback function: HomeCB */ |
| #define SCAN_BL 10 /* control type: command, callback function: MoveStageCB */ |
| #define SCAN_XG 11 /* control type: numeric, callback function: (none) */ |
| #define SCAN_YG 12 /* control type: numeric, callback function: (none) */ |
| #define SCAN_IX 13 /* control type: numeric, callback function: (none) */ |
| #define SCAN_IY 14 /* control type: numeric, callback function: (none) */ |
| #define SCAN_NSTEPSX 15 /* control type: numeric, callback function: (none) */ |
| #define SCAN_NSTEPSY 16 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STEPX 17 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STEPY 18 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STARTX 19 /* control type: numeric, callback function: (none) */ |
| #define SCAN_STARTY 20 /* control type: numeric, callback function: (none) */ |
| #define SCAN_XP 21 /* control type: numeric, callback function: (none) */ |
| #define SCAN_YP 22 /* control type: numeric, callback function: (none) */ |
| #define SCAN_GRAPH 23 /* control type: graph, callback function: (none) */ |
| #define SCAN_GY 24 /* control type: command, callback function: GoYCB */ |
| #define SCAN_GX 25 /* control type: command, callback function: GoXCB */ |
| #define SCAN_PORT 26 /* control type: numeric, callback function: (none) */ |
| #define SCAN_CHANNEL 27 /* control type: numeric, callback function: PlotScanHistogramCB */ |
| /* Control Arrays: */ |
| 82,6 → 89,8 |
| int CVICALLBACK GoYCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| int CVICALLBACK HomeCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| int CVICALLBACK MoveStageCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| int CVICALLBACK OpenGuiCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| int CVICALLBACK PlotScanHistogramCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| int CVICALLBACK StartCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| int CVICALLBACK StopCB(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
| /cvi/instr/DRS/drs4.prj |
|---|
| 9,7 → 9,7 |
| VXIplug&play Framework Dir = "/C/Program Files/IVI Foundation/VISA/winnt" |
| IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" |
| VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" |
| Number of Files = 4 |
| Number of Files = 6 |
| Target Type = "Executable" |
| Flags = 2064 |
| Copied From Locked InstrDrv Directory = False |
| 70,6 → 70,30 |
| Res Id = 4 |
| Path Is Rel = True |
| Path Rel To = "Project" |
| Path Rel Path = "../../cvi/instr/HISTO/H1D.fp" |
| Path = "/c/home/cvi/instr/HISTO/H1D.fp" |
| Exclude = False |
| Project Flags = 0 |
| Folder = "Instrument Files" |
| Folder Id = 3 |
| [File 0005] |
| File Type = "Function Panel" |
| Res Id = 5 |
| Path Is Rel = True |
| Path Rel To = "Project" |
| Path Rel Path = "../../cvi/instr/HISTO/H2D.fp" |
| Path = "/c/home/cvi/instr/HISTO/H2D.fp" |
| Exclude = False |
| Project Flags = 0 |
| Folder = "Instrument Files" |
| Folder Id = 3 |
| [File 0006] |
| File Type = "Function Panel" |
| Res Id = 6 |
| Path Is Rel = True |
| Path Rel To = "Project" |
| Path Rel Path = "../../cvi/instr/MIKRO/MIKRO.fp" |
| Path = "/c/home/cvi/instr/MIKRO/MIKRO.fp" |
| Exclude = False |
| /cvi/instr/DRS/drs4.uir |
|---|
| Cannot display: file marked as a binary type. |
| svn:mime-type = application/octet-stream |