How to "activate" or "deativate" 'to Workspace' simlunk block from m-code?

조회 수: 4 (최근 30일)
Hi, folks!
I am just wondering if there is any way to activate or deactivate the Simulink block 'to Worspace' from m-code.
Being clearer, imagine a system has: out1, out2, ..., outN outputs and before starting simulation I must define which one I want to see in workspace indeed without changing the simulink system.
Thanks in advance!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2014년 7월 18일
You have N output given by N to worksapce blocks, then you can display the output you want, What is the problem with that?
  댓글 수: 1
Hugo Mendonça
Hugo Mendonça 2014년 7월 18일
The system has N 'to workspace' blocks for all possible outputs. However, depending on the simulation, it would be satisfactory to define which outputs are desired to be exported to free memory (this is an useful trick when it is a long simulation). So, the idea is to select which 'to workspace' will be exported, without changing the blocks in the system.
Thanks for your answer! Cheers!

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

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by