필터 지우기
필터 지우기

How to call initialize a subsystem Block?

조회 수: 2 (최근 30일)
Jagmohan singh
Jagmohan singh 2012년 7월 27일
Hi, I want to know if there is any way of calling the Matlab code written in initialization pane of a subsystem without running simulation or without changing Mask Parameters.
I have a network created by a number of subsystem blocks. Each subsystem modifies itself based on the number of blocks to which it is connected and also retrieves some information from connected blocks. I want to have a some refresh kind of functionality so that once all the subsystem blocks are connected I can ask Simulink to call the initialization expression for all of the subsystem without actually running the simulation.
Thanks for the help...

채택된 답변

Jagmohan singh
Jagmohan singh 2012년 7월 28일
I got the Solution. I didn't see that On simulink diagram, there is an option called 'Update Diagram' in its context menu. After creating the network, I just select 'update diagram' after right clicking in model window, it worked. It updated all the susbsystem blocks.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by