hasData
Check if a radar data cube is available to read using dca1000FileReader object
Since R2024b
Syntax
Description
checks if a radar data cube is available to read using the tf
= hasData(fr
)read
function from the index of read pointer specified by
CurrentPosition
property of the
dca1000FileReader
object, fr
. The function
returns true
if a data cube is available, and returns
false
if no more data cubes are available to be read.
Examples
Read all IQ data cubes one-by-one from the binary files recorded using the class dca1000
Create a dca1000FileReader
object by specifying the file location
where the recorded files are stored.
fr = dca1000FileReader(RecordLocation = "C:\Users\abc\dca1000data")
fr = dca1000FileReader with properties: BoardName: "IWR6843ISK" ConfigFile: "C:\Users\abc\dca1000data\Range10Hz.cfg" RecordLocation: "C:\Users\abc\dca1000data" RecordFilePrefix: "iq_data" NumDataCubes: 63
Read all radar data cubes one-by-one in a loop until no more data cubes are available
for reading. As long as data available, hasData
returns
true
which keeps the loop
running.
while hasData(fr) iqData = read(fr); end
Input Arguments
Output Arguments
Version History
Introduced in R2024b