Implementation method suitable for full-system timing system in semi-physical simulation environment
By designing a software and hardware interface for synchronous signal generation and response in a semi-physical simulation system, the time synchronization between each device is achieved using pulse signals and clock frequency reference, the problem of poor clock synchronization of simulation equipment is solved and high-precision clock synchronization is achieved and system stability, suitable for multi-equipment joint tests.
Patent Information
- Application Number
- CN202410909564.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-08
- Publication Date
- 2024-11-01
AI Technical Summary
In semi-physical simulation, the clock synchronization of the simulation equipment is poor, resulting in time delay and offset, affecting the real-time and synchronization of the simulation system. The existing methods are complex and difficult to implement the system-wide time system.
A set of software and hardware interfaces for synchronous signal generation and response are designed to realize time synchronization between each simulation device through pulse signals and clock frequency reference. The clock synchronization node card and PCI bus interface are used to ensure time uniformity between systems using interrupt response. and synchronize.
It realizes high-precision clock synchronization of semi-physical simulation systems, reduces time delay and offset, simplifies simulation system design, improves the stability and real-timeness of the simulation system, and is suitable for multi-device joint tests.
Smart Images

Figure CN118890123A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of semi-physical simulation, and in particular relates to a method for realizing full system timing in a semi-physical simulation environment. Background Art
[0002] A semi-physical simulation system usually consists of multiple subsystems that work in coordination to complete the task of semi-physical simulation. With the increasing development and maturity of semi-physical simulation technology in the process of weapon research and development, more and more types of components need to be tested, which puts higher requirements on the real-time and synchronization of the simulation system.
[0003] Due to the limited area of the test site, various large-scale non-standard simulation equipment is often distributed in different locations in the laboratory, and multiple devices need to be combined to complete the simulation test. This puts forward an urgent need for the interconnection of simulation equipment and parallel testing, and the simple clock synchronization technology in simulation technology is the key to solving the above problems.
[0004] In semi-physical simulation, there is only a synchronization starting point, which is usually generated by simulating the control. The traditional method has the following disadvantages:
[0005] 1) In semi-physical simulation, the starting point of the simulation equipment is fixed, and it works according to its own clock after running. The clock composition is different, and the performance gap is relatively large;
[0006] 2) In semi-physical simulation, the corresponding components need to be tested, and the involvement of the simulation machine makes the test system complex. Summary of the invention
[0007] In order to overcome the shortcomings of the prior art, the present invention provides a method for realizing the time synchronization of the whole system in a semi-physical simulation environment, designs a set of software and hardware interfaces for synchronous signal generation and response, and on this basis, completes the synchronous transformation of multiple simulation equipment and modular design. A semi-physical simulation with a synchronous time reference is realized to reduce the simulation system error caused by the time delay and offset of the semi-physical simulation. The advantage of the present invention is that the original semi-physical simulation system is not greatly changed and the investment is small. A periodic pulse wave is emitted through a clock card or a simple signal source, and the duty cycle is adjustable. Each node can achieve the clock synchronization of the test system by responding to the rising edge of the pulse, thereby ensuring the clock synchronization performance of the simulation system.
[0008] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0009] Step 1: Use the device signal generator or pulse signal generation board to provide a pulse reference to meet the time synchronization requirements between users within the system; trigger events through the rising edge of the pulse to achieve time synchronization and coordination with other simulation systems and interface units;
[0010] Step 2: Using the clock frequency reference as the information source and the time synchronization node card as the synchronization hardware device, complete the time unification and time synchronization between the simulation devices in the semi-physical simulation system under the real-time interrupt response of the time synchronization software;
[0011] Step 3: The clock synchronization node card is connected to the simulation node of the semi-physical simulation system through the PCI bus interface, the clock frequency reference is connected to the clock synchronization node card through external wiring, and the clock frequency reference is used as the external clock source;
[0012] Step 4: The clock synchronization node card realizes inter-system synchronization in the form of interruption, so that the time between each simulation device in the semi-physical simulation system is unified and synchronized.
[0013] Preferably, the time synchronization software is programmed in C language and used in Windows XP+RTX real-time operating system environment to ensure stable response to interruptions generated by clock synchronization node cards, so as to achieve real-time and stability of long-term simulation operation.
[0014] The beneficial effects of the present invention are as follows:
[0015] The method of the present invention has been successfully applied to the semi-physical simulation of a certain domestic system. During the development period, the simulation test adopted this method, and through the synchronization signal, it was able to quickly ensure the consistency of the time of the ground equipment and quickly verify the integrity and accuracy of the performance and function of the whole missile. Strict clock timing can accurately meet the verification requirements of the guidance computer model, and it is clear that the simple time design method has good stability and reliability. This method has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 Generate a structural diagram for the present invention.
[0017] Figure 2 This is a schematic diagram of the operating principle of the timing system of the present invention.
[0018] Figure 3 The pulse triggering software structure of the embodiment of the present invention. DETAILED DESCRIPTION
[0019] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0020] The present invention provides a relatively simple, convenient and easy-to-apply engineering method to solve the problems of inaccurate clock synchronization in semi-physical simulation and large deviation of the device operation clock.
[0021] By using the laboratory's existing standard equipment signal generator, or using a pulse signal generation board, an accurate pulse reference can be given to meet the high-precision time synchronization requirements among users within the system. By triggering events on the rising edge of the pulse, time synchronization and coordination with other simulation systems and interface units can be achieved.
[0022] With the clock frequency reference as the information source and the time synchronization node card as the synchronization hardware device, the strict time unification and time synchronization between the simulation devices in the semi-physical simulation system can be completed under the real-time interrupt response of the time synchronization software, which greatly shortens the system delay and simplifies the simulation system design. The simulation clock synchronization using this method is easier to implement, and the design of the method is simple, effective, and practical, and has a good space for promotion and application.
[0023] The time synchronization software is programmed in C language to facilitate use in the Windows XP+RTX real-time operating system environment, thereby ensuring a fast and stable response to interruptions generated by the clock synchronization node card, so as to achieve real-time and stability for long-term simulation operations;
[0024] (1) The clock synchronization node card is connected to the simulation node of the semi-physical simulation system through the PCI bus interface. The clock frequency reference can be connected to the clock synchronization node card through external wiring, and the clock frequency reference is used as the external clock source to achieve high-precision and high-stability clock frequency reference, laying the foundation for synchronization between simulation devices;
[0025] (2) The clock synchronization node card realizes inter-system synchronization in the form of interruption, so that the time between each simulation device in the semi-physical simulation system is strictly unified and synchronized;
[0026] Example:
[0027] The implementation method of the whole system time system is as follows Figures 1 to 3 As shown in the figure, in order to realize the generation and response of synchronous signals, some standard equipment in the laboratory is required. The arbitrary waveform generator can generate the required pulse signal, and the crystal oscillator used can meet our requirements for time accuracy and drift performance. The generated pulse signal responds to the enable of the synchronous trigger card of each node. After the response, the interface conversion and model solution are performed within the cycle. After the conversion and solution, wait for the rising edge of the pulse of the next cycle.
[0028] In a trigger cycle, simulation devices such as simulators, turntables and emulators can use hardware boards to respond to clock synchronization signals, and can also use interrupt events to respond to interrupt events sent by other nodes through VMIC boards.
[0029] The simple implementation method of the whole system time system can ensure the time synchronization performance of the whole simulation system; it has great utilization value in the application of long-flight simulation system. After continuous optimization and updating, the time accuracy of the simulation system running in the long-flight simulation node is greatly improved and the clock drift is eliminated, which plays a key role in improving the confidence of the simulation test environment.
Claims
1. A method for realizing the time synchronization of the whole system in a semi-physical simulation environment, characterized in that: The steps include: Step 1: Use the device signal generator or pulse signal generation board to provide a pulse reference to meet the time synchronization requirements between users within the system; Through the pulse rising edge trigger event, time synchronization and coordination with other simulation systems and interface units can be achieved; Step 2: Using the clock frequency reference as the information source and the time synchronization node card as the synchronization hardware device, complete the time unification and time synchronization between the simulation devices in the semi-physical simulation system under the real-time interrupt response of the time synchronization software; Step 3: The clock synchronization node card is connected to the simulation node of the semi-physical simulation system through the PCI bus interface, the clock frequency reference is connected to the clock synchronization node card through external wiring, and the clock frequency reference is used as the external clock source; Step 4: The clock synchronization node card realizes inter-system synchronization in the form of interruption, so that the time between each simulation device in the semi-physical simulation system is unified and synchronized.
2. A method for realizing full system time synchronization in a semi-physical simulation environment according to claim 1, characterized in that: The time synchronization software is programmed in C language and is used in the Windows XP+RTX real-time operating system environment to ensure a stable response to interruptions generated by the clock synchronization node card, so as to achieve real-time and stability for long-term simulation operation.
