Batch Mode Simulation : Simulating a Truth Table : Simulation of an Activity implemented by a Truth Table

Simulation of an Activity implemented by a Truth Table
1.
Note:
Open a Monitor window and select all textual elements for display in the Monitor window.
Note:
2.
Select Actions > Breakpoints from the Simulation Execution window. The Simulation Breakpoint editor appears.
3.
Click Add located next to the Truth Table Name list. The Add Breakpoint dialog box opens.
.
Note:
The Active field is set to Yes allowing the simulation to pause when it reaches this breakpoint. If it is set to No, the breakpoint remains on the list but becomes inactive. Simulation does not pause at inactive breakpoints. Inactive breakpoints can be reactivated at anytime if the debugging tool for the subroutine is reinitiated.
4.
Enter the Breakpoint Name in the Name: field.
5.
Select Activity from the selection box.
6.
Select Transform_Data from the pull-down list in the Name: field.
7.
8.
Click Apply > OK to close the Simulation Breakpoint Editor dialog box.
Note:
Before executing a Go Step, set C10 to True and VAL_IN to 1 in the Monitor window.
9.
Execute a Go Step. The animated truth table appears with row 3 highlighted. This corresponds to the status of C2,C5 and C10 in the model.
Note:
10.
Go to the Monitor window and make C5 true and C2, C10 false.
11.
Execute a Go Step.

Row 2 is now highlighted corresponding to the new status of C5, C2 and C10. VAL_OUT is now 5 which is 5 times VAL_IN.

You can experiment with other values of C5,C2 and C10.