An automatic calibration method and system based on a ringing wave simulator
By automating the connection and parameter modulation between computer equipment and the ringing wave simulator and digital oscilloscope, efficient and high-precision calibration of the ringing wave simulator is achieved, solving the problems of long measurement cycle and low accuracy in existing technologies.
Patent Information
- Application Number
- CN202411645610.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-18
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-11-18
AI Technical Summary
Existing ringing wave simulator calibration methods have long measurement cycles and low accuracy, making it difficult to meet the verification requirements of various parameters under different coupling modes.
By connecting a computer device to a ringing wave simulator and a digital oscilloscope, the communication address is identified, the parameters of the ringing wave simulator and the digital oscilloscope are modulated, waveform data is generated and converted into time-voltage coordinate data, and the calibration measurement results are automatically calculated.
The measurement efficiency and accuracy of the ringing wave simulator under various coupling methods have been improved, meeting the requirements for high-efficiency and high-precision verification of various parameters under various coupling methods.
Smart Images

Figure CN119449198B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to an automatic calibration method and system based on a ringing wave simulator. Background Technology
[0002] Ringing waves are typical oscillating transient phenomena induced in low-voltage cables by switching of electrical networks and reactive loads, power circuit faults, insulation breakdowns, or lightning strikes. They commonly occur in power lines, control lines, and signal lines. Due to their rapid rise time and rapid alternating positive and negative poles, ringing waves can significantly impact sensitive devices, causing equipment malfunctions and, in severe cases, major accidents. Therefore, the ringing wave immunity of electronic instruments is a crucial indicator of their disturbance rejection capability. Ringing wave simulators are primarily used to simulate the impact of ringing wave interference on electronic instruments and equipment, testing the immunity of the tested electronic instruments to this steep-slope pulse phenomenon. They mainly consist of a DC high-voltage generator, charging circuit, oscillation circuit coil, impedance conversion network, control and signal display components. The ringing wave simulator also includes a coupling / decoupling network.
[0003] In existing ringing wave simulator calibration methods, most involve using instruments such as digital oscilloscopes, differential voltage probes, and current sensors to measure the metrological parameters of the ringing wave simulator. Because ringing wave simulators have various coupling modes, and each coupling mode requires calibration of multiple items, frequent settings adjustments are needed during calibration. Furthermore, some parameters, such as attenuation and repetition rate, cannot be directly read from the oscilloscope during measurement. The oscilloscope cursor must be manually moved to different peak and zero points to indirectly obtain the desired results. However, the accuracy of cursor measurement is limited by the monitor's resolution, waveform visibility, and cursor detail. Even with a high sampling rate, the screen display may not be detailed enough. If the waveform changes rapidly, it is difficult to accurately move the cursor to key points, resulting in low accuracy and large errors in the measured waveform data. Moreover, when measuring multiple parameters under various coupling modes of the ringing wave simulator, lengthy repetitive operations and data measurements are required, making manual cursor movement extremely time-consuming and inefficient.
[0004] Therefore, existing calibration methods for ringing wave simulators have long measurement cycles, low calibration accuracy, and are time-consuming and labor-intensive. They are often only suitable for situations with a single coupling method, few verification items, and low accuracy requirements, and are difficult to meet the verification requirements for various parameters under multiple coupling methods. Summary of the Invention
[0005] This invention provides an automatic calibration method and system based on a ringing wave simulator, which solves the technical problem that existing calibration methods for ringing wave simulators have low testing efficiency and accuracy, and are difficult to meet the verification requirements of various parameters under multiple coupling modes.
[0006] The first aspect of this invention provides an automatic calibration method based on a ringing wave simulator, applied to a computer device. The computer device is connected to a ringing wave simulator and a digital oscilloscope via a GPIB interface and a USB communication cable, respectively, and the output port of the ringing wave simulator is connected to the input port of the digital oscilloscope. The method includes:
[0007] Identify the communication addresses of the ringing wave simulator and the digital oscilloscope, and establish communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses;
[0008] Enable the ringing wave simulator, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope;
[0009] The modulation parameters of the digital oscilloscope are modulated so that the digital oscilloscope generates a corresponding waveform based on the ringing wave signal;
[0010] Obtain the raw waveform data, convert the raw waveform data and save it as time-voltage coordinate data of the waveform;
[0011] The calibration measurement results are obtained by traversing the time-voltage coordinate data of the waveform.
[0012] Specifically, the step of identifying the communication addresses of the ringing wave simulator and the digital oscilloscope, and establishing communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses, includes:
[0013] Locate the connected ringing wave simulator and digital oscilloscope using the file explorer, and identify their communication addresses.
[0014] Based on the communication addresses, communication connections are established with the ringing wave simulator and the digital oscilloscope, respectively, and an Excel file of communication addresses is generated.
[0015] Specifically, the steps of enabling the ringing wave simulator, modulating the output parameters of the ringing wave simulator under different coupling conditions, and causing the ringing wave simulator to output a preset ringing wave signal to the digital oscilloscope include:
[0016] Based on the enable command, start the calibration module in the function area of the ringing wave simulator;
[0017] After the calibration module of the ringing wave simulator is successfully started, the output parameters of the ringing wave simulator under different coupling conditions are modulated so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
[0018] Specifically, the steps of acquiring the raw waveform data, converting the raw waveform data, and saving it as time-voltage coordinate data of the waveform include:
[0019] The time interval between data points of the waveform is used to generate the time axis of the waveform; the time offset of the first data point of the waveform relative to the trigger point is used to adjust the offset of the waveform's time axis.
[0020] Query the multiplication factor of the waveform's vertical axis scale and the offset value of the Y-axis origin;
[0021] The time value of the waveform is calculated based on the time axis and time offset of the waveform, and the actual voltage value of the waveform is calculated based on the data points, multiplication factors and Y-axis origin offset of the waveform, thus obtaining the time-voltage coordinate data of the waveform.
[0022] Specifically, the calibration measurement results include current and voltage sets, time sets, oscillation frequency, repetition rate, and attenuation value; the step of traversing the time-voltage coordinate data of the waveform to calculate the calibration measurement results includes:
[0023] By iterating through the time-voltage coordinate data of the waveform, the largest positive voltage value and the smallest negative voltage value are selected to obtain the current-voltage group.
[0024] Traverse the time-voltage coordinate data of the waveform, filter out two thresholds corresponding to 10% and 90% of the maximum voltage value, locate the corresponding time values in the time coordinate using the two thresholds, and perform subtraction to obtain the time group.
[0025] The time-voltage coordinate data of the waveform is iterated in a loop. The first and second voltage values that change from positive to negative are taken as the first zero point and the second zero point. The time values associated with the first zero point and the second zero point are subtracted to obtain the oscillation frequency.
[0026] Iterate through the time-voltage coordinate data of the waveform and find the four positive peaks in the voltage coordinate as the first, second, third and fourth positive peaks.
[0027] The repetition rate is calculated based on the time value associated with the first and second positive peak values; the attenuation value is calculated based on the first, second, third, and fourth positive peak values.
[0028] A second aspect of the present invention provides an automatic calibration system based on a ringing wave simulator, the system comprising:
[0029] The communication address lookup module is used to identify the communication addresses of the ringing wave simulator and the digital oscilloscope, and establish communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses.
[0030] The ringing wave simulator parameter modulation module is used to enable the ringing wave simulator, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope;
[0031] The digital oscilloscope parameter modulation module is used to modulate the modulation parameters of the digital oscilloscope, enabling the digital oscilloscope to generate corresponding waveforms based on the ringing wave signal.
[0032] The waveform data calculation module is used to acquire the raw waveform data, convert the raw waveform data and save it as time-voltage coordinate data of the waveform;
[0033] The calibration result generation module is used to traverse the time-voltage coordinate data of the waveform and calculate the calibration measurement results.
[0034] Specifically, the communication address lookup module is used to locate the connected ringing wave simulator and digital oscilloscope through the resource manager, identify the communication addresses of the ringing wave simulator and digital oscilloscope, establish communication connections with the ringing wave simulator and digital oscilloscope respectively based on the communication addresses, and generate a communication address Excel file.
[0035] Specifically, the ringing wave simulator parameter modulation module includes:
[0036] The calibration module startup submodule is used to start the calibration module in the function area of the ringing wave simulator based on the enable command;
[0037] The parameter modulation submodule is used to modulate the output parameters of the ringing wave simulator under different coupling conditions after the calibration module of the ringing wave simulator is successfully started, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
[0038] Specifically, the waveform data calculation module includes:
[0039] The time parameter lookup submodule is used to query the time interval between data points of a waveform, which is used to generate the time axis of the waveform; it also queries the time offset of the first data point of the waveform relative to the trigger point, which is used to adjust the offset of the waveform's time axis.
[0040] The voltage parameter lookup submodule is used to query the multiplication factor of the waveform's vertical axis scale and the Y-axis origin offset value.
[0041] The time-voltage coordinate data generation submodule is used to calculate the time value of the waveform based on the waveform's time axis and time offset, and to calculate the actual voltage value of the waveform based on the waveform's data points, multiplication factors, and Y-axis origin offset, thereby obtaining the waveform's time-voltage coordinate data.
[0042] Specifically, the calibration result generation module includes:
[0043] The current-voltage group calculation submodule is used to traverse the time-voltage coordinate data of the waveform, filter out the maximum positive voltage value and the minimum negative voltage value, and obtain the current-voltage group.
[0044] The time group calculation submodule is used to traverse the time-voltage coordinate data of the waveform, filter out two thresholds corresponding to 10% and 90% of the maximum voltage value, locate the corresponding time value in the time coordinate using the two thresholds, and perform subtraction to obtain the time group.
[0045] The oscillation frequency calculation submodule is used to iterate through the time-voltage coordinate data of the waveform, taking the first and second voltage values that change from positive to negative as the first zero point and the second zero point, and subtracting the time values associated with the first zero point and the second zero point to obtain the oscillation frequency.
[0046] The peak lookup submodule is used to iterate through the time-voltage coordinate data of the waveform and find four positive peaks in the voltage coordinate as the first, second, third and fourth positive peaks.
[0047] The repetition rate and attenuation value calculation submodule is used to calculate the repetition rate based on the time value associated with the first positive peak and the second positive peak; and to calculate the attenuation value based on the first, second, third and fourth positive peaks.
[0048] As can be seen from the above technical solutions, the present invention has the following advantages:
[0049] This invention provides an automatic calibration method and system based on a ringing wave simulator. The method is applied to a computer device, which is connected to a ringing wave simulator and a digital oscilloscope via a GPIB interface and a USB communication cable, respectively. The output port of the ringing wave simulator is connected to the input port of the digital oscilloscope. The method includes: identifying the communication addresses of the ringing wave simulator and the digital oscilloscope; establishing communication connections with the ringing wave simulator and the digital oscilloscope based on the communication addresses; enabling the ringing wave simulator; modulating the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope; modulating the modulation parameters of the digital oscilloscope, so that the digital oscilloscope generates a corresponding waveform according to the ringing wave signal; acquiring the original waveform data; converting and saving the original waveform data as time-voltage coordinate data of the waveform; and traversing the time-voltage coordinate data of the waveform to calculate the calibration measurement result.
[0050] In this invention, a computer device modulates the parameters of a ringing wave simulator and a digital oscilloscope, causing the ringing wave simulator to output a preset ringing wave signal to the digital oscilloscope. The digital oscilloscope generates the corresponding waveform and then iterates through the time-voltage coordinate data of the waveform to obtain the calibration measurement result. This achieves automatic calibration of the ringing wave simulator, thereby improving the measurement efficiency of different calibration items of the ringing wave simulator under various coupling methods. Simultaneously, the device acquires raw data related to the waveform from the digital oscilloscope, calculates and converts the raw data into time-voltage coordinate data, and automatically iterates through and filters the time-voltage coordinate data to calculate accurate calibration measurement results for different calibration items. This improves the accuracy of the calibration measurement results and meets the high efficiency and high precision requirements for the verification of various parameters under various coupling methods. This solves the technical problem that existing calibration methods for ringing wave simulators have low testing efficiency and accuracy, making it difficult to meet the verification requirements of various parameters under various coupling methods. Attached Figure Description
[0051] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0052] Figure 1 A flowchart illustrating the steps of an automatic calibration method based on a ringing wave simulator provided in an embodiment of the present invention;
[0053] Figure 2 A schematic diagram illustrating the hardware connection between a computer device, a ringing wave simulator, and a digital oscilloscope provided in an embodiment of the present invention;
[0054] Figure 3 This is a waveform diagram of the ringing wave signal provided in an embodiment of the present invention;
[0055] Figure 4 This is a partial source code diagram of communication address lookup provided in an embodiment of the present invention;
[0056] Figure 5 A partial source code diagram illustrating the parameters of the ringing wave simulator and the modulation ringing wave simulator provided in an embodiment of the present invention;
[0057] Figure 6 A schematic diagram of part of the source code for acquiring and converting parameters and waveform data of the modulation ringing wave simulator provided in an embodiment of the present invention;
[0058] Figure 7 This is a partial source code diagram for obtaining the current and voltage group provided in an embodiment of the present invention;
[0059] Figure 8 This is a partial source code diagram of the time group acquisition provided in an embodiment of the present invention;
[0060] Figure 9 A partial source code diagram illustrating the traversal of the first and second zero points provided in an embodiment of the present invention;
[0061] Figure 10 This is a partial source code diagram for calculating the oscillation frequency provided in an embodiment of the present invention;
[0062] Figure 11 A partial source code diagram illustrating the process of traversing multiple peaks and calculating attenuation values provided in an embodiment of the present invention;
[0063] Figure 12 This is a schematic diagram of the application interface of the ringing wave simulator in the non-coupled mode provided in the embodiment of the present invention;
[0064] Figure 13 This is a schematic diagram of the application interface of the ringing wave simulator connected to the power line coupling and decoupling network provided in an embodiment of the present invention;
[0065] Figure 14 This is a schematic diagram of the application interface of the ringing wave simulator connected to the asymmetric interconnect coupling decoupling network provided in an embodiment of the present invention;
[0066] Figure 15 This is a schematic diagram of the application interface of the ringing wave simulator connected to a symmetrical interconnect coupling and decoupling network provided in an embodiment of the present invention;
[0067] Figure 16 This is a structural block diagram of an automatic calibration system based on a ringing wave simulator provided in an embodiment of the present invention. Detailed Implementation
[0068] This invention provides an automatic calibration method and system based on a ringing wave simulator, which solves the technical problem that existing calibration methods for ringing wave simulators have low testing efficiency and accuracy, and are difficult to meet the verification requirements of various parameters under multiple coupling modes.
[0069] To make the objectives, features, and advantages of this invention more apparent and understandable, the technical solutions of the embodiments of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the embodiments described below are only some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.
[0070] Please see Figure 1 The first aspect of this invention provides an automatic calibration method based on a ringing wave simulator, applied to computer equipment, the method comprising:
[0071] Step 101: Identify the communication addresses of the ringing wave simulator and the digital oscilloscope, and establish communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses.
[0072] It should be noted that the hardware connections between the computer equipment, the ringing wave simulator, and the digital oscilloscope must be completed before performing step 101. Please refer to [link to relevant documentation]. Figure 2 Specifically: The computer equipment is connected to the ringing wave simulator and the digital oscilloscope via GPIB interface and USB communication cable respectively. The output port of the ringing wave simulator is connected to one end of the current sensor via a high-voltage differential probe, and the input port of the digital oscilloscope is connected to the other end of the current sensor via a high-voltage differential probe.
[0073] After successful device connection, the computer can automatically identify the communication addresses of the ringing wave simulator and the digital oscilloscope, facilitating subsequent operation and control. Specifically, the computer uses the resource manager to locate the connected ringing wave simulator and digital oscilloscope, identifies their communication addresses, establishes communication connections with both the simulator and the oscilloscope based on these addresses, and generates an Excel file containing the communication addresses.
[0074] For example, please refer to Figure 4The Keysight.Visa.ResourceManager command is used to open a VISA Resource Manager session, which is responsible for communicating with and managing all connected instruments in the computer device. The rmSession.Find("*") command is used to identify the communication addresses of all types of devices. Finally, the communication addresses of the ringing wave simulator and digital oscilloscope are located based on the actual ports connected to them. When the communication addresses of the ringing wave simulator and digital oscilloscope are successfully identified, it indicates that a stable communication connection has been established between the ringing wave simulator and digital oscilloscope and the computer device.
[0075] Step 102: Enable the ringing wave simulator, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
[0076] This step specifically includes: based on the enable command, first start the calibration module in the function area of the ringing wave simulator; after the calibration module of the ringing wave simulator is successfully started, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
[0077] It is understandable that the output parameters of the ringing wave simulator include the voltage, output impedance, polarity, coupling method, trigger time and method of the output signal, among which the coupling methods include no coupling, LN coupling, L-PE coupling, N-PE coupling and L+N-PE coupling.
[0078] For example, please refer to Figure 5 :
[0079] Through "OC;= <lf>"The command enables the function area of the ringing wave simulator, then through..." The command switches to the calibration module of the ringing wave simulator; "RN,{voltage},{impedance},0,{polarity},{couple},2,0,5;- <lf>The instructions are used to modulate parameters such as voltage, output impedance, polarity, coupling mode, trigger time, and mode of the output signal of the ringing wave simulator. The output voltage values are set to ±250, ±500, and ±1000 respectively by defining int[]polarities={0,1} and int[]voltages={250,500,1000}. The output impedance is set to 12Ω and 30Ω respectively by defining int[]impedances={0,1}. The coupling mode is defined as no coupling, LN coupling, L-PE coupling, N-PE coupling, and L+N-PE coupling respectively by defining int[]couple={0,1,2,3,4,}.
[0080] Understandably, in LN coupling mode, the ringing wave simulator is connected to the power line coupling decoupling network; in L-PE coupling mode and N-PE coupling mode, the ringing wave simulator is connected to the symmetrical interconnect coupling decoupling network; and in L+N-PE coupling mode, the ringing wave simulator is connected to the asymmetrical interconnect coupling decoupling network.
[0081] More specifically, using "RN,{V},{Imp},{A},{pol},{cpl},{rep},{tri},{n};- <lf>The command modulation ringing wave simulator outputs parameters including voltage, output impedance, phase angle, polarity, coupling method, repetition interval, triggering method, and number of waveforms. Parameter V sets the output voltage; Imp (0 or 1) sets the output impedance to 12Ω or 30Ω; A sets the phase angle (range 0° to 360°); pol (0, 1, 2) indicates positive, negative, or alternating polarity; cpl (0, 1, 2, 3, 4) indicates no coupling, LN coupling, L-PE coupling, N-PE coupling, and L+N-PE coupling respectively; rep (1s to 999s) sets the repetition interval; tri (0, 1) sets the triggering method to automatic or manual; and n (1 to 30000) sets the number of output waveforms.
[0082] In the example, "RN,250,0,0,0,0,1,0,5;- <lf>"This indicates a ringing wave signal with an output voltage of 250V, an impedance of 12Ω, a phase angle of 0°, a positive polarity, a non-coupled coupling method, a repetition interval of 1s, an automatic triggering method, and a waveform count of 5.
[0083] Step 103: Modulate the modulation parameters of the digital oscilloscope so that the digital oscilloscope generates the corresponding waveform according to the ringing wave signal.
[0084] It should be noted that the modulation parameters of a digital oscilloscope include the sampling rate, horizontal scale, vertical scale amplitude, and number of sampling points, which help the digital oscilloscope reconstruct the corresponding waveform based on the ringing wave signal and accurately present the waveform characteristics.
[0085] For an example, please refer to Figure 6 :
[0086] The "HORizontal:SAMPLERate125000000" command indicates that the sampling rate is set to 125MS / s. The horizontal and vertical scale amplitudes are set using "HORizontal:SCAle4E-6" and "VERTical:SCAle250", and the number of sampling points is set to 30000 using :DATa:STOP30000.
[0087] Step 104: Obtain the original waveform data, convert the original waveform data and save it as time-voltage coordinate data of the waveform.
[0088] It should be noted that the raw waveform data includes waveform data points, the time interval between data points, the time offset, the multiplication factor of the vertical axis scale, and the Y-axis origin offset. The time interval between data points and the time offset reflect the temporal characteristics of the waveform, while the waveform data points, the multiplication factor of the vertical axis scale, and the Y-axis origin offset reflect the amplitude changes of the waveform.
[0089] Please see Figure 6 This step specifically includes:
[0090] Sub-step 1041: Query the time interval between data points of the waveform to generate the time axis of the waveform; query the time offset of the first data point of the waveform relative to the trigger point to adjust the offset of the time axis of the waveform.
[0091] The time interval between waveform data points is queried using the command ":WFMOutpre:XINcr?", and the returned time interval string is converted into an xIncrement variable and stored using double.Parse, which is used to generate the time axis of the waveform. The time offset of the first data point of the waveform relative to the trigger point is queried using the command ":WFMOutpre:XZEro?", and the returned value is converted into xOrigin, which is used to adjust the offset of the time axis.
[0092] Sub-step 1042: Query the multiplication factor of the waveform's vertical axis scale and the offset value of the Y-axis origin.
[0093] The command ":WFMOutpre:YMUlt?" queries the multiplication factor of the waveform's vertical axis scale and saves the multiplication factor as yIncrement, which is used to convert waveform data points into values proportional to the actual voltage values. The command ":WFMOutpre:YZEro?" queries the waveform's Y-axis origin offset value and stores this value in yOrigin to adjust the above values, which is used to accurately convert the digitized waveform data points into actual voltage values.
[0094] Sub-step 1043: Calculate the time value of the waveform based on the time axis and time offset, and calculate the actual voltage value of the waveform based on the data points, multiplication factor and Y-axis origin offset, thereby obtaining the time-voltage coordinate data of the waveform.
[0095] It should be noted that the sampling time of the data point is associated with the index value. In the time-voltage coordinate of the waveform, the time value is used as the horizontal axis and the voltage value is used as the vertical axis. The time value = offset of the time axis + index value * time increment of the time axis, while the actual voltage value = offset of the Y-axis origin + value of the data point * multiplication factor.
[0096] The index value i and the corresponding raw data point value waveformPoints[i] are obtained by using the commands ":CURVe?" and var waveformPoints=waveformRawData.Split(','). Finally, the time value is calculated by the command timeValues[i]=xOrigin+i*xIncrement, and the voltage value is calculated and saved by waveformValues[i]=yOrigin+double.Parse(waveformPoints[i])*yIncrement, thus obtaining the time-voltage coordinate data of the waveform.
[0097] Step 105: Traverse the time-voltage coordinate data of the waveform and calculate the calibration measurement results.
[0098] It should be noted that in the existing calibration scheme for ringing wave simulators, obtaining the calibration results requires manual movement of the cursor on a digital oscilloscope multiple times. The waveform of the ringing wave signal is shown in the figure below. Figure 3 As shown, in Figure 3 In the diagram, T1 represents the rise time, T represents the oscillation period, Pk1 represents the peak value of the open-circuit voltage or short-circuit current, and Pk2, Pk3, and Pk3 represent the second, third, and fourth peak values of the open-circuit voltage waveforms.
[0099] This step uses program instructions to traverse the time-voltage coordinate data of the waveform, which can quickly process the waveform data and directly and accurately locate the characteristic points of the waveform to calculate the measurement results, greatly improving the measurement efficiency and the accuracy of the measurement results.
[0100] Specifically, this step includes the following sub-steps:
[0101] Sub-step 1051 involves iterating through the time-voltage coordinate data of the waveform, filtering out the largest positive voltage value and the smallest negative voltage value to obtain the current-voltage group. The current-voltage group includes the open-circuit voltage peak, the short-circuit current peak, the undesired voltage, and the residual ringing voltage.
[0102] For example, please refer to Figure 7 The peak open-circuit voltage, peak short-circuit current, and undesired voltage and residual ringing voltage can be obtained by calculating the maximum positive value and minimum negative value of the waveform coordinate data using the commands `valueToWrite=waveformValues.Max()` and `valueToWrite=waveformValues.Min()`, respectively. It is understood that in this field, there is a corresponding mapping relationship between the peak open-circuit voltage and the peak short-circuit current; that is, after obtaining the peak open-circuit voltage, the peak short-circuit current can be found based on a preset mapping table.
[0103] Sub-step 1052: Traverse the time-voltage coordinate data of the waveform, filter out two thresholds corresponding to 10% and 90% of the maximum voltage value, locate the corresponding time values in the time coordinate using the two thresholds, and perform a subtraction operation to obtain a time group. The time group includes the open-circuit voltage rise time and the short-circuit current rise time.
[0104] For example, please refer to Figure 8 The 10% and 90% thresholds of the maximum voltage value in the time-voltage coordinate data are calculated using the commands `doublethreshold10=maxValue*0.1` and `doublethreshold90=maxValue*0.9`, respectively, and then the values are calculated using `waveformValues[i-1]`.<threshold10&&waveformValues[i]> threshold10 and waveformValues[i-1]<threshold90&&waveformValues[i]> By subtracting the threshold values of 10% and 90% from threshold 90, we can obtain the open-circuit voltage rise time and the short-circuit current rise time.
[0105] Sub-step 1053: Iterate through the time-voltage coordinate data of the waveform, taking the first and second voltage values that change from positive to negative as the first zero point and the second zero point, and subtract the time values associated with the first zero point and the second zero point to obtain the oscillation frequency.
[0106] For example, please refer to Figure 9 By using a for loop and an if loop to iterate through the time-voltage coordinates of the waveform, the first and second data points that change from positive to negative, i.e., the first and second zero points, can be found. The oscillation frequency can be obtained by subtracting the horizontal coordinate data of these points.
[0107] Sub-step 1054: Iterate through the time-voltage coordinate data of the waveform and find the four positive peaks in the voltage coordinate as the first, second, third and fourth positive peaks.
[0108] For example, please refer to Figure 11 The first positive peak value is obtained by iterating through the waveform coordinates using for and if loop statements. Then, starting from the first positive peak value, the data is continued to be traversed to find the first data value that is greater than the one before and after it, which is the second positive peak value. This process is repeated to obtain the third and fourth positive peak values.
[0109] Sub-step 1055: Calculate the repetition rate based on the time value associated with the first positive peak and the second positive peak; calculate the attenuation value based on the first, second, third and fourth positive peaks.
[0110] For example, please refer to Figure 10 The repetition rate can be obtained by multiplying the reciprocal of the time difference between the first and second positive peaks by 60; please refer to [link / reference]. Figure 11 The attenuation value can be obtained by dividing the second positive peak value by the first positive peak value, the third positive peak value by the second positive peak value, and the fourth positive peak value by the third positive peak value.
[0111] Please see Figures 12-15 , Figures 12-15 The calibration items under different coupling methods are displayed on the application interface of the computer device.
[0112] In practical design, corresponding window application functions can be added according to actual testing needs. This invention adds five Windows windows, and several buttons, labels, and text boxes are added to each window. The title of the first window can be set to "Calibration Project", and buttons named "Ringing Wave Simulator Uncoupled Mode", "Ringing Wave Simulator Connected to Power Line Coupling Decoupling Network", "Ringing Wave Simulator Connected to Asymmetric Interconnect Coupling Decoupling Network", and "Ringing Wave Simulator Connected to Symmetric Interconnect Coupling Decoupling Network" can be added to it.
[0113] Add instructions to the click event of each button so that clicking the "Ring Wave Simulator Uncoupled Mode" button pops up a second window, such as... Figure 12 As shown; when the "Ringing Wave Simulator Connects to Power Line Coupling and Decoupling Network" button is clicked, a third window pops up, as shown. Figure 13 As shown; when clicking the "Ringing Wave Simulator Connects to Asymmetric Interconnect Coupled Decoupling Network" button, a fourth window pops up, as shown. Figure 14 As shown; when clicking the "Ringing Wave Simulator Connecting Symmetrical Interconnection Coupled Decoupling Network" button, a fifth window pops up, as follows. Figure 15 As shown.
[0114] by Figure 12 For example, when the tester clicks the communication address identification button on the application interface of the computer device, the communication addresses of the ringing wave simulator and the digital oscilloscope will be displayed in the text box of the interface. After completing the setting of the relevant parameters of the ringing wave simulator and the digital oscilloscope, the calibration results of the calibration items under different coupling methods will be displayed on the right side of the application interface. In the non-coupling mode, the calibration measurement results include the peak open-circuit voltage, the rise time of the open-circuit voltage, the oscillation frequency, the attenuation value, the repetition rate, the peak short-circuit current, and the rise time of the short-circuit current.
[0115] This invention, based on the C# programming platform, uses a computer to control a ringing wave simulator and a digital oscilloscope. Various operating program instructions are used to manipulate the ringing wave simulator to modulate the required ringing wave signal and output it to the digital oscilloscope. Simultaneously, the digital oscilloscope is controlled to set appropriate modulation parameters such as sampling rate, sampling time base point, and vertical scale amplitude. The original waveform data is then read and saved, and converted into time-voltage coordinate data. From this time-voltage coordinate data, the maximum voltage value, the first, second, third, and fourth positive peak values, and the first and second zero points are automatically traversed and filtered. This allows for the calculation of measurement parameters requiring calibration, such as the peak open-circuit voltage, peak short-circuit current, rise time, and undesired voltage.
[0116] The automatic calibration method based on a ringing wave simulator provided by this invention has the following advantages:
[0117] 1. This invention uses computer equipment to control the ringing wave simulator and digital oscilloscope. During the calibration process, the modulation parameters such as the measurement output parameters of the ringing wave simulator and the sampling rate of the digital oscilloscope do not need to be manually adjusted frequently. At the same time, the calibration measurement results can be calculated quickly. Testers do not need to perform multiple cursor measurements on the digital oscilloscope for different coupling methods. This realizes the automatic calibration function of the ringing wave simulator, which greatly improves the measurement efficiency of ringing wave simulator calibration under various coupling methods.
[0118] 2. This invention acquires raw waveform-related data from a digital oscilloscope using a computer device, calculates and converts the raw data into time-voltage coordinate data, and automatically traverses and filters the time-voltage coordinate data to calculate the calibration measurement results for different calibration items. This is not affected by manual cursor movement or the display status of the digital oscilloscope, thus improving the measurement accuracy of the ringing wave simulator calibration.
[0119] Please see Figure 3 The second aspect of the present invention also provides an automatic calibration system based on a ringing wave simulator, the system comprising:
[0120] The communication address lookup module 201 is used to identify the communication addresses of the ringing wave simulator and the digital oscilloscope, and establish communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses.
[0121] The ringing wave simulator parameter modulation module 202 is used to enable the ringing wave simulator, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
[0122] The digital oscilloscope parameter modulation module 203 is used to modulate the modulation parameters of the digital oscilloscope, so that the digital oscilloscope generates a corresponding waveform according to the ringing wave signal.
[0123] The waveform data calculation module 204 is used to acquire the original waveform data, convert the original waveform data and save it as the time-voltage coordinate data of the waveform;
[0124] The calibration result generation module 205 is used to traverse the time-voltage coordinate data of the waveform and calculate the calibration measurement results.
[0125] More specifically, the communication address lookup module 201 is used to locate the connected ringing wave simulator and digital oscilloscope through the resource manager, identify the communication addresses of the ringing wave simulator and digital oscilloscope, establish communication connections with the ringing wave simulator and digital oscilloscope respectively based on the communication addresses, and generate a communication address Excel file.
[0126] More specifically, the ringing wave simulator parameter modulation module 202 includes:
[0127] The calibration module startup submodule is used to start the calibration module in the function area of the ringing wave simulator based on the enable command;
[0128] The parameter modulation submodule is used to modulate the output parameters of the ringing wave simulator under different coupling conditions after the calibration module of the ringing wave simulator is successfully started, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
[0129] More specifically, the waveform data calculation module 204 includes:
[0130] The time parameter lookup submodule is used to query the time interval between data points of a waveform, which is used to generate the time axis of the waveform; it also queries the time offset of the first data point of the waveform relative to the trigger point, which is used to adjust the offset of the waveform's time axis.
[0131] The voltage parameter lookup submodule is used to query the multiplication factor of the waveform's vertical axis scale and the Y-axis origin offset value.
[0132] The time-voltage coordinate data generation submodule is used to calculate the time value of the waveform based on the waveform's time axis and time offset, and to calculate the actual voltage value of the waveform based on the waveform's data points, multiplication factors, and Y-axis origin offset, thereby obtaining the waveform's time-voltage coordinate data.
[0133] More specifically, the calibration result generation module 205 includes:
[0134] The current-voltage group calculation submodule is used to traverse the time-voltage coordinate data of the waveform, filter out the largest positive voltage value and the smallest negative voltage value, and obtain the current-voltage group.
[0135] The time group calculation submodule is used to traverse the time-voltage coordinate data of the waveform, filter out two thresholds corresponding to 10% and 90% of the maximum voltage value, locate the corresponding time value in the time coordinate using the two thresholds, and perform subtraction to obtain the time group.
[0136] The oscillation frequency calculation submodule is used to iterate through the time-voltage coordinate data of the waveform, taking the first and second voltage values that change from positive to negative as the first zero point and the second zero point, and subtracting the time values associated with the first zero point and the second zero point to obtain the oscillation frequency.
[0137] The peak lookup submodule is used to iterate through the time-voltage coordinate data of the waveform and find four positive peaks in the voltage coordinate as the first, second, third and fourth positive peaks.
[0138] The repetition rate and attenuation value calculation submodule is used to calculate the repetition rate based on the time value associated with the first positive peak and the second positive peak; and to calculate the attenuation value based on the first, second, third and fourth positive peaks.
[0139] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0140] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection between apparatuses or units through some interfaces, and may be electrical, mechanical, or other forms.
[0141] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0142] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0143] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0144] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.< / lf> < / lf> < / lf> < / lf>
Claims
1. An automatic calibration method based on a ringing wave simulator, characterized in that, The method is applied to computer equipment, wherein the computer equipment is connected to a ringing wave simulator and a digital oscilloscope via a GPIB interface and a USB communication cable, respectively, and the output port of the ringing wave simulator is connected to the input port of the digital oscilloscope; the method includes: Identify the communication addresses of the ringing wave simulator and the digital oscilloscope, and establish communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses; Enable the ringing wave simulator, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope; The modulation parameters of the digital oscilloscope are modulated so that the digital oscilloscope generates a corresponding waveform based on the ringing wave signal; Obtain the raw waveform data, convert the raw waveform data and save it as time-voltage coordinate data of the waveform; By traversing the time-voltage coordinate data of the waveform, the calibration measurement results are calculated. The steps of acquiring the raw waveform data, converting the raw waveform data, and saving it as time-voltage coordinate data of the waveform include: The time interval between data points of the waveform is used to generate the time axis of the waveform; the time offset of the first data point of the waveform relative to the trigger point is used to adjust the offset of the waveform's time axis. Query the multiplication factor of the waveform's vertical axis scale and the offset value of the Y-axis origin; The time value of the waveform is calculated based on the time axis and time offset of the waveform, and the actual voltage value of the waveform is calculated based on the data points, multiplication factors and Y-axis origin offset of the waveform, thus obtaining the time-voltage coordinate data of the waveform.
2. The automatic calibration method according to claim 1, characterized in that, The step of identifying the communication addresses of the ringing wave simulator and the digital oscilloscope, and establishing communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses, includes: Locate the connected ringing wave simulator and digital oscilloscope using the file explorer, and identify their communication addresses. Based on the communication addresses, communication connections are established with the ringing wave simulator and the digital oscilloscope, respectively, and an Excel file of communication addresses is generated.
3. The automatic calibration method according to claim 1, characterized in that, The steps of enabling the ringing wave simulator, modulating the output parameters of the ringing wave simulator under different coupling conditions, and causing the ringing wave simulator to output a preset ringing wave signal to the digital oscilloscope include: Based on the enable command, start the calibration module in the function area of the ringing wave simulator; After the calibration module of the ringing wave simulator is successfully started, the output parameters of the ringing wave simulator under different coupling conditions are modulated so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
4. The automatic calibration method according to claim 1, characterized in that, The calibration measurement results include current and voltage sets, time sets, oscillation frequency, repetition rate, and attenuation value; the step of traversing the time-voltage coordinate data of the waveform to calculate the calibration measurement results includes: By iterating through the time-voltage coordinate data of the waveform, the largest positive voltage value and the smallest negative voltage value are selected to obtain the current-voltage group. Traverse the time-voltage coordinate data of the waveform, filter out two thresholds corresponding to 10% and 90% of the maximum voltage value, locate the corresponding time values in the time coordinate using the two thresholds, and perform subtraction to obtain the time group. The time-voltage coordinate data of the waveform is iterated in a loop. The first and second voltage values that change from positive to negative are taken as the first zero point and the second zero point. The time values associated with the first zero point and the second zero point are subtracted to obtain the oscillation frequency. Iterate through the time-voltage coordinate data of the waveform and find the four positive peaks in the voltage coordinate as the first, second, third and fourth positive peaks. The repetition rate is calculated based on the time value associated with the first and second positive peak values; the attenuation value is calculated based on the first, second, third, and fourth positive peak values.
5. An automatic calibration system based on a ringing wave simulator, characterized in that, The system includes: The communication address lookup module is used to identify the communication addresses of the ringing wave simulator and the digital oscilloscope, and establish communication connections with the ringing wave simulator and the digital oscilloscope respectively based on the communication addresses. The ringing wave simulator parameter modulation module is used to enable the ringing wave simulator, modulate the output parameters of the ringing wave simulator under different coupling conditions, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope; The digital oscilloscope parameter modulation module is used to modulate the modulation parameters of the digital oscilloscope, enabling the digital oscilloscope to generate corresponding waveforms based on the ringing wave signal. The waveform data calculation module is used to acquire the raw waveform data, convert the raw waveform data and save it as time-voltage coordinate data of the waveform; The calibration result generation module is used to traverse the time-voltage coordinate data of the waveform and calculate the calibration measurement results. The waveform data calculation module includes: The time parameter lookup submodule is used to query the time interval between data points of a waveform, which is used to generate the time axis of the waveform; it also queries the time offset of the first data point of the waveform relative to the trigger point, which is used to adjust the offset of the waveform's time axis. The voltage parameter lookup submodule is used to query the multiplication factor of the waveform's vertical axis scale and the offset value of the Y-axis origin. The time-voltage coordinate data generation submodule is used to calculate the time value of the waveform based on the waveform's time axis and time offset, and to calculate the actual voltage value of the waveform based on the waveform's data points, multiplication factors, and Y-axis origin offset, thereby obtaining the waveform's time-voltage coordinate data.
6. The automatic calibration system according to claim 5, characterized in that, The communication address lookup module is specifically used to locate the connected ringing wave simulator and digital oscilloscope through the resource manager, identify the communication addresses of the ringing wave simulator and digital oscilloscope, establish communication connections with the ringing wave simulator and digital oscilloscope respectively based on the communication addresses, and generate a communication address Excel file.
7. The automatic calibration system according to claim 5, characterized in that, The ringing wave simulator parameter modulation module includes: The calibration module startup submodule is used to start the calibration module in the function area of the ringing wave simulator based on the enable command; The parameter modulation submodule is used to modulate the output parameters of the ringing wave simulator under different coupling conditions after the calibration module of the ringing wave simulator is successfully started, so that the ringing wave simulator outputs a preset ringing wave signal to the digital oscilloscope.
8. The automatic calibration system according to claim 5, characterized in that, The calibration result generation module includes: The current-voltage group calculation submodule is used to traverse the time-voltage coordinate data of the waveform, filter out the maximum positive voltage value and the minimum negative voltage value, and obtain the current-voltage group. The time group calculation submodule is used to traverse the time-voltage coordinate data of the waveform, filter out two thresholds corresponding to 10% and 90% of the maximum voltage value, locate the corresponding time value in the time coordinate using the two thresholds, and perform subtraction to obtain the time group. The oscillation frequency calculation submodule is used to iterate through the time-voltage coordinate data of the waveform, taking the first and second voltage values that change from positive to negative as the first zero point and the second zero point, and subtracting the time values associated with the first zero point and the second zero point to obtain the oscillation frequency. The peak lookup submodule is used to iterate through the time-voltage coordinate data of the waveform and find four positive peaks in the voltage coordinate as the first, second, third and fourth positive peaks. The repetition rate and attenuation value calculation submodule is used to calculate the repetition rate based on the time value associated with the first positive peak and the second positive peak; and to calculate the attenuation value based on the first, second, third and fourth positive peaks.
Citation Information
Patent Citations
Frequency span calibration and detection method for digital oscilloscope
CN101131419A
Surge generator calibration system and method
CN102495385A