On this page
Cameo Collaborator for Teamwork Cloud has a user interface that allows you to simulate a project directly in the Cameo Collaborator document published from that project.
Note
In version 2021x, the simulation can last up to 15 minutes only. If the simulation takes longer to complete, it is terminated.
Preparing projects for simulation in Cameo Collaborator for Teamwork Cloud
To simulate a project in Cameo Collaborator, it has to meet the following criteria:
- The project must have an Instance Table with the instance you want to execute, because simulation in Cameo Collaborator is only possible using Instance Tables.
- For simulation results to be saved, you need to specify the Result Location property of a Simulation Configuration. The value of the Result Location property should be the instance in which you want to save simulation results.
- The executable model should not require any user input because Cameo Collaborator does not support UI. This means that simulation needs to be performed fully automatically.
- The executable model must end automatically without any user input.
For more information about preparing projects for simulation in Cameo Collaborator for Teamwork Cloud, analyze the example below. It explains how to modify the SpacecraftMassRollup.mdzip sample which you can find in the <modeling_tool_installation_directory>\samples\simulation directory.
To prepare the SpacecraftMassRollup.mdzip sample for simulation in Cameo Collaborator for Teamwork Cloud
- Go to the <modeling_tool_installation_directory>\samples\simulation directory and open the SpacecraftMassRollup.mdzip sample.
- Create an Instance Table with the instance you want to execute. Let's say you want to execute the spacecraft Instance Specification. In this case, the project already has an Instance Table with that instance, so you do not need to do anything.
- Open the Specification window of the spacecraft mass analysis Simulation Configuration and specify the Result Location property. Its value should be the instance in which you want to save simulation results. Let's say you want to save the results in the same spacecraft instance which you intend to execute.
- In the same window, make sure the UI property is not specified because simulation should not require any user input. If the UI is specified, it will be ignored.
- Make sure the executable model ends automatically without any user input. You can do this in one of the following ways:
- Model behavior diagrams in such a way that behaviors are terminated without any user interaction.
- Specify Simulation Configuration timing properties so that simulation ends after a certain End Time. For example, in the SpacecraftMassRollup.mdzip sample, do the following:
- In the Specification window of the spacecraft mass analysis Simulation Configuration, select Timing Properties on the left side of the window.
Specify the Start Time, End Time, and Step Size properties as shown below.
Tip
The easiest way to check whether the executable model ends without user input is to run it in a modeling tool.
- Save and add the project to Teamwork Cloud (if the project is local).
- Publish the project to Cameo Collaborator for Teamwork Cloud.
Now you can open the Cameo Collaborator document and simulate the model on the web.
Simulating projects in Cameo Collaborator for Teamwork Cloud
Once you publish your project to Cameo Collaborator for Teamwork Cloud, you can simulate it in a Cameo Collaborator document as described below.
To simulate a project in Cameo Collaborator for Teamwork Cloud
- Open the Cameo Collaborator document published from the project you want to simulate.
- Navigate to the Instance Table with the instance you intend to simulate.
- Click
- In the Instance table, select the instance you want to execute.
- When the Select configuration and run pane opens on the right side of the screen, select the Simulation Configuration you want to run.
Click
on the top right corner of the pane.Wait until the simulation is complete and the simulation results are displayed in the updated document.
Note
When you simulate a project in Cameo Collaborator for Teamwork Cloud, a new project version is created with the following commit message: Simulation WebApp: '<Simulation Config Name>' execution results.