08-19-2022 09:16 AM
how to read binary file of size more than 3 GB and then I want to use that binary file to transmit signal using usrp
08-19-2022 10:01 AM
If you have enough RAM you can do a single read, or you have to come up with a way to read the binary file in segments and stream it to USRP.
08-19-2022 10:11 AM - edited 08-19-2022 10:14 AM
File offsets are I64, so you can easily access any portion of your file, no matter how big it is (even in LabVIEW 32bit!) However, you cannot read it all at once into most data structures (e.g. arrays, depending on the datatype and resulting number of elements. A 3GB U8 array will not work, but a 3GB DBL array will). You can read and transmit it in reasonable chunks.
08-19-2022 01:01 PM
I am not sure how to read the binary file in chuck.
08-19-2022 01:13 PM
Hi Ajayravi,
@Ajayravi wrote:
I am not sure how to read the binary file in chuck.
Put the FileRead function in a loop, use shift register for the file reference.
Then read chunks of desired size (like 10MB) inside the loop until you reach the end of the file…
08-21-2022 08:49 PM
Hi
It is very simple sample VI.
If underrun error occurred disconnect a wire to the waveform graph or you should implement multi-threading by queue function.