US 12,072,787 B2
Method and apparatus for testing control software by injecting fault signals into a simulation environment, and computer-readable storage medium
Bin Lan, Fujian (CN); Xuming Wang, Fujian (CN); Deqiang Shi, Fujian (CN); Chunguang Ye, Fujian (CN); Runqi Wu, Fujian (CN); Jianfeng Guo, Fujian (CN); Chang Liu, Fujian (CN); Dongfei Zhang, Fujian (CN); Jianping Bai, Fujian (CN); Lang Yang, Fujian (CN); and Xuan He, Fujian (CN)
Assigned to CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED, Ningde (CN)
Filed by CONTEMPORARY AMPEREX TECHNOLOGY CO., LIMITED, Fujian (CN)
Filed on Aug. 14, 2023, as Appl. No. 18/233,351.
Application 18/233,351 is a continuation of application No. PCT/CN2022/122400, filed on Sep. 29, 2022.
Prior Publication US 2024/0111661 A1, Apr. 4, 2024
Int. Cl. G06F 11/36 (2006.01); G05B 23/02 (2006.01)
CPC G06F 11/3664 (2013.01) [G05B 23/0256 (2013.01); G06F 11/3688 (2013.01)] 10 Claims
OG exemplary drawing
 
1. A method for testing control software, comprising:
providing an automatic test function-block;
obtaining test information of a plurality of fault signals via the automatic test function block executing on a processor, the test information of the plurality of fault signals comprising serial number information of the plurality of fault signals including a start number and an end number of the fault signals; and
injecting, based on the test information of the plurality of fault signals, the plurality of fault signals into a simulation environment in sequence to obtain test results of the plurality of fault signals handled by the control software, wherein the simulation environment is a simulation environment of a control object of the control software,
wherein before starting of testing a next fault signal of each of the plurality of fault signals, the automatic test function block is configured to purge the fault signals before automatically activating Stop, Reset, and Start buttons in sequence to restart the simulation environment and resume operation of the simulation environment without fault.