Topic
  • 3 replies
  • Latest Post - ‏2019-05-22T12:16:17Z by chrisjsutton
Ach_Res
Ach_Res
25 Posts

Pinned topic Flowchart

‏2019-05-22T07:00:49Z |

HI All,

 

Can any one suggest how to design a flow chart for below sample code , so that i can generate similar  code in rhapsody .

 

if(CalcTempAmb_TempIfAlgo==0u)

{

Statements ;

}

else

{

statements;

}

if(CalcTempAmb_TempIfNov==0u)

{

statements

}

else

{

statements

}

return;

Thanks,

  • chrisjsutton
    chrisjsutton
    30 Posts

    Re: Flowchart

    ‏2019-05-22T08:41:29Z  

    Hi,

     

    Something like this will do the job:

     

     

    Note that the "else" clauses only generate code if there is something in the corresponding actions (just a comment in this case).

     

    There are also examples in the rhapsody/samples/csamples/flowchart project.

     

    Regards,

    Chris

  • Ach_Res
    Ach_Res
    25 Posts

    Re: Flowchart

    ‏2019-05-22T09:26:23Z  

    Hi,

     

    Something like this will do the job:

     

     

    Note that the "else" clauses only generate code if there is something in the corresponding actions (just a comment in this case).

     

    There are also examples in the rhapsody/samples/csamples/flowchart project.

     

    Regards,

    Chris

    HI Chris,

     

    thanks ,

     I tried in similar way ,but  rhapsody is not allowing to use control flow from merge node to decission node in code generation view .

     

    thanks,

  • chrisjsutton
    chrisjsutton
    30 Posts

    Re: Flowchart

    ‏2019-05-22T12:16:17Z  
    • Ach_Res
    • ‏2019-05-22T09:26:23Z

    HI Chris,

     

    thanks ,

     I tried in similar way ,but  rhapsody is not allowing to use control flow from merge node to decission node in code generation view .

     

    thanks,

    It should work. What rhapsody version are you using?