Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I enable two blocks by outputs of each other in Simmechanics?

조회 수: 1 (최근 30일)
Lei Gao
Lei Gao 2016년 7월 11일
마감: MATLAB Answer Bot 2021년 8월 20일
In a multibody model constructed in Simmechanics, I'd like to enable only one of two blocks at one time. One of them is supposed to be disabled when the output of another is non-zero. How could I achieve this? Thanks in advance to anyone who can give any insight.
(These two blocks were constructed using Steve Miller's contact library, if it helps to understand my issue more clearly.)
  댓글 수: 1
Lei Gao
Lei Gao 2016년 7월 11일
I've tried using if/else blocks with their output being the condition. However, an error occurs when I did so:
Input data dependency violation due to action subsystems. See Subsystem Examples in the Simulink library for valid and invalid examples of action subsystems.
Hope this information helps.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by