Modern astronomical telescopes often rely on control systems for observations. Many factors may affect the development of control systems, such as the differences in the development phases of devices, the robustness of devices. A simulation framework which mocks the component of each device is needed to speed up the development of control system, facilitating behavior-level simulation to support the upper layer development. Presently, many industry-standard simulation systems are predominantly based on actual hardware systems, which necessitate the development of independent hardware logic, such as the simulator of LSST. We have designed the Rsimu framework. This framework is built upon the RACS2 and is highly proficient in behavior simulation of devices. Rsimu's behavior is entirely configurable, and the properties of different components can be dynamically defined by pluggable configuration files. A shared data-plane is provided for components to synchronize their status, therefore helps developers to separate the behavior model of components apart. A series of designs, including pull-update, state-machine etc. are provided to help users to establish the simulation system.
|