--- yoda/techmodel/forroutines/anticounter/AC.c 2005/03/04 14:13:52 2.7.2.1 +++ yoda/techmodel/forroutines/anticounter/AC.c 2005/02/09 22:18:49 2.9 @@ -1,4 +1,4 @@ -/*******************************v1.3******************************** +/*******************************v1.2******************************** Functions to read AC physics data (ACphysics) and AC calibration data (ACcalib). @@ -7,7 +7,6 @@ 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= @@ -25,7 +24,7 @@ #define FALSE 0 int i,j,found; -unsigned short buffer[8300]; +unsigned short buffer[1000]; unsigned short tmp1,tmp2,check; unsigned char err; @@ -178,11 +177,16 @@ found=0; check=0; int iter=2; - for(i=0;i<8300;i++) + for(i=0;i<1000;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