A method, a source meter, a system and a medium for controlling gear shifting of a source meter
By detecting and responding to user-triggered switching actions, determining the switching type and calculating the target control parameters, the problem of output fluctuations and mutations during source table shifting is solved, and higher control accuracy and test safety are achieved.
Patent Information
- Application Number
- CN202510504708.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-22
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2045-04-22
AI Technical Summary
There are output fluctuations or sudden changes in the existing source table during gear switching, resulting in the output burr that seriously affects the voltage and current stability of the load, thereby affecting the precise control and testing safety of the source table.
By detecting the switching action triggered by the user, determining the switching type, and matching the corresponding target electronic device, calculating the target control parameters based on the key parameters of the target electronic device, and then controlling the source table accordingly, suppressing output mutations, and maintaining the stable output of the device to be tested.
It effectively inhibits the output mutation of the source table, improves control accuracy, ensures test safety, and significantly improves the efficiency and stability of gear switching control.
Smart Images

Figure CN120029157B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of source meter control, and particularly to a method for controlling gear switching of a source meter, a source meter, a system, and a medium. Background Art
[0002] A source meter, also known as a Source Meter Unit (SMU), is a test instrument that integrates the functions of a voltage source, a current source, a voltmeter, an ammeter, and an electronic load. It can provide accurate DC voltage or DC current output or input, and can simultaneously measure parameters such as current and voltage of a device under test (also known as a device under test, DUT, or load). Currently, source meters usually use a full analog loop for control. Due to the cumulative errors in the components of the system including the source meter, the control effect of the analog loop is poor, so the corresponding digital loop control of the source meter is proposed.
[0003] Currently, with the important role played by digital loop gear switching technologies (including current gear switching and voltage gear switching) in application scenarios such as SMU modules, PMU (Power Measurement Unit) modules, bench-top source meters, power supply boards of chip testers, and VI (Voltage / Current) source boards for voltage and current measurement and voltage and current output or input, for the corresponding switching requirements generated in different application scenarios, a unified gear switching requirement should be followed, that is, the load output fluctuation is small and the fluctuation duration is short. However, when the source meter digital loop performs current or voltage gear switching, a large mutation is likely to occur in the load output during the switching instant, and the resulting output spikes seriously affect the stability of the system, thereby reducing the gear switching efficiency and making it difficult to achieve efficient control of the source meter digital loop. Summary of the Invention
[0004] In view of this, the present invention provides a method for controlling gear switching of a source meter, a source meter, a system, and a medium to solve the problem that when the existing source meter performs gear switching, there are output fluctuations or mutations, and the resulting output spikes seriously affect the stability of voltage and current on the load, thereby affecting the accurate control or test safety of the source meter.
[0005] In a first aspect, the present invention provides a method for controlling gear switching of a source meter, the method comprising:
[0006] Detecting a switching action currently triggered by a source meter user;
[0007] Responding to the switching action, determining the switching type, and determining a target electronic device matching the switching type;
[0008] Calculate the target control parameter based on the key parameter corresponding to the target electronic device, and perform corresponding control on the source meter based on the target control parameter.
[0009] The source meter of the present invention is implemented by means of a digital loop. After detecting a trigger switching action on the source meter, the switching type corresponding to the switching action is determined. At the same time, the target electronic device matching the switching type in the digital loop is determined, and the voltage range switching or current range switching of the source meter is completed through the corresponding hardware action of this electronic device, which can effectively suppress the output mutation of the source meter, and then help to maintain the stable output of the device under test, significantly improving the control accuracy of the source meter to a certain extent, and also ensuring the test safety.
[0010] In an optional implementation manner, in response to the switching action, determining the switching type includes:
[0011] In response to the switching action, identify whether the power amplifier module performs output adjustment or whether the voltage conditioning circuit performs switching;
[0012] If it is identified that the power amplifier module performs output adjustment or the voltage conditioning circuit performs switching, then determine that the switching type is voltage range switching.
[0013] The present invention designs a process for determining whether the power amplifier module performs gain adjustment or determining whether the voltage conditioning circuit switches corresponding to the specific switching type of the source meter to determine the switching type of the source meter. When the power amplifier module performs gain adjustment or switches the voltage conditioning circuit, it is determined that the switching type is voltage range switching, which has the significant advantages of simple hardware structure and accurate type determination. In an optional implementation manner, in response to the switching action, determining the switching type includes:
[0014] In response to the switching action, obtain the first sampling resistor of the source meter before performing the switching action;
[0015] If it is identified that the first sampling resistor is instantaneously disconnected or the current conditioning circuit is switched after the second sampling resistor is connected in parallel with the first sampling resistor, then determine that the switching type is current range switching, where the second sampling resistor is the sampling resistor corresponding to the current preset range threshold.
[0016] The present invention also designs a process for detecting whether the sampling resistor in the digital loop is switched or determining whether the current conditioning circuit is switched corresponding to the specific switching type of the source meter to determine the switching type of the source meter. When the first sampling resistor is instantaneously disconnected or the current conditioning circuit is switched after the second sampling resistor is connected in parallel with the first sampling resistor, it is determined that the switching type is current range switching, which has the advantages of simple design and safety, and can accurately identify the current range switching of the source meter.
[0017] In an alternative embodiment, if the switching type is voltage gear switching, determine that the target electronic device is a power amplifier module, and the power amplifier module is used to adjust the amplitude of the output analog signal of the digital-to-analog converter to the voltage preset gear threshold corresponding to the current gear; calculate the target control parameter based on the key parameters corresponding to the target electronic device, including:
[0018] Obtain the first voltage output from the digital-to-analog converter to the power amplifier module, and the gain change before and after the output adjustment of the power amplifier module;
[0019] Determine the second voltage through the first voltage and the gain change of the power amplifier module, and verify whether the second voltage meets the voltage preset gear threshold corresponding to the current gear;
[0020] If it is satisfied, determine whether the second voltage is greater than the preset change threshold;
[0021] When the second voltage is greater than the preset change threshold, switch the voltage conditioning circuit; if the source meter is currently in the current source working mode, determine the preset output current as the target control parameter; if the source meter is currently in the voltage source working mode and the source meter is externally connected to the device under test, use the corresponding current conditioning circuit to collect the output current of the device under test, and determine the output current as the target control parameter.
[0022] When the source meter performs voltage gear switching, the present invention determines the second voltage after switching by obtaining the first voltage output from the digital-to-analog converter and the gain change before and after the output adjustment of the power amplifier module, and at the same time verifies whether the second voltage meets the corresponding range of the current gear setting, that is, the voltage preset gear threshold. When the corresponding range is satisfied, a determination of the magnitude of the change before and after the voltage gear switching is added, that is, the determination of the magnitude of the second voltage and the set preset change threshold. When the second voltage is greater than the preset change threshold, it is necessary to switch the voltage conditioning circuit, and determine whether it is necessary to use the corresponding current conditioning circuit to collect the output current of the device under test according to the current working mode of the source meter, and determine the output current as the target control parameter, which can accurately obtain the source meter control parameter and maintain the stable output of the device under test to a certain extent.
[0023] In an alternative embodiment, the gear switching control method of the source meter further includes:
[0024] When the second voltage is not greater than the preset change threshold, do not switch the voltage conditioning circuit; if the source meter is currently in the current source working mode and the source meter is externally connected to the device under test, use the corresponding current conditioning circuit to collect the output current of the device under test, and determine the output current as the target control parameter; if the source meter is currently in the voltage source working mode, determine the preset output voltage as the target control parameter.
[0025] The present invention also takes into account the situation where the output voltage changes little before and after the voltage range switching. When the second voltage is not greater than the preset change threshold, the voltage conditioning circuit is not switched. Only the output gain of the amplifier module needs to be adjusted and the target control parameter of the source meter is not changed during the voltage switching, that is, the corresponding target control parameter is determined according to the current working mode of the source meter, which effectively suppresses the output mutation of the source meter to a certain extent and helps to maintain the stable output of the device under test.
[0026] In an alternative embodiment, if the switching type is current range switching, the target electronic device is determined to be the second sampling resistor; the target control parameter is calculated based on the key parameters corresponding to the target electronic device, including:
[0027] Obtain the target current of the source meter before performing the switching action;
[0028] Calculate the parallel resistance value of the second sampling resistor and the first sampling resistor;
[0029] Calculate the third voltage based on the target current and the parallel resistance value;
[0030] When the third voltage satisfies the preset fluctuation threshold range, if the source meter is currently in the current source working mode and the device under test is connected to the outside of the source meter, the output voltage of the device under test is collected by using the target voltage conditioning circuit, and the output voltage is determined as the target control parameter; if the source meter is currently in the voltage source working mode, the preset output voltage is determined as the target control parameter; wherein, the target voltage conditioning circuit is determined according to the output adaptability of the power amplifier module after the switching action.
[0031] When the source meter performs current range switching, the present invention obtains the target current before performing the switching action, and the parallel resistance values of the respective sampling resistors before and after the switching, and then calculates the third voltage based on the target current and the parallel resistance value, and verifies the rationality of the selection of the sampling resistor based on the relationship between the third voltage and the preset fluctuation threshold range, that is, according to the output change amount reflected by the third voltage, the resistance value of the sampling resistor can be adaptively adjusted based on this reference output change amount during the hardware design stage, thereby reducing the output glitch; at the same time, when switching the current conditioning circuit, the corresponding target control parameter is determined according to the current working mode of the source meter, which can accurately obtain the source meter control parameter, reduces the output fluctuation or mutation of the source meter to a certain extent, and then maintains the stable output of the device under test and improves the precise control of the source meter.
[0032] In a second aspect, the present invention provides a source meter, which includes: a controller, a power amplifier module, a resistance selection module, a current conditioning circuit, and a voltage conditioning circuit. The components of the source meter are interconnected to form a digital loop; wherein, the output end of the controller is connected to the input end of the power amplifier module through a digital-to-analog converter. The resistance selection module includes multiple sampling resistors. The output end of the power amplifier module is connected to any selected sampling resistor in the resistance selection module. The output end of each sampling resistor is connected to both the current conditioning circuit and the voltage conditioning circuit. The output ends of the current conditioning circuit and the voltage conditioning circuit are both connected to an analog-to-digital converter, and the output end of the analog-to-digital converter is connected to the controller.
[0033] The source meter of the present invention is implemented in a digital loop manner, specifically formed by interconnecting a controller, a power amplifier module, a resistance selection module, a current conditioning circuit, and a voltage conditioning circuit. It can flexibly adjust the output of the source meter and maintain the stable output of the device under test to a certain extent.
[0034] In an optional implementation, the power amplifier module includes a digital potentiometer and an amplifier, which are used to adjust the amplitude of the output analog signal of the digital-to-analog converter to the preset gear threshold corresponding to the current gear.
[0035] The present invention is designed to include a digital potentiometer and an amplifier, which can realize continuous numerical adjustment and amplification functions, help to keep the gain change continuous and smooth, and thus can effectively prevent the gain mutation of the power amplifier module from causing the output voltage mutation of the source meter, suppress the output mutation of the source meter to a certain extent, and maintain the stable output of the device under test.
[0036] In a third aspect, the present invention provides a gear switching control system, which includes a source meter as described in the second aspect or any corresponding implementation thereof and a device under test. The source meter is used to execute the gear switching control method of a source meter as described in the first aspect or any corresponding implementation thereof.
[0037] The present invention designs a gear switching control system including a source meter and a device under test. Among them, the source meter is based on a digital loop, and at the same time, the corresponding control processes for the source meter under voltage gear switching and current gear switching are also designed. It can greatly suppress the output mutation of the source meter, thereby maintaining the stable output of the device under test, and helping to improve the control accuracy and output stability of the gear switching control system.
[0038] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored. The computer instructions are used to cause a computer to execute the gear switching control method of a source meter as described in the first aspect or any corresponding implementation thereof. Description of the Drawings
[0039] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0040] Figure 1 is a structural block diagram of a source table according to an embodiment of the present invention;
[0041] Figure 2 is a structural block diagram of another source table according to an embodiment of the present invention;
[0042] Figure 3 is a structural block diagram of a gear shift control system according to an embodiment of the present invention;
[0043] Figure 4 is a principle block diagram of a source table gear shift control system;
[0044] Figure 5 is a principle block diagram of a source table gear shift;
[0045] Figure 6 is a schematic flow chart of a gear shift control method for a source table according to an embodiment of the present invention;
[0046] Figure 7 is a schematic flow chart of a gear shift control method for another source table according to an embodiment of the present invention;
[0047] Figure 8 is a schematic flow chart of a gear shift control method for yet another source table according to an embodiment of the present invention;
[0048] Figure 9 is a schematic diagram of the result of voltage gear shift with loop control;
[0049] Figure 10 is a schematic diagram of the result of voltage gear shift without loop control;
[0050] Figure 11 is a schematic diagram of the result of current gear shift with loop control;
[0051] Figure 12 is a schematic diagram of the result of current gear shift without loop control. Specific Embodiments
[0052] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0053] In this embodiment, a source meter is provided. Figure 1 It is a structural block diagram of the source meter according to the embodiment of the present invention. As Figure 1 shown, the source meter includes: a controller 1, a power amplifier module 3, a resistance selection module 4, a current conditioning circuit 5, and a voltage conditioning circuit 6. The components of the source meter are interconnected to form a digital loop; among them, the output end of the controller 1 is connected to the input end of the power amplifier module 3 through a digital-to-analog converter 2. The resistance selection module 4 includes multiple sampling resistors. The output end of the power amplifier module 3 is connected to any selected sampling resistor in the resistance selection module 4. The output end of each sampling resistor is connected to the current conditioning circuit 5 and the voltage conditioning circuit 6. The output ends of the current conditioning circuit 5 and the voltage conditioning circuit 6 are both connected to an analog-to-digital converter 7. The output end of the analog-to-digital converter 7 is connected to the controller 1.
[0054] In practical applications, as an instrument that integrates a signal source and a measurement function, the source meter can not only measure the current flowing through a device under test while providing a driving voltage to the device under test, but also measure the voltage across the device under test while providing a driving current to the device under test, making it widely used in the detection field.
[0055] It should be noted that in this embodiment, a digital loop is used to implement various function controls of the source meter. Among them, the controller 1 is used to respond to the output settings of the user to accurately control the output of the digital-to-analog converter 2, and at the same time receive the feedback output current or voltage data and compare it with the corresponding set value, and further adjust the output of the digital-to-analog converter 2 according to the comparison result; the power amplifier module 3 is used to amplify the output of the digital-to-analog converter 2 to the corresponding gear range (that is, the corresponding range of the output voltage or current required by the source meter); the resistance selection module 4 is used to select a suitable sampling resistor, specifically realized by the on-off of the selection switches of each sampling resistor, and the specific type of the selection switch is adaptively set based on actual needs; the sampling resistor is used to measure the current flowing through the device under test, is usually connected to the current path of the device under test, and generates a voltage signal proportional to the current for measurement and feedback; the current conditioning circuit 5 and the voltage conditioning circuit 6 are used to process the current and voltage data to ensure the authenticity and reliability of the data, and are respectively connected to the analog-to-digital converter 7 to digitize the processed current and voltage for subsequent analysis by the controller 1.
[0056] It should be noted that the specific types of various electronic devices in the above digital loop in this embodiment are not limited here and can be adaptively set according to actual needs. For example, the controller 1 is based on a voltage-current digital control loop (Proportional Integral Differential, PID), which is only for illustrative purposes.
[0057] The source meter of the embodiment of the present invention is implemented by means of a digital loop, which is specifically composed of a controller, a power amplifier module, a resistor selection module, a current conditioning circuit, and a voltage conditioning circuit connected to each other. It can flexibly adjust the current output of the source meter, greatly meeting the high-efficiency use requirements of the source meter.
[0058] In this embodiment, a source meter is provided. Figure 2 It is a structural block diagram of another source meter according to the embodiment of the present invention. As Figure 2 shown, the power amplifier module 3 includes a digital potentiometer 31 and an amplifier 32, which are used to adjust the amplitude of the output analog signal of the digital-to-analog converter 2 to the preset gear threshold corresponding to the current gear.
[0059] In this embodiment, the preset gear threshold is the range of the voltage or current corresponding to the gear, and its specific value is adaptively adjusted according to the actual project requirements and is not specifically limited here.
[0060] The design in the embodiment of the present invention includes a digital potentiometer and an amplifier, which can realize the function of continuously adjusting and amplifying numerical values, helping to keep the change of gain continuous and gentle. Furthermore, it can effectively prevent the sudden change of the gain of the power amplifier module from causing the sudden change of the output voltage of the source meter, suppressing the output sudden change of the source meter to a certain extent and maintaining the stable output of the device under test.
[0061] In practical applications, the source meter has multiple gear switching requirements in different application scenarios, and when switching gears, it is required that the output fluctuation is small and the duration is short. Therefore, it is necessary to design a source meter gear switching scheme to ensure the stable output of the source meter and the device under test. Thus, a gear switching control system is also provided in this embodiment. Figure 3 It is a structural block diagram of the gear switching control system according to the embodiment of the present invention. As Figure 3 shown, the system includes: a source meter and a device under test; wherein, the source meter is used to implement the subsequent switching control embodiments and preferred embodiments. It should be noted that the gear switching control process of the source meter in this embodiment can be referred to below and will not be elaborated here.
[0062] In the embodiment of the present invention, a gear switching control system for a source meter and a device under test based on a digital loop is designed. At the same time, corresponding control processes for the source meter under voltage gear switching and current gear switching are also designed, which can greatly suppress the output mutation of the source meter, thereby maintaining the stable output of the device under test and helping to improve the control accuracy and output stability of the gear switching control system.
[0063] In a specific embodiment, a source meter gear switching scheme using digital loop control is proposed, which is mainly the mutual cooperation between digital loop control and hardware design to maintain the stability of the source meter gear switching control system. Refer to Figure 4 the principle block diagram of the source meter gear switching control system. It can be seen that the system includes: a load (i.e., the device under test) and a source meter (i.e., SMU); among them, the SMU includes a voltage-current digital control loop PID, a digital-to-analog converter, a PA module (i.e., Power Amplifier, power amplifier module, including a digital potentiometer and an amplifier), a sampling resistor, a voltage conditioning circuit, a current conditioning circuit, and an analog-to-digital converter. It should be explained that the digital-to-analog converter in this embodiment outputs a base voltage, and the voltage-current digital control loop PID is used to adjust the output voltage of the digital-to-analog converter. This voltage value is amplified to the required voltage value through the PA module; after the voltage output by the PA module passes through the sampling resistor, there is a voltage difference across the sampling resistor, and the loop current is calculated in reverse through the aforementioned voltage difference.
[0064] In this embodiment, refer to Figure 5 the principle block diagram of the source meter gear switching. It can be seen that the PA module includes a digital potentiometer and an amplifier. It should be noted that in this embodiment, voltage gear switching and current gear switching are considered; among them, the voltage gear switching is divided into two parts, specifically including: 1. Through the PA module composed of a digital potentiometer and an amplifier, the base voltage output by the digital-to-analog converter is amplified to the target gear range, and the gain can be dynamically adjusted through digital control to achieve precise control of data amplification; 2. Switch the acquisition channel of the voltage conditioning circuit to adapt to the acquisition of voltages of different magnitudes. When switching the current gear, the gating switch of the sampling resistor selects a solid-state relay, which has a faster switching speed compared to the traditional mechanical relay, can achieve on-off in the microsecond level, and its mechanical wear-free can significantly increase the service life of the system. Specifically, when switching the sampling resistor, it should be ensured that the loop is closed. Therefore, the current gear switching can be subdivided into two steps, including: 1. First, close the gating solid-state relay of the sampling resistor of the target current gear. At this time, the two sampling resistors are in parallel, and at the same time, switch the current conditioning circuit to the corresponding target current gear; 2. Then disconnect the corresponding sampling resistor of the previous current gear.
[0065] In summary, in this embodiment, for voltage range switching, specifically, the multiple relationship between the voltage output by the PA module and the output of the digital-to-analog converter is controllably adjusted by a digital potentiometer, so as to complete the switching of the voltage range output part. At the same time, different voltage conditioning circuits are selected through a relay switch to complete the switching of the voltage acquisition path; for current range switching, specifically, a corresponding sampling resistor (i.e., any one of the current sampling resistors such as R1, R2, and R3 included in Figure 5 is selected through a gating switch to complete the switching of the current range output part. At the same time, different current conditioning circuits are selected through a relay switch to complete the switching of the current acquisition path; during the voltage or current range switching process, the output glitches generated during the range switching are eliminated by the voltage-current digital control loop PID.
[0066] In this embodiment, a method for controlling the range switching of a source meter is provided. Figure 6 It is a schematic flowchart of the method for controlling the range switching of a source meter according to an embodiment of the present invention. As Figure 6 shown, the process includes the following steps:
[0067] Step S601, detect the switching action currently triggered by the source meter user.
[0068] It should be noted that the switching action triggered for the source meter in step S601 of this embodiment mainly refers to the adjustment operation or setting operation of the source meter output by the user at the software level, and specifically, the current range switching or voltage range switching of the source meter is flexibly adjusted through a controller.
[0069] Step S602, in response to the switching action, determine the switching type and determine the target electronic device matching the switching type.
[0070] It should be noted that in step S602 of this embodiment, responding to the switching action and then determining the switching type and the target electronic device matching it are mainly realized at the hardware level; among them, the switching type includes current range switching and voltage range switching, and the target electronic device represents any device in the digital loop.
[0071] Step S603, calculate the target control parameter based on the key parameter corresponding to the target electronic device, and perform corresponding control on the source meter based on the target control parameter.
[0072] In this embodiment, the target control parameter is fed back to the controller after passing through the analog-to-digital converter, so that the controller adjusts the corresponding output of the digital-to-analog converter according to the target control parameter.
[0073] It should be noted that when there is no gear shifting operation on the source meter, its corresponding control process includes: the controller receives the feedback data of the analog-to-digital converter in real time, that is, the voltage and current output by the source meter. The relevant setting algorithms running inside the controller compare the feedback data with the corresponding values of the voltage or current set by the user respectively to obtain the adjusted output data, and convert the adjusted output data into the corresponding analog voltage signal through the digital-to-analog converter, and then output it to the power amplifier module for amplification, and finally output it to the output port of the source meter or to the device under test connected to the current sampling resistor through the current sampling resistor to achieve stable control of the device under test. The above process only simply describes one control cycle. In fact, this process runs continuously in a loop to ensure that the final output value of the source meter is exactly equal to the set value.
[0074] The gear shifting control method of the source meter according to the embodiment of the present invention, after detecting that a switching action is triggered on the source meter, determines the switching type corresponding to the switching action, and at the same time determines the target electronic device in the digital loop that matches the switching type, and completes the voltage gear shifting or current gear shifting of the source meter through the hardware action corresponding to the electronic device, which can effectively suppress the output mutation of the source meter, and then helps to maintain the stable output of the device under test, significantly improves the control accuracy of the source meter to a certain extent, and further ensures the test safety.
[0075] It should be noted that the gear shifting in this embodiment includes two ways: voltage gear shifting and current gear shifting. If the gear shifting is voltage gear shifting, refer to Figure 7 According to the schematic diagram of the control process of the voltage gear shifting, it can be seen that this process includes the following steps:
[0076] Step S701, detect the switching action triggered by the user for the source meter currently. For details, please refer to Figure 6 Step S601 of the embodiment shown, which will not be elaborated here.
[0077] Step S702, in response to the switching action, determine the switching type and determine the target electronic device that matches the switching type.
[0078] Specifically, the above step S702 includes:
[0079] Step S7021, in response to the switching action, identify whether the power amplifier module performs output adjustment or whether the voltage conditioning circuit performs switching.
[0080] It should be noted that the output adjustment of the power amplifier module in this embodiment actually means that the gain of the power amplifier module changes.
[0081] In this embodiment, refer to Figure 5, assume the source table contains two voltage levels. Among them, the fixed gain of the PA module corresponding to voltage level I is K 1 , then the output voltage V2 of the PA module 1 =K 1 ×V1 1 , where V1 is the output voltage of the digital-to-analog converter; the fixed gain of the PA module corresponding to voltage level II is K 2 , then the output voltage V2 of the PA module 2 =K 2 ×V1 2 . When the source table triggers a voltage level switch, that is, from voltage level I to voltage level II, the voltage difference at the output end (i.e., the voltage difference across the load) is V 1-2 =V2 2 –V2 1 =(K 2 ×V1 2 )-(K 1 ×V1 1 ); Since the output voltage V1 of the digital-to-analog converter 2 and V1 1 is under the real-time control of the digital loop, assuming that the digital loop does not perform real-time control during the voltage level switch, then V1 2 =V1 1 , therefore, the voltage difference V across the load 1-2 =(K 2 -K 1 )×V1 1 . Note that the output voltage of the source table in the digital loop (i.e., V3) is the same as the voltage across the load. It can be seen that the change in the output voltage during the voltage level switch is only related to the change in the gain of the PA module, and the output voltage of the load can be obtained in real time based on this change and then fed back to the controller.
[0082] It should be noted that with the progress of technology, when the step of the digital potentiometer is small enough, theoretically the corresponding digital loop can adjust the output change caused by the change in the gain of the PA module, and a better voltage level switching effect can be obtained. Specifically, designing a PA module containing a digital potentiometer can continuously adjust the resistance value based on a small granularity, making the change in the gain of the PA module continuous and smooth, thereby effectively preventing the sudden change in the output voltage of the source table caused by the sudden change in gain.
[0083] Step S7022, if it is recognized that the power amplifier module performs output adjustment or the voltage conditioning circuit switches, then determine that the switching type is a voltage level switch.
[0084] In this embodiment, when it is not recognized that the power amplifier module performs output adjustment, return to the step of responding to the switching action and determining the switching type.
[0085] Step S7023, determine that the target electronic device matching the voltage gear switching is the power amplifier module.
[0086] In the embodiment of the present invention, the source meter switching type is determined according to the process of whether the power amplifier module performs gain adjustment or determines whether the voltage conditioning circuit is switched. When the power amplifier module performs gain adjustment or switches the voltage conditioning circuit, it is determined that the switching type is voltage gear switching, which has the significant advantages of simple hardware structure and accurate type determination.
[0087] Step S703, calculate the target control parameter based on the key parameters corresponding to the target electronic device, and perform corresponding control on the source meter based on the target control parameter.
[0088] Specifically, the above step S703 includes:
[0089] Step S7031, obtain the first voltage output from the digital-to-analog converter to the power amplifier module, and the gain change before and after the output adjustment of the power amplifier module.
[0090] It should be noted that gain, as an important performance index of the power amplifier, represents the amplification multiple of the output signal after the input signal passes through the amplifier, and can reflect the signal amplification ability of the amplifier (i.e., determines the size of the signal that the power amplifier can amplify), the feedback effect (i.e., affects the feedback effect from the output to the input of the amplifier), and the working efficiency (i.e., determines the efficiency of the amplifier and the signal range that can be amplified).
[0091] In this embodiment, the specific acquisition method of the first voltage and the gain change before and after the output adjustment of the power amplifier module is not limited herein, and can be obtained by referring to the relevant data acquisition methods in the art.
[0092] Step S7032, determine the second voltage through the first voltage and the gain change of the power amplifier module, and check whether the second voltage meets the voltage preset gear threshold corresponding to the current gear.
[0093] In this embodiment, the specific value of the voltage preset gear threshold can be adaptively adjusted based on the actual project requirements and hardware parameters, and is not specifically limited herein.
[0094] Step S7033, if it is satisfied, determine whether the second voltage is greater than the preset change threshold.
[0095] In this embodiment, if the second voltage does not meet the voltage preset gear threshold corresponding to the current gear, it indicates that there is no need to switch the voltage conditioning circuit during the current voltage gear switching.
[0096] It should be noted that the preset change threshold in this embodiment is used to characterize the smooth change of the output before and after the voltage gear switching. That is, if the output voltage after switching is greater than the preset change threshold, it is considered that the output voltage changes greatly after the voltage gear switching. To ensure the stable output of the source meter before and after the gear switching, it is necessary to use the stable current in the loop for corresponding adjustment. That is, it is necessary to switch the voltage conditioning circuit and determine whether it is necessary to use the corresponding current conditioning circuit to collect the output voltage of the device under test according to the current working mode of the source meter. Specifically, when the source meter is currently in the current source working mode, the output current set by the user is determined as the target control parameter; when the source meter is currently in the voltage source working mode and the source meter is connected to the device under test, the corresponding current conditioning circuit is used to collect the output current of the device under test, and the output current is determined as the target control parameter; if the output voltage after switching is not greater than the preset change threshold, it is considered that the voltage conditioning circuit is not switched after the voltage gear switching. At this time, the output voltage change is small and can be ignored, which indicates that the voltage is stable, and the corresponding adjustment can be made using it to ensure the stable output at both ends of the load. Specifically, when the source meter is currently in the current source working mode and the source meter is connected to the device under test, the corresponding voltage conditioning circuit is used to collect the output voltage of the device under test, and the output voltage is determined as the target control parameter; when the source meter is currently in the voltage source working mode, the output voltage set by the user is determined as the target control parameter.
[0097] In this embodiment, the specific value of the preset change threshold can be set as a dynamic value, that is, it is determined by the maximum acquisition voltage of the voltage conditioning circuit. It should be noted that the process of determining the value of the preset change threshold is completed in the hardware design stage. For example, the preset change threshold is dynamically adjusted according to the theoretical calculation of the maximum voltage output glitch of the source meter to avoid the output voltage fluctuation caused by the voltage gear switching, and further avoid triggering unnecessary current acquisition operations. Specifically, the process of determining the value of the preset change threshold includes:
[0098] 1. First, calculate the maximum voltage output glitch when switching from one voltage range to another theoretically based on the sampling resistor values and the current value at different ranges. Then, monitor the voltage range switching operation in real time. Once a switch is detected, read the preset change threshold adjustment factor stored in advance related to the current working mode or environmental conditions. Then, compare and adjust the maximum voltage output glitch after corresponding adjustment based on the preset change threshold adjustment factor with the original preset change threshold to obtain a new preset change threshold. For example: Based on the sampling resistor values at different ranges and the current value, calculate that the maximum voltage output glitch when switching from voltage range A to voltage range B is 5 mV. The switching operation from voltage range A to voltage range B is monitored in real time, and the preset change threshold adjustment factor related to the current working mode (such as high-precision mode) stored in advance is read as 1.2. The original preset change threshold is 4 mV. Adjust the maximum voltage output glitch of 5 mV based on this preset change threshold adjustment factor of 1.2, and the adjusted value is 5 mV × 1.2 = 6 mV. Compare this 6 mV with the original preset change threshold of 4 mV. Since 6 mV is greater than 4 mV, adjust the original preset change threshold to 6 mV, thus obtaining a new preset change threshold of 6 mV.
[0099] 2. During the voltage range switching process, continuously compare the real-time second voltage with the new preset change threshold. Only when the second voltage actually exceeds the adjusted preset change threshold, trigger the switching of the corresponding current conditioning circuit or collect the output current of the device under test. That is, during the voltage range switching process, if it is recognized that the second voltage exceeds the preset change threshold, while switching the voltage conditioning circuit, determine whether to use the current in the current loop as the target control parameter.
[0100] In the embodiments of the present invention, through the dynamic adjustment of the preset change threshold in the hardware design stage, it can effectively ensure the accurate acquisition of the target control parameter when switching voltage ranges, thereby improving the control accuracy of the source meter, helping to improve the output stability of the device under test, and at the same time ensuring the test safety.
[0101] Step S7034, when the second voltage is greater than the preset change threshold, switch the voltage conditioning circuit; if the source meter is currently in the current source working mode, determine the preset output current as the target control parameter; if the source meter is currently in the voltage source working mode and the source meter is connected to the device under test, use the corresponding current conditioning circuit to collect the output current of the device under test, and determine the output current as the target control parameter.
[0102] It should be noted that the preset output current is the output current set by the user, and its specific value is adaptively adjusted according to the actual user needs.
[0103] Step S7035: When the second voltage is not greater than the preset change threshold, do not switch the voltage conditioning circuit. If the source meter is currently in the current source operating mode and there is a device under test connected to the source meter, use the corresponding current conditioning circuit to collect the output current of the device under test, and determine the output current as the target control parameter. If the source meter is currently in the voltage source operating mode, determine the preset output voltage as the target control parameter.
[0104] It should be noted that the preset output voltage is the output voltage set by the user, and its specific value is adaptively adjusted according to the actual user requirements.
[0105] In this embodiment, considering the situation where the output voltage changes little before and after the voltage range switch, when the second voltage is not greater than the preset change threshold, there is no need to switch the voltage conditioning circuit. At this time, the output control mode of the source meter remains unchanged, and only the gain of the power amplifier needs to be adjusted to complete the voltage range switch, which effectively suppresses the output mutation of the source meter to a certain extent and helps to maintain the stable output of the device under test.
[0106] Step S7036: Perform corresponding control on the source meter based on the target control parameter.
[0107] In the embodiment of the present invention, when the source meter triggers a voltage range switch, the second voltage after the switch is determined by obtaining the first voltage output by the digital-to-analog converter and the gain change before and after the output adjustment of the power amplifier module, and at the same time, it is verified whether the second voltage meets the corresponding range of the current range setting, that is, the voltage preset range threshold. When it meets the corresponding range, a determination of the change magnitude before and after the voltage range switch is added, that is, the determination of the magnitude relationship between the second voltage and the set preset change threshold. When the second voltage is greater than the preset change threshold, it is necessary to switch the voltage conditioning circuit, and the corresponding target control parameter is determined according to the current operating mode of the source meter, which can accurately obtain the source meter control parameter and maintain the stable output of the device under test to a certain extent.
[0108] In this embodiment, if the range switch is a current range switch, referring to Figure 8 the flow schematic diagram of the current range switch control, it can be seen that the process includes the following steps:
[0109] Step S801: Detect the switching action triggered by the user for the source meter. For details, please refer to Figure 6 Step S601 of the embodiment shown, which will not be elaborated here.
[0110] Step S802: Respond to the switching action, determine the switching type, and determine the target electronic device matching the switching type.
[0111] Specifically, the above step S802 includes:
[0112] Step S8021: In response to the switching action, obtain the first sampling resistor of the source meter before the switching action is executed.
[0113] It should be noted that the current gear switching in this embodiment is essentially as follows: After the gear is switched, the corresponding sampling resistor is first connected to the digital loop and forms a parallel connection with the corresponding sampling resistor before the switching, and then the resistance value change process of the corresponding sampling resistor before the gear switching is instantaneously disconnected.
[0114] In this embodiment, referring to Figure 5 , assuming that the source meter includes two current gears, and the output current of the source meter corresponding to the current gear I is I, then theoretically, when switching from the current gear I to the current gear II, the maximum voltage output glitch is V 12 =I×(R2×R1) / (R2 + R1), where R1 and R2 are the corresponding current sampling resistors. It should be noted that during the current gear switching process, the actual resistance value of the sampling resistor depends on the characteristic of the solid-state relay (i.e., the gating switch of each sampling resistor) to establish a path. According to the characteristic of resistance parallel connection, the current mainly passes through the path with smaller impedance. Therefore, the smoother the solid-state relay path is established, the greater the output voltage mutation is (i.e., the maximum voltage output glitch during the switching process occurs when the two resistors are in parallel). To ensure the smoothness of the loop current, it is necessary to ensure the smoothness of the voltage across the load, that is, the voltage output of the source meter is smooth. After selecting a suitable solid-state relay, a certain gear switching processing strategy is required to ensure a smooth voltage output, that is, adjust the corresponding parameters according to U = IR to make U in a stable state.
[0115] Step S8022: If it is recognized that the second sampling resistor is instantaneously disconnected from the first sampling resistor or the switching of the current conditioning circuit after being connected in parallel with the first sampling resistor, determine that the switching type is current gear switching, where the second sampling resistor is the sampling resistor that meets the current preset gear threshold.
[0116] In this embodiment, the specific value of the current preset gear threshold is adaptively adjusted based on actual requirements and will not be elaborated here.
[0117] Step S8023: Determine that the target electronic device matching the current gear switching is the second sampling resistor.
[0118] In the embodiment of the present invention, for the specific switching type of the source meter, a process of detecting whether the sampling resistor in the digital loop is switched or determining whether the current conditioning circuit is switched is also designed to determine the switching type of the source meter. When the second sampling resistor is instantaneously disconnected from the first sampling resistor or the current conditioning circuit is switched after being connected in parallel with the first sampling resistor, it is determined that the switching type is current gear switching, which has the advantages of simple design and safety, and can accurately identify the current gear switching of the source meter.
[0119] Step S803: Calculate the target control parameter based on the key parameters corresponding to the target electronic device, and perform corresponding control on the source meter based on the target control parameter.
[0120] Specifically, the above step S803 includes:
[0121] Step S8031: Obtain the target current of the source meter before performing the switching action.
[0122] In this embodiment, the specific method for obtaining the target current is not limited herein and can be obtained by referring to the relevant current acquisition methods in the art. For example, an ammeter can be used to measure the current magnitude, which is only for illustrative purposes.
[0123] Step S8032: Calculate the parallel resistance value of the second sampling resistor and the first sampling resistor.
[0124] In this embodiment, the parallel resistance value of the second sampling resistor and the first sampling resistor can be obtained according to relevant formulas. For example, when two resistors R1 and R2 are in parallel, the parallel resistance value is R = (R1 × R2) / (R1 + R2).
[0125] Step S8033: Calculate the third voltage based on the target current and the parallel resistance value.
[0126] Step S8034: When the third voltage satisfies the preset fluctuation threshold range, if the source meter is currently in the current source working mode and the source meter is externally connected to the device under test, use the target voltage conditioning circuit to collect the output voltage of the device under test, and determine the output voltage as the target control parameter; if the source meter is currently in the voltage source working mode, determine the preset output voltage as the target control parameter; wherein, the target voltage conditioning circuit is adaptively determined according to the output of the power amplifier module after the switching action.
[0127] In this embodiment, the preset fluctuation threshold range is used to represent the reasonable value range of the sampling resistor, and its specific value can be adaptively adjusted according to actual needs.
[0128] Step S8035: Perform corresponding control on the source meter based on the target control parameter.
[0129] In this embodiment, for the relevant content of the control in step S8035, refer to the foregoing, and it will not be repeated here.
[0130] In the embodiment of the present invention, when the source meter triggers a current gear shift, by obtaining the target current before the switching action is executed and the parallel resistance values of the sampling resistors corresponding to before and after the switching, the third voltage is calculated based on the target current and the parallel resistance value, and the rationality of the selection of the sampling resistor is verified based on the relationship between the third voltage and the preset fluctuation threshold range. That is, according to the output change amount reflected by the third voltage, the resistance value of the sampling resistor can be adaptively adjusted based on this reference output change amount at the hardware design stage, thereby reducing the output glitch. At the same time, when switching the current conditioning circuit, the corresponding target control parameters are determined according to the current working mode of the source meter, and the source meter control parameters can be accurately obtained, reducing the output fluctuation or mutation of the source meter to a certain extent, thereby maintaining the stable output of the device under test and improving the precise control of the source meter.
[0131] In a specific embodiment, considering that in practical applications, when the source meter is used as a signal source, it includes two working modes: a voltage source (output voltage) and a current source (output current). Therefore, four corresponding gear switching strategies are designed in this embodiment. It should be noted that under different working modes of the source meter, for the same gear switching type, the switching control process is the same.
[0132] In this embodiment, the two switching control processes of the source meter include:
[0133] 1. Voltage gear switching process: The voltage-current digital control loop PID, abbreviated as PID, focuses on the voltage output gain and the voltage conditioning circuit, that is, the voltage change across the load.
[0134] 2. Current gear switching process: The control parameter that PID focuses on is the voltage across the load (that is, the control parameter that PID focuses on is the current flowing through the load, and according to Ohm's law, the voltage across the load can also be focused on). The differential pressure value is the maximum voltage output glitch V when theoretically switching from current gear I to current gear II in the previous content. 12 =I×(R2×R1) / (R2+R1)”.
[0135] Considering that in practical applications, when the source meter is used as a signal source, it includes two working modes: a voltage source (output voltage) and a current source (output current). Therefore, four corresponding gear switching strategies are designed in this embodiment (that is, when switching gears, in order to ensure that the output across the load remains unchanged, starting from this point, gear switching can be divided into four cases). It should be noted that under different working modes of the source meter, for the same gear switching type, the switching control process is the same. The four gear switching strategies specifically include:
[0136] 1. Switch the voltage gear considering the output voltage (that is, the voltage output gain is unstable or the voltage conditioning circuit is switched, but the sampling resistor and the current conditioning circuit are stable).
[0137] In this embodiment, when the voltage gear is switched, the digital potentiometer is adjusted accordingly, and the voltage at the output terminal of the PA module changes accordingly. At this time, the PID can be based on the output voltage of the voltage source; after the digital potentiometer adjustment is completed, before switching the corresponding voltage conditioning circuit, the current of the current loop established by the PID can be switched (that is, the current loop of the current digital loop is adjusted from the voltage loop to the current loop, and the loop current is collected for corresponding control); or the loop can be temporarily opened when the voltage conditioning circuit is switched (that is, the feedback process of feeding back the output voltage across the load to the controller is aborted).
[0138] In this embodiment, the control result of the voltage gear switching can be referred to Figure 9 and Figure 10 . It should be noted that Figure 9 and Figure 10 For the horizontal axis X in the two corresponding figures, it is time, and for the vertical axis Y, it is voltage. As can be seen from the figure, thanks to the gentle and continuous change of the output gain of the PA module and the gear switching strategy, when mounted and unloaded, there are almost no spikes at the output during the voltage gear switching process (that is, the data trend in the figure is gentle), or the difference in output voltage is within the gear accuracy range. This gear switching strategy can significantly improve the test efficiency and ensure the safety of the system. It should be noted that when there is no loop control, the data trend in the figure reflects the change of the output voltage of the hardware itself. It can be seen that the output voltage changes slowly, and this change process reflects the change of the gain of the PA module.
[0139] 2. Consider switching the current gear when considering the output voltage (that is, the current is unstable, the voltage is stable, and the control needs to keep the voltage unchanged, so as not to affect the output of the source meter).
[0140] In this embodiment, when the current gear is switched, to ensure that the voltage across the load remains unchanged, the PID output voltage is maintained throughout the current gear switching process (that is, "the maximum voltage output spike V 12 =I×(R2×R1) / (R2+R1)" when switching from current gear I to current gear II in theory). The control result of the current gear switching can be referred to Figure 11 and Figure 12 . Figure 11 and Figure 12 are both oscilloscope screenshots. X1 represents the moment when the switching action starts, X2 represents the moment when the spike adjustment is completed during the switching, the difference ΔX between X2 and X1 represents the duration of the gear switching action, Y1 represents the voltage when the output is stable, Y2 represents the maximum output voltage during the switching, and the difference ΔY between Y2 and Y1 represents the voltage of the maximum spike. It should be noted that Figure 9 and Figure 10 For the relevant indicators in, they can also be understood adaptively according to the meaning represented by Figure 11 and Figure 12 .
[0141] It should be noted that Figure 11 is a schematic diagram of the result of current gear switching with loop control; Figure 12 is a schematic diagram of the result of current gear switching without loop control, Figure 11 and Figure 12 For both of the two figures, the horizontal axis X is time, and the vertical axis Y is voltage. Figure 11 and Figure 12 These two figures are a comparison of the current gear switching effects with an output of 10 mA and an external resistance of 200 Ω. For the current gear switching with loop control, the maximum glitch is 3.75 mA (the value is obtained based on Figure 11 it can be seen from that the difference ΔY between Y2 and Y1 is 0.75 V, so the maximum glitch of the current switching with loop control is 0.75 V / 200 Ω = 3.75 mA). In eliminating the output glitch, it is affected by the current regulation strategy. If the current regulation speed is increased, the output glitch will be eliminated faster, and the time can be flexibly modified according to actual requirements. The short duration and small amplitude of the glitch can effectively improve the safety of the system and meet a wider range of application scenarios. Further, it can be seen that there is a sudden change in the output voltage during the establishment of the solid-state relay path. When there is loop control, the maximum value of the output voltage glitch is lower than that without loop control, and the loop control can quickly stabilize the output.
[0142] 3. Consider switching the voltage gear when considering the output current (that is, the voltage output gain is unstable or the voltage conditioning circuit is switched, but the sampling resistor and the current conditioning circuit are stable).
[0143] In this embodiment, ensuring that the voltage across the load remains unchanged can also be reflected as keeping the current in the loop unchanged. At this time, the PID output current is maintained throughout the process. For related content, refer to the first gear switching strategy in the previous text.
[0144] 4. Consider switching the current gear when considering the output current (that is, the sampling resistor and the current conditioning circuit are unstable, but the voltage output gain is stable or there is no need to switch the voltage conditioning circuit).
[0145] In this embodiment, to ensure that the voltage across the load remains unchanged, the PID outputs the voltage of the current loop throughout the current gear switching process. For related content, refer to the second gear switching strategy in the previous text.
[0146] In summary, in this embodiment, the switching control of the voltage or current range included in the source meter is completed according to a single digital loop in cooperation with corresponding hardware actions. Among them, the voltage range switching is the change of the output gain of the PA module or the switching of the voltage conditioning circuit, and the current range switching is the switching of the sampling resistor or the current conditioning circuit. At the same time, in combination with the working mode of the source meter, four range switching strategies are designed accordingly, so that the range switching output of the source meter has small glitches and fast response. Furthermore, during daily tests, the electrical range of the source meter can be continuously switched, effectively improving the test efficiency of the device under test and protecting the device under test.
[0147] An embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc. Further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor main control chip, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiment is implemented.
[0148] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method for controlling the gear switching of a source meter, characterized in that: The method comprises: Detect the switching action currently triggered for the source table user; In response to the switching action, determining a switching type, and determining a target electronic device matching the switching type; Calculate target control parameters based on key parameters corresponding to the target electronic device, and control the source meter accordingly based on the target control parameters.
2. The method for controlling the gear switching of a source meter according to claim 1, characterized in that: The step of responding to the switching action and determining the switching type includes: In response to the switching action, identifying whether the power amplifier module performs output regulation or whether the voltage conditioning circuit performs switching; If it is identified that the power amplifier module performs output regulation or the voltage conditioning circuit performs switching, the switching type is determined to be voltage gear switching.
3. The method for controlling the gear switching of a source meter according to claim 1, characterized in that: The step of responding to the switching action and determining the switching type includes: In response to the switching action, obtaining a first sampling resistance of the source meter before performing the switching action; If it is identified that the second sampling resistor is connected in parallel with the first sampling resistor and then the first sampling resistor or the current conditioning circuit is instantly disconnected, the switching type is determined to be current gear switching, wherein the second sampling resistor is a sampling resistor corresponding to a preset current gear threshold.
4. The method for controlling the gear switching of a source meter according to claim 2, characterized in that: If the switching type is voltage gear switching, it is determined that the target electronic device is a power amplifier module, and the power amplifier module is used to adjust the amplitude of the output analog signal of the digital-to-analog converter to a voltage preset gear threshold corresponding to the current gear; the target control parameter is calculated based on the key parameters corresponding to the target electronic device, including: Acquire a first voltage outputted by a digital-to-analog converter to the power amplifier module, and a gain change before and after output adjustment of the power amplifier module; Determining a second voltage by using the first voltage and the gain change of the power amplifier module, and verifying whether the second voltage satisfies a voltage preset gear threshold corresponding to a current gear; If satisfied, determining whether the second voltage is greater than a preset change threshold; When the second voltage is greater than a preset change threshold, the voltage conditioning circuit is switched; if the source meter is currently in a current source working mode, the preset output current is determined as the target control parameter; if the source meter is currently in a voltage source working mode and the source meter is externally connected to a device under test, the output current of the device under test is collected using a corresponding current conditioning circuit, and the output current is determined as the target control parameter.
5. The method for controlling the gear switching of a source meter according to claim 4, characterized in that: The method further comprises: When the second voltage is not greater than a preset change threshold, the voltage conditioning circuit is not switched; if the source meter is currently in a current source working mode and the source meter is connected to a device under test externally, the output current of the device under test is collected using a corresponding current conditioning circuit, and the output current is determined as a target control parameter; if the source meter is currently in a voltage source working mode, the preset output voltage is determined as a target control parameter.
6. The method for controlling the gear switching of a source meter according to claim 3, characterized in that: If the switching type is current gear switching, determining that the target electronic device is a second sampling resistor; and calculating the target control parameter based on the key parameter corresponding to the target electronic device, including: Obtaining a target current of the source meter before performing a switching action; Calculating the parallel resistance of the second sampling resistor and the first sampling resistor; Calculating a third voltage based on the target current and the parallel resistance; When the third voltage meets the preset fluctuation threshold range, if the source meter is currently in the current source working mode and the source meter is connected to the device to be tested externally, the output voltage of the device to be tested is collected by using the target voltage conditioning circuit, and the output voltage is determined as the target control parameter; if the source meter is currently in the voltage source working mode, the preset output voltage is determined as the target control parameter; wherein the target voltage conditioning circuit is determined according to the output adaptability of the power amplifier module after the switching action.
7. A source meter, characterized in that: The source meter includes: a controller, a power amplifier module, a resistance selection module, a current conditioning circuit and a voltage conditioning circuit, and the components of the source meter are interconnected to form a digital loop; wherein, the output end of the controller is connected to the input end of the power amplifier module through a digital-to-analog converter, the resistance selection module includes a plurality of sampling resistors, the output end of the power amplifier module is connected to any selected sampling resistor in the resistance selection module, the output end of each of the sampling resistors is connected to the current conditioning circuit and the voltage conditioning circuit, the output ends of the current conditioning circuit and the voltage conditioning circuit are both connected to the analog-to-digital converter, and the output end of the analog-to-digital converter is connected to the controller; wherein, the controller is used to execute the gear switching control method of the source meter according to any one of claims 1 to 6.
8. The source meter according to claim 7, characterized in that: The power amplifier module includes a digital potentiometer and an amplifier, which are used to adjust the amplitude of the output analog signal of the digital-to-analog converter to a preset gear threshold corresponding to the current gear.
9. A gear shift control system, characterized in that: The system comprises the source meter according to any one of claims 7 to 8 and a device under test, wherein the source meter is used to execute the gear switching control method of the source meter according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the gear switching control method of the source meter according to any one of claims 1 to 6.
Citation Information
Patent Citations
High-precision source measuring unit
CN118914654A