As the major urban rail transit projects were launched, China has become theworld’s largest urban rail transit construction market. A traditional three pole gate relieson the mechanical structure to achieve access control as its relatively simple design.However, the increasing number of people makes the scissor gate the main stream. Itdetects passengers’ access process and judges with through-beam sensors, works moreefficient on traffic control, and greatly reduces the security risk when emergencyevacuation happens. For a similar equipment, the traditional design approach can’t meettoday’s fast and accurate demand. The constraints between the hardware and softwarelimit the progress of the development, also greatly raise the development costs, and theyare not conducive to the maintenance and upgrade. An emulation mode based on videoprocessing can simulate sensors data acquisition and process in PC, but the differentangles between camera and the substances will make biases between image and theactual situation. It can be only used under circumstances where all beam are parallelbecause of the limitations of the2D Image.Relying on the underlying software development, this paper presents a new methodof simulation based on virtual reality and automatic code generation technology,building engineering model on Virtools, building status charts with Stateflow, andgenerating platform-independent codes of control logic which can be ported and testedin Virtools, afterwards ported and implemented in MCU. In addition, this paper presentsan optimization scheme of collision detection aim to reduce system costs in somelarge-scale occasions. It based on classic collision detection arithmetic and works withVirtools building block by increasing redundancy of scripts without rewrite any C++code.After certification, the engineering model implements well with the physical rules.The Stateflow models reproduce the logic control precisely, generate effective and slimcodes. And the codes meet actual demand of operation and debugging. The optimizationscheme results well in large-scale occasions and system extra consumption is limitedeven in unfavorable conditions. |