A DCS automatic testing method, device and system

By automatically acquiring and processing the test sequence configuration and response time signals, combined with the control of the oscilloscope and relay array, the automatic response time test of the DCS system is realized, solving the problem of low test efficiency in the existing technology, and improving the test efficiency and accuracy. .

CN114742089BActive Publication Date: 2024-09-24CHINA TECHENERGY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011549102.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-24
Publication Date
2024-09-24
Estimated Expiration
2040-12-24

AI Technical Summary

Technical Problem

Existing DCS test equipment cannot realize automatic judgment of step waveforms, resulting in low efficiency of response time testing and requiring manual operation.

Method used

By obtaining the test sequence configuration array and the response time test synchronization trigger signal, the matching test sequence configuration is automatically retrieved, the oscilloscope configuration consistency is judged, the relay array is controlled, the response time is automatically collected and calculated, and step points are identified to calculate the response time.

Benefits of technology

The automatic response time test of the DCS system is realized, which improves the test efficiency, reduces manual operation errors and improves work efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114742089B
    Figure CN114742089B
Patent Text Reader

Abstract

A DCS automatic test method, device and system include: obtaining a response time test sequence configuration array; obtaining a response time test synchronization trigger signal during a function test; judging whether an oscilloscope parameter in a current test cycle is consistent with that in a previous cycle; if not, calling a test sequence configuration matching the trigger signal, presetting the oscilloscope based on the test sequence configuration, and configuring a relay array; if consistent, directly configuring the relay array; if a synchronization trigger signal identical to the first one in this test cycle is not collected within a predetermined time, prompting an abnormality and exiting this test cycle, otherwise continuing to collect synchronization trigger signals; when receiving a synchronization trigger signal identical to the first one collected, starting the oscilloscope to collect data; and calculating the response time of a test channel corresponding to the trigger signal based on the response data collected by the oscilloscope, thereby improving the test efficiency of the DCS system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of testing equipment, and in particular to an automatic testing method, device and system for realizing synchronous execution of DCS high-precision response time test and function test. Background Art

[0002] In the digital instrumentation and control system (DCS), response time is one of the important performance indicators. The DCS system response time test is carried out at the same time as the functional test, and the I / O channels of the functional test are reused in the test.

[0003] Currently, the most commonly used instrument in DCS testing is the waveform recorder. This device can continuously collect multi-channel waveforms during functional testing, but it cannot automatically determine the step waveform. It is necessary to manually find the waveform step point and then determine the response time through the cursor on the instrument, which results in low test efficiency. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides an automatic testing method, device and system for a DCS to improve the testing efficiency of the DCS.

[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:

[0006] A DCS automatic testing method, comprising:

[0007] Get the test sequence configuration array;

[0008] Get the response time test synchronization trigger signal;

[0009] Retrieving a test sequence configuration matching the trigger signal from a test sequence configuration array;

[0010] Get the test sequence configuration array;

[0011] Get the response time test synchronization trigger signal;

[0012] Retrieving a test sequence configuration matching the trigger signal from a test sequence configuration array;

[0013] Determine whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous test cycle, and if not, preset the oscilloscope based on the test sequence configuration, and then control the relay array based on the test sequence configuration;

[0014] If they are consistent, the relay array is controlled directly based on the test sequence configuration;

[0015] If the synchronous trigger signal identical to the synchronous trigger signal first acquired in the current test cycle is not acquired within the predetermined time, the current test cycle is exited after an abnormality is prompted, otherwise the synchronous trigger signal continues to be acquired;

[0016] If a synchronization trigger signal identical to the synchronization trigger signal first acquired in the current test cycle is acquired within a predetermined time, the oscilloscope is started to acquire data;

[0017] The response time of the test channel corresponding to the trigger signal is calculated based on the response data collected by the oscilloscope.

[0018] Optionally, in the above DCS automatic test method, the calculating the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope includes:

[0019] The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope;

[0020] Filtering and denoising the edge-triggered waveform signal;

[0021] Identifying step points of two waveforms collected by the oscilloscope;

[0022] The response time between two step points is calculated based on the step points extracted from the two channels.

[0023] Optionally, in the above DCS automatic test method, presetting the oscilloscope based on the test sequence configuration and controlling the relay array based on the test sequence configuration include:

[0024] adjusting a preset of the oscilloscope based on the test sequence configuration;

[0025] The switch array in the relay array is controlled based on the test sequence, so that the oscilloscope can collect response time data of the test channel corresponding to the trigger signal.

[0026] A DCS automatic test device, comprising:

[0027] A test sequence acquisition unit, used to obtain a test sequence configuration array;

[0028] A configuration unit is used for responding to a time test synchronization trigger signal, calling a test sequence configuration matching the trigger signal from a test sequence configuration array, determining whether the oscilloscope configuration corresponding to the test sequence configuration determined in a current test cycle is consistent with that in a previous test cycle, and if not, sending a preset signal to a response signal acquisition unit so that the response signal acquisition unit is preset based on the test sequence configuration, and then controlling the relay array based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous cycle, directly controlling the relay array based on the test sequence configuration; if a synchronization trigger signal identical to the synchronization trigger signal first acquired in this test cycle is not acquired within a predetermined time, exiting this test cycle after indicating an abnormality, otherwise continuing to wait for acquiring the synchronization trigger signal; if a synchronization trigger signal identical to the synchronization trigger signal first acquired in this test cycle is acquired within a predetermined time, outputting a trigger signal to the response signal acquisition unit;

[0029] A response signal acquisition unit, configured to perform preset according to the configuration requirements when a preset signal sent by the configuration unit is obtained; and to start the oscilloscope to collect response data of the test channel corresponding to the trigger signal when a trigger signal sent by the configuration unit is obtained;

[0030] A response time calculation unit is used to calculate the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope.

[0031] Optionally, in the above DCS automatic test device, the response time calculation unit is specifically used for:

[0032] The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope;

[0033] Filtering and denoising the edge-triggered waveform signal;

[0034] Identifying step points of two waveforms collected by the oscilloscope;

[0035] The response time between two step points is calculated based on the step points extracted from the two channels.

[0036] Optionally, in the above-mentioned DCS automatic test device, when the configuration unit presets the oscilloscope based on the test sequence configuration and controls the relay array based on the test sequence configuration, it is specifically used to:

[0037] Controlling the switch array of the test system relay based on the test sequence so that the oscilloscope can collect response data of the test channel corresponding to the trigger signal;

[0038] Presets of the oscilloscope are adjusted based on the test sequence configuration.

[0039] A DCS automatic test system, comprising:

[0040] Automatic test equipment, oscilloscope and AI (analog input) acquisition board and relay array board;

[0041] The automatic test device includes: a main processing unit and a general I / O data acquisition board, wherein the main processing unit is used to send preset and test instructions to the oscilloscope through the general communication port; obtain the waveform signal collected by the oscilloscope; and calculate the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope. The main processing unit is also used to: obtain the response time test synchronization trigger signal through the AI ​​(analog input) acquisition channel; and retrieve the test sequence configuration matching the trigger signal from the test sequence configuration array;

[0042] Determine whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous test cycle. If not, preset the response signal acquisition unit based on the test sequence configuration, and then control the relay array based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous cycle, directly control the relay array based on the test sequence configuration; if a synchronization trigger signal identical to the synchronization trigger signal first acquired in this test cycle is not acquired within a predetermined time, exit this test cycle after prompting an abnormality, otherwise continue to wait for the acquisition of the synchronization trigger signal; if a synchronization trigger signal identical to the synchronization trigger signal first acquired in this test cycle is acquired within a predetermined time, start the oscilloscope for data acquisition; calculate the response time of the test channel corresponding to the trigger signal based on the response data acquired by the oscilloscope;

[0043] The oscilloscope is used to collect response time waveform data of the measured channel;

[0044] The AI ​​(analog input) acquisition board is used to acquire a synchronous trigger signal using one of its channels;

[0045] The relay array board is used to realize automatic switching between an oscilloscope channel and a plurality of channels to be measured.

[0046] Optionally, in the above-mentioned DCS automatic test system, when the main processing unit calculates the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope, it is specifically used to:

[0047] The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope;

[0048] Filtering and denoising the edge-triggered waveform signal;

[0049] Identifying step points of two waveforms collected by the oscilloscope;

[0050] The response time between two step points is calculated based on the step points extracted from the two channels.

[0051] Optionally, in the above-mentioned DCS automatic test system, when the main processing unit presets the oscilloscope based on the test sequence configuration and controls the relay array based on the test sequence configuration, it is specifically used to:

[0052] Controlling the relay array board of the test system based on the test sequence so that the oscilloscope can collect response data of the test channel corresponding to the trigger signal;

[0053] Adjust the preset parameters of the oscilloscope based on the test sequence configuration. Based on the above technical solution, the above solution provided by the embodiment of the present invention obtains the test sequence configuration array; obtains the response time test synchronization trigger signal; determines whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with the previous test cycle, if not, presets the response signal acquisition unit based on the test sequence configuration, and then controls the relay array based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with the previous cycle, directly controls the relay array based on the test sequence configuration; receives the synchronization signal again, if the synchronization signal identical to the first time in this test cycle is not collected within the predetermined time, then prompts an abnormality and exits this test cycle, otherwise continues to collect the synchronization trigger signal; when the synchronization signal identical to the first collection is received, starts the oscilloscope for data collection; calculates the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope, thereby improving the test efficiency of the DCS system. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0055] Figure 1 A schematic flow chart of a DCS automatic testing method provided in an embodiment of the present application;

[0056] Figure 2A schematic diagram of the structure of a channel switching relay array disclosed in an embodiment of the present application;

[0057] Figure 3 A schematic diagram of the structure of a DCS automatic test device disclosed in an embodiment of the present application;

[0058] Figure 4 This is a schematic diagram of the structure of the DCS automatic test system disclosed in the embodiment of the present application. DETAILED DESCRIPTION

[0059] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] This application discloses a DCS automatic testing method, see Figure 1 , methods include:

[0061] Step S101: Get the test sequence configuration array (structure diagram variable array in C language and cluster array in LabView);

[0062] In this solution, a test sequence configuration is configured for each test channel, and the test sequence configuration array is composed of the measurement sequence configurations corresponding to different test channels. Different test channels correspond to different types of tested signals. The test sequence configuration reflects the configuration information of the oscilloscope when testing the tested channel. The following parameters of the test system and oscilloscope can be configured through the test sequence configuration:

[0063] ① Channel switching relay configuration, through which the oscilloscope can switch between multiple test channels; channel switching relay array can be found in Figure 2 As shown, by switching the conduction state of each relay in the channel switching relay array, the oscilloscope can be switched between multiple test channels. Figure 2 The two channels of the oscilloscope shown correspond to eight I / O channels of the device under test, respectively, and the state of the switching relays of each channel can be controlled by software.

[0064] ②, Oscilloscope presets (volt grid, second grid, step trigger mode, step point level setting, probe magnification, voltage offset value, time offset value);

[0065] ③. Sampling waveform processing presets (step trigger mode, step point level judgment, filter on / off, filter parameters).

[0066] Step S102: Acquire a response time test synchronization trigger signal;

[0067] In this solution, multiple corresponding trigger signals can be configured for different test channels. The trigger signal refers to the trigger signal when the DCS system performs a functional test. In this solution, the trigger signal is also used as a trigger signal for the DCS system response time test. When a certain test channel needs to be tested, a trigger signal corresponding to the test channel is generated and issued.

[0068] In this solution, the synchronization trigger signal described in this step refers to the synchronization trigger signal obtained for the first time in the current cycle.

[0069] For example, see Table 1,

[0070] Table 1

[0071]

[0072] In Table 1, when the value of the trigger signal is 0, the trigger signal is ignored. When the value of the trigger signal is 1, the test case corresponding to the trigger signal is 1, and the 1 is used to represent the test sequence configuration identifier in the test sequence configuration array. For example, the test case 1 corresponds to the first test sequence configuration in the test sequence configuration array, and the test case 2 corresponds to the second test sequence configuration in the test sequence configuration array, etc. When the value of the trigger signal is 2, the trigger signal is ignored. When the value of the trigger signal is 1, the test case corresponding to the trigger signal is 2, and so on.

[0073] Step S103: Retrieving a test sequence configuration that matches the trigger signal from the test sequence configuration array:

[0074] That is, the array element corresponding to the trigger signal is found in the test sequence array, and the element is the configuration parameter of the channel under test.

[0075] Step S104: Determine whether the oscilloscope configuration matched by the test sequence configuration corresponding to the synchronous trigger signal obtained in the current test cycle is consistent with the oscilloscope configuration matched by the test sequence configuration corresponding to the synchronous trigger signal obtained in the previous test cycle. If not, execute step S105; if consistent, execute step S106:

[0076] Step S105: Presetting the oscilloscope based on the test sequence configuration

[0077] The preset parameters of the oscilloscope include: volt grid, second grid, step trigger mode, step point level setting, probe magnification, voltage offset value, time offset value; after receiving the preset signal, the oscilloscope performs configuration according to the configuration parameters and then is in a state to be tested.

[0078] Step S106: Control the switching relay serial board to switch channels;

[0079] By controlling the relay array board, the oscilloscope channel is directed to (i.e., connected to) the tested channel that needs to be tested in this cycle (i.e., switched through the relay). The tested channel that needs to be tested in this cycle is determined by the test sequence configuration, and the tested channel that needs to be tested can be determined based on the test sequence configuration.

[0080] Step S107: obtaining a response time test synchronization trigger signal again;

[0081] In specific applications, the system using this solution collects synchronous trigger signals through the AI ​​(analog input) channel, and the data processing method is the same as S102, see the following table:

[0082]

[0083] When the synchronous trigger signal begins to be captured, the internal timing function will be started (see step S109).

[0084] Step S108: determining whether the synchronization trigger signal acquired in step S107 is consistent with the synchronization trigger signal acquired in step S102;

[0085] When the AI ​​(analog input) channel collects the same synchronous trigger signal as in step S102 again, the process jumps to step S111 to start the oscilloscope to collect the response data of the test channel corresponding to the trigger signal;

[0086] When the AI ​​(analog input) channel does not collect the same collection value as that in step S102 within a certain time interval, the process proceeds to step S109.

[0087] Step S109: determining whether the internal timing data exceeds a preset value;

[0088] When the internal timing data does not reach the preset value, the process jumps to S107 to continue capturing the synchronization trigger signal; if the internal timing data reaches or exceeds the preset value, the process enters step 110.

[0089] Step S110: prompting the test to time out and exit the current test cycle;

[0090] The test interface prompts the user: "This test has timed out"; then jumps to the end step of this test cycle and exits the execution of this test case.

[0091] Step S111: starting the oscilloscope to collect response data of the test channel corresponding to the trigger signal;

[0092] The response data of the test channel is collected by the oscilloscope. At this time, the oscilloscope can obtain two waveform signals, one of which corresponds to the collection signal of the excitation channel of the measured response time, and the other corresponds to the collection signal of the response channel of the measured response time;

[0093] Step S112: calculating the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope;

[0094] When the waveform data collected by the oscilloscope is obtained, the response time of the test channel can be calculated based on the waveform data.

[0095] Exit: This test cycle ends, and you can continue to the next test cycle or end all tests.

[0096] The technical solution disclosed in the above embodiment of the present application realizes that the corresponding response time test case is triggered by the functional test program through the synchronous triggering of the DCS functional test and the interface response time test, and the method of corresponding the trigger signal to the test case index. The "one-key start" of the functional test and the response time test is realized, and no manual intervention is required during the test process. It reduces the test interruption or data error caused by human operation errors, reduces the workload of personnel, and improves work efficiency.

[0097] Furthermore, the oscilloscope is automatically configured through the test sequence configuration to realize the waveform data automatically captured by the oscilloscope. The computer can automatically calculate the response time according to the waveform data, thereby reducing the workload of personnel and improving work efficiency.

[0098] For example:

[0099] Table 2

[0100]

[0101] In Table 2, TRIG is used to indicate the trigger signal, and the HRCS1131MC, HRCS2131MC, HRCS4101MP, HRCS1111MT, and HRCS1121MT indicate the automatic functional test output channel (outputting signals to the device under test); IS101JA -UV is used to indicate the output signal collected from the device under test, which is subject to the jump caused by the logical relationship of the aforementioned signals. As can be seen from Table 2:

[0102] When TRIG changes from 0 to 1 for the first time (initial value is 0), the oscilloscope is preset according to Use Case 1. When TRIG changes from 0 to 1 for the second time, the response time of the test signals "HRCS1111MT" and "NIS101JA -UV" is measured.

[0103] When TRIG changes from 0 to 8 for the first time, the oscilloscope is preset according to Use Case 8. When TRIG changes from 0 to 8 for the second time, the response time of the test signals "HRCS4101MP" and "NIS101JA-UV" is tested.

[0104] When TRIG changes from 0 to 3 for the first time, the oscilloscope is preset according to Use Case 3. When TRIG changes from 0 to 3 for the second time, the response time of the test signals "HRCS2131MC" and "NIS101JA-UV" are tested.

[0105] In the technical solution disclosed in the embodiment of the present application, the oscilloscope may have an edge-triggered capture (Trigger) function. The oscilloscope automatically captures a step waveform in the "Normal" mode through software instructions and transmits it to a control computer or processor. The test software in the computer and processor automatically calculates the response time corresponding to the waveform collected by the oscilloscope.

[0106] Furthermore, in the oscilloscope disclosed in the above embodiment of the present application, a filtering module may be loaded, and the filtering module is used to perform median filtering on the waveform signal acquired by the filter to eliminate waveform data noise, so as to avoid misjudgment of triggering caused by channel interference signals. That is, in the technical solution disclosed in the above embodiment of the present application, the response time of the test channel corresponding to the trigger signal is calculated based on the response data collected by the oscilloscope, specifically including: obtaining edge-triggered waveform signals of two channels under test by the oscilloscope; filtering and denoising the edge-triggered waveform signals; identifying the step points of the two waveforms collected by the oscilloscope; and calculating the response time between two step points based on the step points extracted from the two channels.

[0107] When the oscilloscope captures the step point of the step waveform, the waveform step algorithm module of the software can be used to determine the waveform step point. In the process of identifying the step point, the step point is calculated with the preset potential value as the step judgment parameter "level" of the module.

[0108] When the slope of the step waveform is too large or the step potential has a large deviation, it is easy to cause the step point to be missed, that is, the step judgment module does not find the step point. If the step cannot be found, the program processing of the step not found is performed, that is, a prompt message is given and the test cycle is exited.

[0109] After finding the step points of the acquired step waveforms of the two channels, the response time between the two step points is calculated according to the step point position (horizontal axis) and the horizontal axis time interval. The response time is the development time of the test channel. For example, the step point position of channel 1 is 1250, the step point position of channel 2 is 1543, and the horizontal axis point time interval is 20us. The time interval between the two steps, that is, the response time, is: 5.86ms.

[0110] In the technical solution disclosed in another embodiment of the present application, in the response time test, the test report needs to be accompanied by the original test waveform as evidence. Therefore, in order to provide the original waveform, in this solution, after the test is completed, the original data collected by the oscilloscope is saved in the test file in the form of a waveform array. And the graph is loaded into the test report.

[0111] Furthermore, in view of the above method, the present application also discloses a DCS automatic testing device, see Figure 3 , the device may include:

[0112] The test sequence acquisition unit 100, corresponding to the above method, is used to obtain the test sequence configuration array;

[0113] The configuration unit 200, corresponding to the above method, determines whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous test cycle. If not, the response signal acquisition unit (oscilloscope) is preset based on the test sequence configuration, and then the relay array is controlled based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous cycle, the relay array is directly controlled based on the test sequence configuration; the synchronous trigger signal is received again, and if the synchronous trigger signal identical to the first one in this test cycle is not collected within a predetermined time, the test cycle is exited after an abnormality is prompted, otherwise the synchronous trigger signal is continued to be collected; when the synchronous trigger signal identical to the first one is received, the oscilloscope is started to collect data;

[0114] The response signal acquisition unit 300 corresponds to the above method and is used to start the oscilloscope to acquire the response data of the test channel corresponding to the trigger signal when the trigger signal sent by the configuration unit is acquired;

[0115] The response time calculation unit 400 , corresponding to the above method, is used to calculate the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope.

[0116] Corresponding to the above method, the response time calculation unit is specifically used for:

[0117] The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope;

[0118] Filtering and denoising the edge-triggered waveform signal;

[0119] Identifying step points of two waveforms collected by the oscilloscope;

[0120] Calculating the response time between two step points based on extracting the step points of the two channels corresponds to the above method.

[0121] When the configuration unit presets the oscilloscope based on the test sequence configuration and controls the relay array based on the test sequence configuration, the configuration unit is specifically used to:

[0122] Controlling the switch array of the test system relay based on the test sequence so that the oscilloscope can collect response data of the test channel corresponding to the trigger signal;

[0123] Presets of the oscilloscope are adjusted based on the test sequence configuration.

[0124] Corresponding to the above scheme, the present application also discloses a DCS automatic test system, see Figure 3 , the system includes:

[0125] Automatic test device 1, oscilloscope 2, AI (analog input) acquisition board 3, and relay array board 4;

[0126] The automatic test device 1 includes: a main processing unit 01 and a general I / O data acquisition board. The main processing unit 01 is used to send preset and test instructions to the oscilloscope through the general communication port (such as a USB port) to obtain the waveform signal collected by the oscilloscope; based on the response data collected by the oscilloscope 2, the response time of the test channel corresponding to the trigger signal is calculated. In this solution, the main processing unit 01 is the core component of the system, which can be a high-performance industrial computer based on PXI or PXI-e bus. The main processing unit 01 is connected to the AI ​​(analog input) acquisition board 3 and the relay array board 4 through the PXI bus; the main processing unit is also used to: obtain a response time test synchronization trigger signal through the AI ​​(analog input) acquisition channel; and retrieve a test sequence configuration matching the trigger signal from the test sequence configuration array; Determine whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous test cycle. If not, preset the response signal acquisition unit (oscilloscope) based on the test sequence configuration, and then control the relay array based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous cycle, directly control the relay array based on the test sequence configuration; receive the synchronization trigger signal again, if the synchronization trigger signal identical to the first synchronization trigger signal in this test cycle is not acquired within a predetermined time, exit this test cycle after prompting an abnormality, otherwise continue to acquire the synchronization trigger signal; when receiving the synchronization trigger signal identical to the first acquisition, start the oscilloscope for data acquisition; calculate the response time of the test channel corresponding to the trigger signal based on the response data acquired by the oscilloscope;

[0127] The oscilloscope 2 is used to collect the response time waveform data of the measured channel. In this solution, the oscilloscope 2 is connected to the measured channel through the relay array board 4. By adjusting the conduction state of each relay in the relay array board 4, the connection state between the oscilloscope 2 and each measured channel can be switched;

[0128] The AI ​​(analog input) acquisition board is used to acquire the synchronous trigger signal using one of its channels. Here, the synchronous signal refers to the trigger signal, and the acquired trigger signal is sent to the main processor;

[0129] The relay array board 4 is used to switch the connection status between the oscilloscope and multiple channels under test.

[0130] Corresponding to the above method, when the main processing unit calculates the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope, it is specifically used to:

[0131] The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope;

[0132] Filtering and denoising the edge-triggered waveform signal;

[0133] Identifying step points of two waveforms collected by the oscilloscope;

[0134] The response time between two step points is calculated based on the step points extracted from the two channels.

[0135] Corresponding to the above method,

[0136] When the main processing unit presets the oscilloscope based on the test sequence configuration and controls the relay array based on the test sequence configuration, it is specifically used to:

[0137] Controlling the relay array board of the test system based on the test sequence so that the oscilloscope can collect response data of the test channel corresponding to the trigger signal;

[0138] Parameter presets of the oscilloscope are adjusted based on the test sequence configuration.

[0139] For the convenience of description, the above system is described as being divided into various modules according to their functions. Of course, when implementing the present invention, the functions of each module can be implemented in the same or multiple software and / or hardware.

[0140] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.

[0141] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0142] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0143] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0144] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A DCS automatic testing method, It is characterized in that include: Get the test sequence configuration array; Get the response time test synchronization trigger signal; Retrieving a test sequence configuration matching the trigger signal from a test sequence configuration array; Determine whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous test cycle, and if not, preset the oscilloscope based on the test sequence configuration, and then control the relay array based on the test sequence configuration; If they are consistent, the relay array is controlled directly based on the test sequence configuration; If the synchronous trigger signal identical to the synchronous trigger signal first acquired in the current test cycle is not acquired within the predetermined time, the current test cycle is exited after an abnormality is prompted, otherwise the synchronous trigger signal continues to be acquired; If a synchronization trigger signal identical to the synchronization trigger signal first acquired in the current test cycle is acquired within a predetermined time, the oscilloscope is started to acquire data; The response time of the test channel corresponding to the trigger signal is calculated based on the response data collected by the oscilloscope.

2. The DCS automatic testing method according to claim 1, It is characterized in that The calculating the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope includes: The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope; Filtering and denoising the edge-triggered waveform signal; Identifying step points of two waveforms collected by the oscilloscope; The response time between two step points is calculated based on the step points extracted from the two channels.

3. The DCS automatic testing method according to claim 1, It is characterized in that Presetting an oscilloscope based on the test sequence configuration and controlling a relay array based on the test sequence configuration include: adjusting a preset of the oscilloscope based on the test sequence configuration; The switch array in the relay array is controlled based on the test sequence, so that the oscilloscope can collect response time data of the test channel corresponding to the trigger signal.

4. A DCS automatic test device, It is characterized in that include: A test sequence acquisition unit, used to obtain a test sequence configuration array; A configuration unit is used for responding to a time test synchronization trigger signal, calling a test sequence configuration matching the trigger signal from a test sequence configuration array, determining whether the oscilloscope configuration corresponding to the test sequence configuration determined in a current test cycle is consistent with that in a previous test cycle, and if not, sending a preset signal to a response signal acquisition unit so that the response signal acquisition unit is preset based on the test sequence configuration, and then controlling the relay array based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with that in the previous cycle, directly controlling the relay array based on the test sequence configuration; if a synchronization trigger signal identical to the synchronization trigger signal first acquired in this test cycle is not acquired within a predetermined time, exiting this test cycle after indicating an abnormality, otherwise continuing to wait for acquiring the synchronization trigger signal; if a synchronization trigger signal identical to the synchronization trigger signal first acquired in this test cycle is acquired within a predetermined time, outputting a trigger signal to the response signal acquisition unit; A response signal acquisition unit, used to perform preset according to the configuration requirements when obtaining the preset signal sent by the configuration unit; When a trigger signal sent by the configuration unit is obtained, the oscilloscope is started to collect response data of the test channel corresponding to the trigger signal; A response time calculation unit is used to calculate the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope.

5. The DCS automatic test device according to claim 4, It is characterized in that The response time calculation unit is specifically used for: The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope; Filtering and denoising the edge-triggered waveform signal; Identifying step points of two waveforms collected by the oscilloscope; The response time between two step points is calculated based on the step points extracted from the two channels.

6. The DCS automatic test device according to claim 4, It is characterized in that When the configuration unit presets the oscilloscope based on the test sequence configuration and controls the relay array based on the test sequence configuration, the configuration unit is specifically used to: Controlling a switch array of a test system relay based on the test sequence so that the oscilloscope can collect response data of the test channel corresponding to the trigger signal; Presets of the oscilloscope are adjusted based on the test sequence configuration.

7. A DCS automatic test system, It is characterized in that include: Automatic test equipment, oscilloscope and AI acquisition board and relay array board; The automatic test device comprises: a main processing unit and a general I / O data acquisition board, wherein the main processing unit is used to send preset and test instructions to the oscilloscope through a general communication port; obtain the waveform signal collected by the oscilloscope; calculate the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope, and the main processing unit is also used to: obtain the response time test synchronization trigger signal through the AI ​​acquisition channel; call the test sequence configuration matching the trigger signal from the test sequence configuration array; determine whether the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with the previous test cycle, if not, preset the response signal acquisition unit based on the test sequence configuration, and then control the relay array based on the test sequence configuration; if the oscilloscope configuration corresponding to the test sequence configuration determined in the current test cycle is consistent with the previous cycle, directly control the relay array based on the test sequence configuration; if the synchronization trigger signal identical to the synchronization trigger signal obtained for the first time in the current test cycle is not collected within the predetermined time, then prompt an abnormality and exit the current test cycle, otherwise continue to wait for the acquisition of the synchronization trigger signal; If a synchronization trigger signal identical to the synchronization trigger signal first acquired in the current test cycle is acquired within a predetermined time, the oscilloscope is started to acquire data; and the response time of the test channel corresponding to the trigger signal is calculated based on the response data acquired by the oscilloscope; The oscilloscope is used to collect response time waveform data of the measured channel; The AI ​​acquisition board is used to acquire the synchronous trigger signal using one of its channels; The relay array board is used to realize automatic switching between an oscilloscope channel and a plurality of channels to be measured.

8. The DCS automatic test system according to claim 7, It is characterized in that When the main processing unit calculates the response time of the test channel corresponding to the trigger signal based on the response data collected by the oscilloscope, it is specifically used to: The edge-triggered waveform signals of the two channels under test are obtained by the oscilloscope; Filtering and denoising the edge-triggered waveform signal; Identifying step points of two waveforms collected by the oscilloscope; The response time between two step points is calculated based on the step points extracted from the two channels.

9. The DCS automatic test system according to claim 7, It is characterized in that The main processing unit presets the oscilloscope based on the test sequence configuration and controls the relay array based on the test sequence configuration, specifically for: Controlling the relay array board of the test system based on the test sequence so that the oscilloscope can collect response data of the test channel corresponding to the trigger signal; Parameter presets of the oscilloscope are adjusted based on the test sequence configuration.