Thanks for your example, it was really great and helped me a lot. I am modeling a flexible link in 2nd gen but I have problems with K and C parameters and I couldn’t find the right number of them, I searched the relation between Elasticity and stiffness ( K ) in web and I found these two ( E.I /L and E.A /L ) I tried them both and they didn’t answer. I wanna know how you define these numbers. ( K & C =????? )

Regards,

Pedram

]]>Thanks for the response. Basically, I define all my signals in a big hierarchical bus object using scripts that run in a model load callback. Then I pass that that single bus from one subsystem to the next to the next. Within each subsystem, various bus elements are read from the bus and used in math. Other bus elements are written and then the same bus object leaves that subsystem. It sounds like the feature is heading in the right direction for me, but isn’t ready for my use in its current form.

]]>Thank you for this post to introduce Simulink Test Manager which greatly simplifies Simulink testing.

One example in which I have used both Simulink Test Manager+ MATLAB Unit Test together is to define a “custom criteria” which is a section available in the test definition in the Test Manager. Say I want to inject a chirp signal into my model to get a frequency response and verify that it lies within expected bounds. I can use the full power of MATLAB to process the data and generate the frequency response and figure, and then use MATLAB unit test verifyLessThan / verifyGreaterThan syntax to compare the result with the bounds. The result is is neatly returned to the Test Manager, and I can get this result and the Bode/Nichols figure included in the test report without any additional coding required – powerful and neat. ]]>

For the bus assignment behavior, it sounds like what you are asking for is overlapping writes or a type of bus merging and appending behavior? Is this correct? If so, I don’t think it’s supported. You will need Bus Assignment blocks to do this, if I understand this correctly.

In terms of bus objects, only bus element ports that select elements of a non-virtual bus are supported. Using bus objects to define buses at the interfaces is currently not supported. You can work around this by inserting a Signal Conversion or Signal Specification block at the output of the Subsystem and specify the bus object there.

]]>Francly, I find too much difficulties in using function block to implement M-code in simulink model.

actually, I want to generate a random carrier (random triangular to genrate random pwm) by using simulink but it is difficult so I have an algorithme that run well. Can you help me to solve this problem. ]]>

In the meantime (while we put a CI post together), check out https://www.mathworks.com/help/sltest/ug/run-test-files-using-matlab-unit-test.html, if you haven’t had a chance yet. Section “Test a Model for Continuous Integration Systems” should give some idea of Simulink Test/MATLAB Unit Test framework & CI. ]]>

Yes, we are working on a follow-up post about CI integration systems like Jenkins. This will be coming soon.

]]>Not sure if there is another article planned so I thought I would ask a question about how the two testing frameworks can be connected? Since Matlab UTF supports CI integration with systems like Jenkins, does that make it easier to support it with Simulink Test? Is there a best practice for using both of the tools or is it better to stay in one or the other? Thanks.

Aditya ]]>