I am currently trying to write conditionally to the Rte for my AUTOSAR model, and I am not sure what are the mechanisms to do this is Simulink.
Sometimes I obtain results as follows, in which the value is specified inside of the if-else logic, but the Rte write is not executed conditionally (this happens for both implicit and explicit DataAccessMode, ie. both Rte_Write() and Rte_IWrite()):
if ((tmp == 1) {\n\n rtDW.Value = 1U;\n\n} else {\n\n rtDW.Value = 1U;\n\n}\n\nRte_IWrite_Runnable_10ms (rtDW.Value);\n}
How can I get the Rte call inside of the if-else clause?