Changeset 4006 in Sophya
- Timestamp:
- Jun 16, 2011, 7:21:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/corrcrtadc.cc
r4005 r4006 246 246 247 247 cout << " --------------- Channel/Correlation number association --------------- " << endl; 248 cout << " CorreNumber- axb (MtxRow) : (Ca, Cb) -- ADCChan(c,d) " << endl;248 cout << " CorreNumber- axb (MtxRow) : (Ca, Cb) -- ADCChan(c,d) -- I/Q(e,f)" << endl; 249 249 cout << " ----------------------------------------------------------------------- " << endl; 250 250 sa_size_t jcr=0; 251 char IQid[2]; 252 char EWid[2]; 253 int EWnum[2]; 254 int Bid[2]; 255 int Inpid[2]; 256 251 257 for(sa_size_t j1=0; j1<cfour.NRows(); j1++) { 252 258 for(sa_size_t j2=j1; j2<cfour.NRows(); j2++) { 253 cout << jcr << " : (" << j1 << "," << j2 << ") -> ADCChans (" << adcchans[j1] << "," << adcchans[j2] << ")" << endl; 259 cout << jcr << " : (" << j1 << "," << j2 << ") -> ADCChans (" << adcchans[j1] << "," << adcchans[j2] << ") -- ("; 260 Bid[0]=adcchans[j1]/4; 261 Bid[1]=adcchans[j2]/4; 262 Inpid[0]=adcchans[j1]%4; 263 Inpid[1]=adcchans[j2]%4; 264 265 if ((adcchans[j1]/4)%2==0) IQid[0]='I'; else IQid[0]='Q'; 266 if ((adcchans[j2]/4)%2==0) IQid[1]='I'; else IQid[1]='Q'; 267 if (adcchans[j1]%2==0) EWid[0]='E'; else EWid[0]='W'; 268 if (adcchans[j2]%2==0) EWid[1]='E'; else EWid[1]='W'; 269 cout << IQid[0] << '-' << EWid[0] << Bid[0]+Inpid[0]/2 << "," 270 << IQid[1] << '-' << EWid[1] << Bid[1]+Inpid[1]/2 << ")" << endl; 254 271 jcr++; 255 272 }
Note: See TracChangeset
for help on using the changeset viewer.