An intelligent detection platform system for instruments based on custom scripts

By adopting custom scripts and SCPI instruction set management in the instrument intelligent detection platform system, the problem of insufficient testing process customization and instrument compatibility in the existing technology is solved, and an efficient and flexible detection platform is realized, reducing system upgrade and restructuring costs.

CN117539178BActive Publication Date: 2025-05-23成都玖锦科技有限公司
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311493563.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-10
Publication Date
2025-05-23
Estimated Expiration
2043-11-10

AI Technical Summary

Technical Problem

The existing technology is difficult to achieve customization of the test process and the integration and control compatibility of the instrument, resulting in high costs for system upgrades or reconstruction when replacing equipment or expanding indicator projects.

Method used

It adopts an intelligent instrument detection platform system based on custom scripts, including a general device adaptation module, a custom script language engine module, a test task management module and a physical communication interface module. It realizes testing process customization and instrument compatibility through SCPI instruction set management and a custom script language engine.

Benefits of technology

It realizes high customization of the test process and instrument compatibility, reduces system upgrade and restructuring costs during equipment replacement or indicator project expansion, and improves the universality and flexibility of the testing platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117539178B_ABST
    Figure CN117539178B_ABST
Patent Text Reader

Abstract

The present invention discloses an instrument intelligent detection platform system based on a custom script, including a general device adapter module, a custom script language engine module, a test task management module and a physical communication interface module; the present invention is highly versatile, integrates the main types of modular and desktop instruments, and adapts to mainstream manufacturers and models; highly flexible, can achieve full process customization, can carry out targeted automatic control of standard instruments and non-standard instruments, and supports complex process nesting and expression nesting; taking into account both full-automatic detection and semi-automatic detection, the system PXIe chassis has a built-in standard matrix switch to connect the test instrument and the tested device, which can be automatically switched in the script, or can be semi-automatic detection by confirming the pop-up box without relying on the matrix. The test steps can be edited, and the test process can be guided by text descriptions, wiring diagrams, audio and video, etc., to improve ease of use.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automatic detection of instruments and meters, and in particular to an intelligent detection platform system of instruments and meters based on user-defined scripts. Background Art

[0002] In the field of instrumentation and communications, equipment needs to be tested for indicators before leaving the factory and undergoing maintenance. Traditional manual measurement cannot conduct comprehensive and detailed tests on the working frequency band of the equipment, and traditional automatic detection software platforms are usually customized for a specific model or specific indicators. When the test instrument is changed or the indicator project needs to be expanded, it often costs a lot to upgrade the system or even reconstruct it. For this reason, the present invention proposes an instrumentation intelligent detection platform system based on custom scripts to fully customize the test process and the compatibility of general instruments. Summary of the invention

[0003] The technical problems solved by the present invention are: how to realize the customization of the test process and how to realize the integration and control compatibility of the instruments.

[0004] The present invention solves the above technical problems through the following technical solutions. The present invention includes a universal device adaptation module, a custom script language engine module, a test task management module and a physical communication interface module.

[0005] The universal device adapter module is implemented based on the SCPI (Standard Commands for Programmable Instruments) instruction set, and controls the accompanying test instrument and the device under test through the LAN port, serial port or GPIB.

[0006] Furthermore, the universal device adaptation module is divided into two parts: instrument instruction set management and instrument connection management. The device adaptation management integrates the SCPI instruction set of mainstream manufacturers; the device connection management provides functions such as device address entry, communication mode adaptation and connection status check.

[0007] Furthermore, the instrument instruction set management of the general device adapter module has a tree structure to manage the SCPI instruction set. The first-level directory is the instrument type, including but not limited to: spectrum analyzer, receiver, signal source, network analyzer, power meter, oscilloscope, audio analyzer, electronic switching switch, multimeter, etc.; the second-level directory is the manufacturer of each type of instrument; the third-level directory is the instrument model of each manufacturer; SCPI instruction set management can be performed for instrument type, instrument manufacturer or a specific model of instrument of a manufacturer, including import, export, edit, modify and delete; the SCPI instruction set is a text document, which stores the instruction name and the corresponding SCPI instruction string in the form of key-value pairs.

[0008] Furthermore, the instrument connection management of the universal device adapter module includes three parts: VISA address resolution, communication interface adaptation, and communication protocol adaptation. The applicable communication methods include network port, serial port, GPIB, VXI, USB, etc., among which the network-based data interaction protocols also include Socket, VXI-11 (TCP / IP instrument protocol), and HiSLIP (high-speed LAN instrument protocol). The connection status check is to check whether the communication is normal by regularly querying the instrument status after the connection is established, and give an alarm message when the communication is abnormal.

[0009] Furthermore, the custom script language engine module is divided into two components: a script editor and a script executor. The script edited in the script editor is saved in the database in the form of a general text. When the script is executed, it is parsed and executed by the script parser module;

[0010] Furthermore, in the script editor of the custom script language engine module, flow control syntax and system basic function library are defined, and the content of flow control syntax includes: loop control syntax, branch control syntax, flow nesting syntax, mathematical expression syntax, logical expression syntax, expression nesting syntax, variable declaration syntax, assignment operation syntax, string operation syntax, function call syntax; in addition to the flow control syntax, the instrument SCPI instruction set is encapsulated as a system basic function library, and the SCPI instruction set is selected and switched within the function to achieve the versatility of external scripts. The system basic function library includes: spectrum analyzer control interface function library, signal source control interface function library, network analyzer control interface function library, power meter control interface function library, oscilloscope control interface function library, electronic switching switch control interface function library and multimeter control interface function library, etc.

[0011] Furthermore, the script executor of the custom script language engine module includes the functions of script parsing, script execution, single-step debugging, variable monitoring and result publishing. Script parsing divides the script text into each line, identifies the grammatical content according to the keywords in the statement, extracts the statement block, decomposes the nested statements and expressions, and decomposes the statement into indivisible atomic statements. The execution module then performs function routing to complete the interface and function calls. During the statement execution process, the real-time values ​​of the variables marked as "monitor" and "result" are published through the message center module; the display and control components of the human-computer interface subscribe to the data topics of their concern in the message center module.

[0012] Furthermore, the test task management module includes task information entry, test attachment configuration, test parameter configuration and test result management functions.

[0013] Furthermore, the task information entry function of the test task management module includes test unit information entry, test equipment information entry, test method description, wiring diagram import, and operation video import; after the task information is entered, it can be saved as a test item template for repeated loading and execution.

[0014] Furthermore, the test accessory configuration function of the test task management module includes the following types of accessory options: RF cables, splitters, attenuators and other devices. By selecting the accessory name, the loss of the accessory at each frequency point in the working frequency band is loaded to compensate for the loss generated during the wiring and branching of the equipment.

[0015] Furthermore, the test parameter configuration function of the test task management module includes configuring test items, configuring test item parameters, and configuring test item decision thresholds. Each test item here corresponds to a custom script, and each test item parameter is parsed and extracted from the script text; the system defines some basic general test scripts, including sensitivity test, amplitude-frequency characteristic test, spurious test, noise figure, phase noise test, gain test, intermediate frequency suppression test, 1dB compression power, insertion loss test, image frequency suppression test, isolation test, rectangular coefficient test, standing wave ratio test, second-order intermodulation test and third-order intermodulation test, etc.

[0016] Furthermore, the test result management function of the test task management module can view the records of historical tasks, intermediate data and judgment result data, and can choose to export and print them in the format of PDF and Word documents.

[0017] Furthermore, the physical communication interface module includes a set of PXIe-based chassis and main control board, and the main control board has network port, serial port, USB, and GPIB data interface; the slots of the PXIe chassis are used to insert various modular instrument boards, such as modular spectrum analyzers, modular signal sources, modular network analyzers, etc.; for non-modular desktop instruments, they can also be connected to the main control board through the network and GPIB to achieve universalization and hardware independence.

[0018] Compared with the prior art, the present invention has the following advantages: high versatility, integrating the main types of modular and desktop instruments, and adapting to mainstream manufacturers and models; high flexibility, enabling full process customization, targeted automatic control of both standard and non-standard instruments, and supporting complex process nesting and expression nesting; taking into account both full-automatic detection and semi-automatic detection, the system PXIe chassis has a built-in standard matrix switch to connect the test instrument and the device under test, which can be automatically switched in the script, or semi-automatic detection can be performed without relying on the matrix, through a pop-up box confirmation method. The test steps can be edited, and the test process can be guided by text descriptions, wiring diagrams, audio and video, etc., to improve ease of use. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 Schematic diagram of the system composition of the intelligent detection platform of Example 1 of the present invention;

[0020] Figure 2 This is a flow chart of the operation of the intelligent detection platform system in Example 1 of the present invention;

[0021] Figure 3 This is a schematic diagram of the system composition of the intelligent detection platform of Example 2 of the present invention;

[0022] Figure 4 This is the wiring diagram of the intelligent detection platform of Example 2 of the present invention;

[0023] Figure 5 It is a block diagram of the composition of the custom script language engine module of Example 2 of the present invention;

[0024] Figure 6 This is a block diagram of the custom script syntax composition of Example 2 of the present invention;

[0025] Figure 7 This is a flowchart of the execution of a custom script engine according to Embodiment 2 of the present invention;

[0026] Figure 8 This is a schematic diagram of the instrument instruction set adaptation principle of Embodiment 2 of the present invention;

[0027] Fig. 9 This is a test task execution flow chart of Example 2 of the present invention. DETAILED DESCRIPTION

[0028] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application may be combined with each other. The present application is further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0029] Example 1

[0030] like Figure 1 As shown, an instrument intelligent detection platform system based on custom scripts includes a general device adaptation module, a custom script language engine module, a test task management module and a physical communication interface module.

[0031] The universal device adapter module is implemented based on the SCPI (Standard Commands for Programmable Instruments) instruction set and controls the companion test instrument and the device under test through the LAN port, serial port or GPIB.

[0032] The general device adaptation module is divided into two parts: instrument instruction set management and instrument connection management. The device adaptation management integrates the SCPI instruction sets of mainstream manufacturers; the device connection management provides functions such as device address entry, communication mode adaptation and connection status check.

[0033] The instrument instruction set management of the general device adapter module has a tree structure to manage the SCPI instruction set. The first-level directory is the instrument type, including but not limited to: spectrum analyzer, receiver, signal source, network analyzer, power meter, oscilloscope, audio analyzer, electronic switching switch, multimeter, etc.; the second-level directory is the manufacturer of each type of instrument; the third-level directory is the instrument model of each manufacturer; SCPI instruction set management can be performed for instrument type, instrument manufacturer or a specific model of instrument of a manufacturer, including import, export, edit, modify and delete; the SCPI instruction set is a text document, which stores the instruction name and the corresponding SCPI instruction string in the form of key-value pairs.

[0034] The instrument connection management of the general device adapter module includes three parts: VISA address resolution, communication interface adaptation, and communication protocol adaptation. The applicable communication methods include network port, serial port, GPIB, VXI, USB, etc. Among them, the network-based data interaction protocols also include Socket, VXI-11 (TCP / IP instrument protocol), and HiSLIP (high-speed LAN instrument protocol). The connection status check is to check whether the communication is normal by regularly querying the instrument status after the connection is established, and give an alarm message when the communication is abnormal.

[0035] The custom script language engine module is divided into two parts: the script editor and the script executor. The script edited in the script editor is saved in the database in the form of general text. When the script is executed, it is parsed and executed by the script parser module.

[0036] In the script editor of the custom script language engine module, the flow control syntax and system basic function library are defined. The flow control syntax includes: loop control syntax, branch control syntax, flow nesting syntax, mathematical expression syntax, logical expression syntax, expression nesting syntax, variable declaration syntax, assignment operation syntax, string operation syntax, and function call syntax. In addition to the flow control syntax, the instrument SCPI instruction set is encapsulated as a system basic function library, and the SCPI instruction set is selected and switched within the function to achieve the universality of external scripts. The system basic function library includes: spectrum analyzer control interface function library, signal source control interface function library, network analyzer control interface function library, power meter control interface function library, oscilloscope control interface function library, electronic switching switch control interface function library, and multimeter control interface function library.

[0037] The script executor of the custom script language engine module includes functions such as script parsing, script execution, single-step debugging, variable monitoring, and result publishing. Script parsing splits the script text line by line, identifies the syntax content according to the keywords in the statements, extracts statement blocks, decomposes nested statements and expressions, breaks the statements into atomic statements that cannot be further divided, and then the execution module performs function routing to complete the calls of interfaces and functions. During the statement execution process, the real-time values of the variables marked as "monitoring" and "result" are published through the message center module; the display and control components of the human-machine interface subscribe to the data topics they are concerned about in the message center module.

[0038] The test task management module includes functions such as task information entry, test attachment configuration, test parameter configuration, and test result management.

[0039] The task information entry function of the test task management module includes the entry of test unit information, test equipment information, test method description, wiring diagram import, and operation video import; after the task information is entered, it can be saved as a test item template for repeated loading and execution.

[0040] The test attachment configuration function of the test task management module includes attachment option types such as RF cables, power dividers, attenuators, etc. By selecting the attachment name, the losses at each frequency point within the working frequency band of the attachment are loaded, which are used to compensate for the losses generated during equipment wiring and splitting.

[0041] The test parameter configuration function of the test task management module includes configuring test items, configuring test item parameters, and configuring test item decision thresholds. Here, each test item corresponds to a custom script, and each test item parameter is parsed and extracted from the script text; the system defines some basic general test scripts, including sensitivity test, amplitude-frequency characteristic test, spurious test, noise figure, phase noise test, gain test, intermediate frequency rejection test, 1dB compression power, insertion loss test, image frequency rejection test, isolation test, rectangularity factor test, standing wave ratio test, second-order intermodulation test, and third-order intermodulation test, etc.

[0042] The test result management function of the test task management module can view the records of historical tasks, intermediate data, and decision result data, and can be exported and printed in the formats of PDF and Word documents.

[0043] The physical communication interface module includes a set of chassis and main control board cards based on PXIe. The main control board has network ports, serial ports, USB, and GPIB data interfaces; the slots of the PXIe chassis are used to insert various modular instrument board cards, such as modular spectrum analyzers, modular signal sources, modular network analyzers, etc.; for non-modular bench-top instruments, they can also be connected to the main control board through network and GPIB methods to achieve generalization and hardware independence.

[0044] like Figure 2 As shown, the present invention also discloses a method for using an instrument intelligent detection platform system based on a custom script, comprising the following steps:

[0045] S1: Equipment preheating: Power on the accompanying test instrument and the device under test, and start preheating;

[0046] S2: Test preparation; For the instrument modules built into the test platform, there is no need to prepare for power-on; for the accompanying test instruments and the tested equipment outside this test platform, they need to be connected to the main control board through the network port, serial port or GPIB port, and the IP address, serial port number, GPIB number, etc. of the equipment and the interactive protocol type can be obtained by querying the system settings of the instrument supporting software or NI-VISA device scanning, and then configured in the system general device adapter module, and click the connection button to connect the instrument;

[0047] S3: Equipment adaptation; For the instrument modules built into the test platform, there is no need to adapt and power on; for the test instruments and tested devices outside this test platform, it is necessary to select the applicable SCPI instruction set based on the device type, manufacturer and specific model. If there is no instruction set for a specific model of equipment in the system, you can select the corresponding manufacturer, because usually the instruction sets of similar devices from the same manufacturer are basically the same.

[0048] S4: Create or open a test task template. If the device under test or new test item content has not been entered, select Create. If the test item has been executed, directly open the task template.

[0049] S5: Select test items and configure test parameters; select the test items and parameters to be performed. For test tasks other than the system default test items, it is necessary to enter step S6 for script editing. For existing tests, directly enter S7 to execute the test task.

[0050] S6: Test script editing; for test tasks other than the system default test items, custom editing of the test items is required. The method is to open the script editor and edit the script line by line according to the test steps and requirements. After editing, single-step debugging can be performed. Confirm that the script logic is correct through the variable monitoring window. After the script editing is completed, click Save. At this time, this custom test item will appear in the test item configuration in step S5.

[0051] S7: Execute the test task. Click the execute button and the test task will be executed. At the same time, the changes of monitored variables and test results will be dynamically displayed.

[0052] S8: Test report export: select the test task and export the test results in Word or PDF format.

[0053] Example 2

[0054] like Figure 3 As shown, the hardware composition of the instrumentation intelligent detection platform system of this embodiment is a PXIe architecture, including a PXIe chassis 1, a main control board 2, a matrix switching switch and a modular instrument 4, as well as intelligent detection software deployed in the main control board and an external physical interface 3.

[0055] like Figure 4 As shown, the wiring diagram of the intelligent detection platform of the present invention is shown. The intelligent detection software based on the scripting language directly controls the modular instruments and matrix switches in the chassis through the local loop network of the operating system or the library call 1, and can also control the external desktop instrument 2 and the device under test 3 through the USB port, network port, serial port, and GPIB port on the main control board. The external device under test is connected to the internal modular test instrument 4 or connected to the external desktop test instrument 5 through the RF cable to perform the test. In particular, some devices under test such as receiver devices, signal generating devices, etc. that need to be program controlled can be connected through the interface of connection 3, and specific instructions are sent through the script for program control.

[0056] like Figure 5 As shown in the figure, the script language engine consists of two parts: the script editor and the script executor. The script editor contains the syntax prompts of the script language, the basic function library, the instrument control function library and the programming manual that can be consulted at any time; the script executor includes script parsing, line-by-line single-step debugging, variable monitoring and data publishing functions. When the script editing is confirmed to be correct through the variable monitoring window during line-by-line debugging, it is saved to the system database for test task calls. The data publishing function is used to publish the changed values ​​of the monitored variables and the test results. The internal interface of the system can subscribe to the relevant data topics to obtain real-time data of script execution.

[0057] like Figure 6As shown, the grammatical composition of the script engine of the present invention includes five categories: process control grammar, expression grammar, instrument control interface, non-standard instrument control interface and general function library. The process control syntax includes loop statements, which are used to repeat operations many times. It is necessary to provide loop initial conditions, loop end conditions and loop steps, and loops can be nested inside loops. The branch statements need to provide judgment conditions to determine which operations to perform based on the truth or falsity of the conditional values. Branches can be nested inside branches. The expression syntax supports mathematical expressions, logical expressions, expression nesting, important variable declarations and temporary variable declarations, assignment operations and string operations. The instrument control interface is used to encapsulate SPCI instructions for instrument control. The script calls the control function and then sends SCPI instructions. The system has built-in interface functions for standardized instruments such as spectrum analyzers, signal sources, network analyzers, oscilloscopes, and audio analyzers. Non-standard instrument control is to control non-standard instruments. Since the control instructions of non-standard instruments may not be unified, the system does not adapt and only provides basic functions such as device connection, data transmission, and data reception. The control commands are written into the script text. The basic functions of non-standard instrument control include: socket communication function, serial port communication function, GPIB communication function, IVI communication protocol function, etc. After that, the system also provides a general function library, including: general mathematical operation library, thread waiting function, dialog function and information publishing function to meet various application scenarios of intelligent detection.

[0058] like Figure 7 As shown, the script parsing process includes: 1. reading the script text information in the database; 2. extracting the input parameters and monitoring variables in the script; 3. replacing the input parameters from the default values ​​to the actual passed values; 4. parsing the script according to the grammatical rules; 5. executing the parsed atomic statements; 6. publishing the execution process information and result information.

[0059] like Figure 8As shown, the instrument instruction set adaptation principle of the present invention is divided into 6 layers from bottom to top, the bottom layer is the physical interface 6, including the network port, serial port, GPIB port and USB port, etc.; above the physical layer is the communication protocol layer 5, including the protocols: Socket, VXI-11, HiSLIP and other custom protocols; above the communication protocol layer is the SCPI instruction set layer 4, which can be manually configured according to instruments of different types, different manufacturers and different models to achieve high versatility, and above the SCPI instruction set layer is the instrument control interface layer 3, the system performs a universal instruction adaptation function at this layer, and the instrument control function of this layer selects the corresponding instruction for control according to the current instruction set configuration to achieve the instruction independence of the upper script; above the instrument control interface layer 3 is the script text layer 2, which defines the execution process of the script; above the script text layer 2 is the task execution layer, which controls the parameter input and result display of the script, and links the task information, device information, test item parameters and test results together to save and export the results.

[0060] like Fig. 9 As shown, the test task execution flow chart of the present invention has a main branch, that is, when the test instrument is an internal modular instrument and there is an available test template, the template can be directly opened, the parameters can be configured and executed, and finally the results can be exported; there are two secondary branches, one is that when the test instrument is an external desktop instrument, it is necessary to manually adapt the instruction set according to the device type and manufacturer; the second is that when there is no available template in the system, it is necessary to manually create a task, at this time, it is necessary to enter the task information, the test device information and the test item information, and you can choose whether to save it as a template for later call; this branch also has a sub-branch, that is, when the test item to be performed does not exist, open the script editor, create a new test script, and save it after debugging and confirmation. At this time, create a new task, you can configure new test items and parameters, and then enter the main process branch to execute the task and export the results.

[0061] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", "connect", and "fix" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood by specific circumstances.

[0062] Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various equivalent changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. An instrumentation intelligent detection platform system based on custom scripts, Features ,The system includes: a general device adaptation module, a custom script language engine module, a test ,task management module and a physical communication interface module; The universal device adapter module is implemented based on the SCPI instruction set and controls the accompanying test instrument and the device under test through the LAN port, serial port or GPIB; The custom script language engine module is divided into two components: a script editor and a script executor. The script edited in the script editor is saved in the database in the form of a general text. When the script is executed, it is parsed and executed by the script parser module; In the script editor of the custom script language engine module, a flow control grammar and a system basic function library are defined; the instrument SCPI instruction set is encapsulated as a system basic function library, and the SCPI instruction set is selected and switched within the function; The test task management module includes task information entry, test attachment configuration, test parameter configuration and test result management functions; The test accessory configuration function of the test task management module includes the following types of accessory options: RF cables, splitters, attenuator devices. By selecting the accessory name, the loss of each frequency point of the accessory within the working frequency band is loaded to compensate for the loss generated during the wiring and branching of the equipment; The physical communication interface module includes a set of PXIe chassis and main control board. The main control board has network port, serial port, USB, and GPIB data interface. The slots of the PXIe chassis are used to insert various modular instrument boards. When the test instrument is an internal modular instrument and there is an available test template, you can directly open the template, configure the parameters and execute it, and finally export the results; when the test instrument is an external desktop instrument, you need to manually adapt the instruction set according to the device type and manufacturer; when there is no available template in the system, you need to manually create a task, at this time you need to enter the task information, test device information and test item information, and you can choose whether to save it as a template for later use; when the test item to be performed does not exist, open the script editor, create a new test script, debug and confirm it, and then save it. At this time, create a new task and configure new test items and parameters.

2. The instrumentation intelligent detection platform system based on a custom script as claimed in claim 1, It is characterized in that The general device adaptation module is divided into two parts: instrument instruction set management and instrument connection management. The device adaptation management integrates the SCPI instruction set of mainstream manufacturers; the device connection management provides device address entry, communication mode adaptation and connection status check functions.

3. The instrumentation intelligent detection platform system based on a custom script as claimed in claim 1, It is characterized in that The instrument instruction set management of the general device adapter module has a tree structure to manage the SCPI instruction set. The first-level directory is the instrument type, including but not limited to: spectrum analyzer, receiver, signal source, network analyzer, power meter, oscilloscope, audio analyzer, electronic switching switch, multimeter; the second-level directory is the manufacturer of each type of instrument; the third-level directory is the instrument model of each manufacturer; SCPI instruction set management is performed for instrument type, instrument manufacturer or a specific model of instrument of a manufacturer, including import, export, edit, modify and delete; the SCPI instruction set is a text document, which stores the instruction name and the corresponding SCPI instruction string in the form of key-value pairs.

4. The instrumentation intelligent detection platform system based on a custom script as claimed in claim 1, It is characterized in that The instrument connection management of the universal device adapter module includes three parts: VISA address resolution, communication interface adaptation, and communication protocol adaptation. The applicable communication methods include network port, serial port, GPIB, VXI, and USB. The network-based data interaction protocols also include Socket, VXI-11, and HiSLIP. The connection status check is to check whether the communication is normal by regularly querying the instrument status after the connection is established, and give an alarm message when the communication is abnormal.

5. The instrumentation intelligent detection platform system based on a custom script as claimed in claim 1, It is characterized in that In the script editor of the custom script language engine module, flow control syntax and system basic function library are defined, and the content of the flow control syntax includes: loop control syntax, branch control syntax, flow nesting syntax, mathematical expression syntax, logical expression syntax, expression nesting syntax, variable declaration syntax, assignment operation syntax, string operation syntax, and function call syntax; in addition to the flow control syntax, the instrument SCPI instruction set is encapsulated as a system basic function library, and the SCPI instruction set is selected and switched within the function; the system basic function library includes: spectrum analyzer control interface function library, signal source control interface function library, network analyzer control interface function library, power meter control interface function library, oscilloscope control interface function library, electronic switching switch control interface function library and multimeter control interface function library.

6. The instrumentation intelligent detection platform system based on a custom script as claimed in claim 1, It is characterized in that The script executor of the custom script language engine module includes the functions of script parsing, script execution, single-step debugging, variable monitoring and result publishing; during the statement execution process, the real-time values ​​of the variables marked as monitoring and results are published through the message center module; the display and control component of the human-machine interface subscribes to the data topics it is concerned about in the message center module.

7. The instrumentation intelligent detection platform system based on a custom script as claimed in claim 1, It is characterized in that The task information entry function of the test task management module includes test unit information entry, test equipment information entry, test method description, wiring diagram import, and operation video import; After the task information is entered, it can be saved as a test item template for repeated loading and execution.

Citation Information

Patent Citations

  • Automatic verification / calibration / test platform for electronic instrument

    CN101206130A

  • Automated test platform implemented by means of Python

    CN107992428A

  • Automatic test system and method based on ultrashort wave communication equipment

    CN116668323A