default PSD program set baseline to be 16 samples

This commit is contained in:
Ryan Tang 2024-08-27 18:13:01 -04:00
parent ffb009e6da
commit 76f8f22204
2 changed files with 2 additions and 2 deletions

View File

@ -566,7 +566,7 @@ inline void Data::PrintChData(unsigned short ch, unsigned int maxRowDisplay) con
inline void Data::PrintBuffer(){ inline void Data::PrintBuffer(){
if( buffer == NULL || nByte == 0 ) return; if( buffer == NULL || nByte == 0 ) return;
printf("============== Received nByte : %u\n", nByte); printf("============== Received nByte : %u\n", nByte);
for( int i = 0; i < nByte/4; i++ ) { for( unsigned int i = 0; i < nByte/4; i++ ) {
ReadBuffer(i, 2); ReadBuffer(i, 2);
printf("\n"); printf("\n");
} }

View File

@ -439,7 +439,7 @@ int Digitizer::ProgramBoard_PSD(){
ret |= CAEN_DGTZ_SetChannelDCOffset(handle, 0xF, 0xAAAA); ret |= CAEN_DGTZ_SetChannelDCOffset(handle, 0xF, 0xAAAA);
} }
// ret |= CAEN_DGTZ_WriteRegister(handle, (uint32_t)(DPP::DPPAlgorithmControl) + 0x7000 , 0x001 ); // baseline 16 sample ret |= CAEN_DGTZ_WriteRegister(handle, (uint32_t)(DPP::DPPAlgorithmControl) + 0x7000 , 0x00100000 ); // baseline 16 sample
ret |= CAEN_DGTZ_WriteRegister(handle, (uint32_t)(DPP::PSD::TriggerThreshold) + 0x7000 , 100 ); ret |= CAEN_DGTZ_WriteRegister(handle, (uint32_t)(DPP::PSD::TriggerThreshold) + 0x7000 , 100 );