Simulink how to comb data export to "To Workspace"

조회 수: 1 (최근 30일)
legendbb
legendbb 2012년 7월 17일
A discrete system with enabled subsystem, I'd like to keep only outputs when the enabled subsystem is enabled.
It's like save signal values on at simulation time [1 3 5 7 9 ...] Or enabled "to workspace". Exclude changing sampling time, since the enable signal can be random.
Source --> Enabled Subsystem --> to workspace
Current model, the "To Workspace" keeps every sample for every sample step. How to make this gated behavior saved.
Please comment,
Thanks,

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 7월 18일
Try moving the To Workspace block inside of the Enabled Subsystem.
  댓글 수: 1
legendbb
legendbb 2012년 7월 18일
Bingo, great thanks for your reply. I got it working as expected.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by