Use getparam to get value from bus signal

4 次查看(过去 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 中查找有关 Programmatic Model Editing 的更多信息

产品


版本

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by