Skip to content

Testing Procedure

Cláudio edited this page Feb 1, 2021 · 5 revisions

Testing Procedure

Testing the Tutorials

In this section we describe how to test the app manually with the intent of making sure the students can follow the tutorials. Only people who have access to the tutorial materials and solutions can execute these steps. You need to be given access to these.

Only the most troublesome steps are tested, so not all tutorials need to be tested.

For each tutorial, be sure to install the dependencies correctly.

Tutorial 0

  • Remove install folder

    • (please fill in where it is typically in windows)
    • Linux
    • Mac
  • Remove install_downloads

    • (Please fill in where it is typically in windows)
    • Linux
    • Mac
  • Remove Settings folder

    • (Please fill in where it is typically in windows)
    • Linux
    • Mac

Tutorial 1 - Running a co-simulation

  • Open project Tutorial_1_Solution.
  • Run a co-simulation. If on windows, check that the 3D multi-model can be run as a co-simulation.

Tutorial 3 - Exporting SysML multi-model configuration

  • Open Modelio, and switch the worskpace to Tutorial_3_Solution/SysML
  • Open the connections diagram, right click on the Robot instance, and INTO-CPS > Generate Configuration. Leave the name of the config as robot2sensor
  • With the INTO-CPS App, open project Tutorial_3_Solution
  • Expand SYSML/LineFollowRobot/configs
  • Right click on robot2sensor and Create Multi-Model. Leave the name as mm-robot2Sensor.
  • Open the newly created multi-model and associate the missing FMUs.
  • Create a co-simulation configuration, add a plot or two, and run it.

Tutorial 4 - FMU Export from Overture

  • Open Overture and import the existing project in Tutorial_4_Solution/Models/LFRController
  • Right click on the project folder name and Overture FMU > Export Tool Wrapper FMU.
  • Associate the newly generated FMU to a multi-model and run a co-simulation

Tutorial 5 - FMU Export from 20-sim

  • Use 20-sim to open the project Tutorial_5_Solution/Models/20-sim_Body/R2G2P_Body_Only.emx
  • Start the simulator
  • Go to Tools > Real Time Toolbox > C-Code Generation.
  • Select FMU 2.0 export for 20-sim submodel.
  • Associate the newly generated FMU to a multi-model and run a co-simulation
Clone this wiki locally