필터 지우기
필터 지우기

Dealing with multiple signal selection

조회 수: 5 (최근 30일)
Michael
Michael 2012년 9월 25일
Hi,
I am trying to use simulink to test multiple actuators depending on the type of control, longitudinal, collective, lateral etc.. I have my simulink model set up where I can make the actuator type selection via GUI to feed my simulink model the parameters for a longitudinal, collective, lateral control etc.
I am at the point where I want to use the signal generator to test various performance requirements specific to each actuator. Is there a way I can select which index signal I want run without simulink generating all the signals in the signal generator? I have tried doing this manually using a multichannel switch, but the run time is slow because simulink calculates the signals even if they are unused.. So what I am looking for is the most efficient way that can be interfaced with GUI.

답변 (4개)

Ryan G
Ryan G 2012년 9월 25일
See the first example in the this blog post. Wrap the generators in enabled subsystems and they will only be run when they are enabled.

Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 25일
편집: Azzi Abdelmalek 2012년 9월 26일
try switch case action subsystem block or if action subsystem block

Michael
Michael 2012년 9월 25일
Ryan G, not sure if that solves my problem or perhaps I do not fully understand.
Lets say I make a signal generator that has 3 custom signals represented by index 1,2,3 within the signal generator GUI. If I implement a multichannel switch that lets me route one of the 3 signals to my model, it still generates the other 2 signals i have built in signal generator.
Another way I could see working is just making a new "group" for each of my signals. Test signal 1,2,3 etc. Is there a way to have the simulation run a particular signal group within signal builder without having to open up the signal builder GUI to select the group (tabs)?
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 26일
look at the above figure, place in each if action subsystem your generator

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


Michael
Michael 2012년 9월 26일
Azzi,
Thank you. This will cut down some of the run time. This will limit which of my signal generators will run. However, if my signal builder has different signals/groups, is there a way to select which "group" in signal builder I want it to use?
  댓글 수: 1
Azzi Abdelmalek
Azzi Abdelmalek 2012년 9월 26일
Michael, don't reply to a comment with an answer, just click on comment this answer.
I want to know, how many differents signals are you using? what kind of signals? Is a signal builder necessery?

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

카테고리

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

제품

Community Treasure Hunt

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

Start Hunting!

Translated by