Measuring device with variable sampling rate, control method thereof and storage medium

By designing the function of dynamically adjusting the sampling frequency and multi-channel parallel acquisition technology in the measurement device, the complexity and stability problems in the existing technology are solved, efficient and flexible data acquisition and processing are achieved, and the performance and performance of the test system are improved. reliability.

CN118759280APending Publication Date: 2024-10-11SHENZHEN PTI TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410739766.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

Existing variable sampling rate measurement devices face increased complexity during design, sampling rate adjustment delays, increased resource usage, sampling rates that are too high or too low, data processing complexity and compatibility issues, which affect performance, stability and reliability. .

Method used

A measurement device including a main control module, a frequency generation module, a drive module and multiple sampling channels is designed. By dynamically adjusting the sampling frequency, using multi-channel parallel acquisition technology, and combining the fast Fourier transform algorithm for data processing, accurate A balance between degree and sampling speed.

Benefits of technology

It achieves dynamic adjustment of sampling frequency according to different characteristic frequencies, improves data collection efficiency and flexibility, reduces costs, and enhances the stability and market competitiveness of the test system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118759280A_ABST
    Figure CN118759280A_ABST
Patent Text Reader

Abstract

The invention discloses a variable sampling rate measuring device, a control method thereof and a storage medium, and relates to the technical field of sampling of measuring devices. The device comprises a main control module, a frequency generation module, a driving module and a plurality of sampling channels, the main control module is electrically connected with an upper computer, the input end of the frequency generation module is electrically connected with the main control module, the output end of the frequency generation module is electrically connected with the input end of the driving module, and the output end of the driving module is electrically connected with an object to be detected; each sampling channel comprises a first sampling module and a second sampling module, the input ends of the first sampling module and the second sampling module are electrically connected with an object to be detected, and the output ends of the first sampling module and the second sampling module are electrically connected with the main control module. According to the device provided by the embodiment of the invention, the sampling frequency can be dynamically adjusted according to the to-be-measured objects with different characteristic frequencies, and the balance between the sampling accuracy and the sampling speed is achieved by setting different sampling rates and sampling depths.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of measuring device sampling technology, and in particular to a measuring device with a variable sampling rate, a control method thereof, and a storage medium. Background Art

[0002] For most systems, such as audio systems, ultrasonic systems, or radar systems, they are signal systems within a certain narrow frequency. Under the premise of satisfying the Nyquist sampling theorem, only a single sampling rate is required to complete the data collection. When the sampling rate remains unchanged, the complexity of the system is relatively simple. When designing a measurement device with a variable sampling rate, some challenges and potential defects will be encountered, which may affect the performance, stability or reliability of the device. The following are some defects of existing products:

[0003] Increased complexity: Implementing the variable sampling rate function may increase the complexity of the device, including hardware design and software algorithms. Complex design may make system debugging and maintenance difficult, and also increase manufacturing costs.

[0004] Sampling rate adjustment delay: When implementing adaptive sampling rate adjustment, there may be a certain adjustment delay. This means that when the signal changes rapidly, the device may not be able to adjust the sampling rate in time, resulting in data loss or inaccuracy.

[0005] Increased resource usage: Dynamically adjusting the sampling rate may increase the usage of system resources, including processor computing resources, storage space, etc., which may affect the performance and response speed of the device.

[0006] Problems with too high or too low sampling rates: In practical applications, you may encounter situations where the sampling rate is too high or too low. A sampling rate that is too high may lead to waste of resources and increase the burden of data processing, while a sampling rate that is too low may lead to data loss or distortion.

[0007] Data processing complexity: With the dynamic adjustment of sampling rate, the complexity of data processing may increase. Especially in the case of high sampling rate and large data volume, data processing and analysis may become more difficult.

[0008] Compatibility issues: There may be compatibility issues between different application scenarios and devices. Especially when it comes to data exchange and communication with other devices or systems, you may need to deal with compatibility issues.

[0009] Stability and reliability challenges: Dynamically adjusting the sampling rate may bring challenges in stability and reliability. Especially in long-term continuous operation or complex environmental conditions, the device may face stability and reliability issues. Summary of the invention

[0010] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention proposes a variable sampling rate measurement device and a control method and storage medium thereof, which can dynamically adjust the sampling rate to ensure accurate measurement data in different scenarios.

[0011] On the one hand, a measurement device with a variable sampling rate according to an embodiment of the present invention includes:

[0012] The main control module is electrically connected to the host computer;

[0013] A frequency generating module, an input end of which is electrically connected to the main control module;

[0014] A driving module, whose input end is electrically connected to the output end of the frequency generating module, and whose output end is electrically connected to the object to be tested;

[0015] A plurality of sampling channels, each of which includes a first sampling module and a second sampling module, the input ends of the first sampling module and the second sampling module are both electrically connected to the object to be tested, and the output ends of the first sampling module and the second sampling module are both electrically connected to the main control module;

[0016] Among them, the main control module is used to obtain the frequency command signal sent by the host computer, and generate a control instruction according to the frequency command signal, and send the control instruction to the frequency generation module to make the frequency generation module generate an excitation signal; the driving module is used to change the impedance and amplify the excitation signal to drive the object under test to output the signal under test; the main control module is also used to determine the sampling frequency according to the frequency command signal, and control the first sampling module and the second sampling module to sample the signal under test according to the sampling frequency; the main control module is also used to calculate the electrical characteristics of the object under test according to the sampling results of the first sampling module and the second sampling module.

[0017] According to some embodiments of the present invention, the main control module includes a storage unit, a filtering unit and a computing unit. The storage unit is used to store the sampling results of the first sampling module and the second sampling module, the filtering unit is used to filter and denoise the sampling results, and the computing unit is used to calculate the electrical characteristics of the object to be tested based on the sampling results of the first sampling module and the second sampling module.

[0018] According to some embodiments of the present invention, the measuring device further comprises a power management module and a display module, the power management module is electrically connected to the frequency generation module and the main control module respectively, and the display module is electrically connected to the main control module.

[0019] According to some embodiments of the present invention, the driving module includes a first buffer and an amplifier, the input end of the first buffer is electrically connected to the output end of the frequency generating module, the output end of the first buffer is electrically connected to the input end of the amplifier, and the output end of the amplifier is electrically connected to the object under test.

[0020] According to some embodiments of the present invention, the first sampling module includes a second buffer and a first analog-to-digital converter, the input end of the second buffer is electrically connected to the object to be tested, the output end of the second buffer is electrically connected to the input end of the first analog-to-digital converter, and the output end of the first analog-to-digital converter is electrically connected to the main control module.

[0021] According to some embodiments of the present invention, the second sampling module includes a sampling gear switch unit, a third buffer and a second analog-to-digital converter, the input end of the sampling gear switch unit is electrically connected to the object to be tested, the output end of the sampling gear switch unit is electrically connected to the input end of the third buffer, the output end of the third buffer is electrically connected to the input end of the second analog-to-digital converter, and the output end of the second analog-to-digital converter is electrically connected to the main control module.

[0022] On the other hand, a control method of a variable sampling rate measuring device according to an embodiment of the present invention is applied to the variable sampling rate measuring device described in the above-mentioned embodiment, and the control method comprises the following steps:

[0023] The main control module obtains the frequency command signal sent by the host computer, and generates a control instruction according to the frequency command signal;

[0024] The frequency generation module generates an excitation signal according to the control instruction;

[0025] The driving module performs impedance change and amplification on the excitation signal, and drives the object to be tested to output a signal to be tested;

[0026] The main control module determines the sampling frequency according to the frequency command signal, and controls the first sampling module and the second sampling module to sample the signal to be tested according to the sampling frequency;

[0027] The main control module calculates the electrical characteristics of the object under test according to the sampling results of the first sampling module and the second sampling module.

[0028] According to some embodiments of the present invention, the main control module determines the sampling frequency according to the frequency command signal, and controls the first sampling module and the second sampling module to sample the signal to be tested according to the sampling frequency, including:

[0029] The main control module determines the characteristic frequency of the excitation signal according to the frequency command signal;

[0030] Determine the sampling frequency according to the characteristic frequency, wherein the sampling frequency is greater than twice the characteristic frequency;

[0031] According to the sampling frequency, a sampling period is obtained;

[0032] Determining clock times of the first sampling module and the second sampling module according to the sampling period;

[0033] According to the clock time, obtaining the clock frequencies of the first sampling module and the second sampling module;

[0034] The main control module drives the first sampling module and the second sampling module to sample the signal to be tested according to the clock frequency.

[0035] According to some embodiments of the present invention, the main control module includes a storage unit, a filtering unit and a computing unit; the step of the main control module calculating the electrical characteristics of the object under test according to the sampling results of the first sampling module and the second sampling module includes:

[0036] The first sampling module and the second sampling module perform analog-to-digital conversion on the signal to be measured to obtain a digital signal, and store the digital signal in the storage unit;

[0037] The filtering unit filters and removes noise from the digital signal;

[0038] The calculation unit calculates the digital signal using a fast Fourier transform algorithm to obtain the frequency, amplitude and phase of the signal to be measured;

[0039] The main control module obtains the electrical characteristics of the object under test according to the frequency, amplitude and phase of the signal under test.

[0040] On the other hand, according to a storage medium of an embodiment of the present invention, the storage medium stores computer executable instructions, and the computer executable instructions are used to enable a computer to execute the control method of the variable sampling rate measurement device described in the above embodiment.

[0041] The variable sampling rate measuring device and its control method and storage medium according to the embodiments of the present invention have at least the following beneficial effects: the sampling frequency can be dynamically adjusted according to the objects to be measured with different characteristic frequencies to realize measurement methods of different speeds, and different sampling rates and different sampling depths (number of points) can be set according to different application scenarios to achieve a balance between sampling accuracy and sampling speed. The device has multiple sampling channels and adopts multi-channel parallel acquisition technology. It can collect multiple signals at the same time and adjust them independently at different sampling rates to improve data acquisition efficiency and flexibility. The miniaturization, modularization and high-precision design features of the device are applied in different test scenarios, which greatly accelerates the development of the test system and increases the stability of the test system, reduces costs and increases market competitiveness.

[0042] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:

[0044] Figure 1 It is a structural schematic diagram of a measurement device with a variable sampling rate according to an embodiment of the present invention;

[0045] Figure 2 It is a structural schematic diagram of a main control module, a host computer, a display module, a power management module and a frequency generation module according to an embodiment of the present invention;

[0046] Figure 3 It is a structural schematic diagram of a main control module, a frequency generation module, a driving module, a first sampling module and a second sampling module according to an embodiment of the present invention;

[0047] Figure 4 is a schematic diagram of a sampling gear switch unit according to an embodiment of the present invention;

[0048] Figure 5 A flow chart of the steps of a control method of a measurement device with a variable sampling rate according to an embodiment of the present invention;

[0049] Figure 6 1 is a flow chart of the steps of a control method of a measurement device with a variable sampling rate according to an embodiment of the present invention;

[0050] Reference numerals:

[0051] Main control module 100 , host computer 200 , frequency generation module 300 , drive module 400 , object under test 500 , sampling channel 600 , display module 700 , power management module 800 . DETAILED DESCRIPTION

[0052] Embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present application, and are not to be construed as limitations on the present application. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way, and the execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0053] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0054] The terms "first", "second", "third" and "fourth" etc. in the specification and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0055] Reference to "embodiments" in the present invention means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0056] For most systems, such as audio systems, ultrasonic systems, or radar systems, they are signal systems within a certain narrow frequency. Under the premise of satisfying the Nyquist sampling theorem, only a single sampling rate is required to complete the data collection. When the sampling rate remains unchanged, the complexity of the system is relatively simple. When designing a measurement device with a variable sampling rate, some challenges and potential defects will be encountered, which may affect the performance, stability or reliability of the device. The following are some defects of existing products:

[0057] Increased complexity: Implementing the variable sampling rate function may increase the complexity of the device, including hardware design and software algorithms. Complex design may make system debugging and maintenance difficult, and also increase manufacturing costs.

[0058] Sampling rate adjustment delay: When implementing adaptive sampling rate adjustment, there may be a certain adjustment delay. This means that when the signal changes rapidly, the device may not be able to adjust the sampling rate in time, resulting in data loss or inaccuracy.

[0059] Increased resource usage: Dynamically adjusting the sampling rate may increase the usage of system resources, including processor computing resources, storage space, etc., which may affect the performance and response speed of the device.

[0060] Problems with too high or too low sampling rates: In practical applications, you may encounter situations where the sampling rate is too high or too low. A sampling rate that is too high may lead to waste of resources and increase the burden of data processing, while a sampling rate that is too low may lead to data loss or distortion.

[0061] Data processing complexity: With the dynamic adjustment of sampling rate, the complexity of data processing may increase. Especially in the case of high sampling rate and large data volume, data processing and analysis may become more difficult.

[0062] Compatibility issues: There may be compatibility issues between different application scenarios and devices. Especially when it comes to data exchange and communication with other devices or systems, you may need to deal with compatibility issues.

[0063] Stability and reliability challenges: Dynamically adjusting the sampling rate may bring challenges in stability and reliability. Especially in long-term continuous operation or complex environmental conditions, the device may face stability and reliability issues.

[0064] To this end, the embodiment of the present invention provides a measurement device with a variable sampling rate and a control method and storage medium thereof, which can dynamically adjust the sampling frequency according to the objects to be measured with different characteristic frequencies to realize measurement methods of different speeds. Different sampling rates and different sampling depths (number of points) can be set according to different application scenarios to achieve a balance between sampling accuracy and sampling speed. The device has multiple sampling channels and adopts multi-channel parallel acquisition technology. It can collect multiple signals at the same time and adjust them independently at different sampling rates to improve data acquisition efficiency and flexibility. The design features of the device, such as miniaturization, modularization, and high precision, are applied in different test scenarios, greatly accelerating the development of the test system and increasing the stability of the test system, reducing costs, and increasing market competitiveness.

[0065] The following is combined with Figure 1-6, describes in detail a variable sampling rate measurement device and a control method and a storage medium of an embodiment of the present invention.

[0066] On the one hand, the embodiment of the present invention provides a measurement device with a variable sampling rate, such as Figure 1 As shown, the device includes a main control module 100, a frequency generation module 300, a driving module 400 and a plurality of sampling channels 600, the main control module 100 is electrically connected to the host computer 200, the input end of the frequency generation module 300 is electrically connected to the main control module 100, the output end of the frequency generation module 300 is electrically connected to the input end of the driving module 400, and the output end of the driving module 400 is electrically connected to the object to be measured 500; Figure 3 As shown, each sampling channel 600 includes a first sampling module and a second sampling module, the input ends of the first sampling module and the second sampling module are electrically connected to the object to be tested 500, and the output ends of the first sampling module and the second sampling module are electrically connected to the main control module 100; wherein the main control module 100 is used to obtain the frequency command signal sent by the host computer 200, and generate a control instruction according to the frequency command signal, and send the control instruction to the frequency generation module 300 to enable the frequency generation module 300 to generate an excitation signal; the driving module 400 is used to change the impedance and amplify the excitation signal to drive the object to be tested 500 to output the signal to be tested; the main control module 100 is also used to determine the sampling frequency according to the frequency command signal, and control the first sampling module and the second sampling module to sample the signal to be tested according to the sampling frequency; the main control module 100 is also used to calculate the electrical characteristics of the object to be tested 500 according to the sampling results of the first sampling module and the second sampling module.

[0067] Specifically, Figure 2As shown, in some embodiments of the present invention, the main control module 100 uses a high-speed field programmable gate array (FPGA) to drive the frequency generation module 300 to output excitation signals of different frequencies, and to control the data acquisition and data processing of the first sampling module and the second sampling module. Through the programmable hardware language Verilog or VHDL of FPGA, the hardware modules required by the system can be flexibly added. For example, in this example, the main control module 100 includes a storage unit (i.e., a dual-port RAM), a filtering unit (i.e., a FIR filter) and a computing unit (i.e., an FFT processor), the storage unit is used to store the sampling results of the first sampling module and the second sampling module, the filtering unit is used to filter and denoise the sampling results, and the computing unit is used to calculate the electrical characteristics of the object to be tested 500 according to the sampling results of the first sampling module and the second sampling module. In addition, the device can also add CPU, USB communication module, ROM and other modules inside the FPGA through Altera's Qsys system, and the communication of these modules is based on the NIOS system bus Avalon. The device provides a USB interface, and the main control module 100 can perform data transmission with the host computer 200 through the USB interface. The main control module 100 can also reserve a high-speed IO interface to perform data transmission with the host computer 200.

[0068] like Figure 2 As shown, in some embodiments of the present invention, the measuring device further includes a power management module 800 and a display module 700, the power management module 800 is electrically connected to the frequency generation module 300 and the main control module 100 respectively, and the display module 700 is electrically connected to the main control module 100. This device uses 220V AC as input power supply, and the 220V AC is connected to the power management module 800, and the power management module 800 is responsible for the power supply of the entire device. The main control module 100 can use FPGA resources to implement the display screen DISP of the existing VGA, DVI, HDMI and other protocol interfaces, which is used to send the test results to the display module 700 for display.

[0069] like Figure 3 As shown, in some embodiments of the present invention, the driving module 400 includes a first buffer (buffer BUF1) and an amplifier A1, the input end of the first buffer is electrically connected to the output end of the frequency generation module 300, the output end of the first buffer BUF1 is electrically connected to the input end of the amplifier A1, and the output end of the amplifier A1 is electrically connected to the object under test 500. When the main control module 100 drives the frequency generation module 300 to generate an excitation signal, the excitation signal undergoes impedance change through the first buffer BUF1, and then is amplified through the amplifier A1, thereby enhancing the driving capability and being able to drive the object under test 500 to generate a signal under test.

[0070] like Figure 3As shown, in some embodiments of the present invention, the first sampling module includes a second buffer (buffer BUF2) and a first analog-to-digital converter (analog-to-digital converter M1), the input end of the second buffer BUF2 is electrically connected to the object to be measured 500, the output end of the second buffer BUF2 is electrically connected to the input end of the first analog-to-digital converter M1, and the output end of the first analog-to-digital converter M1 is electrically connected to the main control module 100. The second buffer BUF2 is used to perform level conversion on the signal to be measured, so as to drive the first analog-to-digital converter M1, and the first analog-to-digital converter M1 is used to perform analog-to-digital conversion on the signal to be measured, convert the analog signal into a digital signal, and store it in the storage unit RAM of the main control module 100. After the sampling is completed, the signal is filtered and denoised by the FIR filter algorithm, and the FFT processor reads the data from the RAM. The data is processed by the fast Fourier transform algorithm FFT to obtain the amplitude, phase and frequency data of the spectrum. It should be noted that the first sampling module samples the voltage at both ends of the object to be measured.

[0071] like Figure 3 As shown, in some embodiments of the present invention, the second sampling module includes a sampling gear switch unit, a third buffer (buffer BUF3) and a second analog-to-digital converter (analog-to-digital converter M2), the input end of the sampling gear switch unit is electrically connected to the object to be tested 500, the output end of the sampling gear switch unit is electrically connected to the input end of the third buffer BUF3, the output end of the third buffer BUF3 is electrically connected to the input end of the second analog-to-digital converter M2, and the output end of the second analog-to-digital converter M2 is electrically connected to the main control module 100. The second sampling module is used as another sampling channel for the signal to be tested of the object to be tested 500, and is used to collect the current of the object to be tested 500. The sampling gear switch unit is used to select the sampling gear (the specific circuit of the sampling gear switch unit is shown in FIG. Figure 4As shown, it includes resistors R1, R2, R3 and R4 connected in parallel, and resistors R1, R2, R3 and R4 are connected in series with switches S1, S2, S3 and S4 respectively. At the same time, resistors R1, R2, R3 and R4 are also connected in series with switches S5, S6, S7 and S8 respectively. Different objects to be tested obtain different currents under the output voltage of amplifier A1. Different sampling resistors are required to collect currents and convert currents into different voltages. The sampling unit switch unit is used to switch the resistance level to obtain a suitable voltage to supply the third buffer BUF3 and the second analog-to-digital converter M2. Excessive or too small voltage (saturation) will cause data errors read by the second analog-to-digital converter M2. The third buffer BUF3 is used to perform level conversion on the signal to be tested to drive the second analog-to-digital converter M2. The second analog-to-digital converter M2 is used to perform analog-to-digital conversion on the signal to be tested, convert the analog signal into a digital signal, and store it in the storage unit RAM of the main control module 100. After sampling, the signal is filtered and denoised by the FIR filter algorithm, and the FFT processor reads data from the RAM. The data is processed by the fast Fourier transform algorithm FFT to obtain another set of spectrum amplitude, phase and frequency data. The electrical characteristics of the object under test 500 can be calculated through these two sets of data.

[0072] It should be noted that the main control module 100 obtains a set of data through FFT calculation using the data sampled by the first sampling module, and this set of data represents the voltage V(α), where V is the voltage value and α is the phase angle; the main control module 100 obtains another set of data through FFT calculation using the data sampled by the second sampling module, and the other set of data represents the current I(β), where I is the current value and β is the phase angle. At this time, the two sets of data can be calculated by FFT to obtain the amplitude and phase. Using the formula, the impedance of the object under test 500 can be obtained as: Z=V(α) / I(β), where the amplitude of Z is V / I and the phase is α-β. The impedance is the electrical characteristic of the object under test 500, and the electrical characteristic can also refer to the capacitance value, etc.

[0073] The working principle of this device is as follows: the main control module 100 (FPGA) generates a hardware module through the hardware programming language Verilog or VHDL, which is used to drive the frequency generation module 300 (in this example, the frequency generation module 300 uses a frequency generator) as the excitation signal of the object under test 500. The frequency generator uses a signal composed of a characteristic frequency, amplitude and phase to form an excitation signal. After the excitation signal passes through the first buffer BUF1 to change the impedance of the signal and is amplified by the amplifier A1, the driving ability is enhanced to drive the object under test 500 to generate a signal to be tested. The second buffer BUF2 and the first analog-to-digital converter M1 serve as acquisition devices for the readback signal (signal to be tested) of the object under test 500. At this time, the readback signal has the same frequency and phase as the excitation signal generated by the frequency generator, and the amplitude may be different to a certain extent because the amplifier may increase or attenuate the amplitude of the signal. The main control module 100 calculates the sampling rate data based on the frequency of the excitation signal through timing control. The calculation process is as follows:

[0074] The host computer 200 sends a 1000Hz (1Khz) command (i.e., frequency command signal) through the serial port. After receiving the command, the main control module 100 calculates the frequency data output: DATA=f*2^28 / Fmclk, where f is the received frequency command signal, which is converted into FPGA data, Fmclk=50000000 (50Mhz), thereby obtaining the value of DATA. The main control module 100 outputs control instructions in a timing manner according to the value of DATA, so that the frequency generation module 300 generates an excitation signal of the required frequency (such as the received 1000Hz, or 1khz). The main control module 100 also needs to calculate the sampling frequency according to the characteristic frequency of the excitation signal. According to the Nyquist principle, the sampling frequency Fs is at least twice the characteristic frequency Fc, that is, Fs>2*Fc. In this example, we define the sampling frequency Fs as four times the characteristic frequency, that is, Fs=4*Fc, then the sampling period is: Ts=1 / Fs; the number of bits of the first analog-to-digital converter is 18 bits, and a 20-bit clock is required to complete the sampling and conversion time, that is, Clk requires 20 clocks, and the time of each clock is Tclk=Ts / 20, then the frequency of the CLK of the first analog-to-digital converter is the inverse of each clock time Fs_clk=1 / Tclk=20 / Ts, and the FPGA drives the first analog-to-digital converter and the second analog-to-digital converter to sample and obtain the required data with the calculated Fs_clk. The first analog-to-digital converter and the second analog-to-digital converter convert the sampled analog signal into a digital signal and store it in the RAM. After sampling, denoising is achieved through the FIR filter algorithm, and the FFT processor reads data from the RAM. The digital data signal is processed by the Fourier transform algorithm (FFT) to obtain the amplitude, phase and frequency of the spectrum. It should be noted that the standard fast Fourier transform algorithm (FFT) is used here. In this example, 256 (or other values) sampling data are used for fast Fourier calculation, and the time domain signal is converted into a frequency domain signal through Fourier. The 256 calculated data include real and imaginary parts. The data with the largest effective value amplitude of the real and imaginary parts is the frequency at this time.

[0075] The data sampled by the FPGA through the first sampling module is calculated by FFT to obtain a set of data, which represents the voltage V(α), where V is the voltage value and α is the phase angle; the data sampled by the FPGA through the second sampling module is calculated by FFT to obtain another set of data, which represents the current I(β), where I is the current value and β is the phase angle. At this time, the two sets of data are calculated by FFT to obtain the amplitude and phase. Using the formula, the impedance of the object under test 500 can be obtained as: Z=V(α) / I(β), the amplitude of Z is V / I, the phase is α-β, and the impedance is the electrical characteristic of the object under test 500, which can also refer to the capacitance value, etc.

[0076] When the object under test 500 is replaced with an object under test 500 with another characteristic frequency, the characteristic frequency of the frequency generator can be set through the USB / input device DEV1, and the main control module 100 automatically converts it into another sampling frequency through the characteristic frequency. This controllable sampling rate method achieves the best performance to collect data and the minimum resources to realize a universal high-precision test device, which can be used for measuring voltage and current signals, and at the same time, can be used as a device and method for measuring frequency, amplitude and phase.

[0077] Control method of controllable sampling rate: When the FPGA resources are sufficient, enough data can be collected through the controllable sampling rate to restore the waveform of the object under test 500, and the calculation is performed through the algorithm of the FFT processor. The following parameters are set by the user and calculated by the system:

[0078] 1) Signal frequency: Fs

[0079] Number of sampling points: Np (Np = 2^n, n is a positive integer. The variable length of Np is set according to the requirements of FFT. The larger the Np, the higher the accuracy, the more FPGA resources are consumed, and the longer the calculation time)

[0080] 2) Sampling rate: Fc (FC>=2*Fs)

[0081] Number of sampling periods: Ns;

[0082] 3) Sampling time of N points: Tn

[0083] Tn=Ns / Fs;

[0084] Fc=Fs*Np / Ns;

[0085] Table 1 below shows the sampling rate data of the device when the excitation signals of 100Khz, 10Khz and 1Khz act on the capacitance of 12pF, 10nF and 4.7uF of the object to be tested respectively. The capacitance value data obtained after the calculation of the controllable sampling rate at different frequencies and the calculation by the FFT processor can reach an accuracy of 5 ten-thousandths:

[0086]

[0087]

[0088] The variable sampling rate measurement device according to the embodiment of the present invention can dynamically adjust the sampling frequency according to the objects to be measured with different characteristic frequencies to realize measurement methods of different speeds; the device can set different sampling rates and different sampling depths (number of points) according to different application scenarios through a friendly interface to achieve a balance between sampling accuracy and sampling speed.

[0089] The variable sampling rate measuring device according to the embodiment of the present invention can generate a signal source of any frequency within the range of the highest output frequency, and can dynamically adjust the sampling rate for signal sources of different frequencies, collect data through collection methods with different sampling rates, store data, and transmit it to the main control module 100 to analyze the spectrum and phase of the signal. The present application has the following characteristics:

[0090] Dynamic sampling rate adjustment mechanism: A flexible and efficient dynamic sampling rate adjustment mechanism is designed, which can adjust the sampling rate in real time according to signal characteristics and requirements to ensure accurate measurement data in different scenarios.

[0091] Multi-channel parallel acquisition: It has multiple sampling channels and adopts multi-channel parallel acquisition technology. It can collect multiple signals at the same time and adjust independently at different sampling rates to improve data acquisition efficiency and flexibility.

[0092] Adaptive trigger mechanism: Design an intelligent adaptive trigger mechanism that can trigger data collection in real time according to signal changes to ensure data collection at critical moments and avoid data loss or errors. The adaptive trigger mechanism mainly detects open and short circuit signals through FPGA, compares them with the useful signal voltage threshold, and stores the open and short circuit signal data waveforms in the FPGA RAM. Each time the user can perform open and short circuit clearing, the waveform of the signal change is compared with the open and short circuit waveform, and if it meets the useful signal, FIR filtering and FFT data processing are performed to achieve data collection and output.

[0093] Real-time data processing and analysis: The device has real-time data processing and analysis functions, and can perform real-time processing and analysis while collecting data to improve data utilization and application effects.

[0094] Energy-saving and power consumption optimization design: Design an energy-saving and power consumption optimization solution that can reduce power consumption as much as possible while ensuring performance, extend the use time of the equipment, and improve the sustainability of the equipment.

[0095] User-friendly operation interface: Provide a user-friendly operation interface, including an intuitive graphical interface and easy-to-understand operation procedures to reduce users' learning costs and improve user experience.

[0096] Stability and reliability guarantee: Design a stability and reliability guarantee mechanism to ensure stable and reliable operation under long-term continuous operation or complex environmental conditions, reducing failures and maintenance costs.

[0097] Multi-scenario application adaptation: The device is suitable for a variety of application scenarios, including scientific research, engineering experiments, medical diagnosis and other fields, and has broad application prospects and market potential.

[0098] On the other hand, based on the above-mentioned variable sampling rate measuring device, the embodiment of the present invention also proposes a control method of the variable sampling rate measuring device, such as Figure 5 As shown, the method comprises the following steps:

[0099] Step S100: the main control module 100 obtains the frequency command signal sent by the host computer 200, and generates a control instruction according to the frequency command signal;

[0100] Step S200: the frequency generating module 300 generates an excitation signal according to the control instruction;

[0101] Step S300: the driving module 400 changes the impedance and amplifies the excitation signal, and drives the object under test 500 to output a signal under test;

[0102] Step S400: the main control module 100 determines the sampling frequency according to the frequency command signal, and controls the first sampling module and the second sampling module to sample the signal to be measured according to the sampling frequency;

[0103] Step S500: the main control module 100 calculates the electrical characteristics of the object under test 500 according to the sampling results of the first sampling module and the second sampling module.

[0104] Specifically, the host computer 200 sends a command of 1000Hz / 1Khz (or other frequencies) (i.e., a frequency command signal) through the serial port. After receiving the command, the main control module 100 calculates the frequency data output: DATA=f*2^28 / Fmclk, where f is the received frequency command signal, which is converted into FPGA data, Fmclk=50000000 (50Mhz), thereby obtaining the value of DATA. The main control module 100 outputs control instructions in a timing manner according to the value of DATA, so that the frequency generating module 300 generates an excitation signal of the required frequency (such as the received 1000Hz, or 1khz). The excitation signal undergoes impedance change through the first buffer of the driving module 400, and is then amplified by the amplifier A1, thereby enhancing the driving capability and being able to drive the object under test 500 to generate a signal under test.

[0105] The main control module 100 also needs to calculate the sampling frequency according to the characteristic frequency of the excitation signal. The calculation process is as follows: Figure 6 As shown:

[0106] Step S410: the main control module 100 determines the characteristic frequency of the excitation signal according to the frequency command signal;

[0107] Step S420: Determine a sampling frequency according to the characteristic frequency, wherein the sampling frequency is greater than twice the characteristic frequency;

[0108] Step S430: Obtaining a sampling period according to the sampling frequency;

[0109] Step S440: determining the clock time of the first sampling module and the second sampling module according to the sampling period;

[0110] Step S450: Obtaining clock frequencies of the first sampling module and the second sampling module according to the clock time;

[0111] Step S460: the main control module 100 drives the first sampling module and the second sampling module to sample the signal to be tested according to the clock frequency.

[0112] Specifically, according to the Nyquist principle, the sampling frequency Fs is at least twice the characteristic frequency Fc, that is, Fs>2*Fc. In this example, we define the sampling frequency Fs as four times the characteristic frequency, that is, Fs=4*Fc, then the sampling period is: Ts=1 / Fs; the number of bits of the first analog-to-digital converter is 18 bits, and a 20-bit clock is required to complete the sampling and conversion time, that is, Clk requires 20 clocks, and each clock time is Tclk=Ts / 20, then the clock frequency of the CLK of the first analog-to-digital converter is the inverse of each clock time Fs_clk=1 / Tclk=20 / Ts, and the FPGA drives the first analog-to-digital converter and the second analog-to-digital converter with the calculated Fs_clk to sample and obtain the required data.

[0113] The first sampling module and the second sampling module perform analog-to-digital conversion on the signal to be measured to obtain a digital signal, and store the digital signal in the storage unit (RAM) of the main control module 100; the filtering unit (FIR filtering) of the main control module 100 filters and removes noise on the digital signal; the computing unit (FFT processor) of the main control module 100 calculates the digital signal using a fast Fourier transform algorithm to obtain the frequency, amplitude and phase of the signal to be measured; the main control module 100 obtains the electrical characteristics of the object to be measured 500 according to the frequency, amplitude and phase of the signal to be measured.

[0114] The data sampled by the FPGA through the first sampling module is calculated by FFT to obtain a set of data, which represents the voltage V(α), where V is the voltage value and α is the phase angle; the data sampled by the FPGA through the second sampling module is calculated by FFT to obtain another set of data, which represents the current I(β), where I is the current value and β is the phase angle. At this time, the two sets of data are calculated by FFT to obtain the amplitude and phase. Using the formula, the impedance of the object under test 500 can be obtained as: Z=V(α) / I(β), the amplitude of Z is V / I, the phase is α-β, and the impedance is the electrical characteristic of the object under test 500, which can also refer to the capacitance value, etc.

[0115] When the object under test 500 is replaced with an object under test 500 with another characteristic frequency, the characteristic frequency of the frequency generator can be set through the USB / input device DEV1, and the main control module 100 automatically converts it into another sampling frequency through the characteristic frequency. This controllable sampling rate method achieves the best performance to collect data and the minimum resources to realize a universal high-precision test device, which can be used for measuring voltage and current signals, and at the same time, can be used as a device and method for measuring frequency, amplitude and phase.

[0116] According to the control method of the variable sampling rate measuring device of the embodiment of the present invention, the sampling frequency can be dynamically adjusted according to the objects to be measured with different characteristic frequencies to realize measurement methods of different speeds. By setting different sampling rates and different sampling depths (number of points), a balance between sampling accuracy and sampling speed can be achieved.

[0117] On the other hand, an embodiment of the present invention further provides a storage medium, which is a computer-readable storage medium and stores a computer program. When the computer program is executed by a processor, the control method of the variable sampling rate measurement device is implemented.

[0118] As a non-transient computer-readable storage medium, the memory can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage devices. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and are implemented to be located in one place, or may also be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0119] Although specific embodiments are described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are also within the scope of the present disclosure. For example, any of the functions and / or processing capabilities described in conjunction with a particular device or component may be performed by any other device or component. In addition, although various exemplary implementations and architectures have been described according to embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.

[0120] Some aspects of the present disclosure are described above with reference to the block diagram and flow chart of the system, method, system and / or computer program product according to the exemplary embodiments.It should be understood that the combination of one or more blocks in the block diagram and the flow chart and the blocks in the block diagram and the flow chart can be realized by executing computer executable program instructions respectively.Equally, according to some embodiments, some blocks in the block diagram and the flow chart may not need to be executed in the order shown, or may not need to be executed in full.In addition, additional components and / or operations beyond those components and / or operations shown in the blocks in the block diagram and the flow chart may be present in certain embodiments.

[0121] Therefore, the blocks in the block diagrams and flow charts support the combination of devices for performing the specified functions, the combination of elements or steps for performing the specified functions, and the program instruction devices for performing the specified functions. It should also be understood that each block in the block diagrams and flow charts and the combination of blocks in the block diagrams and flow charts can be implemented by a special-purpose hardware computer system or a combination of special-purpose hardware and computer instructions that performs a specific function, element or step.

[0122] The program modules, applications to be installed, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer executable instructions that, in response to being executed, cause at least a portion of the functions described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.

[0123] Software components can be encoded with any of various programming languages. An exemplary programming language can be a low-level programming language, such as an assembly language associated with a specific hardware architecture and / or an operating system platform. The software component comprising assembly language instructions may need to be converted to executable machine code by an assembler before being executed by hardware architecture and / or platform. Another exemplary programming language can be a higher-level programming language, which can be transplanted across multiple architectures. The software component comprising a higher-level programming language may need to be converted to an intermediate representation by an interpreter or a compiler before execution. Other examples of programming languages ​​include but are not limited to macro languages, shells or command languages, job control languages, scripting languages, database queries or search languages ​​or report writing languages. In one or more exemplary embodiments, the software component comprising the instruction of one of the above-mentioned programming language examples can be directly executed by an operating system or other software components, without first being converted into another form.

[0124] Software components may be stored as files or other data storage structures. Software components of similar type or related functions may be stored together, such as in a specific directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).

[0125] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A measurement device with a variable sampling rate, It is characterized in that include: The main control module is electrically connected to the host computer; A frequency generating module, an input end of which is electrically connected to the main control module; A driving module, whose input end is electrically connected to the output end of the frequency generating module, and whose output end is electrically connected to the object to be tested; A plurality of sampling channels, each of which includes a first sampling module and a second sampling module, the input ends of the first sampling module and the second sampling module are both electrically connected to the object to be tested, and the output ends of the first sampling module and the second sampling module are both electrically connected to the main control module; Among them, the main control module is used to obtain the frequency command signal sent by the host computer, and generate a control instruction according to the frequency command signal, and send the control instruction to the frequency generation module to make the frequency generation module generate an excitation signal; the driving module is used to change the impedance and amplify the excitation signal to drive the object under test to output the signal under test; the main control module is also used to determine the sampling frequency according to the frequency command signal, and control the first sampling module and the second sampling module to sample the signal under test according to the sampling frequency; the main control module is also used to calculate the electrical characteristics of the object under test according to the sampling results of the first sampling module and the second sampling module.

2. The variable sampling rate measuring device according to claim 1, It is characterized in that The main control module includes a storage unit, a filtering unit and a computing unit. The storage unit is used to store the sampling results of the first sampling module and the second sampling module. The filtering unit is used to filter and denoise the sampling results. The computing unit is used to calculate the electrical characteristics of the object to be tested based on the sampling results of the first sampling module and the second sampling module.

3. The variable sampling rate measuring device according to claim 1, It is characterized in that The measuring device further comprises a power management module and a display module. The power management module is electrically connected to the frequency generation module and the main control module respectively, and the display module is electrically connected to the main control module.

4. The variable sampling rate measuring device according to claim 1, It is characterized in that The driving module includes a first buffer and an amplifier, the input end of the first buffer is electrically connected to the output end of the frequency generating module, the output end of the first buffer is electrically connected to the input end of the amplifier, and the output end of the amplifier is electrically connected to the object to be tested.

5. The variable sampling rate measuring device according to claim 1, It is characterized in that The first sampling module includes a second buffer and a first analog-to-digital converter, the input end of the second buffer is electrically connected to the object to be tested, the output end of the second buffer is electrically connected to the input end of the first analog-to-digital converter, and the output end of the first analog-to-digital converter is electrically connected to the main control module.

6. The variable sampling rate measuring device according to claim 1, It is characterized in that The second sampling module includes a sampling gear switch unit, a third buffer and a second analog-to-digital converter. The input end of the sampling gear switch unit is electrically connected to the object to be tested, the output end of the sampling gear switch unit is electrically connected to the input end of the third buffer, the output end of the third buffer is electrically connected to the input end of the second analog-to-digital converter, and the output end of the second analog-to-digital converter is electrically connected to the main control module.

7. A control method for a variable sampling rate measuring device, applied to the variable sampling rate measuring device as claimed in any one of claims 1 to 6, It is characterized in that The control method comprises the following steps: The main control module obtains the frequency command signal sent by the host computer, and generates a control instruction according to the frequency command signal; The frequency generation module generates an excitation signal according to the control instruction; The driving module performs impedance change and amplification on the excitation signal, and drives the object to be tested to output a signal to be tested; The main control module determines the sampling frequency according to the frequency command signal, and controls the first sampling module and the second sampling module to sample the signal to be tested according to the sampling frequency; The main control module calculates the electrical characteristics of the object under test according to the sampling results of the first sampling module and the second sampling module.

8. The control method of the variable sampling rate measuring device according to claim 7, It is characterized in that The main control module determines the sampling frequency according to the frequency command signal, and controls the first sampling module and the second sampling module to sample the signal to be tested according to the sampling frequency, including: The main control module determines the characteristic frequency of the excitation signal according to the frequency command signal; Determine the sampling frequency according to the characteristic frequency, wherein the sampling frequency is greater than twice the characteristic frequency; According to the sampling frequency, a sampling period is obtained; Determining clock times of the first sampling module and the second sampling module according to the sampling period; According to the clock time, obtaining the clock frequencies of the first sampling module and the second sampling module; The main control module drives the first sampling module and the second sampling module to sample the signal to be tested according to the clock frequency.

9. The control method of the variable sampling rate measuring device according to claim 7, It is characterized in that The main control module includes a storage unit, a filtering unit and a calculation unit; the main control module calculates the electrical characteristics of the object to be tested according to the sampling results of the first sampling module and the second sampling module, including: The first sampling module and the second sampling module perform analog-to-digital conversion on the signal to be measured to obtain a digital signal, and store the digital signal in the storage unit; The filtering unit filters and removes noise from the digital signal; The calculation unit calculates the digital signal using a fast Fourier transform algorithm to obtain the frequency, amplitude and phase of the signal to be measured; The main control module obtains the electrical characteristics of the object under test according to the frequency, amplitude and phase of the signal under test.

10. A storage medium, It is characterized in that The storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the control method of the variable sampling rate measurement device according to any one of claims 7 to 9.

Citation Information

Cited By

  • Electrical signal acquisition system based on intelligent dynamic sampling

    CN119510879A