S function generation for SIL/B2B testing
5 views (last 30 days)
Show older comments
Hi,
I have a matlab model and my aim is to perform MIL vs SIL testing/ B2B testing. I am using Matlab 2020a version.( Not using SIL/PIL app mode as of now because not able to handle simulation if I have multiple test vectors signal groups in my signal editor block)
Currently I am generation SIL block by
1) Right click on top level subsystm of model -->Generate C/C++code --> Generate S-function OR
2) Right click on top level subsystm of model -->Test Harness option --> Select SIL option in preopetries block and generate SIL block.
Initially I found mismatches in model and code and I debuggd those and now MIL vs SIL output results are matching.
I knew that using skeleton s-function template file also we can generate SIL block. ( first generate Autocode and then generate S-fun using modified skeleton template file for my model)
According to me there is no functional difference whether we generate s function/SIL block by any way mentioned as above. Can anyone confirm this?
I wanted to confirm my understanding is correct or is there anything I can still check or take care if I am generating SIL block directly.
Also pls suggest which option is useful for generating SIL block for performing B2B testing/ MIL vs SIL testing.
Your reply to my query will be very helpful, Thank you in advance...!
0 Comments
Answers (0)
See Also
Categories
Find more on Test Model Components 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!