Importazione ed esportazione del segnale
Interfaccia con segnali esterni
Utilizzando i System object lettore di file e scrittore di file e i blocchi DSP System Toolbox™, è possibile leggere e scrivere dati da file audio, file binari e MAT-file. L'oggetto dsp.SignalSource
e i blocchi come Signal From Workspace e To Workspace (Simulink) consentono di importare ed esportare i segnali dal workspace di MATLAB®. Gli oggetti e i blocchi UDP Send e Receive consentono di trasmettere pacchetti di dati sulla rete UDP. È inoltre possibile riprodurre l'audio sulla scheda audio del dispositivo utilizzando l'oggetto e il blocco Audio Device Writer.
Oggetti
Blocchi
Argomenti
File binari
- 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.
Dispositivi e rete
- 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.