Program control instrument driving system and method

Through the device type management, function management, function editing and adaptive device management modules of the program-controlled instrument drive system, the complex problems of redundant development and debugging of the instrument drive system in the automatic test system are solved, rapid development and efficient debugging are achieved, and the efficiency is improved Automated testing efficiency.

CN118550815APending Publication Date: 2024-08-27SOUTHWEST CHINA RES INST OF ELECTRONICS EQUIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410482513.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-22
Publication Date
2024-08-27

AI Technical Summary

Technical Problem

In the process of automatic test software development and debugging, the design and development process of adding, modifying, and deleting instrument drive systems of the same type, different manufacturers, and different models requires modifying the code, resulting in the generation of redundant and repeated codes, making debugging complex and time-consuming. , and different automatic test systems have different requirements for program-controlled instruments, resulting in inconsistent versions and chaotic management.

Method used

A program-controlled instrument driver system is designed, including a device type management module, a function management module, a function editing module, an adapting device management module, and a function debugging management module. It uses a visual interface to add, modify, and delete instrument types in a zero-code manner. and functional functions, customize SCPI instructions and execution sequences, support automatic test software calls, and perform SCPI instruction debugging through the functional debugging management module.

Benefits of technology

It effectively solves the problems of repeated development, complex debugging, and chaotic version management, realizes the rapid development of program-controlled instrument drivers, improves the development and debugging efficiency of automatic test systems, simplifies instrument control, and reduces the development cycle and low reuse rate. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118550815A
    Figure CN118550815A
Patent Text Reader

Abstract

The invention discloses a program-controlled instrument driving system and method, an equipment type management module adds, modifies and deletes a large class of an instrument or a subclass in the large class of the instrument, a function management module adds, modifies and deletes a performance function of the instrument, and a function editing module customizes the name, instruction, delay and execution sequence of the performance function. The adaptive equipment management module adds, modifies and deletes equipment manufacturer and adaptive equipment model information adapted to the instrument, and the function debugging management module establishes connection with the instrument, issues an SCPI instruction to the instrument, receives and displays the information of the instrument, and debugs a performance function. The method can solve the problems of long development cycle, low system reuse rate and development process redundancy of the automatic test system caused by the problems of repeated development, complex debugging process, disordered version management and the like, and finally realizes rapid development of program control instrument drive and support of rapid development, debugging and use of the automatic test system, thereby achieving the purpose of effectively improving the automatic test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of automatic testing technology, and in particular to a program-controlled instrument driving system and method. Background Art

[0002] With the rapid development of electronic information technology, the development cycle of electronic information products is getting shorter and shorter, the variety and derivative types are increasing, and the demand for testing at all stages is growing. At present, in the process of automatic product testing, it is necessary to automatically control various instruments such as spectrum analyzers, signal generators, power meters, vector network analyzers, etc. Figure 1 The diagram shows a product automatic test framework in the prior art. The test resources include a spectrum analyzer, a signal generator source, a power meter, a vector network analyzer, etc., which are connected to the product under test using an RF cable and interact with the test software using a GPIB control cable. The test software interacts with the product under test through a communication bus.

[0003] The automatic test software is the core of the automatic operation of the automatic test system. The automatic test software uses the standard commands for programmable instruments (SCPI) and communicates with the instrument through the general purpose interface bus (GPIB). SCPI is a new generation of instrument control syntax based on IEEE488.2. By using SCPI, users can control instruments from any manufacturer without having to learn the command syntax of each instrument. Figure 2 The schematic diagram of the structure of the SCPI instrument model in the prior art is shown. The measurement function is realized by receiving the measurement signal through the signal routing, and the measurement signal is sent out through the data bus after being formatted. The analog signal is sent by the signal routing as the instrument program control command to realize the control of the instrument, and the same function of different test instruments has the same command form, so that the test instruments are compatible in the horizontal direction; at the same time, SCPI uses the same command to control the same function in the same type of instruments, so that the instruments are compatible in the vertical direction.

[0004] At present, in the process of automatic test software development and debugging, it is necessary to design and develop the driving system of the program-controlled instrument to realize the function of controlling the instrument. At present, there are the following main problems in designing and developing the driving system of the program-controlled instrument: First, the design and development process of adding, modifying, deleting and other corresponding drivers of instruments of the same type but different manufacturers and different models need to be realized by modifying the code. Since reusable design is not adopted, a large amount of redundant and repeated code will be generated in the whole design and development process; Second, after completing the design and development of the corresponding driver of a type and a model of instrument, the source code must be debugged to ensure its function. The current debugging mode requires line-by-line debugging using the source code. The whole debugging process is very complicated, time-consuming and labor-intensive; Third, the automatic test system loads the program-controlled instrument driving system in the form of a plug-in, and designs and develops the program-controlled instrument driving system in the form of code. Since different automatic test systems have different requirements for program-controlled instruments, the program-controlled instrument driving system will be modified repeatedly, which will cause problems such as inconsistent versions of different driving systems and chaotic management over time. Summary of the invention

[0005] The purpose of this application is to provide a program-controlled instrument driver system and method in order to overcome the existing technical defects, realize the rapid development of program-controlled instrument drivers, support the rapid development, debugging and use of automatic test systems, and effectively improve the efficiency of automatic testing.

[0006] The purpose of this application is achieved through the following technical solutions:

[0007] In a first aspect, the present application proposes a program-controlled instrument driving system, the system comprising a device type management module, a function management module, a function editing module, an adaptation device management module, and a function debugging management module;

[0008] The device type management module is used to add, modify, and delete a major category of instruments or a subcategory within a major category of instruments;

[0009] The function management module is used to add, modify and delete the function of the instrument, and the function is called by the automatic test software so that the automatic test software can realize the program control of the instrument;

[0010] The function editing module is used to customize the name, SCPI instruction, delay and execution order of the function;

[0011] The adapter device management module is used to add, modify, and delete the device manufacturer and model information of the device adapted by the instrument;

[0012] The function debugging management module is used to establish a connection with the instrument and send SCPI instructions to the instrument, receive and display the information of the instrument, and debug the function.

[0013] In a possible implementation, the device type management module, the function management module, the function editing module, the adaptation device management module, and the function debugging management module all have a visual interface.

[0014] In a possible implementation, the instrument includes one or more of a power meter, a spectrometer, a pulse generator, a spectrum analyzer, a vector network analyzer, and an oscilloscope.

[0015] In a possible implementation, the functional functions include one or more of reset, turn on average, read power value, read peak power in pulse mode, read average power in pulse mode, read maximum power in pulse mode, read minimum power in pulse mode, read rising edge, and read cycle.

[0016] In a second aspect, the present application proposes a program-controlled instrument driving method, which is applied to the program-controlled instrument driving system of the first aspect, wherein the system includes a device type management module, a function management module, a function editing module, an adaptation device management module, and a function debugging management module;

[0017] Add instrument categories in the device type management module, and then add subcategories to each instrument category;

[0018] According to each sub-category, add the device manufacturer and model information of the device to which the instrument is adapted in the adapted device management module;

[0019] Add instrument function in function management module according to each subclass, and debug the function using function debugging management module;

[0020] If debugging is correct, add the SCPI instructions corresponding to the function to the function editing module.

[0021] In a third aspect, the present application further proposes a computer device, comprising a processor and a memory, wherein the memory stores a computer program, and the computer program is loaded and executed by the processor to implement the program-controlled instrument driving method as described in the second aspect.

[0022] In a fourth aspect, the present application further proposes a computer-readable storage medium, in which a computer program is stored. The computer program is loaded and executed by a processor to implement the program-controlled instrument driving method as described in the second aspect.

[0023] The above-mentioned main scheme of the present application and its further options can be freely combined to form multiple schemes, all of which are schemes that can be adopted and claimed for protection in the present application; and in the present application, (non-conflicting options) options and other options can also be freely combined. After understanding the scheme of the present application, those skilled in the art can understand that there are multiple combinations based on the prior art and common knowledge, all of which are technical schemes to be protected by the present application, and they are not exhaustively listed here.

[0024] The present application discloses a program-controlled instrument driving system and method. The device type management module adds, modifies, and deletes the major category of the instrument or the subcategory in the major category of the instrument. The function management module adds, modifies, and deletes the function function of the instrument. The function editing module customizes the name, instruction, delay, and execution order of the function function. The adaptation device management module adds, modifies, and deletes the device manufacturer and model information of the adaptation device adapted by the instrument. The function debugging management module establishes a connection with the instrument and sends SCPI instructions to the instrument, receives and displays the information of the instrument, and debugs the function function. The program-controlled instrument driving system can solve the problems of repeated development, complex debugging process, chaotic version management, etc., which lead to long development cycle, low system reuse rate, and redundant development process of the automatic test system. Finally, it realizes the rapid development of program-controlled instrument drivers, supports the rapid development, debugging, and use of the automatic test system, and effectively improves the efficiency of automatic testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0026] Figure 1 The figure shows a product automatic testing framework diagram in the prior art.

[0027] Figure 2 The structure diagram of the SCPI instrument model in the prior art is shown.

[0028] Figure 3 A schematic diagram of the structure of a program-controlled instrument drive system proposed in an embodiment of the present application is shown.

[0029] Figure 4 A schematic diagram of a visualization interface of a program-controlled instrument drive system proposed in an embodiment of the present application is shown.

[0030] Figure 5 A schematic diagram of the interface of the newly added device type proposed in the embodiment of the present application is shown.

[0031] Figure 6A schematic diagram of the interface of the newly added subclass proposed in the embodiment of the present application is shown.

[0032] Figure 7 A schematic diagram of the interface of the newly added functions proposed in the embodiment of the present application is shown.

[0033] Figure 8 A schematic diagram of an interface for function debugging proposed in an embodiment of the present application is shown.

[0034] Fig. 9 An application scenario diagram of the program-controlled instrument drive system in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0036] Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making any creative work shall fall within the scope of protection of this application.

[0037] At present, in the process of automatic test software development and debugging, it is necessary to design and develop the driving system of program-controlled instruments to realize the functions of controlling instruments. At present, there are the following main problems in designing and developing the driving system of program-controlled instruments: First, the design and development processes such as adding, modifying, and deleting corresponding drivers of instruments of the same type but from different manufacturers and different models need to be realized by modifying the code. Since reusable design is not adopted, a large amount of redundant and repeated code will be generated in the entire design and development process; Second, after completing the design and development of the corresponding driver of a type and a model of instrument, the source code must be debugged to ensure its function. The current debugging mode requires line-by-line debugging using the source code. The entire debugging process is very complicated, time-consuming and labor-intensive; Third, the automatic test system loads the program-controlled instrument driving system in the form of a plug-in, and designs and develops the program-controlled instrument driving system in the form of code. Since different automatic test systems have different requirements for program-controlled instruments, the program-controlled instrument driving system will be modified repeatedly, which will cause problems such as inconsistent versions of different driving systems and chaotic management over time.

[0038] Therefore, in order to solve the above problems, the embodiment of the present application proposes a program-controlled instrument driving system and method, which encapsulates the program-controlled instructions of the instrument into a driving function component of the program-controlled instrument. It can solve the problems of repeated development, complex debugging process, chaotic version management, etc., which lead to long development cycle, low system reuse rate, and redundant development process of the automatic test system, and finally realize the purpose of rapid development of program-controlled instrument drivers, support rapid development, debugging, and use of automatic test systems, and effectively improve the efficiency of automatic testing. It is described in detail below.

[0039] Please refer to Figure 3 , Figure 3 A schematic diagram of the structure of the program-controlled instrument driving system proposed in an embodiment of the present application is shown, the system includes a device type management module, a function management module, a function editing module, an adaptation device management module, and a function debugging management module;

[0040] The equipment type management module is used to add, modify, and delete the main category of instruments or the subcategories within the main category of instruments;

[0041] Function management module, used to add, modify and delete instrument functions, which are called by automatic test software so that the automatic test software can realize program-controlled instrument;

[0042] Function editing module, used to customize the function name, SCPI command, delay and execution order;

[0043] The adapter device management module is used to add, modify, and delete the device manufacturer and model information that the instrument is compatible with;

[0044] The function debugging management module is used to establish a connection with the instrument and send SCPI commands to the instrument, receive and display the instrument's information, and debug the function.

[0045] The device type management module, function management module, function editing module, adaptation device management module, and function debugging management module all have visual interfaces. Figure 3 Please refer to Figure 4 , Figure 4 A schematic diagram of a visual interface of a program-controlled instrument drive system proposed in an embodiment of the present application is shown, and a user can implement function expansion in a zero-code manner.

[0046] The device type management module displays the major categories of instruments and the subcategories within each major category. Major instrument categories can be added, modified, and deleted, such as adding power meters. Subcategories within major instrument categories can also be added, modified, and deleted, such as adding Agilent power meter series and Amway power meter series to the power meter category.

[0047] The instrument includes one or more of a power meter, a spectrometer, a pulse generator, a spectrum analyzer, a vector network analyzer, and an oscilloscope.

[0048] For each instrument category, the function management module is used to add, modify and delete function functions, such as adding reset, opening average, and reading power value. Function functions include reset, opening average, reading power value, reading peak power in pulse mode, reading average power in pulse mode, reading maximum power in pulse mode, reading minimum power in pulse mode, reading rising edge, and reading cycle. Function functions are adapted to different manufacturers and models of the instrument series, and can be provided to automatic test software for calling, so that the automatic test software can achieve the effect of programmable instruments without paying attention to specific function instructions.

[0049] The function editing module customizes the name, instruction, delay, execution order and other information of the function function added to the function management unit. The function editing module is also used to define the function name, matching expression, return expression, return type and function description.

[0050] The function editing module is also used to add sequences, formatting commands, delay times, and instruction descriptions. For example, if a reset function is added to the function management module, the corresponding SCPI instruction "*RST" is added to the function implementation position, and the delay time, instruction description, and other information of the instruction can be added.

[0051] The adapter device management module adds, modifies, and deletes information such as the manufacturer and model of an instrument series. For example, for the Agilent power meter series in the power meter category, the adapter device information with the manufacturer "Agilent Technologies" and the model "N1911A" is added.

[0052] The function debugging management module establishes a connection with the instrument, issues SCPI instructions corresponding to a specific function, and can also receive information returned by the display instrument to debug the function.

[0053] Figure 5 A schematic diagram of the interface for adding a new device type proposed in an embodiment of the present application is shown. Click the device type management module, and new types, new models, new functions, and deletion options will appear. The new types are large categories of new devices, such as power meters, spectrometers, pulse generators, spectrum analyzers, and so on. Right-click anywhere in the device type management unit to expand the menu shown below. Click the "New Type" option, and a device type named "Default Category" will appear at the bottom of the function unit. You can double-click the newly added "Default Category" category and modify its name to the target new name to complete the addition of the device type.

[0054] Figure 6 The interface diagram of the newly added subcategory proposed in the embodiment of the present application is shown. Click the instrument category of the device type management module, and the option of adding a new model will appear. The newly added device subcategory is a subcategory of the device category. For the power meter category, for example, the Agilent power meter series, Amway power meter series, and so on are added. In the device type management unit, double-click the newly created "Default Category", the device type and change its name to "DC Power Supply", select the "DC Power Supply" device type, right-click the mouse, expand the menu and click the "New Model" option, and a device subcategory named "DC Power Supply 1" will appear at the bottom of the function unit. You can double-click the newly added "DC Power Supply 1" device subcategory, and modify its name to the target new name to complete the addition of the device subcategory.

[0055] Figure 7 The interface diagram of the newly added function proposed in the embodiment of the present application is shown. Click the option of "Add function", then define the reading voltage, and set the function implementation and adaptation device. First, the newly added device function is for the same device subclass, and a new function for the device subclass is added. For example, for the DSO 6000 series subclass of the oscilloscope classification, a new device function of "read voltage" is added. Double-click the newly created "DC Power Supply 1" device subclass in the device type management unit, and change its name to "Agilent N66 Series". After the right-click pop-up menu, click "Add function". In the "Function Management" unit, a new function "Default Function 1" will be added. Double-click the newly created "Default Function 1" function and change its name to "Read Voltage". In the function editing unit, select the return value of the function as needed, and click the "+" sign in the "Function Implementation" section to add the corresponding SCPI instruction; click the "+" sign in the adaptation device management unit to add the corresponding manufacturer and adaptation model to complete the addition of the device function. Figure 7 After the new functions in are completed, the information returned by the instrument is displayed, such as device identification, manufacturer, etc.

[0056] Figure 8The interface diagram of the function debugging proposed in the embodiment of the present application is shown. Click the "Device" option in the function debugging management unit, and a dialog box will pop up. Enter the device handle connected to the instrument in the "Device Identification" and click the "Connect" button. After successfully establishing a connection with the instrument, the button will change to the "Connected" state, and the "Manufacturer", "Device Model", "Serial Number", and "Firmware Version Number" will be automatically filled with the read content. Fill in the SCPI instructions to be issued in the "Downlink Data" section, and observe whether the instrument responds according to the content of the SCPI instructions, so as to debug and determine the accuracy of the SCPI instructions. The debugging results can be applied to the newly added device function part, and the content of the device function part can be adjusted after confirming the completion of accurate SCPI instructions and usage.

[0057] In a possible implementation, the automatic test system calls the present invention as a driver component of the instrument program control to implement the code instance of the instrument program control function. Through simple interface calls, it can realize instrument resource acquisition, instrument initialization (establishing a connection with the instrument), instrument function definition, instrument instruction issuance, instrument execution result acquisition and other functions. By using the system of the present invention, the development difficulty and development cycle of the instrument control part of the automatic test system are greatly reduced, and the automatic test efficiency is improved. An example of an automatic test system call proposed in this application is:

[0058] Resource sig = GetResource ("signal source"); / / Get the signal source type;

[0059] Resource spe = GetResource ("spectrum analyzer"); / / Get the type of spectrum analyzer;

[0060] sig.Init(); / / Initialize the signal source and establish a connection with the signal source.

[0061] spe.Init(); / / Initialize the spectrum analyzer and establish a connection with the spectrum analyzer.

[0062] sig.Exec("Set starting frequency"); / / Set the starting frequency of the signal source.

[0063] sig.Exec("Set end frequency"); / / Set the signal source end frequency.

[0064] sig.Exec("Turn on RF output"); / / Turn on the signal source RF output.

[0065] …

[0066] … / / Other logic that needs to be executed;

[0067] …

[0068] spe.Exec("Open Marker"); / / Open the spectrum analyzer marker.

[0069] spe.Exec("Find Peak"); / / Find peak.

[0070] spe.Exec("Read frequency marker power"); / / Read peak power.

[0071] …

[0072] … / / Other logic that needs to be executed;

[0073] …

[0074] Please refer to Fig. 9 , Fig. 9 An application scenario diagram of the program-controlled instrument driving system in an embodiment of the present application is shown. The program-controlled instrument driving system is connected to the automatic test system, instrument 1 (excitation) and instrument 2 (response) respectively. The automatic test system, instrument 1 (excitation) and instrument 2 (response) are also connected to the product to be tested. During a complete automatic test process, the automatic test system calls the program-controlled instrument driving system to issue a control function. The program-controlled instrument driving system parses the control function into a corresponding SCPI instruction (control instruction) and issues it to the input instrument (instrument 1) of the product to be tested.

[0075] The product to be tested interacts with the automatic test system through the communication bus. After receiving the relevant protocol and under the action of the input stimulus source, the output signal is generated and sent to instrument 2. Then the automatic test system calls the program-controlled instrument driver system and sends the read function. The program-controlled instrument driver system reads the function and parses it into the corresponding SCPI command and sends it to instrument 2 through the product to be tested. Instrument 2 converts it into a read command and reports the response result to the automatic test system through the program-controlled instrument driver system. At this point, the automatic test process is completed.

[0076] Compared with the prior art, the embodiments of the present application have the following beneficial effects:

[0077] First, the driver information of the program-controlled instrument can be added, modified, and deleted without any code in the form of a visual interface.

[0078] Second, the SCPI command debugging of program-controlled instruments is realized in the form of a visual interface.

[0079] Third, it is provided to the automatic testing software in the form of functional components.

[0080] Fourth, it solves the problems of long automatic test development cycle and complicated debugging process caused by repeated development, complex debugging and chaotic version management of programmable instrument drive systems, improves development efficiency and testing efficiency, and gradually meets the growing testing needs.

[0081] A possible implementation of a program-controlled instrument driving method is given below, which is used to execute the various execution steps and corresponding technical effects of the program-controlled instrument driving device shown in the above embodiments and possible implementations. The method is applied to the above program-controlled instrument driving system, which includes a device type management module, a function management module, a function editing module, an adaptation device management module, and a function debugging management module;

[0082] Add instrument categories in the device type management module, and then add subcategories to each instrument category;

[0083] According to each sub-category, add the device manufacturer and model information of the device to which the instrument is adapted in the adapted device management module;

[0084] Add instrument function in function management module according to each subclass, and debug the function using function debugging management module;

[0085] If debugging is correct, add the SCPI instructions corresponding to the function to the function editing module.

[0086] First, add a new instrument category and different instrument series in the device type, add the device information of the series in the adapter device, and for the selected instrument series, add the relevant function functions to be used in the function function list. Each function can use function debugging to debug the instructions corresponding to the function function. After confirming that they are correct, add the instructions to the function implementation list.

[0087] This preferred embodiment provides a computer device, which can implement the steps in the program-controlled instrument driving method provided in the embodiment of the present application. Therefore, the beneficial effects of the program-controlled instrument driving method provided in the embodiment of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0088] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or by controlling related hardware through instructions, and the instructions can be stored in a computer-readable storage medium and loaded and executed by a processor. To this end, an embodiment of the present application provides a storage medium in which a plurality of instructions are stored, and the instructions can be loaded by a processor to execute the steps of the program-controlled instrument driving method provided in the embodiment of the present application.

[0089] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0090] Since the instructions stored in the storage medium can execute the steps in the embodiment of the program-controlled instrument driving method provided in the embodiment of the present application, the beneficial effects that can be achieved by the program-controlled instrument driving method provided in the embodiment of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0091] Therefore, the programmable instrument driver system and method proposed in the embodiments of the present application can not only solve the problems of long automatic test system development cycle, low system reuse rate, and redundant development process caused by repeated development of programmable instrument drivers, complex debugging process, and chaotic version management when developing automatic test systems, but also can realize the rapid development of programmable instrument drivers, support the rapid development, debugging, and use of automatic test systems, and effectively improve the efficiency of automatic testing.

[0092] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A program-controlled instrument drive system, characterized in that: The system includes a device type management module, a function management module, a function editing module, an adaptation device management module, and a function debugging management module; The device type management module is used to add, modify, and delete a major category of instruments or a subcategory within a major category of instruments; The function management module is used to add, modify and delete the function of the instrument, and the function is called by the automatic test software so that the automatic test software can realize the program control of the instrument; The function editing module is used to customize the name, SCPI instruction, delay and execution order of the function; The adapter device management module is used to add, modify, and delete the device manufacturer and model information of the device adapted by the instrument; The function debugging management module is used to establish a connection with the instrument and send SCPI instructions to the instrument, receive and display the information of the instrument, and debug the function.

2. The program-controlled instrument drive system according to claim 1, characterized in that: The device type management module, function management module, function editing module, adaptation device management module, and function debugging management module all have visual interfaces.

3. The program-controlled instrument drive system according to claim 1, characterized in that: The instrument includes one or more of a power meter, a spectrometer, a pulse generator, a spectrum analyzer, a vector network analyzer and an oscilloscope.

4. The program-controlled instrument drive system according to claim 1, characterized in that: The functional functions include one or more of reset, open average, read power value, read peak power in pulse mode, read average power in pulse mode, read maximum power in pulse mode, read minimum power in pulse mode, read rising edge, and read cycle.

5. The program-controlled instrument drive system according to claim 1, characterized in that: The function editing module is also used to define the function name, matching expression, return expression, return type and function description.

6. The program-controlled instrument drive system according to claim 1, characterized in that: The function editing module is also used to add sequences, format commands, delay times and instruction descriptions.

7. A program-controlled instrument driving method, characterized in that: The method is applied to the program-controlled instrument drive system according to claims 1-4, the system comprising a device type management module, a function management module, a function editing module, an adaptation device management module, and a function debugging management module; Add instrument categories in the device type management module, and then add subcategories to each instrument category; According to each sub-category, add the device manufacturer and model information of the device to which the instrument is adapted in the adapted device management module; Add instrument function in function management module according to each subclass, and debug the function using function debugging management module; If debugging is correct, add the SCPI instructions corresponding to the function to the function editing module.

8. A computer device, characterized in that: The computer device comprises a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the program-controlled instrument driving method as claimed in claim 7.

9. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which is loaded and executed by a processor to implement the program-controlled instrument driving method as claimed in claim 7.