Hello,
I have this demo model, which I generated Autosar code from the model.... How I can check in the code generated from simulink will execute the algebraic loop.... When I checked the code, there is no loop is executing, I mean it's just adding input constant 1 with delay block only....How to be sure the output from the loop is adding with input?
#include "Test_case1.h"
#include "Test_case1_private.h"
/* Block states (default storage) */
DW_Test_case1_T Test_case1_DW;
/* Model step function */
void Test_case1_Step(void)
{
  /* If: '<Root>/If1' incorporates:
   *  Constant: '<Root>/Constant'
   *  Inport: '<S1>/In1'
   *  Sum: '<Root>/Add1'
   *  UnitDelay: '<Root>/Unit Delay1'
   */
  if (((float32)(Test_case1_DW.UnitDelay1_DSTATE + 1.0) < 0.0F) ||
      ((Test_case1_ConstB.DataTypeConversion <= 1.0F) ||
       (Test_case1_ConstB.DataTypeConversion >= 3.0F))) {
    /* Outputs for IfAction SubSystem: '<Root>/If Action Subsystem3' incorporates:
     *  ActionPort: '<S2>/Action Port'
     */
    /* SignalConversion generated from: '<S2>/output1' incorporates:
     *  Constant: '<S2>/Constant'
     */
    Test_case1_DW.UnitDelay1_DSTATE = 0.0F;
    /* End of Outputs for SubSystem: '<Root>/If Action Subsystem3' */
  } else {
    /* Outputs for IfAction SubSystem: '<Root>/If Action Subsystem1' incorporates:
     *  ActionPort: '<S1>/Action Port'
     */
    Test_case1_DW.UnitDelay1_DSTATE = (float32)(Test_case1_DW.UnitDelay1_DSTATE
      + 1.0);
    /* End of Outputs for SubSystem: '<Root>/If Action Subsystem1' */
  }
  /* End of If: '<Root>/If1' */
}
/* Model initialize function */
void Test_case1_Init(void)
{
  /* (no initialization code required) */
}
/*
anyfeedabck appreciated, thank you!