for V2740 and PSD, EnStatEvents = true, trace will freeze after few sec
This commit is contained in:
parent
956467b193
commit
2caec2a6e6
|
@ -656,6 +656,9 @@ int Digitizer2Gen::ReadData(){
|
||||||
&evt->aggCounter,
|
&evt->aggCounter,
|
||||||
&evt->event_size
|
&evt->event_size
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//printf("ch:%02d, energy: %d, trace Length %ld \n", evt->channel, evt->energy, evt->traceLenght);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
evt->isTraceAllZero = false;
|
evt->isTraceAllZero = false;
|
||||||
|
@ -885,7 +888,8 @@ void Digitizer2Gen::ProgramBoard(){
|
||||||
WriteValue("/par/IOlevel" , "NIM");
|
WriteValue("/par/IOlevel" , "NIM");
|
||||||
|
|
||||||
WriteValue("/par/EnAutoDisarmAcq" , "true");
|
WriteValue("/par/EnAutoDisarmAcq" , "true");
|
||||||
WriteValue("/par/EnStatEvents" , "true");
|
if( FPGAType == DPPType::PHA ) WriteValue("/par/EnStatEvents" , "true");
|
||||||
|
if( FPGAType == DPPType::PSD ) WriteValue("/par/EnStatEvents" , "false");
|
||||||
WriteValue("/par/EnAutoDisarmAcq" , "False");
|
WriteValue("/par/EnAutoDisarmAcq" , "False");
|
||||||
|
|
||||||
WriteValue("/par/BoardVetoWidth" , "0");
|
WriteValue("/par/BoardVetoWidth" , "0");
|
||||||
|
@ -955,7 +959,7 @@ void Digitizer2Gen::ProgramChannels(bool testPulse){
|
||||||
WriteValue("/ch/0..63/par/EventSelector" , "All");
|
WriteValue("/ch/0..63/par/EventSelector" , "All");
|
||||||
WriteValue("/ch/0..63/par/WaveSelector" , "All");
|
WriteValue("/ch/0..63/par/WaveSelector" , "All");
|
||||||
WriteValue("/ch/0..63/par/EnergySkimLowDiscriminator" , "0");
|
WriteValue("/ch/0..63/par/EnergySkimLowDiscriminator" , "0");
|
||||||
WriteValue("/ch/0..63/par/EnergySkimHighDiscriminator" , "0");
|
WriteValue("/ch/0..63/par/EnergySkimHighDiscriminator" , "65534");
|
||||||
WriteValue("/ch/0..63/par/ITLConnect" , "Disabled");
|
WriteValue("/ch/0..63/par/ITLConnect" , "Disabled");
|
||||||
|
|
||||||
if( FPGAType == DPPType::PHA){
|
if( FPGAType == DPPType::PHA){
|
||||||
|
|
|
@ -677,7 +677,7 @@ void Scope::UpdateScope(){
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("%s, traceLength : %d , %d\n", __func__, traceLength, digi[iDigi]->evt->analog_probes[0][10]);
|
//printf("%s, traceLength : %d , %d\n", __func__, traceLength, digi[iDigi]->evt->analog_probes[0][10]);
|
||||||
|
|
||||||
for( int j = 0; j < 2; j++) {
|
for( int j = 0; j < 2; j++) {
|
||||||
QVector<QPointF> points;
|
QVector<QPointF> points;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user