--- yoda/techmodel/forroutines/anticounter/AC.c 2005/02/08 08:23:13 2.8 +++ yoda/techmodel/forroutines/anticounter/AC.c 2005/08/29 09:46:13 5.0 @@ -1,4 +1,4 @@ -/*******************************v1.2******************************** +/*******************************v1.3******************************** Functions to read AC physics data (ACphysics) and AC calibration data (ACcalib). @@ -7,6 +7,7 @@ 0410 v1.0 alive 0412 v1.1 fixed problem with found, and changed headers 0502 v1.2 added a crc check +0502 v1.3 increased buffer size Errors: (returned to the main program as the variable "err") err= @@ -24,7 +25,7 @@ #define FALSE 0 int i,j,found; -unsigned short buffer[1000]; +unsigned short buffer[8300]; unsigned short tmp1,tmp2,check; unsigned char err; @@ -177,16 +178,11 @@ found=0; check=0; int iter=2; - for(i=0;i<1000;i++) + for(i=0;i<8300;i++) buffer[i]=0; fillphys(0,&buffer[0]); fillphys(1,&buffer[0]); - //point struct-pointer to physicsdata - //physicspointer[0]=physicsdata[0]; //card1 - //physicspointer[1]=physicsdata[1]; //card2 - //physicspointer=&physicsdata[0]; - //look for top header ACAC, then unpack data to main card buffer or extra card buffer depending on the subheader //AC11 for main, AC22 for extra while(found<2 && iter