SIMULINK testing a model that has bus input and output ports

23 views (last 30 days)
I have a SIMULINK model that uses bus inputs and outputs as top level ports. When I am testing it, I don't know how to create a test signal as a bus and feed it into the model. I know that the straightforward way to do it is to create lots of individual signal and use bus creator block to group those as a bus that will feed into the model. However, this may not be a very efficient way to do things. Does anyone know any alternative?
I tried to look into Mathworks website but nothing really came up. Any help would be appreciated
  2 Comments
Mohammed Manna
Mohammed Manna on 13 Jan 2014
Thanks. i have already found the solution, it was basically an array of buses and all the leaf bus and element names needed to be EXACTLY the same in my input signal structure (a bit weird)

Sign in to comment.

Answers (1)

Jens
Jens on 13 Jan 2014
TPT is a very efficient testing and verification tool for Simulink models. It handles busses as well as vector signals automatically. The test harness for the Simulink model can be build automatically. So it is very efficent. TPT

Tags

Products

Community Treasure Hunt

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

Start Hunting!