The simulation runs by itself when you press the green flag. The car drives up and stops by the barrier. The barrier senses the car is there and raises. The light goes green and the car drives off.
An example for programming a parking barrier.