Signalimport und -Export
Verbinden mit externen Signalen
Mit den System objects und Blöcken von DSP System Toolbox™ zum Lesen und Schreiben von Dateien können Sie Daten von Audiodateien, binären Dateien und MAT-Datei lesen und schreiben. Das dsp.SignalSource
-Objekt und Blöcke wie Signal From Workspace und To Workspace (Simulink) ermöglichen Ihnen den Import und Export von Signalen in bzw. aus dem MATLAB® Workspace. Die Objekte und Blöcke zum UDP-Senden und -Empfang ermöglichen es Ihnen, Datenpakete über das UDP-Netzwerk zu übertragen. Zudem können Sie mithilfe des Audio Device Writer-Objekts und Blocks Ton über die Soundkarte Ihres Geräts abspielen.
Objekte
Blöcke
Themen
Binäre Dateien
- 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.
Geräte und Netzwerk
- 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.