주요 콘텐츠

설계 데이터 관리하기

작은 프로젝트와 복잡한 모델 계층 구조의 모델 설계 데이터를 저장, 분할, 공유하는 방법 선택

설계 데이터는 Simulink® 모델에서 블록 파라미터와 신호 특성(예: 데이터형 및 차원)을 지정하는 데 사용하는 변수와 데이터 객체의 세트입니다. 설계 데이터의 저장 옵션에는 MATLAB® 기본 작업 공간, 모델 작업 공간, MATLAB 파일, 데이터 사전이 포함됩니다. 설계 데이터에 대한 저장 옵션 선택은 다음에 따라 달라질 수 있습니다.

  • 모델링 목표

  • 모델 아키텍처

  • 데이터형

모델 데이터형과 프로젝트의 데이터 저장을 관리하는 방법에 대한 자세한 내용은 Determine Where to Store Variables and Objects for Simulink Models 항목을 참조하십시오.

데이터를 프로그래밍 방식으로 관리하는 방법에 대한 자세한 내용은 Manage Design Data for Simulink Models Programmatically 항목을 참조하십시오.

함수

모두 확장

Simulink.data.connectCreate Simulink.data.DataConnection object for data source (R2024a 이후)
Simulink.data.dataSource.addSourceAdd external data source to model (R2024b 이후)
Simulink.data.dataSource.removeSourceRemove external data source from model (R2024b 이후)
Simulink.data.dataSource.hasSourceDetermine if specified external data source is associated with model (R2024b 이후)
Simulink.data.dataSource.getSourceNamesGet list of all external data sources associated with model (R2024b 이후)
Simulink.data.dictionary.closeAllClose all connections to all open data dictionaries
Simulink.data.dictionary.create새 데이터 사전 만들기 및 Simulink.data.Dictionary 객체 만들기
Simulink.data.dictionary.open편집을 위해 데이터 사전 열기
Simulink.data.dictionary.getOpenDictionaryPathsReturn file names and paths of open data dictionaries
Simulink.dictionary.archdata.createCreate Simulink data dictionary and Architectural Data object (R2023b 이후)
Simulink.dictionary.archdata.openCreate Architectural Data object representing architectural data of existing Simulink data dictionary (R2023b 이후)
Simulink.LibraryDictionary.clearClear library dictionary dependency analysis (R2021a 이후)
Simulink.LibraryDictionary.refreshUpdate library dictionary dependencies (R2021a 이후)
Simulink.LibraryDictionary.resetLibraryLinksClear cached information on library dictionary links (R2022a 이후)
Simulink.data.adapters.catalogList registered file adapters (R2022b 이후)
Simulink.data.adapters.registerAdapterRegister custom file adapter (R2022b 이후)
Simulink.data.adapters.unregisterAdapterUnregister custom file adapter (R2022b 이후)
Simulink.findVarsAnalyze relationship between variables and blocks in models
matlab.io.saveVariablesToScript작업 공간 변수를 MATLAB 스크립트에 저장
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 (R2024b 이후)
Simulink.data.resolveInGlobalResolve MATLAB expression in context of Simulink model (R2024b 이후)

객체

모두 확장

Simulink.data.DataConnectionData source connection (R2024a 이후)
Simulink.ModelWorkspace모델의 모델 작업 공간과 프로그래밍 방식으로 상호 작용
Simulink.data.Dictionary데이터 사전 구성
Simulink.data.dictionary.Section데이터 사전 섹션 구성
Simulink.data.dictionary.Entry데이터 사전 항목 구성
Simulink.data.dictionary.EnumTypeDefinitionStore enumerated type definition in data dictionary
Simulink.dictionary.ArchitecturalDataSimulink 데이터 사전의 아키텍처 데이터를 프로그래밍 방식으로 편집 (R2023b 이후)
Simulink.dictionary.archdata.AliasTypeEdit Simulink alias types in Simulink data dictionary (R2023b 이후)
Simulink.dictionary.archdata.ConstantStore constant values in Architectural Data section of data dictionaries (R2023b 이후)
Simulink.dictionary.archdata.DataInterfaceData interface in Architectural Data section of Simulink data dictionary (R2023b 이후)
Simulink.dictionary.archdata.DataElementData element of data interface (R2023b 이후)
Simulink.dictionary.archdata.EnumTypeEnumerated data type stored in Architectural Data section (R2023b 이후)
Simulink.dictionary.archdata.EnumeralEnumeration member of enumerated data type stored in Architectural Data section (R2023b 이후)
Simulink.dictionary.archdata.PhysicalInterfacePhysical interface (R2023b 이후)
Simulink.dictionary.archdata.PhysicalElementPhysical element of a physical interface (R2023b 이후)
Simulink.dictionary.archdata.FunctionElementFunction in client-server interface (R2023b 이후)
Simulink.dictionary.archdata.FunctionArgumentFunction argument in function element of client-server interface (R2023b 이후)
Simulink.dictionary.archdata.ServiceInterfaceService interface (R2023b 이후)
Simulink.dictionary.archdata.StructTypeStructure data type (R2023b 이후)
Simulink.dictionary.archdata.StructElementStruct element of a struct type (R2023b 이후)
Simulink.dictionary.archdata.NumericTypeEdit Simulink numeric types in Simulink data dictionary (R2023b 이후)
Simulink.dictionary.archdata.ValueTypeSpecify common set of signal properties for reuse in Architectural Data section (R2023b 이후)
Simulink.data.adapters.BaseMatlabFileAdapterBase class used to define file adapter for reading custom file formats (R2022b 이후)
Simulink.data.DataSourceWorkspaceContains data for external data source (R2022b 이후)
Simulink.data.adapters.AdapterDataTesterTest custom external file adapter (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

아키텍처 데이터 편집기Manage architectural data (R2023b 이후)

도움말 항목

Simulink 모델을 위한 데이터 저장

모델 작업 공간에 데이터 저장

  • 모델 작업 공간
    모델이 사용하는 변수와 객체를 해당 모델만 액세스할 수 있는 작업 공간에 배치합니다.
  • 모델 작업 공간 데이터 변경하기
    모델 작업 공간에 데이터를 저장할 때는 모델 파일 또는 외부 MAT 파일과 같은 데이터 소스를 선택합니다. 소스에서 변수를 수정하려면 선택한 소스 유형에 따라 각기 다른 절차를 사용해야 합니다.
  • 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.

사전에 데이터 저장

외부 파일에 데이터 저장

객체 및 변수에 데이터 저장

  • 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.