Skip to content
Login / Sign Up

Run SIMPACK Models Using SimWB

Demos | SIMulation Workbench

Provides a simple Graphical User Interface to import the SIMPACK models into SimWB. These imported SIMPACK models can then be added to ‘Tests’ and can be executed in real-time.
simpack_import_pane.png

Prerequisites

Make sure the SIMPACK-SimWB interface is recompiled after you install SimWB. Assuming you have SIMPACK installed in /opt/SIMPACK-9.4.1/, you will need to execute the following commands:
cd /opt/SIMPACK-9.4.1/partners/concurrent
sudo ./simpack-build-rtcomm
Make sure that the SIMPACK model is configured correctly for SimWB. You need to do the following:
1. Open the model, click on the ‘Extras’ Menu, select ‘Options’ menu, select ‘Solver’ tab, and change ‘Target’ to ‘Concurrent Simulation Workbench’.
simpack_solver_options.png
2. Right-click on the opened SIMPACK model, select ‘Realtime’, and select ‘Enable realtime simulation’ option.
simpack_solver_realtime.png

Work flow

The typical work flow is as explained below:

  1. Set the location of the SIMPACK installation folder.
  2. Set the $HOME variable for SIMPACK use. By default it can be set to ‘/root’.
  3. Create a new SIMPACK model object in SimWB by entering a name at the top.
  4. Import the SIMPACK model to the SimWB using the ‘Select SIMPACK File’. This allows you to import the SIMPACK file from allowed locations in the SimWB host machine.
  5. Set the CPU cores that will be used by SIMPACK model .
  6. Either create a new RTDB or use an existing RTDB to map I/O points from SIMPACK model.
  7. Select the group that this resource will belong.
  8. Specify command line options that need to be supplied to the SIMPACK real-time engine.

Corner Controls

Demonstratehelpvideo00027.png

Opens a short video clip that demonstrates the basic workflow of this form.

Helphelp00028.png

Opens this section of the manual.

SIMPACK Global Settings Pane

Allows users to setup the SIMPACK location and the required environment variables.

SIMPACK install directorysimpack_import_simpack_install_dir.png

This allows you to set the location of the SIMPACK installation folder in the SimWB host. You need to have SIMPACK installed in the SimWB host to execute SIMPACK models in real-time.

SIMPACK $HOMEsimpack_import_Home.png

Set the $HOME variable for SIMPACK use. By default it can be set to ‘/root’.

SIMPACK Model Properties Pane

Allows user to import SIMPACK files into SimWB.

New SIMPACK model objectsimpack_new_model_object.png

Create a new SIMPACK model object by entering a new name at the top of the pane.

Select SIMPACK Filesimpack_import_Select_SIMPACK_file.png

Import the SIMPACK model to the SimWB using the ‘Select SIMPACK File’. This allows you to import the SIMPACK file from allowed locations in the SimWB host machine. You can control which locations in the remote SimWB host by editing the file ‘/usr/local/ccursim/etc/directory.access’.

CPU coressimpack_import_CPU_cores.png

Allows you to set the cores that the SIMPACK models can use for real-time execution.

Create RTDB

Model RTDBsimpack_import_Model_RTDB.png

Allows you either select an existing or a new RTDB to be used with SIMPACK models.

Generate RTDBsimpack_import_Model_RTDB_Gen_RTDB.png

After selecting the RTDB, use this button to create the RTDB in SimWB host.

New RTDBsimpack_import_Model_RTDB_New_RTDB.png

Optionally choose to select to create a new RTDB.

Groupsimpack_import_Group.png

Select the group of the user that the generated RTDB will belong.

Command line optionssimpack_import_Command_line.png

Allows you pass command line options to the SIMPACK real-time engine. By default set this to ‘–rt-target=concurrent’.

Descriptionsimpack_import_Description.png

Optionally user can set description for the SIMPACK model object.

 

Back to top