Main Content

Signal Import and Export

R2026b
Interface with external signals

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

expand all

dsp.AudioFileReaderStream from audio file
dsp.AudioFileWriterStream to audio file
dsp.BinaryFileReaderRead data from binary file
dsp.BinaryFileWriterWrite data to binary files
dsp.MatFileReaderRead MAT file
dsp.MatFileWriterWrite MAT file
dsp.SignalSourceImport variable from workspace
audioDeviceWriterPlay to sound card
dsp.UDPReceiverReceive UDP packets from the network
dsp.UDPSenderSend UDP packets to network

Blocks

expand all

Binary File Reader blockBinary File ReaderRead data from binary files
Binary File Writer blockBinary File WriterWrite data to binary files
From Multimedia File blockFrom Multimedia FileStream from multimedia file
To Multimedia File blockTo Multimedia FileStream video frames and audio samples to multimedia file
From Workspace blockFrom WorkspaceLoad signal data from workspace into Simulink model
Signal From Workspace blockSignal From WorkspaceImport signal from MATLAB workspace
Triggered Signal From Workspace blockTriggered Signal From WorkspaceImport signal samples from MATLAB workspace when triggered
Triggered To Workspace blockTriggered To Workspace Write input sample to MATLAB workspace when triggered
To Workspace blockTo WorkspaceLog data to workspace from Simulink model
Audio Device Writer blockAudio Device WriterPlay to sound card
UDP Receive blockUDP ReceiveReceive UDP packets on a given IP port
UDP Send blockUDP SendSend UDP message

Topics

Binary Files

Workspace

Devices and Network