Signal sampling system, method and device, sampling test equipment, medium and product
By combining digital-to-analog converters and comparators, instead of traditional ADCs, signal sampling based on target sampling tasks is realized, solving the problem of high sampling rate ADCs increasing sampling costs, ensuring sampling accuracy and reducing costs.
Patent Information
- Application Number
- CN202411567142.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-03-14
AI Technical Summary
The use of high sampling rate ADCs in the prior art increases the cost of signal sampling and is difficult to reduce costs while ensuring sampling accuracy.
Through the combination of digital-to-analog converters and comparators, the number of trigger times and level values of the trigger level are determined based on the task completion accuracy of the target sampling task, and the signal sampling result is determined through the level sampling combination matrix, replacing the traditional ADC and reducing sampling cost.
On the premise of ensuring sampling accuracy, the combination of digital-to-analog converter and comparator reduces the signal sampling cost and improves the accuracy of signal sampling results.
Smart Images

Figure CN119628635A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of signal acquisition technology, and in particular to a signal sampling system, method, device, sampling test equipment, medium and product. Background Art
[0002] Analog to digital converter (ADC) plays an important role in various fields, especially in the field of signal sampling.
[0003] At present, ADC is usually used for signal acquisition. The basic principle is to sample at a specified time interval. In order to accurately restore the signal waveform from the sampled signal, the sampling clock frequency must be at least greater than or equal to 5GHz. In this way, the signal can be sampled to accurately reconstruct the signal waveform. The above sampling method puts forward higher requirements on the conversion rate and conversion accuracy of the analog-to-digital conversion device, and the use of a high sampling rate ADC increases the sampling cost.
[0004] Therefore, there is an urgent need for a signal sampling method that can both ensure sampling accuracy and reduce sampling costs. Summary of the invention
[0005] The present invention provides a signal sampling system, method, device, sampling test equipment, medium and product, which are used to solve the defect of using a high sampling rate ADC in the prior art, which increases the sampling cost, and realizes that a digital-to-analog converter determines the triggering number and level value of a trigger level based on the task completion accuracy of a target sampling task, and feeds back all level values corresponding to the triggering number to a comparator; the comparator is used to determine a level sampling combination matrix according to all level values and the level of a measured signal; finally, a controller of the sampling test equipment determines the signal sampling result of the target sampling task based on the level sampling combination matrix, and on the premise of ensuring the sampling accuracy, the sampling cost is reduced by replacing the ADC with a combination of a digital-to-analog converter and a comparator.
[0006] The present invention provides a signal sampling system, comprising: a sampling test device and a device under test, the sampling test device comprising a controller, a digital-to-analog converter and a comparator, the sampling test device and the device under test are connected, the controller is respectively connected to the digital-to-analog converter, the comparator and the device under test, and the comparator is also connected to the digital-to-analog converter; wherein the controller is used to obtain a target sampling task and determine a trigger signal based on the target sampling task; the digital-to-analog converter is used to determine the triggering times and level values of a trigger level based on the task completion accuracy of the target sampling task, and feed back all level values corresponding to the triggering times to the comparator; the device under test is used to determine the level of a signal under test based on the trigger signal, and feed back the level of the signal under test to the comparator; the comparator is used to determine a level sampling combination matrix according to all level values and the level of the signal under test, and feed back the level sampling combination matrix to the sampling test device; the sampling test device is used to determine a signal sampling result of the target sampling task based on the level sampling combination matrix.
[0007] According to a signal sampling system provided by the present invention, the comparator is specifically used to determine the level difference according to the difference between all level values and the level of the measured signal, and determine the level sampling combination matrix based on all level differences.
[0008] The present invention also provides a signal sampling method, which is applied to a sampling test device in a signal sampling system and includes the following steps.
[0009] Get the target sampling task.
[0010] A trigger signal is determined according to a target sampling task, and a trigger level is determined according to the target sampling task.
[0011] The level of the signal under test is determined according to the trigger signal.
[0012] The level sampling combination matrix is determined according to the trigger level and the level of the signal to be measured.
[0013] The signal sampling result of the target sampling task is determined according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix.
[0014] According to a signal sampling method provided by the present invention, a trigger level includes a trigger number and a level value; determining the trigger level according to a target sampling task includes: determining the task completion accuracy of the target sampling task; determining the trigger number and the level value corresponding to the trigger number according to the task completion accuracy.
[0015] According to a signal sampling method provided by the present invention, the triggering number N=2 n -1, where n represents the task completion accuracy of the target sampling task.
[0016] According to a signal sampling method provided by the present invention, a level sampling combination matrix is determined according to a trigger level and a measured signal level, including: determining a level difference according to the difference between all level values corresponding to all trigger times and the measured signal level; and determining a level sampling combination matrix according to the level difference.
[0017] The present invention also provides a signal sampling device, which is applied to a sampling test device in a signal sampling system and includes the following modules.
[0018] The task acquisition module is used to obtain the target sampling task.
[0019] The sampling determination module is used to determine a trigger signal according to a target sampling task, and to determine a trigger level according to the target sampling task.
[0020] The level determination module is used to determine the level of the measured signal according to the trigger signal.
[0021] The matrix determination module is used to determine the level sampling combination matrix according to the trigger level and the level of the measured signal.
[0022] The result determination module is used to determine the signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix.
[0023] The present invention also provides a sampling test device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-mentioned sampling test methods when executing the computer program.
[0024] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, any of the above-mentioned sampling test methods is implemented.
[0025] The present invention also provides a computer program product, including a computer program, and when the computer program is executed by a processor, any of the above-mentioned sampling test methods is implemented.
[0026] The present invention provides a signal sampling system, method, device, sampling test equipment, medium and product. The signal sampling system includes: a sampling test equipment and a device under test. The sampling test equipment includes a controller, a digital-to-analog converter and a comparator. The sampling test equipment and the device under test are connected. The controller is respectively connected to the digital-to-analog converter, the comparator and the device under test, and the comparator is also connected to the digital-to-analog converter. The controller is used to obtain a target sampling task and determine a trigger signal based on the target sampling task. The digital-to-analog converter is used to determine the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and feed back all level values corresponding to the triggering number to the comparator. The device under test is used to determine the level of the signal under test based on the trigger signal, and feed back the level of the signal under test to the comparator. The comparator is used to determine the level sampling combination matrix according to all level values and the level of the signal under test, and feed back the level sampling combination matrix to the sampling test equipment. The sampling test equipment is used to determine the signal sampling result of the target sampling task based on the level sampling combination matrix. The technical solution of the present invention solves the defect of increasing sampling cost by adopting high sampling rate ADC in the prior art, and realizes that the digital-to-analog converter determines the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and feeds back all level values corresponding to the triggering number to the comparator; the comparator is used to determine the level sampling combination matrix according to all level values and the level of the measured signal; finally, the controller of the sampling test equipment determines the signal sampling result of the target sampling task based on the level sampling combination matrix, and reduces the sampling cost by replacing the ADC with the combination of the digital-to-analog converter and the comparator under the premise of ensuring the sampling accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0028] Figure 1 It is a structural schematic diagram of the signal sampling system provided by the present invention.
[0029] Figure 2 It is a flow chart of the signal sampling method provided by the present invention.
[0030] Figure 3 This is a schematic diagram of level value collection provided by the present invention.
[0031] Figure 4 It is a schematic diagram of the level difference provided by the present invention.
[0032] Figure 5It is a structural schematic diagram of the signal sampling device provided by the present invention.
[0033] Figure 6 is a structural schematic diagram of the sampling test equipment provided by the present invention, Reference numerals: 10: signal sampling system; 11: sampling test equipment; 1101: controller; 1102: digital-to-analog converter; 1103: comparator; 12: device under test. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are 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.
[0035] Combine the following Figure 1 The signal sampling system provided by the present invention is described. The signal sampling system provided by the present invention can be applied to the situation of signal sampling. Figure 1 Schematic diagram of the structure of the signal sampling system provided by the present invention. Figure 1 As shown, the signal sampling system 10 includes: a sampling test device 11 and a device under test 12.
[0036] The sampling test device 11 includes a controller 1101 , a digital-to-analog converter 1102 and a comparator 1103 .
[0037] In this step, the sampling test device is connected to the device under test, the controller is connected to the digital-to-analog converter, the comparator and the device under test respectively, and the comparator is also connected to the digital-to-analog converter.
[0038] Specifically, the controller is used to obtain the target sampling task and determine the trigger signal based on the target sampling task; the digital-to-analog converter is used to determine the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and feed back all level values corresponding to the triggering number to the comparator; the device under test is used to determine the level of the measured signal based on the trigger signal, and feed back the measured signal level to the comparator; the comparator is used to determine the level sampling combination matrix according to all level values and the measured signal level, and feed back the level sampling combination matrix to the sampling test device; the sampling test device is used to determine the signal sampling result of the target sampling task based on the level sampling combination matrix.
[0039] In this step, the target sampling task is a task that requires signal sampling; the trigger signal is a signal used to trigger the device under test. The measured signal level is a signal of the waveform of the measured signal generated by the device under test after receiving the trigger signal. The measured signal level is a repeated signal level, that is, for the same trigger signal, the signal level generated each time is the same. The task completion accuracy can be, for example, 2 bits, 3 bits, etc., which is not limited in this embodiment. The number of triggers is the number of times the digital-to-analog converter needs to be triggered, and the level value is the DC level generated each time the digital-to-analog converter is triggered.
[0040] Specifically, after the controller obtains the target sampling task, the digital-to-analog converter will determine the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and feed back all level values corresponding to the triggering number to the comparator; at the same time, the device under test determines the level of the measured signal based on the trigger signal, and feeds back the measured signal level to the comparator; after receiving the level value and the measured signal level, the comparator will determine the level sampling combination matrix based on all level values and the measured signal level, and feed back the level sampling combination matrix to the sampling test device. Finally, the sampling test device determines the signal sampling result of the target sampling task based on the level sampling combination matrix.
[0041] In a specific implementation manner, the level sampling combination matrix is determined by a comparator according to the differences between all level values and the level of the measured signal, and is determined based on all level differences.
[0042] For example, in actual application, the digital-to-analog converter can generate a pulse width modulation (PWM) signal by using digital logic inside the field programmable gate array (FPGA). The PWM signal generated by the FPGA is output and filtered by a low-pass filter to generate a DC level for comparison. If there are higher requirements for the accuracy of the digital-to-analog converter, two methods can be adopted. One is to use sigma-delta modulation instead of PWM algorithm, and the other is to use the existing high-precision digital-to-analog converter (DAC) chip to cooperate with FPGA to generate a higher-precision DC level. The comparator is completed by the differential signal (such as low-voltage differential signal (LVDS)) input interface of the FPGA. LVDS has two input pins, one pin is connected to the measured signal, and the other pin is connected to the comparison level. At present, the frequency of the differential input signal of ordinary FPGA can really reach 1 gigabit per second. If a high-speed serializer (SERDES) interface is used, it can reach a speed of 32.75 megabits. For the signal sampling system, if the sensitivity of the comparator is improved, a high-speed comparator can be connected outside the FPGA. The comparator generates a differential signal and then connects it to the differential input pin (LVDS or SERDES) of the FPGA. The controller is implemented by the FPGA. In each trigger, the 1-bit signal sequence of the LVDS input is stored in the internal storage of the FPGA. If the sequence is long, it is stored in the external dynamic random access memory (DRAM). When all triggers are completed, these sampled signals are processed to form a multi-bit digital signal sequence.
[0043] The present invention provides a signal sampling system, which includes: a sampling test device and a device under test, the sampling test device includes a controller, a digital-to-analog converter and a comparator, the sampling test device and the device under test are connected, the controller is respectively connected to the digital-to-analog converter, the comparator and the device under test, and the comparator is also connected to the digital-to-analog converter; wherein the controller is used to obtain a target sampling task and determine a trigger signal based on the target sampling task; the digital-to-analog converter is used to determine the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and feed back all level values corresponding to the triggering number to the comparator; the device under test is used to determine the level of the signal under test based on the trigger signal, and feed back the level of the signal under test to the comparator; the comparator is used to determine a level sampling combination matrix according to all level values and the level of the signal under test, and feed back the level sampling combination matrix to the sampling test device; the sampling test device is used to determine the signal sampling result of the target sampling task based on the level sampling combination matrix. The technical solution of the present invention solves the defect of increasing sampling cost by adopting high sampling rate ADC in the prior art, and realizes that the digital-to-analog converter determines the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and feeds back all level values corresponding to the triggering number to the comparator; the comparator is used to determine the level sampling combination matrix according to all level values and the level of the measured signal; finally, the controller of the sampling test equipment determines the signal sampling result of the target sampling task based on the level sampling combination matrix, and reduces the sampling cost by replacing the ADC with the combination of the digital-to-analog converter and the comparator under the premise of ensuring the sampling accuracy.
[0044] Combine the following Figure 2 The signal sampling method provided by the present invention is described. The signal sampling method provided by the present invention can be applicable to signal sampling situations. The executor of the method can be a sampling test device or a signal sampling device arranged in the sampling test device. The signal sampling device can be implemented by software, hardware or a combination of both. Figure 2 It is a flow chart of the signal sampling method provided by the present invention, such as Figure 2 As shown, the method includes the following steps 201, 202, 203, 204 and 205.
[0045] Step 201: Obtain target sampling tasks.
[0046] In this step, the target sampling task is a task that requires signal sampling.
[0047] Specifically, a target sampling task requiring signal sampling is obtained.
[0048] Step 202: Determine a trigger signal according to the target sampling task, and determine a trigger level according to the target sampling task.
[0049] In this step, the trigger level includes the triggering number and the level value. The triggering number is the number of times the digital-to-analog converter needs to be triggered, and the level value is the DC level generated each time the digital-to-analog converter is triggered.
[0050] Specifically, after the target sampling signal is acquired, the trigger times are determined based on the task completion accuracy of the target sampling signal, and the level values corresponding to all the trigger times are determined.
[0051] In a specific implementation, the trigger level includes a trigger count and a level value; determining the trigger level according to the target sampling task includes: determining the task completion accuracy of the target sampling task; determining the trigger count and the level value corresponding to the trigger count according to the task completion accuracy.
[0052] In this step, the triggering number N=2 n -1, where n represents the task completion accuracy of the target sampling task.
[0053] Specifically, the task completion accuracy of the target sampling task is determined; and the number of triggers and the level value corresponding to the number of triggers are determined according to the task completion accuracy.
[0054] Step 203: Determine the level of the signal to be measured according to the trigger signal.
[0055] In this step, the measured signal level is a repeated signal level, that is, for the same trigger signal, the signal level generated each time is the same.
[0056] Specifically, after the trigger signal is determined, the waveform of the measured signal generated by the measured device based on the trigger signal is the measured signal level.
[0057] For example, if the task completion accuracy of the target sampling task is determined to be 3 bits, then the number of triggers is determined to be 7 times, and the level values corresponding to the 7 trigger times are determined respectively. Figure 3 is a schematic diagram of level value collection provided by the present invention, such as Figure 3 As shown, Figure 3 The 7 dotted lines in the figure represent the level values corresponding to the 7 trigger times. Figure 3 The solid curve in represents the measured signal level.
[0058] The advantage of this setting is that the clock requirement in each trigger sampling process is consistent, and there is no requirement for a precise delay difference between two triggers, thereby reducing the complexity requirements for the clock system.
[0059] Step 204: Determine a level sampling combination matrix according to the trigger level and the level of the measured signal.
[0060] In a specific implementation, determining a level sampling combination matrix according to the trigger level and the measured signal level includes: determining a level difference according to the difference between all level values corresponding to all trigger times and the measured signal level; and determining a level sampling combination matrix according to the level difference.
[0061] Specifically, after all level values corresponding to all trigger times are obtained, the differences between all level values and the measured signal level are calculated one by one for all level values, thereby determining the level difference, and further determining the level sampling combination matrix according to the level difference.
[0062] For example, Figure 4 is a schematic diagram of the level difference provided by the present invention, such as Figure 4 As shown, the level difference corresponding to the level value corresponding to the 7 trigger times and the level of the measured signal is obtained, and finally the level difference in the level difference diagram is converted into a level sampling combination matrix as shown in formula (1).
[0063] (1) Step 205: Determine the signal sampling result of the target sampling task according to the matrix columns of the level sampling combination matrix.
[0064] In this step, the matrix column sum is the sum of the columns of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of all matrix column sums of the level sampling combination matrix.
[0065] Specifically, after determining the level sampling combination matrix, the sum of the matrix columns of the level sampling combination matrix is calculated to obtain the signal sampling result of the target sampling task. That is, after being combined into the level sampling combination matrix, each row of the level sampling combination matrix corresponds to a digital signal sequence generated by one triggering number, and the column corresponds to the sampling moment. Each column signal of the level sampling combination matrix is processed as follows, and the number of 1s in each column is calculated, which is the value of the recovered 3-bit digital signal sequence. If there are 4 1s in the first column, then the recovered digital sampling value is 4. The other columns are deduced in the same way to obtain the final signal sampling result. To recover multi-bit values from column signals, you can also take a bottom-up approach, looking for rows that change from 1 to 0, and taking the row number where the last 1 is located as the final signal sampling result.
[0066] Exemplarily, based on the level sampling combination matrix of formula (1), the sum of the matrix columns of the level sampling combination matrix is calculated, and the signal sampling result of the target sampling task is obtained as 455667777777766554433221100000112233.
[0067] The present invention provides a signal sampling method, which obtains a target sampling task; determines a trigger signal according to the target sampling task, and determines a trigger level according to the target sampling task; determines a measured signal level according to the trigger signal; determines a level sampling combination matrix according to the trigger level and the measured signal level; and determines a signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix. The technical scheme of the present invention solves the defect of increasing the sampling cost by using a high sampling rate ADC in the prior art, realizes that a digital-to-analog converter determines the triggering number and level value of the trigger level based on the task completion accuracy of the target sampling task, and determines the level sampling combination matrix by all level values and the measured signal level for all level values corresponding to the triggering number; finally, the signal sampling result of the target sampling task is determined based on the level sampling combination matrix, and under the premise of ensuring the sampling accuracy, the sampling cost is reduced and the accuracy of the signal sampling result is improved by replacing the ADC with a combination of a digital-to-analog converter and a comparator.
[0068] The signal sampling device provided by the present invention is described below. The signal sampling device described below and the signal sampling method described above can be referred to each other.
[0069] Figure 5 is a schematic diagram of the structure of the signal sampling device provided by the present invention, referring to Figure 5 As shown, the signal sampling device 500 includes: a task acquisition module 501 , a sampling determination module 502 , a level determination module 503 , a matrix determination module 504 and a result determination module 505 .
[0070] The task acquisition module 501 is used to acquire the target sampling task.
[0071] The sampling determination module 502 is used to determine a trigger signal according to a target sampling task, and determine a trigger level according to the target sampling task.
[0072] The level determination module 503 is used to determine the level of the measured signal according to the trigger signal.
[0073] The matrix determination module 504 is used to determine the level sampling combination matrix according to the trigger level and the level of the measured signal.
[0074] The result determination module 505 is used to determine the signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix.
[0075] In an exemplary embodiment, the trigger level includes a trigger number and a level value.
[0076] In an exemplary embodiment, the level determination module 503 is specifically used to: determine the task completion accuracy of the target sampling task; and determine the number of triggers and the level value corresponding to the number of triggers according to the task completion accuracy.
[0077] In an exemplary embodiment, the triggering number N=2 n -1, where n represents the task completion accuracy of the target sampling task.
[0078] In an exemplary embodiment, the matrix determination module 504 is specifically used to: determine the level difference according to the difference between all level values corresponding to all trigger times and the level of the measured signal; and determine the level sampling combination matrix according to the level difference.
[0079] The device of this embodiment can be used to execute the method of any embodiment in the signal sampling method side embodiment. Its specific implementation process and technical effects are similar to those in the signal sampling method side embodiment. For details, please refer to the detailed introduction in the signal sampling method side embodiment, which will not be repeated here.
[0080] Figure 6 It is a structural schematic diagram of the sampling test equipment provided by the present invention, such as Figure 6 As shown, the sampling test device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the signal sampling method, which includes: obtaining a target sampling task; determining a trigger signal according to the target sampling task, and determining a trigger level according to the target sampling task; determining a measured signal level according to the trigger signal; determining a level sampling combination matrix according to the trigger level and the measured signal level; determining a signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix.
[0081] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0082] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the signal sampling method provided by the above methods, which includes: obtaining a target sampling task; determining a trigger signal according to the target sampling task, and determining a trigger level according to the target sampling task; determining a measured signal level according to the trigger signal; determining a level sampling combination matrix according to the trigger level and the measured signal level; determining a signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix.
[0083] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the signal sampling method provided by the above-mentioned methods, the method comprising: obtaining a target sampling task; determining a trigger signal according to the target sampling task, and determining a trigger level according to the target sampling task; determining a measured signal level according to the trigger signal; determining a level sampling combination matrix according to the trigger level and the measured signal level; determining a signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of the sum of all matrix columns of the level sampling combination matrix.
[0084] The device embodiments described above are merely illustrative, 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 paying creative labor.
[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0086] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A signal sampling system, characterized in that: include: A sampling test device and a device under test, wherein the sampling test device comprises a controller, a digital-to-analog converter and a comparator, the sampling test device is connected to the device under test, the controller is respectively connected to the digital-to-analog converter, the comparator and the device under test, and the comparator is also connected to the digital-to-analog converter; wherein, The controller is used to obtain a target sampling task and determine a trigger signal based on the target sampling task; The digital-to-analog converter is used to determine the triggering times and level values of the trigger level based on the task completion accuracy of the target sampling task, and feed back all the level values corresponding to the triggering times to the comparator; The device under test is used to determine the level of the signal under test based on the trigger signal, and feed back the level of the signal under test to the comparator; The comparator is used to determine a level sampling combination matrix according to all the level values and the measured signal level, and feed the level sampling combination matrix back to the sampling test device; The sampling test device is used to determine the signal sampling result of the target sampling task based on the level sampling combination matrix.
2. The signal sampling system according to claim 1, characterized in that: The comparator is specifically used to determine the level difference according to the difference between all the level values and the level of the measured signal, and determine the level sampling combination matrix based on all the level differences.
3. A signal sampling method, characterized in that: The sampling test device used in the signal sampling system according to claim 1 comprises: Get the target sampling task; Determine a trigger signal according to the target sampling task, and determine a trigger level according to the target sampling task; determining the level of the measured signal according to the trigger signal; Determine a level sampling combination matrix according to the trigger level and the measured signal level; The signal sampling result of the target sampling task is determined according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of all the matrix column sums of the level sampling combination matrix.
4. The signal sampling method according to claim 3, characterized in that: The trigger level includes a trigger number and a level value; and determining the trigger level according to the target sampling task includes: Determining the task completion accuracy of the target sampling task; The triggering times and the level value corresponding to the triggering times are determined according to the task completion accuracy.
5. The signal sampling method according to claim 4, characterized in that: The triggering number N=2 n -1, where n represents the task completion accuracy of the target sampling task.
6. The signal sampling method according to claim 4, characterized in that: The step of determining a level sampling combination matrix according to the trigger level and the measured signal level comprises: Determine a level difference according to a difference between all the level values corresponding to all the trigger times and the level of the measured signal; The level sampling combination matrix is determined according to the level difference.
7. A signal sampling device, characterized in that: The sampling test device used in the signal sampling system according to claim 1 comprises: Task acquisition module, used to acquire target sampling tasks; A sampling determination module, used to determine a trigger signal according to the target sampling task, and determine a trigger level according to the target sampling task; A level determination module, used to determine the level of the measured signal according to the trigger signal; A matrix determination module, used for determining a level sampling combination matrix according to the trigger level and the measured signal level; A result determination module is used to determine the signal sampling result of the target sampling task according to the matrix column sum of the level sampling combination matrix; wherein the matrix column sum is the sum result of each column of the level sampling combination matrix, and the signal sampling result is a digital signal sequence of all the matrix column sums of the level sampling combination matrix.
8. A sampling test device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the signal sampling method according to any one of claims 3 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the signal sampling method according to any one of claims 3 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the signal sampling method according to any one of claims 3 to 6 is implemented.