Main Content

이 페이지는 기계 번역을 사용하여 번역되었습니다. 영어 원문을 보려면 여기를 클릭하십시오.

Simulink.ModelTransform.BusTransformation.identify

변환할 버스 선택기 및 버스 생성기 블록 식별

R2022b 이후

설명

identificationResults = Simulink.ModelTransform.BusTransformation.identify(model)model에 있는 Bus SelectorBus Creator 블록을 반환합니다. 모델을 단순화하려면 입력용 Bus Selector 블록과 출력용 Bus Creator 블록 대신 In Bus ElementOut Bus Element 블록을 사용하십시오.

예제

모두 축소

적합한 Bus SelectorBus Creator 블록에 대한 모델을 검색하고 결과를 저장합니다.

openExample('VirtualBusPortCreationModel')
identificationResults = Simulink.ModelTransform.BusTransformation.identify('VirtualBusPortCreationModel')
identificationResults =

  Results with properties:

          TopModel: 'VirtualBusPortCreationModel'
    BusHierarchies: {4×1 cell}
identificationResults.BusHierarchies
    4×1 cell array

        {1×1 Simulink.ModelTransform.BlockInfo}
        {1×1 Simulink.ModelTransform.BlockInfo}
        {1×1 Simulink.ModelTransform.BlockInfo}
        {1×1 Simulink.ModelTransform.BlockInfo}
hierarchy_1 = identificationResults.BusHierarchies{1} 
hierarchy_1 = 

  BlockInfo with properties:

    Path: 'VirtualBusPortCreationModel/Subsystem2/Bus Selector 2'

입력 인수

모두 축소

모델 이름으로, 문자형 벡터 또는 string형 스칼라로 지정됩니다.

출력 인수

모두 축소

Bus SelectorBus Creator 블록을 In Bus ElementOut Bus Element 블록으로 변환할 수 있는 식별되었으며, Simulink.ModelTransform.BusTransformation.Result 객체로 반환되었습니다.

버전 내역

R2022b에 개발됨