Internal Signal logging during SIL Simulation

Hello All,
Has anyone tried logging internal signals in SIL Simulation?
The suggested C API method from Mathworks is not working in my case.
Regards,
Vishakha

답변 (1개)

Nick Sarnie
Nick Sarnie 2019년 7월 13일
편집: Nick Sarnie 2019년 7월 13일

0 개 추천

Hi Vishakha,
Are you following the below workflow?
If so, can you confirm that the internal signal of interest is present in the generated code? You may need to mark it as a Test Pointed signal to get it to be preserved.
If a buffer for the signal of interest is preserved in the general code, but SIL internal data is not working, please contact Technical Support and reference this post.
Thanks,
Nick

댓글 수: 3

Hello Nick,
Thank you for the response.
So if i use the c-api method and resolve the signal, it is not present in _cpai.c file.
If I do not resolve it is present and then the signal is also present in the logsout and can be monitored.
Regards,
Vishakha
Vishakha Bhatia
Vishakha Bhatia 2019년 8월 8일
편집: Vishakha Bhatia 2019년 8월 8일
Hello Nick,
For R2015b. where for SIL simulation if SIL / PI Lblock is used and not model reference, even if the signal is present in capi.c, it is not present in logs out to be monitored.
I am thinking this is a bug.
Regards,
Vishakha
Please feel free to contact Technical Support.

댓글을 달려면 로그인하십시오.

제품

릴리스

R2015b

질문:

2019년 7월 11일

댓글:

2019년 8월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by