increase buffer size of QDC and PSD to 200 MB
This commit is contained in:
parent
aa5cce918c
commit
b396eef66e
|
@ -151,7 +151,7 @@ inline void Data::AllocateMemory(uint32_t size){
|
||||||
ClearBuffer();
|
ClearBuffer();
|
||||||
AllocatedSize = size;
|
AllocatedSize = size;
|
||||||
buffer = (char *) malloc( AllocatedSize);
|
buffer = (char *) malloc( AllocatedSize);
|
||||||
printf("Allocated %u byte for buffer = %u words\n", AllocatedSize, AllocatedSize / 4);
|
printf("Allocated %u byte ( %.2f MB) for buffer = %u words\n", AllocatedSize, AllocatedSize/1024./1024., AllocatedSize / 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void Data::Allocate80MBMemory(){
|
inline void Data::Allocate80MBMemory(){
|
||||||
|
|
|
@ -461,7 +461,7 @@ int Digitizer::ProgramBoard_QDC(){
|
||||||
void Digitizer::StartACQ(){
|
void Digitizer::StartACQ(){
|
||||||
if( softwareDisable ) return;
|
if( softwareDisable ) return;
|
||||||
if ( AcqRun ) return;
|
if ( AcqRun ) return;
|
||||||
|
|
||||||
unsigned int bufferSize = 0;
|
unsigned int bufferSize = 0;
|
||||||
if( DPPType == V1730_DPP_PHA_CODE ){
|
if( DPPType == V1730_DPP_PHA_CODE ){
|
||||||
bufferSize = CalByteForBuffer();
|
bufferSize = CalByteForBuffer();
|
||||||
|
@ -469,11 +469,15 @@ void Digitizer::StartACQ(){
|
||||||
printf("============= buffer size bigger than 160 MB (%u)\n", bufferSize );
|
printf("============= buffer size bigger than 160 MB (%u)\n", bufferSize );
|
||||||
//return;
|
//return;
|
||||||
}
|
}
|
||||||
|
}else if( DPPType == V1730_DPP_PSD_CODE) {
|
||||||
|
bufferSize = 200 * 1024 * 1024; //TODO allocate 200 MB for PSD
|
||||||
|
}else if( DPPType == V1740_DPP_QDC_CODE) {
|
||||||
|
bufferSize = 200 * 1024 * 1024; //TODO allocate 200 MB for QDC
|
||||||
|
}else{
|
||||||
|
printf("DPP type not supported. ACQ not start.\n");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if( DPPType == V1730_DPP_PSD_CODE) bufferSize = 100 * 1024 * 1024; //TODO allocate 160 MB for PSD
|
|
||||||
if( DPPType == V1740_DPP_QDC_CODE) bufferSize = 100 * 1024 * 1024; //TODO allocate 160 MB for QDC
|
|
||||||
|
|
||||||
|
|
||||||
data->AllocateMemory(bufferSize);
|
data->AllocateMemory(bufferSize);
|
||||||
ret = CAEN_DGTZ_SWStartAcquisition(handle);
|
ret = CAEN_DGTZ_SWStartAcquisition(handle);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user