/Samo/l2d/camac.h |
---|
0,0 → 1,14 |
#define BCNAF(B,C,N,A,F) 0x800000+(B)*0x80000+(C)*0x10000+(N)*0x800+(A)*0x80+(F)*0x4 |
#define NAF(N,A,F) 0x810002+(N)*0x800+(A)*0x80+(F)*0x4 |
#define BRF(F) 0x80E802+(F)*0x4 |
#define CSSA_R(N,A,F,DATA) VME_A24D16_R((NAF((N),(A),(F))),(DATA)) |
#define CSSA_W(N,A,F,DATA) VME_A24D16_W((NAF((N),(A),(F))),(DATA)) |
#define CSR(DATA) VME_A24D16_R((BRF(0)),(DATA)) |
#define BZ(DATA) VME_A24D16_W((BRF(9)),(DATA)) |
#define CCCZ(DATA) CSSA_R(28,8,26,(DATA)) |
#define CCCC(DATA) CSSA_R(28,9,26,(DATA)) |
#define CSET_I(DATA) CSSA_R(30,9,26,(DATA)) |
#define CREM_I(DATA) CSSA_R(30,9,24,(DATA)) |
/Samo/l2d/l2d.c |
---|
0,0 → 1,558 |
/* Program l2d.c za testiranje povrsinske obcutljivosti |
Avtor: Samo Korpar |
Verzija: |
1.00 3.5.2007 |
- |
*/ |
//#define USE_DAQ |
//#define USE_MIKRO |
// Izberi ustrezni interface v meniju projektnega okna |
// Options->CompilerDefines (dodaj /DSISVME ali /DWIENVME) |
#ifdef USE_DAQ |
# define USE_CAMAC |
# include "camac.h" |
# ifdef SISVME |
# include "sisvme_dll.h" |
# endif |
# ifdef WIENVME |
# include "wienvme_dll.h" |
# endif |
# include "CAENV965.h" |
#endif |
#ifdef USE_MIKRO |
# include "MIKRO.h" |
#endif |
#include <userint.h> |
#include <ansi_c.h> |
#include <utility.h> |
#include <analysis.h> |
#include "l2d_ui.h" |
#ifdef USE_DAQ |
//# define VTDC_ADDR 0x330000 |
# define VADC_ADDR 0x340000 |
//# define VTDC 0 |
# define VADC 1 |
//# define IO1_ADDR 0x100200 |
//# define NTDCP 20 |
# define NTDCJ 18 |
# define NGL 23 |
#endif |
#ifdef USE_MIKRO |
# define MIKRO_COM 3 |
#endif |
#define MAXCH 0x1000 |
#define MAX_THREADS 10 |
#define IWAIT 200 |
# define NCH 8 |
static int p1h, pID, rID, tfID; |
static int ph_tdc, ph_adc; |
static int dtdc[NCH][2][MAXCH]; |
static int dadc[NCH][2][MAXCH]; |
static int daq_on; |
static int poolHandle = 0; |
static int ntics,dummy; |
// 0 1 2 3 4 5 6 7 8 9 A B C D E F |
static int tdcmap[16]={ 0, 1, 2, 3, 4, 5, 6, 7,99,99,99,99,99,99,99,99}; |
static int adcmap[16]={99,99,99,99,99,99,99,99, 0, 1, 2, 3, 4, 5, 6, 7}; |
static int ctdcmap[16]={ 0, 1, 2, 3, 4, 5, 6, 7,99,99,99,99,99,99,99,99}; |
/************************************************************/ |
void wait_loop(unsigned long iloop) |
{ |
int i; |
for (i=0;i<iloop;i++); |
return; |
} |
int CVICALLBACK cb_timer (int panel, int control, int event, void *callbackData, |
int eventData1, int eventData2) |
{ |
QueueUserEvent (9000, p1h, P1_TIMER); |
return (0); |
} |
int update_plots (void) |
{ |
int irange, ch; |
GetCtrlVal (p1h, P1_PLCH, &ch); |
if (ph_tdc>0) DeleteGraphPlot (p1h, P1_TDC, ph_tdc, VAL_DELAYED_DRAW); |
GetCtrlVal (p1h, P1_TDCHL, &irange); |
ph_tdc = PlotY (p1h, P1_TDC, &dtdc[ch][irange], MAXCH, VAL_INTEGER, |
VAL_VERTICAL_BAR, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_RED); |
if (ph_adc>0) DeleteGraphPlot (p1h, P1_ADC, ph_adc, VAL_DELAYED_DRAW); |
GetCtrlVal (p1h, P1_ADCHL, &irange); |
ph_adc = PlotY (p1h, P1_ADC, &dadc[ch][irange], MAXCH, VAL_INTEGER, |
VAL_VERTICAL_BAR, VAL_EMPTY_SQUARE, VAL_SOLID, 1, VAL_BLUE); |
return (0); |
} |
int CVICALLBACK daq_run(void *functionData) |
{ |
int i,j; |
int ndat,dtype,ch,rg,adc,cres; |
unsigned long a,b,ec1,ec2; |
unsigned long data[100]; |
unsigned short aa[NCH][4]; |
int dsave,status,fmax,fcount,fev; |
char dfile[MAX_PATHNAME_LEN],dfile0[MAX_PATHNAME_LEN]; |
int supr0,tdcmin,fseed,esave; |
float frac; |
double fracg; |
FILE *fp; |
#define RUNREC_ID 1 |
#define ENDREC_ID 2 |
#define POSREC_ID 3 |
#define EVTREC_ID 4 |
typedef struct { |
unsigned long id,len; |
unsigned long fver,time; |
unsigned long nev,nch,ped,xy; |
long nx,x0,dx,ny,y0,dy; |
} RUNREC; |
RUNREC runrec; |
typedef struct { |
unsigned long id,len; |
unsigned long time; |
} ENDREC; |
ENDREC endrec; |
typedef struct { |
unsigned long id,len; |
unsigned long time; |
long ix,x,xset,iy,y,yset; |
} POSREC; |
POSREC posrec; |
typedef struct { |
unsigned long id,len; |
unsigned long nev; |
unsigned short data[NCH*2]; |
} EVTREC; |
EVTREC evtrec; |
runrec.id = RUNREC_ID; |
runrec.len = sizeof(runrec); |
runrec.fver = 0x10000; |
runrec.nch = NCH; |
runrec.xy = 1; |
endrec.id = ENDREC_ID; |
endrec.len = sizeof(endrec); |
posrec.id = POSREC_ID; |
posrec.len = sizeof(posrec); |
evtrec.id = EVTREC_ID; |
evtrec.len = sizeof(evtrec); |
cres = 0; |
GetCtrlVal (p1h, P1_NEVE, &runrec.nev); |
GetCtrlVal (p1h, P1_PEDESTAL, &runrec.ped); |
GetCtrlVal (p1h, P1_NX, &runrec.nx); |
GetCtrlVal (p1h, P1_XSTEP, &runrec.dx); |
GetCtrlVal (p1h, P1_XMIN, &runrec.x0); |
GetCtrlVal (p1h, P1_NY, &runrec.ny); |
GetCtrlVal (p1h, P1_YSTEP, &runrec.dy); |
GetCtrlVal (p1h, P1_YMIN, &runrec.y0); |
GetCtrlVal (p1h, P1_DSAVE, &dsave); |
if (dsave) { |
GetCtrlVal (p1h, P1_DFILE, dfile0); |
fev=0; |
fcount=1; |
GetCtrlVal (p1h, P1_NEWF, &fmax); |
} |
GetCtrlVal (p1h, P1_SUPR, &supr0); |
if (supr0) { |
GetCtrlVal (p1h, P1_TDCMIN, &tdcmin); |
GetCtrlVal (p1h, P1_FRAC, &frac); |
} |
#ifdef USE_DAQ |
// V965_map (VTDC, VTDC_ADDR, 1); |
// V965_init (VTDC, pedestal); |
V965_map (VADC, VADC_ADDR, 1); |
V965_init (VADC, runrec.ped); |
# ifdef USE_CAMAC |
BZ(&cres); |
CCCZ(&cres); |
CCCC(&cres); |
CREM_I(&cres); |
CSSA_R(NGL,0,25,&cres); |
Delay(0.01); |
# ifdef NTDCJ |
CSSA_R(NTDCJ,0,9,&cres); |
printf("CSSA_R(NTDCJ,0,9,&cres)=0x%0x\n", cres); |
CSSA_R(NTDCJ,0,26,&cres); |
printf("CSSA_R(NTDCJ,0,26,&cres)=0x%0x\n", cres); |
# endif |
# ifdef NTDCP |
CSSA_R(NTDCP,0,9,&cres); |
CSSA_R(NTDCP,0,11,&cres); |
CSSA_R(NTDCP,0,26,&cres); |
printf("CSSA_R(NTDCP,0,26,&cres)=0x%0x\n", cres); |
# endif |
# endif |
#endif |
if (dsave) { |
sprintf(dfile,"%s_file%02d.dat",dfile0,fcount); |
fp = fopen (dfile, "wb"); |
time (&runrec.time); |
status = fwrite (&runrec, 1, runrec.len, fp); |
} |
if (supr0) { |
fseed = runrec.time & 0x7fffffff; |
Uniform (1, fseed, &fracg); |
} |
for (posrec.ix=0;posrec.ix<runrec.nx;posrec.ix++) { |
posrec.xset=runrec.x0+posrec.ix*runrec.dx; |
#ifdef USE_MIKRO |
// printf("MIKRO_MoveTo (1, x);%d\n",x); |
MIKRO_MoveTo (1, posrec.xset); |
// printf("->MIKRO_MoveTo (1, x);%d\n",x); |
#endif |
SetCtrlVal (p1h, P1_X, posrec.xset); |
SetCtrlVal (p1h, P1_IX, posrec.ix); |
for (posrec.iy=0;posrec.iy<runrec.ny;posrec.iy++) { |
posrec.yset=runrec.y0+posrec.iy*runrec.dy; |
#ifdef USE_MIKRO |
// printf("MIKRO_MoveTo (2, y);%d\n",y); |
MIKRO_MoveTo (2, posrec.yset); |
// printf("->MIKRO_MoveTo (2, y);%d\n",y); |
#endif |
SetCtrlVal (p1h, P1_Y, posrec.yset); |
SetCtrlVal (p1h, P1_IY, posrec.iy); |
if (dsave) { |
time (&posrec.time); |
status = fwrite (&posrec, 1, posrec.len, fp); |
} |
// clear the plots |
for (j=0;j<NCH;j++) { |
for (i=0;i<MAXCH;i++){ |
dtdc[j][0][i]=0; |
dtdc[j][1][i]=0; |
dadc[j][0][i]=0; |
dadc[j][1][i]=0; |
} |
} |
evtrec.nev=1; |
do { |
for (j=0;j<NCH;j++) |
for (i=0;i<4;i++) |
aa[j][i]=0; |
// if((neve%1000)==0) printf("Events %ld\n",neve); |
#ifdef USE_DAQ |
ndat = 0; |
// a = 0x0001; |
// VME_A24D16_W(IO1_ADDR + 0x000008, &a); //poslje laserski sunek |
ntics=0; |
# ifdef USE_CAMAC |
CSSA_R(NGL,0,10,&cres); |
// do { |
// wait_loop(IWAIT); |
// Delay(0.1); |
# ifdef NTDCJ |
// CSSA_R(NTDCJ,0,8,&cres); |
# endif |
# ifdef NTDCP |
// CSSA_R(NTDCP,0,8,&cres); |
# endif |
// if (!(cres&0x8000)) printf("CSSA_R(NTDCJ,0,8,&cres)=0x%0x\n", cres) ; |
// } while ((!(cres&0x8000))&&(ntics<2)&&daq_on); |
# endif |
// wait_loop(2000); |
while((!(V965_status(VADC)&0x1))&&(ntics<2)&&daq_on); |
if (!daq_on) break; |
if (ntics>=2) { |
ndat=V965_read (VADC, &data[0]); |
continue; |
} |
wait_loop(2000); |
/* |
ndat=V965_read (VTDC, &data[0]); |
for (i=0; i<ndat; i++) { |
dtype=(data[i]>>25)&0x3; |
if (dtype==0) { |
ch=tdcmap[(data[i]>>17)&0xf]; |
if (ch<NCH) { |
rg=(data[i]>>16)&0x1; |
adc=data[i]&0xfff; |
aa[ch][rg]=adc; |
dtdc[ch][rg][adc]+=1; |
} |
} |
} |
*/ |
for (i=0; i<NCH; i++) { |
wait_loop(IWAIT); |
# ifdef USE_CAMAC |
# ifdef NTDCJ |
CSSA_R(NTDCJ,ctdcmap[i],0,&adc); |
# endif |
# ifdef NTDCP |
CSSA_R(NTDCP,ctdcmap[i],0,&adc); |
# endif |
# endif |
// printf("TDC=0x%04X\n",adc); |
adc=adc&0xfff; |
aa[i][0]=adc; |
dtdc[i][0][adc]+=1; |
} |
ndat=V965_read (VADC, &data[0]); |
for (i=0; i<ndat; i++) { |
dtype=(data[i]>>25)&0x3; |
if (dtype==0) { |
ch=adcmap[(data[i]>>17)&0xf]; |
if (ch<NCH) { |
rg=(data[i]>>16)&0x1; |
adc=data[i]&0xfff; |
aa[ch][rg+2]=adc; |
dadc[ch][rg][adc]+=1; |
} |
} |
} |
# ifdef USE_CAMAC |
wait_loop(IWAIT); |
# ifdef NTDCJ |
CSSA_R(NTDCJ,0,9,&cres); |
# endif |
# ifdef NTDCP |
CSSA_R(NTDCP,0,9,&cres); |
CSSA_R(NTDCP,0,26,&cres); |
// printf("2 CSSA_R(NTDCP,0,26,&cres)=0x%0x\n", cres); |
# endif |
// Delay(0.001); |
// wait_loop(IWAIT); |
// CSSA_R(NGL,0,10,&cres); |
# endif |
#else /* generate test data */ |
if (!daq_on) break; |
for (i=0;i<NCH;i++) { |
adc=100+evtrec.nev%200; |
dtdc[i][1][adc]+=1; |
dadc[i][1][adc]+=1; |
aa[i][0]=adc; |
aa[i][2]=adc; |
adc=200+evtrec.nev%400; |
dtdc[i][0][adc]+=1; |
dadc[i][0][adc]+=1; |
aa[i][1]=adc; |
aa[i][3]=adc; |
} |
#endif |
esave=dsave; |
if (supr0 && esave) { |
Uniform (1, -1, &fracg); |
if (fracg > frac) { |
esave=0; |
for (i=0;i<NCH;i++) { |
if ((aa[i][0] >= tdcmin) && (aa[i][0] < 4000)) esave=1; |
} |
} |
} |
if (esave) { |
// time (&evtrec.time); |
for (i=0;i<NCH;i++) { |
evtrec.data[i] = aa[i][0]; |
evtrec.data[i+NCH] = aa[i][2]; |
} |
status = fwrite (&evtrec, 1, evtrec.len, fp); |
} |
if (!(evtrec.nev%1000)) SetCtrlVal (p1h, P1_CEVE, evtrec.nev); |
} while (evtrec.nev++<runrec.nev); |
if (!daq_on) break; |
} |
if (!daq_on) break; |
} |
if (dsave) { |
time (&endrec.time); |
status = fwrite (&endrec, 1, endrec.len, fp); |
fclose(fp); |
} |
daq_on=0; |
SetCtrlVal (p1h, P1_DAQ, daq_on); |
SetCtrlVal (p1h, P1_CEVE, evtrec.nev); |
return 0; |
} |
int __stdcall WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, |
LPSTR lpszCmdLine, int nCmdShow) |
{ |
int i,j,status,refon; |
long int zpos; |
char dfile[300]; |
FILE *fp; |
typedef struct { |
unsigned long id,len; |
unsigned long fver,time; |
unsigned long nev,nch,ped,xy; |
long nx,x0,dx,ny,y0,dy; |
} RUNREC; |
RUNREC runrec; |
if (InitCVIRTE (hInstance, 0, 0) == 0) |
return -1; /* out of memory */ |
SetSleepPolicy(VAL_SLEEP_MORE); |
CmtNewThreadPool (MAX_THREADS, &poolHandle); |
SetStdioWindowOptions (1000, 0, 0); |
SetStdioWindowSize (150, 600); |
SetStdioWindowPosition (825, 20); |
#ifdef USE_DAQ |
VME_START(NULL); |
#endif |
#ifdef USE_MIKRO |
MIKRO_Open (MIKRO_COM); |
MIKRO_Init (1,0); |
MIKRO_Init (2,0); |
MIKRO_Init (3,0); |
#endif |
if ((p1h = LoadPanel (0, "l2d_ui.uir", P1)) < 0) return -1; |
DisplayPanel (p1h); |
SetCtrlAttribute (p1h, P1_PLCH, ATTR_MAX_VALUE, NCH-1); |
QueueUserEvent (1000, p1h, P1_RESET); |
do { |
GetUserEvent (1, &pID, &rID); |
switch (rID) { |
case P1_TIMER: |
ntics+=1; |
GetCtrlVal (p1h, P1_REFON, &refon); |
if (refon) update_plots(); |
break; |
case P1_REFRESH: |
update_plots(); |
break; |
case P1_DAQ: |
GetCtrlVal (p1h, P1_DAQ, &daq_on); |
if (daq_on) { |
CmtScheduleThreadPoolFunction (poolHandle, daq_run, (void *)&dummy, &tfID); |
} else { |
CmtWaitForThreadPoolFunctionCompletion (poolHandle, tfID, |
OPT_TP_PROCESS_EVENTS_WHILE_WAITING); |
CmtReleaseThreadPoolFunctionID (poolHandle, tfID); |
} |
break; |
case P1_ZSET: |
if (!daq_on) { |
GetCtrlVal (p1h, P1_ZSET, &zpos); |
#ifdef USE_MIKRO |
MIKRO_MoveTo (3, zpos); |
#endif |
} |
break; |
case P1_REREAD: |
if (!daq_on) { |
status = FileSelectPopup ("", "*.dat", ".dat", |
"Izberi datoteko s podatki", |
VAL_LOAD_BUTTON, 0, 0, 1, 0, dfile); |
if (status==1) { |
fp = fopen (dfile, "rb"); |
status = fread (&runrec, 1, sizeof(runrec), fp); |
fclose(fp); |
if (runrec.id==1) { |
SetCtrlVal (p1h, P1_NX, runrec.nx); |
SetCtrlVal (p1h, P1_XSTEP, runrec.dx); |
SetCtrlVal (p1h, P1_XMIN, runrec.x0); |
SetCtrlVal (p1h, P1_NY, runrec.ny); |
SetCtrlVal (p1h, P1_YSTEP, runrec.dy); |
SetCtrlVal (p1h, P1_YMIN, runrec.y0); |
SetCtrlVal (p1h, P1_NEVE, runrec.nev); |
} |
} |
} |
break; |
case P1_HO: |
if (!daq_on) { |
SetWaitCursor (1); |
#ifdef USE_MIKRO |
MIKRO_ReferenceMove (1); |
MIKRO_ReferenceMove (2); |
MIKRO_ReferenceMove (3); |
#endif |
SetWaitCursor (0); |
} |
break; |
case P1_RESET: |
for (j=0;j<NCH;j++) { |
for (i=0;i<MAXCH;i++){ |
dtdc[j][0][i]=0; |
dtdc[j][1][i]=0; |
dadc[j][0][i]=0; |
dadc[j][1][i]=0; |
} |
} |
update_plots(); |
break; |
case P1_TDCLOG: |
GetCtrlVal (p1h, P1_TDCLOG, &status); |
SetCtrlAttribute (p1h, P1_TDC, ATTR_YMAP_MODE, status); |
update_plots(); |
break; |
case P1_ADCLOG: |
GetCtrlVal (p1h, P1_ADCLOG, &status); |
SetCtrlAttribute (p1h, P1_ADC, ATTR_YMAP_MODE, status); |
update_plots(); |
break; |
} |
} while ((rID != P1_EXIT)||daq_on); |
CmtDiscardThreadPool (poolHandle); |
DiscardPanel (p1h); |
#ifdef USE_MIKRO |
MIKRO_Close (); |
#endif |
#ifdef USE_DAQ |
VME_STOP(); |
#endif |
return 0; |
} |
/Samo/l2d/l2d.cws |
---|
0,0 → 1,199 |
[Workspace Header] |
Version = 1700 |
Pathname = "/c/SAMO/Programi/NI/cvi/l2d/l2d.cws" |
CVI Dir = "/c/program files (x86)/national instruments/cvi2017" |
CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" |
CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2017" |
CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" |
IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" |
IVI Standard Root 64-bit Dir = "/C/Program Files/IVI Foundation/IVI" |
VXIplug&play Framework Dir = "/C/Program Files (x86)/IVI Foundation/VISA/winnt" |
VXIplug&play Framework 64-bit Dir = "/C/Program Files/IVI Foundation/VISA/win64" |
Number of Projects = 1 |
Active Project = 1 |
Project 0001 = "l2d.prj" |
Drag Bar Left = 250 |
Window Top = 149 |
Window Left = -1599 |
Window Bottom = 1007 |
Window Right = -196 |
Maximized = False |
Maximized Children = True |
Max32 Number Of Errors = 20 |
Track Include File Dependencies = True |
Prompt For Missing Includes = True |
Stop On First Error File = False |
Bring Up Err Win At Start = True |
Bring Up Err Win For Errors = False |
Save Changes Before Running = "Always" |
Save Changes Before Compiling = "Always" |
Hide Windows = False |
Break At First Statement = False |
Sort Type = "File Name" |
Number of Opened Files = 3 |
Window Confinement Region Enabled = True |
MainColumnWidth = 233 |
FileDateColumnWidth = 70 |
FileSizeColumnWidth = 70 |
[Project Header 0001] |
Version = 1700 |
Don't Update DistKit = False |
Platform Code = 4 |
Build Configuration = "Debug" |
Warn User If Debugging Release = 1 |
Batch Build Release = False |
Batch Build Debug = False |
[File 0001] |
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV965/CAENV965.fp" |
File Type = "Function Panel" |
Disk Date = 3657094434 |
In Projects = "1," |
[File 0002] |
Path = "/c/SAMO/Programi/NI/cvi/instr/MIKRO/MIKRO.fp" |
File Type = "Function Panel" |
Disk Date = 3336986594 |
In Projects = "1," |
[File 0003] |
Path = "/c/SAMO/Programi/NI/cvi/instr/WIENVME_DLL/wienvme_dll.fp" |
File Type = "Function Panel" |
Disk Date = 3509989482 |
In Projects = "1," |
[File 0004] |
Path = "/c/SAMO/Programi/NI/cvi/l2d/l2d.c" |
File Type = "CSource" |
Disk Date = 3557037737 |
In Projects = "1," |
Window Top = 64 |
Window Left = 26 |
Window Height = -16281 |
Window Z-Order = 3 |
Source Window State = "1,184,184,184,29,34,34,0,0,80,0,0,0,0,0,20,0,0,441,195,349,683,1,0," |
[File 0005] |
Path = "/c/SAMO/Programi/NI/cvi/l2d/l2d_ui.uir" |
File Type = "User Interface Resource" |
Disk Date = 3279851198 |
In Projects = "1," |
Window Top = 33 |
Window Left = 10 |
Window Height = 297 |
Window Width = 683 |
Window Z-Order = 1 |
[File 0006] |
Path = "/c/SAMO/Programi/NI/cvi/l2d/camac.h" |
File Type = "Include" |
Disk Date = 3279845963 |
In Projects = "1," |
Window Top = 95 |
Window Left = 42 |
Window Z-Order = 2 |
Source Window State = "1,0,0,0,0,0,0,0,0,80,0,0,0,0,0,20,0,0,0,0,349,683,1,0," |
[File 0007] |
Path = "/c/SAMO/Programi/NI/cvi/l2d/l2d_ui.h" |
File Type = "Include" |
Disk Date = 3279851198 |
In Projects = "1," |
Window Top = 126 |
Window Left = 58 |
Source Window State = "1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,349,683,1,0," |
[Tab Order] |
Tab 0001 = "/c/SAMO/Programi/NI/cvi/l2d/l2d_ui.uir" |
Tab 0002 = "/c/SAMO/Programi/NI/cvi/l2d/l2d.c" |
Tab 0003 = "/c/SAMO/Programi/NI/cvi/l2d/camac.h" |
[Default Build Config 0001 Debug] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0001 Release] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0001 Debug64] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Default Build Config 0001 Release64] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Batch Build = False |
Profile = "Disabled" |
Debugging Level = "Standard" |
Execution Trace = "Disabled" |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
External Process Path = "" |
[Build Dependencies 0001] |
Number of Dependencies = 0 |
[Build Options 0001] |
Generate Browse Info = True |
Enable Uninitialized Locals Runtime Warning = True |
Execution Trace = "Disabled" |
Profile = "Disabled" |
Debugging Level = "Standard" |
Break On Library Errors = True |
Break On First Chance Exceptions = False |
[Execution Target 0001] |
Execution Target Address = "Local desktop computer" |
Execution Target Port = 0 |
Execution Target Type = 0 |
[SCC Options 0001] |
Use global settings = True |
SCC Provider = "" |
SCC Project = "" |
Local Path = "" |
Auxiliary Path = "" |
Perform Same Action For .h File As For .uir File = "Ask" |
Perform Same Action For .cds File As For .prj File = "Ask" |
Username = "" |
Comment = "" |
Use Default Username = False |
Use Default Comment = False |
Suppress CVI Error Messages = False |
Always show confirmation dialog = True |
[DLL Debugging Support 0001] |
External Process Path = "" |
[Command Line Args 0001] |
Command Line Args = "" |
Working Directory = "" |
Environment Options = "" |
/Samo/l2d/l2d.prj |
---|
0,0 → 1,462 |
[Project Header] |
Version = 1302 |
Pathname = "/c/SAMO/Programi/NI/cvi/l2d/l2d.prj" |
CVI Dir = "/c/program files (x86)/national instruments/cvi2013" |
CVI Shared Dir = "/C/Program Files (x86)/National Instruments/Shared/CVI" |
CVI Pub Local Dir = "/C/ProgramData/National Instruments/CVI2013" |
CVI Pub Global Dir = "/C/ProgramData/National Instruments/CVI" |
IVI Standard Root Dir = "/C/Program Files (x86)/IVI Foundation/IVI" |
VXIplug&play Framework Dir = "/C/Program Files (x86)/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 = 7 |
Target Type = "Executable" |
Flags = 16 |
Copied From Locked InstrDrv Directory = False |
Copied from VXIPNP Directory = False |
Locked InstrDrv Name = "" |
Don't Display Deploy InstrDrv Dialog = False |
[Folders] |
Library Files Folder Not Added Yet = True |
Folder 0 = "Source Files" |
FolderEx 0 = "Source Files" |
Folder 1 = "User Interface Files" |
FolderEx 1 = "User Interface Files" |
Folder 2 = "Include Files" |
FolderEx 2 = "Include Files" |
Folder 3 = "Instrument Files" |
FolderEx 3 = "Instrument Files" |
[File 0001] |
File Type = "CSource" |
Res Id = 1 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "l2d.c" |
Path = "/c/SAMO/Programi/NI/cvi/l2d/l2d.c" |
Exclude = False |
Compile Into Object File = False |
Project Flags = 0 |
Folder = "Source Files" |
Folder Id = 0 |
[File 0002] |
File Type = "User Interface Resource" |
Res Id = 2 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "l2d_ui.uir" |
Path = "/c/SAMO/Programi/NI/cvi/l2d/l2d_ui.uir" |
Exclude = False |
Project Flags = 0 |
Folder = "User Interface Files" |
Folder Id = 1 |
[File 0003] |
File Type = "Include" |
Res Id = 3 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "camac.h" |
Path = "/c/SAMO/Programi/NI/cvi/l2d/camac.h" |
Exclude = False |
Project Flags = 0 |
Folder = "Include Files" |
Folder Id = 2 |
[File 0004] |
File Type = "Include" |
Res Id = 4 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "l2d_ui.h" |
Path = "/c/SAMO/Programi/NI/cvi/l2d/l2d_ui.h" |
Exclude = False |
Project Flags = 0 |
Folder = "Include Files" |
Folder Id = 2 |
[File 0005] |
File Type = "Function Panel" |
Res Id = 5 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../instr/CAENV965/CAENV965.fp" |
Path = "/c/SAMO/Programi/NI/cvi/instr/CAENV965/CAENV965.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 = "../instr/MIKRO/MIKRO.fp" |
Path = "/c/SAMO/Programi/NI/cvi/instr/MIKRO/MIKRO.fp" |
Exclude = False |
Project Flags = 0 |
Folder = "Instrument Files" |
Folder Id = 3 |
[File 0007] |
File Type = "Function Panel" |
Res Id = 7 |
Path Is Rel = True |
Path Rel To = "Project" |
Path Rel Path = "../instr/WIENVME_DLL/wienvme_dll.fp" |
Path = "/c/SAMO/Programi/NI/cvi/instr/WIENVME_DLL/wienvme_dll.fp" |
Exclude = False |
Project Flags = 0 |
Folder = "Instrument Files" |
Folder Id = 3 |
[Custom Build Configs] |
Num Custom Build Configs = 0 |
[Default Build Config Debug] |
Config Name = "Debug" |
Is 64-Bit = False |
Is Release = False |
Default Calling Convention = "cdecl" |
Optimization Level = "No optimizations" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = False |
Enable OpenMP Extensions = False |
Stack Size = 500000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 4194304 |
Image Base Address x64 = 4194304 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN /DWIENVME" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = True |
DLL Exports = "Include File Symbols" |
Register ActiveX Server = False |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Default Build Config Release] |
Config Name = "Release" |
Is 64-Bit = False |
Is Release = True |
Default Calling Convention = "cdecl" |
Optimization Level = "No optimizations" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = False |
Enable OpenMP Extensions = False |
Stack Size = 500000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 4194304 |
Image Base Address x64 = 4194304 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN /DWIENVME" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = True |
DLL Exports = "Include File Symbols" |
Register ActiveX Server = False |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Default Build Config Debug64] |
Config Name = "Debug64" |
Is 64-Bit = True |
Is Release = False |
Default Calling Convention = "cdecl" |
Optimization Level = "No optimizations" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = False |
Enable OpenMP Extensions = False |
Stack Size = 500000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 4194304 |
Image Base Address x64 = 4194304 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN /DWIENVME" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = True |
DLL Exports = "Include File Symbols" |
Register ActiveX Server = False |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Default Build Config Release64] |
Config Name = "Release64" |
Is 64-Bit = True |
Is Release = True |
Default Calling Convention = "cdecl" |
Optimization Level = "No optimizations" |
Require Prototypes = True |
Show Warning IDs in Build Output = False |
Selected Warning Level = "None" |
Warning List None = "4,9,84,105,106,107,108,109,110,111" |
Warning List Common = "" |
Warning List Extended = "" |
Warning List All = "" |
Warning Mode = 0 |
Enable Unreferenced Identifiers Warning = False |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Assignment In Conditional Warning = False |
Uninitialized Locals Compile Warning = "Aggressive" |
Require Return Values = True |
Enable C99 Extensions = False |
Enable OpenMP Extensions = False |
Stack Size = 500000 |
Stack Reserve = 1048576 |
Stack Commit = 4096 |
Image Base Address = 4194304 |
Image Base Address x64 = 4194304 |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN /DWIENVME" |
Sign = False |
Sign Store = "" |
Sign Certificate = "" |
Sign Timestamp URL = "" |
Sign URL = "" |
Manifest Embed = False |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Runtime Support = "Full Runtime Support" |
Runtime Binding = "Shared" |
Embed Project .UIRs = False |
Generate Map File = False |
Embed Timestamp = True |
Create Console Application = False |
Using LoadExternalModule = True |
DLL Exports = "Include File Symbols" |
Register ActiveX Server = False |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
[Compiler Options] |
Default Calling Convention = "cdecl" |
Require Prototypes = True |
Require Return Values = True |
Enable Pointer Mismatch Warning = False |
Enable Unreachable Code Warning = False |
Enable Unreferenced Identifiers Warning = False |
Enable Assignment In Conditional Warning = False |
O Option Compatible With 5.0 = False |
Enable C99 Extensions = False |
Uninitialized Locals Compile Warning = "Conservative" |
Precompile Prefix Header = False |
Prefix Header File = "" |
[Run Options] |
Stack Size = 500000 |
Stack Commit = 4096 |
Image Base Address = 4194304 |
Image Base Address x64 = 4194304 |
[Compiler Defines] |
Compiler Defines = "/DWIN32_LEAN_AND_MEAN /DWIENVME" |
[Include Paths] |
Include Path 1 Is Rel = True |
Include Path 1 Rel To = "CVI" |
Include Path 1 Rel To Override = "CVI" |
Include Path 1 Rel Path = "instr/PCIVME_DLL" |
Include Path 1 = "/c/Program Files (x86)/National Instruments/CVI2013/instr/PCIVME_DLL" |
[Create Executable] |
Executable File_Debug Is Rel = True |
Executable File_Debug Rel To = "Project" |
Executable File_Debug Rel Path = "l2d_dbg.exe" |
Executable File_Debug = "/c/SAMO/Programi/NI/cvi/l2d/l2d_dbg.exe" |
Executable File_Release Is Rel = True |
Executable File_Release Rel To = "Project" |
Executable File_Release Rel Path = "l2d.exe" |
Executable File_Release = "/c/SAMO/Programi/NI/cvi/l2d/l2d.exe" |
Executable File_Debug64 Is Rel = True |
Executable File_Debug64 Rel To = "Project" |
Executable File_Debug64 Rel Path = "l2d.exe" |
Executable File_Debug64 = "/c/SAMO/Programi/NI/cvi/l2d/l2d.exe" |
Executable File_Release64 Is Rel = True |
Executable File_Release64 Rel To = "Project" |
Executable File_Release64 Rel Path = "l2d.exe" |
Executable File_Release64 = "/c/SAMO/Programi/NI/cvi/l2d/l2d.exe" |
Icon File Is Rel = False |
Icon File = "" |
Application Title = "" |
DLL Exports = "Include File Symbols" |
Use IVI Subdirectories for Import Libraries = False |
Use VXIPNP Subdirectories for Import Libraries = False |
Use Dflt Import Lib Base Name = True |
Where to Copy DLL = "Do not copy" |
Custom Directory to Copy DLL Is Rel = False |
Custom Directory to Copy DLL = "" |
Generate Source Documentation = "None" |
Add Type Lib To DLL = False |
Include Type Lib Help Links = False |
TLB Help Style = "HLP" |
Type Lib FP File Is Rel = False |
Type Lib FP File = "" |
Type Lib Guid = "" |
Runtime Support = "Full Runtime Support" |
Instrument Driver Support Only = False |
Embed Project .UIRs = False |
Generate Map File = False |
[External Compiler Support] |
UIR Callbacks File Option = 0 |
Using LoadExternalModule = False |
Create Project Symbols File = True |
UIR Callbacks Obj File Is Rel = False |
UIR Callbacks Obj File = "" |
Project Symbols H File Is Rel = False |
Project Symbols H File = "" |
Project Symbols Obj File Is Rel = False |
Project Symbols Obj File = "" |
[ActiveX Server Options] |
Specification File Is Rel = False |
Specification File = "" |
Source File Is Rel = False |
Source File = "" |
Include File Is Rel = False |
Include File = "" |
IDL File Is Rel = False |
IDL File = "" |
Register ActiveX Server = False |
[Signing Info] |
Sign = False |
Sign Debug Build = False |
Store = "" |
Certificate = "" |
Timestamp URL = "" |
URL = "" |
[Manifest Info] |
Embed = False |
[tpcSection] |
tpcEnabled = 0 |
tpcOverrideEnvironment = 0 |
tpcEnabled x64 = 0 |
tpcOverrideEnvironment x64 = 0 |
/Samo/l2d/l2d_ui.h |
---|
0,0 → 1,68 |
/**************************************************************************/ |
/* LabWindows/CVI User Interface Resource (UIR) Include File */ |
/* Copyright (c) National Instruments 2007. 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 P1 1 |
#define P1_EXIT 2 |
#define P1_ADC 3 |
#define P1_TDC 4 |
#define P1_RESET 5 |
#define P1_CEVE 6 |
#define P1_NEVE 7 |
#define P1_FRAC 8 |
#define P1_TDCMIN 9 |
#define P1_PEDESTAL 10 |
#define P1_ADCHL 11 |
#define P1_ADCLOG 12 |
#define P1_TDCLOG 13 |
#define P1_TDCHL 14 |
#define P1_DAQ 15 |
#define P1_SUPR 16 |
#define P1_DSAVE 17 |
#define P1_DFILE 18 |
#define P1_IY 19 |
#define P1_Y 20 |
#define P1_YMIN 21 |
#define P1_IX 22 |
#define P1_YSTEP 23 |
#define P1_X 24 |
#define P1_NY 25 |
#define P1_ZSET 26 |
#define P1_XMIN 27 |
#define P1_XSTEP 28 |
#define P1_NX 29 |
#define P1_REREAD 30 |
#define P1_HO 31 |
#define P1_PLCH 32 |
#define P1_NEWF 33 |
#define P1_REFON 34 |
#define P1_REFRESH 35 |
#define P1_TIMER 36 /* callback function: cb_timer */ |
#define P1_DECORATION 37 |
/* Menu Bars, Menus, and Menu Items: */ |
/* (no menu bars in the resource file) */ |
/* Callback Prototypes: */ |
int CVICALLBACK cb_timer(int panel, int control, int event, void *callbackData, int eventData1, int eventData2); |
#ifdef __cplusplus |
} |
#endif |
/Samo/l2d/l2d_ui.uir |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes: |
Added: svn:mime-type |
+application/octet-stream |
\ No newline at end of property |