wn name to a Simulator command. To define the macro trans: Command: add-macro trans Next-Transition To list the current defined macros: Command: list-macros Number of macros defined: 1 Macro name: trans Macro value: Next-Transition Then, you have only to enter $trans instead of Next-Transition (or n-t): Command: $trans Next-Transition - TRANSITION START AtoB:1 1 State start state Now : 0.0000 NEXTSTATE ready 4.2.7.2 Automatic script execution at Simulator startup When the Simulator starts, the file siminit.com, if present in the current directory, is automati- cally executed, as shown in Figure 4.25. For example, siminit.com could contain the following commands to automatically start the MSC and SDL traces: Start-Interactive-MSC-Log - 0 Set - GR - Trace 1 siminit.com Simulator Figure 4.25 The Simulator startup file 4.2.7.3 Running the Simulator without its graphical interface To perform automatic tasks such as automatic replay of scenarios, the Simulator can be launched without its graphical interface; this is called batch mode. To run in batch mode, after the build, type the following command (we suppose the SDL model is in the file v76.pr) in a DOS shell (containing V76test_smc.exe) or in a Unix shell: F : \DONNEES\V76>V76test_smc.exe No connection with the Postmaster. Running stand-alone. Interactive Simulation 65 Welcome to the SDL SIMULATOR. Simulating system V76test. Command : To see the Ready Queue, enter List-Ready-Queue, or l-r-q: the Simulator displays the list of processes ready to execute a transition: Command : l-r-q Entry PId State Signals Signal instance AtoB:1 start state BtoA:1 start state dispatch: 1 start state <<Block DLCa>> dispatch: 1 start state <<Block DLCb>> To execute a transition, enter Next-Transition or n-t: Command : n-t TRANSITION START AtoB: State : start state Now : 0.0000 NEXTSTATE ready Then you can enter any Simulator textual command: Command : Output-To L_EstabReq (0) <<Block DLCa>> dispatch Signal L EstabReq was sent to <<Block DLCa>> dispatch: 1 from env:1 Process scope : <<