4.12 SIMULATION
The purpose of simulation is to allow the use or testing of software which depends on other processes which are not yet available. Example: a developer wants to test a WS process which interacts with a process on a LCU. In case no LCU is available or the LCU process is not yet existing, he can use simulation to simulate the existence of the LCU process.
Simulation can be done on different levels:
· use the cmdManager to simulate replies from non existing processes. In this way other WS or LCU processes or complete LCUs can be simulated. This simulation is relatively simple to set up. Disadvantages is that the simulation is static, the replies are static and no realistic timing is possible. However, it is possible to include, in the simulated replies, references to database attributes. The actual attribute value will be plugged, at run time in the reply. In this way, it is possible to dynamically change in the database, using auxiliary processes, or the scan system, or with the calculation engine the attribute value, and thus the content of the simulated reply.
· simulate complete LCU: set the lccServer in simulation mode. This will automatically disable all accesses to hardware connected to LCC (acro and aio boards). Other type of hardware controlled by software devices has to be simulated by the device control software. Motors has to be set in simulation mode. This allows a more realistic simulation, but requires availability of the LCU and more effort for software development.
Quadralay Corporation http://www.webworks.com Voice: (512) 719-3399 Fax: (512) 719-3606 sales@webworks.com |