Changeset 3940 in Sophya for trunk/AddOn/TAcq/chanum_1210.cc
- Timestamp:
- Jan 24, 2011, 5:02:54 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AddOn/TAcq/chanum_1210.cc
r3935 r3940 32 32 <<" -f F0MHz : 1ere frequence pour cette acquisition (def=0.)"<<endl 33 33 <<" -F if0,if1,idf : selection freq de if0 a if1 moyenne par idf (def=\"0,8888,1\")"<<endl 34 <<" -T it0,it1 : selection fichier temps de it0 a it1 (def=\"0,99999 9\")"<<endl34 <<" -T it0,it1 : selection fichier temps de it0 a it1 (def=\"0,99999\")"<<endl 35 35 <<" -o fichier.csh : nom du fichier de sortie pour les commandes a lancer"<<endl; 36 36 } … … 40 40 { 41 41 string outname = "chanum_1210.csh"; 42 string selfreq = "0,8888,1", seltime = "0,99999 9";42 string selfreq = "0,8888,1", seltime = "0,99999"; 43 43 double freq0 = 0.; 44 44 … … 102 102 ofstream ftxt(outname.c_str(), ofstream::out); 103 103 cout<<"writing in "<<outname<<" (is_open="<<ftxt.is_open()<<")"<<endl; 104 if(!ftxt) {cout<<"!!!!OPENING failed "<<outname<<endl; return -3;} 104 105 ftxt << "#!/bin/csh" <<endl; 105 if(!ftxt) {cout<<"!!!!OPENING failed "<<outname<<endl; return -3;}106 106 int dupli = 0, ndupli = 0; 107 107 nvisi = 0; 108 108 for(uint_4 i=0;i<vcode.size();i++) { 109 109 char str[512]; 110 sprintf(str," ${TACQEXE}/svv2mtx2_1210 -f %.7f -T %s -F %s"110 sprintf(str,"time ${TACQEXE}/svv2mtx2_1210 -f %.7f -T %s -F %s" 111 111 ,freq0,seltime.c_str(),selfreq.c_str()); 112 112 string argu = str; … … 115 115 uint_4 vcode_suiv = (i<vcode.size()-1) ? vcode[IVcode(i+1)]: 99999999; 116 116 uint_4 v1 = vcode[ip]/1000, v2 = vcode[ip]%100; 117 sprintf(str," -v %d,%d",v1,v2); argu += str; // numero de canaux acq [1,32] 117 118 sprintf(str," -t %d",vnth[ip]); argu += str; // numero de threads 118 119 sprintf(str," -r %d",vrow[ip]); argu += str; // ligne de la matrice acq
Note:
See TracChangeset
for help on using the changeset viewer.