Changeset 3940 in Sophya for trunk/AddOn/TAcq/chanum_1210.cc


Ignore:
Timestamp:
Jan 24, 2011, 5:02:54 PM (15 years ago)
Author:
cmv
Message:

acceleration prog + petits ajouts, cmv 24/01/2011

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AddOn/TAcq/chanum_1210.cc

    r3935 r3940  
    3232    <<" -f F0MHz : 1ere frequence pour cette acquisition (def=0.)"<<endl
    3333    <<" -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,999999\")"<<endl
     34    <<" -T it0,it1 : selection fichier temps de it0 a it1 (def=\"0,99999\")"<<endl
    3535    <<" -o fichier.csh : nom du fichier de sortie pour les commandes a lancer"<<endl;
    3636}
     
    4040{
    4141  string outname = "chanum_1210.csh";
    42   string selfreq = "0,8888,1", seltime = "0,999999";
     42  string selfreq = "0,8888,1", seltime = "0,99999";
    4343  double freq0 = 0.;
    4444
     
    102102  ofstream ftxt(outname.c_str(), ofstream::out);
    103103  cout<<"writing in "<<outname<<" (is_open="<<ftxt.is_open()<<")"<<endl;
     104  if(!ftxt) {cout<<"!!!!OPENING failed "<<outname<<endl; return -3;}
    104105  ftxt << "#!/bin/csh" <<endl;
    105   if(!ftxt) {cout<<"!!!!OPENING failed "<<outname<<endl; return -3;}
    106106  int dupli = 0, ndupli = 0;
    107107  nvisi = 0;
    108108  for(uint_4 i=0;i<vcode.size();i++) {
    109109    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"
    111111            ,freq0,seltime.c_str(),selfreq.c_str());
    112112    string argu = str;
     
    115115    uint_4 vcode_suiv = (i<vcode.size()-1) ? vcode[IVcode(i+1)]: 99999999;
    116116    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]
    117118    sprintf(str," -t %d",vnth[ip]); argu += str;  // numero de threads
    118119    sprintf(str," -r %d",vrow[ip]); argu += str;  // ligne de la matrice acq
Note: See TracChangeset for help on using the changeset viewer.