Creating a mask/dialog of a subsystem and setting sample time for all components within

조회 수: 2 (최근 30일)
I have a subsystem that contains a discrete filter block(with various inputs), how can I make my mask/dialog for my subsystem that will set the sample time for the discrete filter within the block?

채택된 답변

Sebastian Castro
Sebastian Castro 2015년 5월 29일
You can create a mask variable (for example, Ts ) that users can enter in the dialog box.
Then, inside the masked subsystem, you can set the sample time of the filter block to that variable Ts.
You can see how this all looks if you drag in a Discrete PID Controller block, for instance, right-click it, and select Mask > Look Under Mask.
- Sebastian

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by