IBM
Contents Index Previous Next



Setting Up a Simulation


What You Will Learn

When you have finished with this section, the simulators should be ready to run a TTCN Suite test on a simulated SDL system.

Generating and Starting the SDL and TTCN Integrated Simulator

The first thing you should do is to generate and start the SDL and TTCN Integrated Simulator:

  1. Start TTCN Suite.
  2. In the Organizer, load the system ABP from the file abp.sdt.
    You can find this file in $telelogic/examples/bitprotocol (where $telelogic points to the installation directory).
  3. Double-click the abp icon in the TTCN Test Specification chapter.
    This will start the TTCN Suite with the abp.mp test suite opened.
  4. Select the node named abp in the TTCN Browser.
  5. From the Tools menu, select Make.
    The TTCN Suite Make dialog is opened.
  6. Make sure that the Use standard kernel option is checked and that the Simulation command is selected.

Note:

The dialog will show up the first time you build your simulator. In later builds it will remember the settings.

  1. Select the Directory for generated files to point to a location where you have write permission and sufficient space for the generated files.
  2. Click the Full Make button to start the generation and compilation of the SDL and TTCN Integrated Simulator executable.
    The TTCN Suite will now generate and build the SDL and TTCN Integrated Simulator executable.

  1. Click the Start Simulator button on the TTCN Suite tool bar.
    This will start the SDL and TTCN Integrated Simulator and open the simulator window. The TTCN Suite is now ready to simulate.
.

Generating and Starting the SDL Simulator

Now you have to set up the SDL simulator as well:

  1. In the Organizer, select the system diagram ABP from the SDL System Structure chapter.
  2. Click the Simulate button in the tool bar.
    • You may also want to check the settings in the Make dialog (opened from the Generate menu) before you generate and compile the simulator. If you select Make or Full Make in that dialog, you will have to open the Simulator UI and load the simulator after that.
      The SDL simulator generates and builds a simulator executable. The SDL simulator window is displayed with the simulator started. You are now ready to simulate.

Getting the Simulators to Communicate

The next step you should perform is to initialize the communication between the simulators.


http://www.ibm.com/rational
Contents Index Previous Next