信号导入和导出
对接外部信号
使用 DSP System Toolbox™ 中的文件读取器和写入器 System object 和模块,您可以在音频文件、二进制文件和 MAT 文件中读取和写入数据。dsp.SignalSource
对象和模块(如 Signal From Workspace 和 To Workspace (Simulink))使您能够在 MATLAB® 工作区中导入和导出信号。UDP Send 和 Receive 对象和模块使您能够通过 UDP 网络传输数据包。您还可以使用 Audio Device Writer 对象和模块在设备的声卡上播放音频。
对象
模块
主题
二进制文件
- 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.
工作区
- 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.
设备和网络
- 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.