Hauptinhalt

Die Übersetzung dieser Seite ist veraltet. Klicken Sie hier, um die neueste Version auf Englisch zu sehen.

Entwurfsdaten verwalten

Auswählen, wie Modelldesigndaten für kleine Projekte und komplexe Modellhierarchien gespeichert, partitioniert und geteilt werden

Die Designdaten sind ein Satz an Variablen und Datenobjekten, mit denen Sie bei einem Simulink®-Modell Blockparameter und Signaleigenschaften wie Datentyp und Dimension festlegen. Die Speicheroptionen für Entwurfsdaten umfassen den MATLAB® Basis-Workspace, Modell-Workspaces, MATLAB-Dateien und Data Dictionaries. Die Auswahl einer Speicheroption für Ihre Designdaten kann von folgenden Faktoren abhängen:

  • Modellierungsziele

  • Modellarchitektur

  • Datentypen

Weitere Informationen zu den Modelldatentypen und zur Verwaltung der Datenspeicherung für Ihr Projekt finden Sie unter Determine Where to Store Variables and Objects for Simulink Models.

Weitere Informationen zur programmatischen Verwaltung Ihrer Daten finden Sie unter Manage Design Data for Simulink Models Programmatically.

Funktionen

alle erweitern

Simulink.data.connectCreate Simulink.data.DataConnection object for data source (Seit R2024a)
Simulink.data.dataSource.addSourceAdd external data source to model (Seit R2024b)
Simulink.data.dataSource.removeSourceRemove external data source from model (Seit R2024b)
Simulink.data.dataSource.hasSourceDetermine if specified external data source is associated with model (Seit R2024b)
Simulink.data.dataSource.getSourceNamesGet list of all external data sources associated with model (Seit R2024b)
Simulink.data.dictionary.closeAllClose all connections to all open data dictionaries
Simulink.data.dictionary.createErstellen eines neuen Data Dictionary und eines Simulink.data.Dictionary-Objekts
Simulink.data.dictionary.openÖffnen und Bearbeiten eines Data Dictionary
Simulink.data.dictionary.getOpenDictionaryPathsReturn file names and paths of open data dictionaries
Simulink.dictionary.archdata.createCreate Simulink data dictionary and Architectural Data object (Seit R2023b)
Simulink.dictionary.archdata.openCreate Architectural Data object representing architectural data of existing Simulink data dictionary (Seit R2023b)
Simulink.LibraryDictionary.clearClear library dictionary dependency analysis (Seit R2021a)
Simulink.LibraryDictionary.refreshUpdate library dictionary dependencies (Seit R2021a)
Simulink.LibraryDictionary.resetLibraryLinksClear cached information on library dictionary links (Seit R2022a)
Simulink.data.adapters.catalogList registered file adapters (Seit R2022b)
Simulink.data.adapters.registerAdapterRegister custom file adapter (Seit R2022b)
Simulink.data.adapters.unregisterAdapterUnregister custom file adapter (Seit R2022b)
Simulink.findVarsAnalyze relationship between variables and blocks in models
matlab.io.saveVariablesToScriptSave workspace variables to MATLAB script
Simulink.data.assigninGlobalModify variable values in context of Simulink model
Simulink.data.evalinGlobalEvaluate MATLAB expression in context of Simulink model
Simulink.data.existsInGlobalDetermine if variable exists in context of Simulink model
Simulink.data.getVariableFromGlobalGet variable defined in context of Simulink model (Seit R2024b)
Simulink.data.resolveInGlobalResolve MATLAB expression in context of Simulink model (Seit R2024b)

Objekte

alle erweitern

Simulink.data.DataConnectionData source connection (Seit R2024a)
Simulink.ModelWorkspaceProgrammatisches Interagieren mit dem Modell-Workspace eines Modells
Simulink.data.DictionaryData Dictionary konfigurieren
Simulink.data.dictionary.SectionConfigure data dictionary section
Simulink.data.dictionary.EntryConfigure data dictionary entry
Simulink.data.dictionary.EnumTypeDefinitionStore enumerated type definition in data dictionary
Simulink.dictionary.ArchitecturalDataEdit architectural data in a Simulink data dictionary programmatically (Seit R2023b)
Simulink.dictionary.archdata.AliasTypeEdit Simulink alias types in Simulink data dictionary (Seit R2023b)
Simulink.dictionary.archdata.ConstantStore constant values in Architectural Data section of data dictionaries (Seit R2023b)
Simulink.dictionary.archdata.DataInterfaceData interface in Architectural Data section of Simulink data dictionary (Seit R2023b)
Simulink.dictionary.archdata.DataElementData element of data interface (Seit R2023b)
Simulink.dictionary.archdata.EnumTypeEnumerated data type stored in Architectural Data section (Seit R2023b)
Simulink.dictionary.archdata.EnumeralEnumeration member of enumerated data type stored in Architectural Data section (Seit R2023b)
Simulink.dictionary.archdata.PhysicalInterfacePhysical interface (Seit R2023b)
Simulink.dictionary.archdata.PhysicalElementPhysical element of a physical interface (Seit R2023b)
Simulink.dictionary.archdata.FunctionElementFunction in client-server interface (Seit R2023b)
Simulink.dictionary.archdata.FunctionArgumentFunction argument in function element of client-server interface (Seit R2023b)
Simulink.dictionary.archdata.ServiceInterfaceService interface (Seit R2023b)
Simulink.dictionary.archdata.StructTypeStructure data type (Seit R2023b)
Simulink.dictionary.archdata.StructElementStruct element of a struct type (Seit R2023b)
Simulink.dictionary.archdata.NumericTypeEdit Simulink numeric types in Simulink data dictionary (Seit R2023b)
Simulink.dictionary.archdata.ValueTypeSpecify common set of signal properties for reuse in Architectural Data section (Seit R2023b)
Simulink.data.adapters.BaseMatlabFileAdapterBase class used to define file adapter for reading custom file formats (Seit R2022b)
Simulink.data.DataSourceWorkspaceContains data for external data source (Seit R2022b)
Simulink.data.adapters.AdapterDataTesterTest custom external file adapter (Seit R2022b)
Simulink.WorkspaceVarStore information about workspace variables and blocks that use them
Simulink.VariableUsageStore information about the relationship between variables and blocks in models
Simulink.CoderInfoSpecify information needed to generate code for signal, state, or parameter data

Tools

Architectural DataEditorManage architectural data (Seit R2023b)

Themen

Datenspeicherung für Simulink-Modelle

Datenspeicherung in Modell-Workspaces

  • Model Workspaces
    Place variables and objects that a model uses in a workspace that only the model can access.
  • Change Model Workspace Data
    When you store data in a model workspace, you choose a data source, such as the model file or an external MAT-file. To modify the variables at the source, you use a different procedure depending on the type of source that you selected.
  • Specify Source for Data in Model Workspace
    Store variables and objects that a model uses in the model file or in a separate file. Optionally, store the variables and objects as code that you can modify.

Datenspeicherung im Wörterbuch

Datenspeicherung in externen Dateien

Datenspeicherung in Objekten und Variablen

  • Data Objects
    Specify properties for parameters, signals, and states, including parameter values, outside of a block diagram by using external data objects.
  • Symbol Resolution
    You can control how blocks in a model resolve symbols to variables and objects that you create in workspaces.
  • Define Data Classes
    Customize the way your model interacts with data (signals, parameters, and states) by creating your own class of data object.
  • Upgrade Level-1 Data Classes
    Simulink no longer supports level-1 data classes. You must upgrade data classes that you created using the level-1 data class infrastructure, which was removed in a previous release.

Verwandte Informationen