Power supply output control method
By drawing curve charts and data processing technology, refined control of power output is achieved, solving the problems of complex operation and difficult fine control in the existing technology, and providing intuitive and flexible power control methods to meet the complex needs of users.
Patent Information
- Application Number
- CN202411382049.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing power output control method is complex in operation, requiring users to spend a lot of time learning programming, which cannot meet the complex needs of users, and the existing technology cannot achieve refined power output control.
By drawing a curve chart to define power output parameters, sampling and quantization are converted into digital data, feature points are expanded using linear interpolation algorithms, data processing and verification are performed, data accuracy and reliability are ensured, and the power output changes required by the user are finally realized.
It provides an intuitive, flexible and easy-to-operate power control method, and users can accurately control the power output voltage, current and power, meet complex application needs, and improve the flexibility and ease of operation of power control.
Smart Images

Figure CN119247845A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of human-computer interaction, and in particular to a power output control method. Background Art
[0002] The DC power supply can achieve multiple output modes and has an automatic adjustment function. It can automatically adjust the output voltage and current according to changes in the load, improving its convenience and safety in use.
[0003] At present, there are two main ways to control power output: one is to increase or decrease the output through simple options. Although the control through simple options is simple to operate, it sometimes cannot meet the user's complex needs for power output;
[0004] The other is control through programming; some power supply manufacturers have launched power supply control software specifically for programmable DC power supplies. These software support multiple connection methods, such as LAN, RS232 and USB, and can control multiple power supply outputs at the same time. Although this can meet the user's complex needs for power output, it requires users to spend a lot of time to learn the programming of controlling power output, which greatly increases the difficulty for users to use the power supply.
[0005] Existing technologies can no longer meet people’s needs at this stage. Based on the current situation, it is urgent to reform existing technologies. Summary of the invention
[0006] The object of the present invention is to provide a power output control method to solve the problems raised in the above background technology.
[0007] The present invention provides the following technical solution: a power output control method, the specific steps of which include:
[0008] Step S100: Draw a curve graph to intuitively define various parameters of the power output;
[0009] The parameters of the curve graph include: start time, end time, voltage, current and power; when drawing the curve graph, the user can freely draw the curve in the drawing area through the mouse or the touch screen of the power supply; the X axis represents time, and the Y axis represents the function set by the user; and the area style of drawing the curve graph is a grid
[0010] Step S200: data extraction, converting the analog image in the curve graph into discrete digital data;
[0011] The analog image is divided into discrete data points by sampling and quantization. Sampling is to sample the analog image at a certain time interval to obtain discrete sampling points. Quantization is to convert the analog value of each sampling point into a corresponding digital value.
[0012] Step S300: Expand the sampling points into required feature points through a linear interpolation algorithm, and use the feature points to represent the functional features of a certain time domain that the user actually needs;
[0013] Step S400: Data processing, extracting the feature point data in the curve graph drawn by the user, judging whether it meets the output standard sent to the device, and if not, automatically correcting it, and asking the user whether to control the device according to the automatically corrected data or to control the device by manual correction;
[0014] Step S400 includes:
[0015] Step S401: restoring the extracted feature point data into a curve, recorded as curve 1; and determining whether curve 1 can be simulated by a preset standard function;
[0016] If it can be simulated, the simulated curve is recorded as curve 2 through the preset standard function, and the root mean square error mathematical method is used to evaluate the similarity between curve 1 and curve 2; when curve 1 is similar to curve 2, the user's curve is restored by adjusting the coefficient of the standard function, and the corrected result is provided to the user;
[0017] If it cannot be simulated, curve 1 is stored in a sequence;
[0018] Step S402: Checking the amplitude range, and checking whether the amplitude range of the curve drawn by the user is within the effective working range of the device according to the requirements of the device;
[0019] If the amplitude range is reasonable, the arbitrary curve input by the user is suitable for the current device;
[0020] If the amplitude range is unreasonable, it will be corrected and the user will be asked whether to operate with the corrected data.
[0021] Step S500: Add data verification to ensure the accuracy and completeness of the data; wherein the verification method includes:
[0022] Redundancy check, format check, logic check and integrity check; among them,
[0023] The redundancy check detects and corrects transmission errors by adding redundant bits to ensure data reliability;
[0024] The format check is based on predefined data format requirements to check whether the data complies with the specifications;
[0025] The logic check is used to verify whether the logical relationship between the data is correct;
[0026] The integrity check is used to ensure data integrity and avoid problems with missing, duplicated or invalid data.
[0027] Step S600: Data is sent down, and the verified data is passed to the power supply to achieve the power output change required by the user.
[0028] The curve graph drawn by the user in step S100 and the data processed by data verification in step S500 are transmitted to the power supply, and the user obtains the required voltage variation mode by controlling the power supply output to meet specific application requirements.
[0029] The present invention has the following beneficial effects:
[0030] The present invention achieves refined power control by introducing five key steps: drawing curve graphs, data extraction, data processing, data verification and data distribution. Users can accurately control power supply output parameters such as voltage, current and power by drawing curve graphs, while data analysis and verification steps ensure the accuracy and reliability of the data.
[0031] The present invention realizes the power output change mode required by the user by sending data, and meets the specific needs of its application. It provides a more professional and intuitive method, making the control of power output more flexible and easy to operate, and is expected to be widely used in the field of power control. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a schematic diagram of the process of the present invention;
[0033] Figure 2 It is a schematic diagram of the VT diagram of the present invention. DETAILED DESCRIPTION
[0034] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field of the present invention without creative work are within the scope of protection of the present invention.
[0035] refer to Figure 1 The present invention provides the following technical solution: a power output control method, the specific steps include:
[0036] Step S100: drawing a curve graph to intuitively define various parameters of the power output;
[0037] The parameters of the curve graph include: start time, end time, voltage, current, and power parameters. When drawing, the user can freely draw the curve in the drawing area using a mouse or the touch screen of the power supply. The X-axis represents time, and the Y-axis represents the function set by the user (for example, voltage, current, power). The area style for drawing the curve graph is a grid. In this embodiment, if the Y-axis represents the function direction set by the user as voltage, the drawn curve graph is a VT graph, if the Y-axis represents the function direction set by the user as current, the drawn curve graph is an IT graph, and if the Y-axis represents the function direction set by the user as power, the drawn curve graph is a PT graph. Reference Figure 2 , the curve graph drawn is the VT graph.
[0038] The curve drawn in step S100 is discontinuous. When the user draws the curve on the drawing interface of the host computer, the drawn curve appears to be continuous to the naked eye. However, in fact, current devices cannot draw continuous curves because the user does not draw a regular function graph. Therefore, the user can only use continuous and sufficiently small pixels to simulate the curve drawn by the user and display it on the drawing interface for the user to check and modify to meet the user's requirements. This visual drawing method makes the power control intuitive and easy to operate.
[0039] Step S200: data extraction, converting the analog image in the curve graph into discrete digital data;
[0040] The analog image is divided into discrete data points by sampling and quantization. Sampling is to sample the analog image at a certain time interval to obtain discrete sampling points. Quantization is to convert the analog value of each sampling point into a corresponding digital value.
[0041] Step S300: Expand the sampling points into required feature points through a linear interpolation algorithm, and use the feature points to represent the functional features of a certain time domain that the user actually needs; the steps include:
[0042] Step 301: Calculate the interpolation step length, which represents the interval between each sampling point in the target data. By dividing the number of original sampling points N1 by the number of target feature points N2, the interpolation step length can be determined: step = N1 / N2; for example: the number of original sampling points N1 = 600; the number of target feature points N2 = 3000, step = N1 / N2 = 0.2.
[0043] Step 302: Execute the interpolation algorithm, the steps are as follows:
[0044] (1) Initialize the target data array result[] with a length of N2;
[0045] (2) Traverse each index i (0 <= i <N2);
[0046] (3) Calculate the interpolation starting point index in the original data: start = floor (i * step);
[0047] (4) Calculate the interpolation end point index in the original data: end = ceil (i * step);
[0048] Among them, the floor and ceil functions are used in the interpolation algorithm to ensure that the interpolation starting point and interpolation end point indexes are integers, and are used to locate the position of the target feature point in the original data.
[0049] Step 303: Calculate the weight ratio between the interpolation start point and the interpolation end point: weight = (i*step) - start;
[0050] Among them, the value range of the weight ratio is 0≤weight≤1, which is used to determine the value of the target feature point. When the weight ratio weight is 0, the value of the feature point is the value of the interpolation starting point; when the weight ratio weight is 1, the value of the feature point is the value of the interpolation end point.
[0051] Step 304: Perform linear interpolation calculation on the values of the interpolation start point and the end point according to the weight ratio to obtain the target feature point. The calculation formula is as follows:
[0052] result[i]=(1-weight)*original[start]+weight*original[end]; where original[start] is the interpolation starting point; original[end] is the interpolation end point.
[0053] In this embodiment, the curve drawn by the user is ideally a continuous line in the time domain. In fact, due to the acquisition and display of the device, the entire curve is drawn on the screen as a series of continuous sampling points. Given the limited sampling rate of the drawing area (such as the touch screen) in the device, there will be only a few sampling points in the entire curve to express the user's needs. Therefore, the key to digitizing the curve image drawn by the user is to expand these sampling points into the required feature points, and use the feature points to represent the functional characteristics (voltage, current, power) in a certain time domain of the user's actual needs, and finally obtain a valid feature array; wherein the feature array represents the feature point data of a continuous curve.
[0054] As an embodiment of the present invention, through the above steps, this embodiment can expand 600 sampling points to 3000 feature points through linear interpolation algorithm, and the change of feature points in the drawing area is linear and stored in the result[] array.
[0055] In this embodiment, the purpose of data extraction is to facilitate digital signal processing and ensure the stability and accuracy of data. Discrete data representation is not only convenient for processing, but also provides stable and accurate data transmission and operation, thereby realizing refined power control and visualization operation.
[0056] Step S400: Data processing, extracting the feature point data in the curve graph drawn by the user, judging whether it meets the output standard sent to the device, and if not, automatically correcting it, and asking the user whether to control the device according to the automatically corrected data or to control the device through manual correction. The steps include:
[0057] Step S401: restore the extracted feature point data into a curve, recorded as curve 1; and determine whether curve 1 can be simulated by a preset standard function; if it can be simulated, the simulated curve is recorded as curve 2 by the preset standard function, and the root mean square error mathematical method is used to evaluate the similarity between curve 1 and curve 2; when curve 1 is similar to curve 2, the user's curve is restored by adjusting the coefficient of the standard function, and the corrected result is provided to the user; if it cannot be simulated, curve 1 is stored in a sequence.
[0058] Step S402: Amplitude range check: check whether the amplitude range of the curve drawn by the user is within the effective working range of the device according to the requirements of the device. If the amplitude range is reasonable, it means that the arbitrary curve input by the user is suitable for the current device. If the amplitude range is unreasonable, it is corrected and the user is asked whether to operate with the corrected data.
[0059] Step S500: Add data verification to ensure the accuracy and completeness of the data.
[0060] In the process of data transmission and processing, in order to avoid transmission errors, format errors or other abnormal situations, different verification methods are used: redundancy check, format check, logic check and integrity check to detect and correct these errors.
[0061] Redundancy check detects and corrects transmission errors by adding redundant bits to ensure data reliability. Format check checks whether the data complies with the specifications based on predefined data format requirements and whether it is data that allows the lower computer to work normally. Logical check is used to verify whether the logical relationship between data is correct; integrity check ensures data integrity to avoid missing, duplicate or invalid data problems.
[0062] Step S600: Data is sent down, and the verified data is passed to the power supply to achieve the power output change required by the user.
[0063] The curve graph drawn by the user in step S100 and the data processed by data verification in step S500 are passed to the power supply to restore the power output mode expected by the user; in this way, the user can accurately control the power output and obtain the required voltage change mode to meet the requirements of its specific application.
[0064] As an embodiment of the present invention, the operating program can be located in a remote host computer to control the output of the power supply. In this embodiment, the screen display content of the host computer will provide a grid area, and the user can use touch or mouse to draw a curve graph in this area. The user can define the horizontal and vertical coordinates of the grid area according to their needs to meet specific operation requirements. For example, one grid of the horizontal axis can represent a time length of 10 seconds, with a total of 100 grids, indicating that this operation can be executed for 1000 seconds; one grid of the vertical axis can represent a voltage of 10mV, and the vertical axis is a total of 50 grids, which means that the maximum voltage of this operation is 500mV.
[0065] In this embodiment, after the user draws the desired power output curve, the curve can be modified and confirmed by clicking, and the device will convert the analog image into discrete digital data. Specifically, since the curve drawn by the user is continuous in the actual time domain, but due to the acquisition and display limitations of the device, the curve image is actually drawn by a series of continuous points; therefore, it is necessary to expand these continuous points into feature points that the user actually needs, and ensure that these feature points can uniquely characterize the points in this time domain. For example, if a square has 300 pixels horizontally, the feature data of these points can be identified and expanded to 1500 feature points using an interpolation algorithm. In this way, we can obtain an effective and detailed feature point array to restore the curve drawn by the user as much as possible.
[0066] In this embodiment, next, the above-mentioned feature point array needs to be processed: First, it is necessary to check whether the data conforms to the preset function, such as kx+b, etc. The data needs to be described in segments, and it is determined whether these segmented data conform to the output specifications of the power supply; in this process, it is not allowed to exceed the maximum output of the power supply or to have sudden changes in a short period of time. Secondly, an amplitude range check is performed to ensure that the amplitude range of the arbitrary curve drawn by the user is within the preset valid range; if the amplitude range is reasonable, it means that the arbitrary curve input by the user is suitable for the current device; if it does not meet the range, the system will modify it and ask the user whether to use the automatically modified data or modify the data manually. Finally, the processed data is sent to the device, and the device outputs after receiving the data.
[0067] Through the above steps, it can be ensured that users can easily draw the power output curve that meets the equipment specifications, and through correction, make the operation easier and more efficient.
[0068] Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A power output control method, characterized in that: The specific steps include: Step S100: drawing a curve graph to intuitively define various parameters of the power output; Step S200: data extraction, converting the analog image in the curve graph into discrete digital data; Step S300: Expand the sampling points into required feature points through a linear interpolation algorithm, and use the feature points to represent the functional features of a certain time domain that the user actually needs; Step S400: Data processing, extracting the feature point data in the curve graph drawn by the user, judging whether it meets the output standard sent to the device, and if not, automatically correcting it, and asking the user whether to control the device according to the automatically corrected data or to control the device by manual correction; Step S500: Add data verification to ensure the accuracy and completeness of the data; Step S600: Data is sent down, and the verified data is passed to the power supply to achieve the power output change required by the user.
2. The power output control method according to claim 1, characterized in that: The parameters of the curve graph include: start time, end time, voltage, current and power; and, When drawing a curve graph, the user freely draws the curve in the drawing area through a mouse or a touch screen of the power supply; wherein the X-axis represents time, and the Y-axis represents the function set by the user; and the area style of drawing the curve graph is a grid.
3. The power output control method according to claim 2, characterized in that: When the Y-axis represents the function parameter set by the user as voltage, the curve graph drawn is the VT graph; When the Y-axis represents the function parameter set by the user as current, the curve graph drawn is the IT graph; When the Y-axis represents the function parameter set by the user as power, the curve graph drawn is a PT graph.
4. The power output control method according to claim 1, characterized in that: The curve drawn in step S100 is a curve drawn by the user simulated by using continuous and sufficiently small pixels, and is discontinuous.
5. The power output control method according to claim 1, characterized in that: Step S200 includes: dividing the simulated image into discrete data points by sampling and quantization; wherein, Sampling: sampling the simulated image at a certain time interval to obtain discrete sampling points; Quantization converts the analog value of each sampling point into a corresponding digital value.
6. The power output control method according to claim 1, characterized in that: Step S300 includes: Step 301: Calculate the interpolation step length. By dividing the number of original sampling points N1 by the number of target feature points N2, the interpolation step length can be determined: step = N1 / N2; Step 302: Execute an interpolation algorithm, the steps include: a. Initialize the target data array result[] with a length of N2; b. Traverse each index i (0 <= i <N2); c. Calculate the interpolation starting point index in the original data: start = floor (i * step); d. Calculate the interpolation end point index in the original data: end = ceil (i * step); Among them, the floor and ceil functions are used in the interpolation algorithm to ensure that the interpolation start point and the interpolation end point index are integers, and are used to locate the position of the target feature point in the original data; Step 303: Calculate the weight ratio between the interpolation start point and the interpolation end point: weight = (i*step)-start; Among them, the value range of the weight ratio is 0≤weight≤1, which is used to determine the value of the target feature point; Step 304: Perform linear interpolation calculation on the values of the interpolation start point and the end point according to the weight ratio to obtain the target feature point. The calculation formula is as follows: result[i]=(1-weight)*original[start]+weight*original[end]; Among them, original[start] is the interpolation starting point, and original[end] is the interpolation end point.
7. The power output control method according to claim 6, characterized in that: When the weight ratio is 0, the value of the feature point is the value of the interpolation starting point; when the weight ratio is 1, the value of the feature point is the value of the interpolation end point.
8. The power output control method according to claim 1, characterized in that: Step S400 includes: Step S401: restoring the extracted feature point data into a curve, recorded as curve 1; and determining whether curve 1 can be simulated by a preset standard function; If it can be simulated, the simulated curve is recorded as curve 2 through the preset standard function, and the root mean square error mathematical method is used to evaluate the similarity between curve 1 and curve 2; when curve 1 is similar to curve 2, the user's curve is restored by adjusting the coefficient of the standard function, and the corrected result is provided to the user; If it cannot be simulated, curve 1 is stored in a sequence; Step S402: Checking the amplitude range, and checking whether the amplitude range of the curve drawn by the user is within the effective working range of the device according to the requirements of the device; If the amplitude range is reasonable, the arbitrary curve input by the user is suitable for the current device; If the amplitude range is unreasonable, it will be corrected and the user will be asked whether to operate with the corrected data.
9. The power output control method according to claim 1, characterized in that: The verification methods include: redundancy check, format check, logic check and integrity check; among them, The redundancy check detects and corrects transmission errors by adding redundant bits to ensure data reliability; The format check is based on predefined data format requirements to check whether the data complies with the specifications; The logic check is used to verify whether the logical relationship between the data is correct; The integrity check is used to ensure data integrity and avoid problems with missing, duplicated or invalid data.
10. The power output control method according to claim 1, characterized in that: Step S600 includes: transmitting the curve graph drawn by the user in step S100 and the data processed by data verification in step S500 to the power supply, and the user obtains the required voltage change mode by controlling the power supply output to meet specific application requirements.
Citation Information
Patent Citations
Voltage control curve transmission method and system based on modbus communication protocol
CN117336112A
Handwriting processing method, handwriting processing device and non-transitory storage medium
US20220365670A1
Use Of A Curve Section In A Process Control System
US20240210905A1
