Other Parts Discussed in Thread: ADC32RF45EVM
Hi
I am using TSW14J56EVM and created a matlab .m code to capture raw data in a loop from an ADC32RF45EVM using HSDC Pro GUI 5.20. There are times when the loop exits with error code 66 not going through the entire loop of 32 files ( each file is set to capture 8Million samples/channel. But some other times the code runs without any issues. The code snippet is given below. Do I need to add a delay between file creations? I am not sure why this loop gets stopped some times but works at other times?
for ii=1:32
BinaryFilePathWithName = sprintf('%s%d%s',folder,ii,extension);
[Error_Status] = calllib('HSDCProAutomation_64Bit','Pass_Capture_Event',TimeoutInMs);
[Error_Status] = calllib('HSDCProAutomation_64Bit','ADC_Save_Raw_Data_As_Binary_File',BinaryFilePathWithName,TimeoutInMs);
end