Inter runnable variables not imported for init runnable

조회 수: 3 (최근 30일)
Jeevan Kumar Guntammagari
Jeevan Kumar Guntammagari 2019년 7월 22일
댓글: Noufal Thangal Rahim 2023년 5월 25일
Hello,
I have a software component with 2 runnables 1)Init runnable 2)Periodic 10ms runnable. There are few Inter runnable variables configured and ReadWrite access is provided to both runnables, But still i see warning as mentioned below.
Warning: Inter-runnable variable (IRV) 'CddComponent/CddComponent_MainFunction_10ms_sys' in runnable
'IRV_InternalStatus' not imported into Simulink model. Simulink supports IRVs that communicate data between
runnables, but this IRV is read and written by only one runnable. Either delete this IRV from the arxml file or use a different
approach for data that is accessed by only one runnable, such as arTypedPerInstanceMemory.
Question: 1)Why is this warning still seen even after i provide ReadWrite access to both "InitRunnable" and "Periodic10msRunnable" ?
2)If i try to create IRVs for Init Runnable in Simulink Model, it throws a build error that IRVs cannot be defined for Init Runnable or function. But my design requires to access IRVs in Init Runnable.

답변 (1개)

Sudhakar Shinde
Sudhakar Shinde 2021년 2월 8일
This is limitation. However you already noted you can use PIM (Per-instance-memory) for this purpose instead of IRV.
  댓글 수: 1
Noufal Thangal Rahim
Noufal Thangal Rahim 2023년 5월 25일
PIM becomes Data Store memory block in Simulink.
And throws warnings such as "Read before Write".
If you are ok with these warning, PIM is the solution.

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

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by