Where Can You Use Visual Logic
To make structuring the logic easy Visual Logic is accessed from the specific part of your Simul8 simulation where it will be applied. For example, if you want some logic used when Work Items finish being worked on in a Work Center then you would access the Visual Logic used at that point from the Routing Out Dialog for that particular Work Center. (But you can also get access to any of you Visual Logic directly from the All button on the Visual Logic tab).
The following lists the access points to Visual Logic.
Time Based Events
When the Simul8 RESET CLOCK TO START button is pressed but BEFORE Simul8's own reset logic is processed.
When the Simul8 RESET CLOCK TO START button is pressed. Simul8's reset processing before this Visual Logic is obeyed.
On End Run
When the simulation reaches the end of the run (Results collection period).
On End Trial
When the simulation has finished running all the runs in a trial.
On Start Run
When the simulation is started using the RUN button (at any clock time).
On Stop Run
When the simulation is stopped using the RUN button (at any clock time).
On Time Check
When the simulation is running and the clock reaches one of the time check intervals.
End Warm Up
When the end of warm up time is complete (useful for special results calculations)
Simulation Object Visual Logic Events
Before Selecting - Before the Work Item is chosen (please make sure that routing-in is not set to passive): This can substantially slow down your simulation as it can be called multiple times, as it is triggered every time the Activity can take in Work Items.
After Loading - After the Work Item is loaded to the Activity
On End - When the Work Item completes work
- When the Activity's route out is blocked.
On Exit - When a Work Item leaves
Label Actions - When the labels are being set
On Breakdown - When a breakdown starts (if created), repair starts and ends.
On State Change - When the state of the Activity changes to a new state, for example, from working to waiting for work
See also Sequence of processing Work Center Visual Logic
Routing In - Before the Work Item is chosen
Routing In - After the Work Item is loaded to the Work Center
Actions - When the labels are being set
Breakdowns - When a breakdown starts, repair starts and ends
On Button Click
Executed whenever a user created button is clicked.
On Simulation Open
Executed whenever your simulation file is opened.
System Dynamics Time Slice
Executed each x simulation time units, where x is the value in the System Dynamics Time Slice. This can be used to “continuously” change rates of flow in Simul8 Process Objects.