QuercusVL Programming Manual
input 1 is turned off) input 1 is set for 1 second.
#0ms at the startup, input 0 is defined as active.
0,Input,0,1
#0ms after the startup, input 1 is defined as active.
0,Input,1,1
#3000ms later, input 1 is defined as inactive.
3000,Input,1,0
#2000ms later, input 0 is deactivated.
2000,Input,0,0
#0ms later, input 1 is activated.
0,Input,1,1
#1000ms later, input 1 is deactivated.
1000,Input,1,0
7.2.3. Traffic light event
The simulator can monitor the state of the traffic light. There are 4 possible states: "green
light on” , “amber light on”, "red light on” and “no lights on”.
7.2.3.1. Instruction structure
●
Milliseconds the simulator has to wait from the previous instruction until the execution
of the next one.
●
Event type.
○
TrafficLight: change of the traffic light state.
●
Traffic light state.
○
Green: green light off.
○
Amber: amber light on.
○
Red: red light on.
○
None: no light on.
7.2.3.2. Example
Example of several state changes the traffic light. At the beginning, it is red; 3 seconds later it
changes to green for 4 seconds, then 2 seconds to amber before turning into red again.
#0ms at the startup, is defined as red.
0,TrafficLight,Red
#3000ms later is changes to green.
3000,TrafficLight,Green
#4000ms later changes to amber
4000,TrafficLight,Amber
#2000ms later changes to red again.
2000,TrafficLight,Red
Quercus Technologies
211