Changeset 3645 in Sophya for trunk/AddOn/TAcq/tmtacq.cc


Ignore:
Timestamp:
Jun 1, 2009, 10:24:41 PM (16 years ago)
Author:
ansari
Message:

Traitement 4 canaux ds brproc.cc, mcrd.cc , mais il reste des problemes - Reza 01/06/2009

File:
1 edited

Legend:

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

    r3644 r3645  
    410410  else {
    411411    dmap = new DMAMgr(card,patternSZ,dmaSize,activate_pattern);
    412     if (! dmap->StatusFibre() ) {
    413       cout << " tmtacq[3] - fibre non accrochee -> exit " << endl;
    414       throw PCIEWException(" Fibre non accrochee ");
     412    if (!activate_pattern) {
     413      if (! dmap->StatusFibre() ) {
     414        cout << " tmtacq[3] - fibre non accrochee -> exit " << endl;
     415        throw PCIEWException(" Fibre non accrochee ");
     416      }
     417      else cout << " tmtacq[3] - fibre accrochee OK " << endl;
    415418    }
    416     else cout << " tmtacq[3] - fibre accrochee OK " << endl;
    417419    pciwp = new PCIEWrapper(*dmap);
    418420  }
     
    509511  else {
    510512    dmap1 = new DMAMgr(cardlist[0],patternSZ,dmaSize,activate_pattern);
    511     if (! dmap1->StatusFibre() ) {
    512       cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[0] << " -> exit " << endl;
    513       throw PCIEWException(" Fibre non accrochee 1");
     513    if (!activate_pattern) {
     514      if (! dmap1->StatusFibre() ) {
     515        cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[0] << " -> exit " << endl;
     516        throw PCIEWException(" Fibre non accrochee 1");
     517      }
     518      else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[0] << endl;
     519
     520      dmap2 = new DMAMgr(cardlist[1],patternSZ,dmaSize,activate_pattern);
     521      if (! dmap2->StatusFibre() ) {
     522        cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[1] << " -> exit " << endl;
     523        throw PCIEWException(" Fibre non accrochee 2");
     524      }
     525      else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[1] << endl;
    514526    }
    515     else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[0] << endl;
    516 
    517     dmap2 = new DMAMgr(cardlist[1],patternSZ,dmaSize,activate_pattern);
    518     if (! dmap2->StatusFibre() ) {
    519       cout << " tmtacq[3] - fibre non accrochee Card" << cardlist[1] << " -> exit " << endl;
    520       throw PCIEWException(" Fibre non accrochee 2");
    521     }
    522     else cout << " tmtacq[3] - fibre accrochee OK Card " << cardlist[1] << endl;
    523527    pciwp1 = new PCIEWrapper(*dmap1);
    524528    pciwp2 = new PCIEWrapper(*dmap2);
Note: See TracChangeset for help on using the changeset viewer.