This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TSW14J57EVM: Automation with MATLAB error 66

Part Number: TSW14J57EVM
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

  • Hi Aravind,

    I have found that the DLL operates well most of the time but does seem to glitch like this occasionally. My personal method to combat this in my automation scripts is to add a delay after any time the pass capture event function is called. Whether I am using python2, python3, or matlab, adding a 10ms delay seems to rigidify the automation. As the support team for HSDC Pro is no longer available, this is unfortunately the best I can offer.

    Thanks, Chase

  • Thank you Chase! That seems to solve the issue (so far).