Signal Import and Export
Using the file reader and writer System objects and blocks from
DSP System Toolbox™, you can read and write data from audio files, binary
files, and MAT files. The dsp.SignalSource
object and
blocks such as Signal From Workspace and
To Workspace (Simulink) enable you
to import and export signals from the MATLAB® workspace. The UDP Send and Receive objects and blocks
enable you to transmit data packets over the UDP network. You can also
play audio on the sound card of your device using the Audio Device
Writer object and block.
Objects
Blocks
Topics
Binary Files
- Write and Read Binary Files
Usedsp.BinaryFileReader
anddsp.BinaryFileWriter
to read and write data to binary files. - Write and Read Matrix Data
Usedsp.BinaryFileReader
anddsp.BinaryFileWriter
to read and write matrix data to binary files. - Write and Read Fixed-Point Data
Write and read fixed-point data. - Write and Read Character Data
Write and read character data. - Write and Read Binary Files in Simulink
Write data to a binary file and read the same data in Simulink®. - Write and Read Matrix Data from Binary Files in Simulink
Write matrix data to a binary file. Read the data as a real matrix and a complex matrix. - Write and Read Fixed-Point Data from Binary Files in Simulink
Write and read fixed-point data from a binary file. - Write and Read Character Data from Binary Files in Simulink
Write and read character data from a binary file. - Change the Endianness of the Data in Simulink
Change the endianness of the data in simulink.
Workspace
- Import and Export Signals for Sample-Based Processing
Import signals from the MATLAB workspace into your DSP model and export signals from your signal processing model to the MATLAB workspace. The signals are configured for sample-based processing. - Import and Export Signals for Frame-Based Processing
Import signals from the MATLAB workspace into your signal processing model and export signals from your signal processing model to the MATLAB workspace. The signals are created for frame-based processing.
Devices and Network
- Byte Transmission Using UDP
Use thedsp.UDPSender
anddsp.UDPReceiver
objects to send and receive UDP packets over the network. - Transmit Complex Data over UDP Network
Transmit complex STFT data over UDP network. - Data Transmission Using UDP in Simulink
Transmit and receive a sine wave signal over UDP network. - Decrease Underrun
Examine the Audio Device Writer block in a Simulink® model, determine underrun, and decrease underrun.