Use getparam to get value from bus signal

조회 수: 11 (최근 30일)
Clara
Clara 2023년 8월 28일
답변: kei hin 2023년 8월 30일
Is it possible to use getparam to get signal values from a bus?
for example
getparam(busname, signal1,value)
the function get param only allows 2 arguments, so that doesn't work, but I would like something using this logic
Is it possible? How do I do it?
Thanks!

채택된 답변

kei hin
kei hin 2023년 8월 30일
I guess you can try to use 'To Workspace' block which in Simulink/Sinks library , link to bus selector block to pick the data you want, then read the data from workspace.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by