Testing large-scale models in SIMULINK
古いコメントを表示
We are creating a synthetic envrionment where all our subsystems are software models (i.e. no actual physical system is present). In the previous designs of our system, the component models were done in C. To improve our approach, we hae decided to take SIMULINK approach and see how much we can improve in efficiency. The confusions we are faced with are:
1) Testing - How to unit-test a large scale and multirate system in SIMULINK without involving HIL and PIL testing (i.e. xPC target)? What we have done so far is create a wrapper model which will then connect to a set of CONSTANT/STEP/SEQUENCE STAIR blocks (i.e. test inputs) in SIMULINK and displays outputs (after simulation run) in a scope. Is that what SIMULINK is actually useful for? Because it took us a long time to knock out that test model. Are you supposed to do testing like this?
2) Understanding the correct use of SIMULINK - Because we are creating a software model of one/many physical systems and then joining them together to complete integration, we don't have the luxury to do HIL or PIL testing as there is no proper interface. But, we do need the generated C code because our target computer (i.e. the one which will be used to run the simulation) can use C code. In a case like ours, can we even use SIMULINK or is it atually not fit for purpose for this case? Because, we are starting to think that it may not be.
P.S. I have visited a lot of SIMULINK tutorial videos and it seems that everything is pointing to using different blocksets (e.g. SimMechanics, Simelectronics, SimHydraulics, xPC target) for HIL and PIL testing instead of focusing on old fashioned black-box testing a SIMULINK model. What is the solution for testing a large-scale model without HIL or PIL?
採用された回答
その他の回答 (1 件)
It seems like you are looking for a testing tool that provides closed loop as well as real-time functionalities. TPT is such a testing and verification tool for Simulink models in MiL, SiL, PiL and xPC Target. TPT can be used with or without models of the environment and can be applied to all systems that can be executed and simulated in Simulink.
カテゴリ
ヘルプ センター および File Exchange で Test Model Components についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!