Reading Binary Files: Difference between revisions
No edit summary |
|||
Line 19: | Line 19: | ||
A binary file of real floating point data requires the float data type to be selected, which outputs real floating point samples, denoted by an '''<span style="color:orange">orange</span>''' output port. | A binary file of real floating point data requires the float data type to be selected, which outputs real floating point samples, denoted by an '''<span style="color:orange">orange</span>''' output port. | ||
[[File:Reading_binary_files_file_sink_real_float.png]] |
Revision as of 14:32, 20 April 2024
This tutorial describes how to read binary files using the File Source block along side how to diagnose potential errors.
Please review the Writing Binary Files tutorial before continuing. A series of binary files were created with different formats that will be needed for this tutorial:
File Source Block
The File Source block reads from a binary file and then sends the samples to the output port. Drag the File Source block into a flowgraph. The block by default uses the complex data type (32-bit floats), represented by the blue output port:
Double clicking the File Source block brings up the properties and the ability to select different data types.
A binary file of real floating point data requires the float data type to be selected, which outputs real floating point samples, denoted by an orange output port.