Returning output signals from a Simulink block to Matlab
2 views (last 30 days)
Show older comments
Luke Chapman on 2 Mar 2023
Commented: Fangjun Jiang on 10 Mar 2023
I have a Simulink Block with 9 output signals which can either be 0 or 1 (true or false). Each output signal is connected to an OutBus. I want to be able to get the values for each of the signals in Matlab so I can assign them to variables and use them elsewhere. I need to be able to do this while the simulation is running, which is where I am having trouble. Any help would be appreciated.
Fangjun Jiang on 6 Mar 2023
Fangjun Jiang on 10 Mar 2023
Route those two signals together to make a nonvirtual bus. Make it nonvirtual or convert it to nonvirtual.
More Answers (0)
Find more on Event Functions in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!