![]() |
![]() |
![]() |
![]() |
![]() |
Setting Up a Simulation
What You Will Learn
- To set up the SDL and TTCN Integrated Simulator and SDL simulator
- To generate and build simulator executables
- To initialize the communication between the simulators
- To start the simulators
When you are 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:
- Start TTCN Suite.
- In the Organizer, load the system ABP from the file abp.sdt.
- You can find this file in C:\IBM\Rational\SDL_TTCN_Suite6.3\examples\bitprotocol (where C:\IBM\Rational\SDL_TTCN_Suite6.3 is the default installation directory).
- You may also find it useful to copy the bitprotocol directory and the files included, to another directory. In any case, you have to make sure the bitprotocol directories and files are not read-only.
- Double-click the abp icon in the TTCN Test Specification chapter.
- Select the node named abp in the Browser.
- Select Generate Code from the Build menu.
- In the TTCN to C Compiler Options, make sure that Integrated-simulator is selected and that Ignore bodies of test suite operations is checked.
- Select an output directory that has sufficient space and where you have write permission.
- In the Build Options, ensure that the Run Make option is selected.
- You may also have to change the Makefile Type.
- Click OK to start the generation and compilation of the SDL and TTCN Integrated Simulator executable.
Generating and Starting the SDL Simulator
Now you have to set up the SDL simulator as well.
- In the Organizer, select the system diagram ABP from the SDL System Structure chapter.
- Click the Simulate button in the tool bar.
Getting the Simulators to Communicate
The next step you should perform is to initialize the communication between the simulators:
http://www.ibm.com/rational |
![]() |
![]() |
![]() |
![]() |