Dear All,
I have a subsystem in my model. When I disable (by Cont+Shift+X) it my model works great and I can get all CAN messages. But when I enable I can not get any CAN messages despite of that model has nothing related with CAN in itself.
To be able to debug the problem I deleted all inner subsytems and only terminators remain. But still it does not operate. What may be the problem?
Thanks.
Figure 1. Model
Figure 2. Inner part of model (most of them is deleted)
Solved! Go to Solution.
Hello ykarata1@ford.com.tr,
I see that you are using that enable block, which as far as I understand you expect to enable the execution for that subsystem if the signal is set. It should behaves similar to the if statement, right? I don't know how this block behaves under C code generation, so this requires a look in the generated code.
In this case can you try replacing the "enable" logic with an if statement one? Basically to call the subsystem when the input signal is set?
Hope this helps,
Marius
Hello ykarata1@ford.com.tr,
I see that you are using that enable block, which as far as I understand you expect to enable the execution for that subsystem if the signal is set. It should behaves similar to the if statement, right? I don't know how this block behaves under C code generation, so this requires a look in the generated code.
In this case can you try replacing the "enable" logic with an if statement one? Basically to call the subsystem when the input signal is set?
Hope this helps,
Marius
Hello @mariuslucianand ,
That has worked. Thansk for that simple advice. I was thinking that that is not the cause since we use many enable function in other subsystems.
Thansk again.
Dear All,
Also I am trying to add state diagram to my system. When I add it also stops working. Do you sene anything wrong on images below?
Thanks.
Thanks in advance.