clear clc adcIdxFileName = 'C:\ti\mmwave_studio_03_00_00_14\mmWaveStudio\PostProc\Cascade_Capture_22xx_mimo\master_0000_idx.bin'; [numIdx dataFileSize] = getValidNumFrames(adcIdxFileName); % get the number of valid frames numSamplePerChirp=256; % The number of samples per chirp numChirpPerLoop = 12; % The number of unique chirps per loop numLoops = 64; % The number of loops numRXPerDevice = 4; % The number of receive channels per chip per device numDevices = 1; dataFolder = 'C:\ti\mmwave_studio_03_00_00_14\mmWaveStudio\PostProc\Cascade_Capture_22xx_mimo'; %cascade folder fileidx = getUniqueFileIdx(dataFolder); fileNameCascade = getBinFileNames_withIdx(dataFolder, fileidx{1,1}); read_ADC_bin_TDA2_separateFiles(fileNameCascade,1,numSamplePerChirp,numChirpPerLoop,numLoops, numRXPerDevice, numDevices);