Mux/Demux for physical signals

조회 수: 19 (최근 30일)
Christian
Christian 2020년 6월 17일
댓글: wwmathchat 2021년 12월 3일
Hi!
Given a physical signal vector, how can I split up the vector into its components? That would be something like Mux/Demux for physical Signals.
Example:
inVector = {[1, 2, 3], 'm'};
outScalar = {1, 'm'};
outVector = {[2,3], 'm'};
What I could do ist to use PS-Simulink-Converter → demux (→ Mux foroutVector) → Simulink-PS-Converter. But in this case I get an error creating a composite component of it.
Probably I could create a custom component for splittin the signals up, but that seems a bit cumbersome to me.

채택된 답변

Joel Van Sickel
Joel Van Sickel 2020년 8월 5일
Hello Christian,
you are unfortunately correct in that you must create your own mux and demux blocks for simscape physical signals. There is a simscape bus, but it only works for standard bi-direction physical connections, and does not support physical signals. If you have the simscape electrical toolbox, it does have some prebuilt mux and demux options built in for the converters.
Regards,
Joel
  댓글 수: 2
Christian
Christian 2020년 8월 10일
This is not the answer I wanted to hear ;-)
Thank you anyway. So I don't need any further research for this.
wwmathchat
wwmathchat 2021년 12월 3일
Did you figure out how to make a mux, Christian? As far as I can tell, it's not possible to make a mux/demux custom component with variable input/output size in simscape because for loops are not allowed for input and output definitions.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by