Cargar datos de señal para la simulación
Puede utilizar varios enfoques diferentes para cargar datos en un modelo, incluidos los siguientes:
Puertos de entrada en el nivel de raíz: importe datos de señales desde un área de trabajo, utilizando el parámetro de configuración Input para realizar la importación a un puerto de entrada en el nivel de raíz de un bloque Inport, Enable o Trigger. Para importar muchas señales a los puertos de entrada en el nivel de raíz, puede usar la herramienta Root Inport Mapper.
Bloque From File: lea los datos de un archivo MAT, y emítalos como una señal.
Bloque From Spreadsheet: lea los datos de las hojas de cálculo de Microsoft® Excel® o de las hojas de cálculo en formato CSV, y emítalos como una o varias señales.
Bloque Playback: cargue los datos desde el área de trabajo, un archivo o Simulation Data Inspector.
Bloques de origen: añada un bloque de origen, como Sine Wave, para generar señales de entrada a otro bloque.
Bloque Signal Editor: visualice, cree, edite y alterne escenarios intercambiables.
Datos persistentes: transmita los big data de un archivo MAT a un modelo.
Puede crear los datos de la señal de entrada en un archivo, una variable del área de trabajo o un parámetro del modelo. Puede utilizar los datos registrados en una simulación anterior, de otro origen, o crear los datos por su cuenta. Para determinar qué enfoque de carga de señales se debe utilizar, consulte Comparison of Signal Loading Techniques.
Bloques
Funciones
Objetos
Herramientas
Root Inport Mapper | Import, visualize, and map signal and bus data to root-level inports |
Ajustes de modelos
Input | Option to load external input data for simulation using top-level input ports |
Temas
Carga de señales
- Provide Signal Data for Simulation
Identify model signal data requirements and load input signal data. - Overview of Signal Loading Techniques
Understand the techniques available for importing signal data into a model. - Comparison of Signal Loading Techniques
Determine the signal loading approach that meets your modeling requirements. Often, mapping signal data to root inports works well. - Control How Models Load Input Data
Control how a simulation loads input data using block parameters, model parameters, and different input data formats. - Load Signal Data That Uses Units
Load signal data that uses units from data logged in a previous simulation. Signal logging, the To File block, and the To Workspace block can include units information for Dataset or Timeseries logging formats. - Load Data Logged in Another Simulation
Load signal data into a model that was logged in a previous simulation. - Load Data to Represent Variable-Step Input from Model Hierarchy
Capture dynamics in external input data for a continuous signal by specifying additional time steps for a variable-step solver. - Load Input Data for Basic Test Cases
Create input data for a basic test of model behavior.
Carga de datos en los puertos de entrada en el nivel de raíz
- Load Data to Root-Level Input Ports
Load data from a workspace and apply it to a root-level input. - Load Bus Data to Root-Level Input Ports
Import bus data to top-level input ports by manually specifying the data in the Input configuration parameter or by using the Root Inport Mapper tool. - Map Data Using Root Inport Mapper Tool
To import, visualize, and map signal and bus data to root inports, use the Root Inport Mapper tool. - Map Root Inport Signal Data
Open the Root Inport Mapper Tool and select the map mode. - Create Signal Data for Root Inport Mapping
Create data for root inport mapping using specific guidelines and conventions. - Map Signal Data to Root Input Ports
Map signal data to root input ports by selecting map modes and options and selecting data. Interpret mapping results. - Import Signal Data for Root Inport Mapping
Import signal and bus data for root inport mapping. You can also import test vectors from Simulink® Design Verifier™ environment. - Create and Use Custom Map Modes
Create custom map modes if you do not want to use existing map modes in the Root Inport Mapper tool. - Root Inport Mapping Scenarios
Work with scenarios in the Root Inport Mapper tool. Create and save scenarios, and load previously saved scenarios. - Generate MATLAB Scripts for Simulation with Scenarios
After associating a scenario with the model, generate a MATLAB® script to perform batch simulations. - Import Custom File Type
Import custom file types to Signal Editor or Root Inport Mapper. - Create Custom File Type for Import
To import custom file types to Signal Editor and Root Inport Mapper, create custom file type readers for your data.
Otras técnicas de carga de señales
- Load Input Data for Bus Using In Bus Element Blocks
Load input data for a bus using In Bus Element blocks. - Load Data Using the From Workspace Block
Load simulation input data using the From Workspace block. - Load Data Using the From File Block
Create and save signal data to load from a MAT file using the From File block. - Load Data Using Playback Block
Load data from the workspace, a file, and the Simulation Data Inspector using the Playback block. - Load Big Data for Simulations
Load big data as simulation input. - Stream Data from MAT File as Input for Parallel Simulations
Stream input data for parallel simulations from a MAT file. - Load Data with Interchangeable Scenarios
Use Signal Editor block to work with interchangeable scenarios.