I am trying to explore the capabilities of Rhapsody with Simulink and I try to build a simple model. I am using Rhapsody v8 and Visual Studio 2008.
When I have lets say five blocks/classes like in the "png_ibd.png" (the green ones are Rhapsody blocks while the red ones Simulink blocks) and try to export them to Simulink (Export to Simulink for Simulation and Animation), I get an Algaibric Loop problem as it is shown in the "err_algebraicloop.png". I enclose the Rhaspody model in the zip file.
(Before this model, the "GenCotroller"-the bold green cirle in "png_ibd.png", did not exist and there was no problem with Simulink.)
I solved the problem by inserting in the Simulink model that is generated by Rhapsody, either a unit delay block in the "TC" input of TemperatuceWatchdog_TC_2build, either two unit delay blocks in the "itsInputData_OnOff" and "itsInputData_Temp" (see "err_sol.png")
I have three questions:
1) Is there any immediate solution to that problem? As if the model gets more compicated I do not know how easy will be to add a unit delay block at every block that maybe needs it ( I have already set to Simulink Simulation->Configuration Parameters->Diagnostics, the setting for Algebraic loop from "error" to "warning" or "none")
2) I read the documentation http://pic.dhe.ibm.com/infocenter/rhaphlp/v8/index.jsp?topic=%2Fcom.ibm.rhp.sysml.doc%2Ftopics%2Ft_example1.html regarding the "CruiseControlSystem" but I did not find it in the Samples. Can you provide it please as I think it will be very useful!
3) I saw another approach for extracting to Simulink in this video https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Wecb8ab5c4be5_4a1e_a0d0_e5a706eb66dc/page/Rhapsody%20and%20Simulink%20Integration ( @ minute 13:40) without using "StructureSimulink" block stereotype, but just connecting with flows, the classes in the bdd diagram. Do you know if something like this is possible? As I tried it and I got some linker errors and the S-Function could not be built by Rhapsody.
Thanks a lot in advance for your time!