SIMULINK testing a model that has bus input and output ports

22 vues (au cours des 30 derniers jours)
Mohammed Manna
Mohammed Manna le 3 Déc 2013
Commenté : Mohammed Manna le 13 Jan 2014
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 commentaires
Ryan G
Ryan G le 4 Déc 2013
Are you using bus objects? Check out this blog post, it may help.
Mohammed Manna
Mohammed Manna le 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)

Connectez-vous pour commenter.

Réponses (1)

Jens
Jens le 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

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by