주요 콘텐츠

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

Simulink.ModelTransform.BusTransformation.refactor

R2025a

버스 선택기 및 버스 생성기 블록을 In Bus Element 및 Out Bus Element 블록으로 교체

R2022b 이후

설명

Simulink.ModelTransform.BusTransformation.refactor(identificationResults)는 식별된 Bus Selector 및 Bus Creator 블록을 모델의 In Bus Element 및 Out Bus Element 블록으로 대체합니다.

예제

모두 축소

모델의 Bus Selector 및 Bus Creator 블록을 In Bus Element 및 Out Bus Element 블록으로 교체합니다. VirtualBusPortCreationModel 모델을 열고 모델에서 Bus Selector 및 Bus Creator 블록을 식별합니다.

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

  Results with properties:

          TopModel: 'VirtualBusPortCreationModel'
    BusHierarchies: {4×1 cell}

식별된 Bus Selector 및 Bus Creator 블록을 VirtualBusPortCreationModel 모델의 In Bus Element 및 Out Bus Element 블록으로 교체합니다.

Simulink.ModelTransform.BusTransformation.refactor(identificationResults)

입력 인수

모두 축소

Bus Selector 및 Bus Creator 블록을 In Bus Element 및 Out Bus Element 블록으로 변환할 수 있는 식별되었으며, Simulink.ModelTransform.BusTransformation.Result 객체로 지정되었습니다.

버전 내역

R2022b에 개발됨