Welcome to Realtime Technologies Support Forum


  Reply to this topicStart new topicStart Poll

> Running a simulation as generic causes problems
ajturner
Posted: Sep 27 2005, 10:08 AM
Quote Post


Unregistered









When you try to run a simulation as "Generic" and the simulation can't start and says there are errors, there are several common problems.

[B]Problem 1:[/B] [I]The error log says something about a generic component not being found:[/I]

[CODE]
***********************
Initializing Simulation
Tue Sep 27 13:00:44 2005

Using double precision SimRealVar
SimFatal: Could not find generic component User/Simulation/Audio.cmp
Closing Simulation
Tue Sep 27 13:00:44 2005

Closed Simulation
*****************
[/CODE]

[B]Solution:[/B]
You need to either change your "Generic Model" or recompile it. To check which generic model template you are using, go to the "File" menu, then choose "Configure..." The default Generic Model is "Standard.exe". More advanced models required "Blocks.exe".

If you know you have the correct generic model selected, open the model and under "Code" menu, choose "Compile Generic..." When this is complete, return to your original simulation and attempt to run it again.

[B]Problem 2:[/B] [I]The correct generic model is selected, but the interpreted sim fails with a large list of warnings like:[/I]

[CODE]
***********************
Initializing Simulation
Tue Sep 27 13:04:27 2005

Using double precision SimRealVar
Checking Inputs
Warning: Did not find comp-name Dynamics-ExternalForce[0][0]
Warning: Did not find comp-name Dynamics-ExternalForce[0][1]
Warning: Did not find comp-name Dynamics-ExternalForce[0][2]
Warning: Did not find comp-name Dynamics-ExternalMoment[0][0]
Warning: Did not find comp-name Dynamics-ExternalMoment[0][1]
Warning: Did not find comp-name Dynamics-ExternalMoment[0][2]
Warning: Did not find comp-name Dynamics-ResetPos[0][0]
Warning: Did not find comp-name Dynamics-ResetPos[0][1]
Warning: Did not find comp-name Dynamics-ResetPos[0][2]
Warning: Did not find comp-name Dynamics-ResetOri[0][0]
Warning: Did not find comp-name Dynamics-ResetOri[0][1]
Warning: Did not find comp-name Dynamics-ResetOri[0][2]
Warning: Did not find comp-name Audio-UpdateRate[0][0]
Warning: Did not find comp-name Visuals-UpdateRate[0][0]
Warning: Did not find comp-name Visuals-ButtonStatus[0][0]
Warning: Did not find comp-name Visuals-EyeOffset[0][0]
Warning: Did not find comp-name Visuals-EyeOffset[0][1]
Warning: Did not find comp-name Visuals-EyeOffset[0][2]
[/CODE]

and finally a fatal error like
[CODE]SimFatal: Sample rate zero in C:/Programs/SimCreator/SimCreator_2b16/Components/User/Simulation/Audio.cmp
[/CODE]

[B]Solution:[/B]
You compiled the Generic Model not as "Compile Generic..." Open the Generic Model (typically either Standard.exe or Blocks.exe) and choose "Code" from the menu and then "Compile Generic..." Change to your original sim and attempt to run again.
Top

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0206 ]   [ 10 queries used ]   [ GZIP Enabled ]