CN114878867A - Automatic test method and system for vector network analyzer - Google Patents
Automatic test method and system for vector network analyzer Download PDFInfo
- Publication number
- CN114878867A CN114878867A CN202210440017.3A CN202210440017A CN114878867A CN 114878867 A CN114878867 A CN 114878867A CN 202210440017 A CN202210440017 A CN 202210440017A CN 114878867 A CN114878867 A CN 114878867A
- Authority
- CN
- China
- Prior art keywords
- test
- tested
- network analyzer
- vector network
- test result
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000010998 test method Methods 0.000 title claims abstract description 24
- 238000012360 testing method Methods 0.000 claims abstract description 237
- 230000006870 function Effects 0.000 claims description 45
- 238000000034 method Methods 0.000 claims description 25
- 238000003780 insertion Methods 0.000 claims description 14
- 230000037431 insertion Effects 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003153 chemical reaction reagent Substances 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R1/00—Details of instruments or arrangements of the types included in groups G01R5/00 - G01R13/00 and G01R31/00
- G01R1/02—General constructional details
- G01R1/04—Housings; Supporting members; Arrangements of terminals
- G01R1/0408—Test fixtures or contact fields; Connectors or connecting adaptors; Test clips; Test sockets
- G01R1/0416—Connectors, terminals
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R23/00—Arrangements for measuring frequencies; Arrangements for analysing frequency spectra
- G01R23/02—Arrangements for measuring frequency, e.g. pulse repetition rate; Arrangements for measuring period of current or voltage
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R27/00—Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
- G01R27/02—Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
- G01R27/04—Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant in circuits having distributed constants, e.g. having very long conductors or involving high frequencies
- G01R27/06—Measuring reflection coefficients; Measuring standing-wave ratio
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R27/00—Arrangements for measuring resistance, reactance, impedance, or electric characteristics derived therefrom
- G01R27/02—Measuring real or complex resistance, reactance, impedance, or other two-pole characteristics derived therefrom, e.g. time constant
- G01R27/26—Measuring inductance or capacitance; Measuring quality factor, e.g. by using the resonance method; Measuring loss factor; Measuring dielectric constants ; Measuring impedance or related variables
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- General Engineering & Computer Science (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
The invention discloses an automatic test method of a vector network analyzer, which comprises the following steps: s1: sending an initialization instruction to a vector network analyzer, and acquiring a test form to be filled in a bookmark mode; s2: a, receiving a serial number of a tested object, and determining a row of a test result lattice of the tested object according to the serial number of the tested object; or b, receiving a cancel instruction and terminating the test; s3: a, receiving a determined test instruction, and sending an S parameter switching instruction to a vector network analyzer so that the vector network analyzer automatically completes the test of a tested object and obtains a signal fed back by the vector network analyzer for completing the test of a single tested object; or b, receiving a cancel instruction and terminating the test; s4: sending a query instruction to the vector network analyzer to obtain a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested; s5: and repeatedly executing S2a-S3a-S4 until all the measured objects are measured. The invention can reduce the workload of manual input and also avoid the manual input error.
Description
Technical Field
The invention relates to the technical field of radio frequency microwave. More particularly, the present invention relates to an automatic test method and system for a vector network analyzer.
Background
In the prior art, a vector network analyzer is used for testing radio frequency cables, usually a test report is manually input, each tested radio frequency cable generally comprises 8 test data (the maximum value and the frequency point of the standing wave at the two ends of the tested cable, and the minimum value and the frequency point of the insertion loss at the two ends), and when the number of the tested cables is large, the manual input time is long, and mistakes are very easy.
Disclosure of Invention
An object of the present invention is to solve at least the above problems and to provide at least the advantages described later.
Still another object of the present invention is to provide an automatic testing method and system for a vector network analyzer, which can improve the testing efficiency of the user using the vector network analyzer, reduce the workload of manual input, and avoid the manual input error.
To achieve these objects and other advantages in accordance with the purpose of the invention, there is provided an automatic test method of a vector network analyzer, comprising:
s1: sending an instrument initialization instruction to a vector network analyzer, and simultaneously acquiring a test form to be filled in a bookmark mode, wherein the test form at least comprises test result lattices of a plurality of tested objects to be filled in, the test result lattices of the plurality of tested objects are respectively positioned in different rows in the test form, each tested object has a unique serial number, and the serial number of each tested object has a corresponding relation with the row number of the tested object in the test form;
s2: a, receiving a serial number of a tested object input by a user, and determining a row of a test result lattice of the tested object according to the serial number of the tested object; or b, receiving a cancel instruction input by a user to terminate the test;
s3: a, receiving a determination test instruction input by a user, and sending an S parameter switching instruction to a vector network analyzer so that the vector network analyzer automatically completes the test of a tested object and obtains a signal fed back by the vector network analyzer for completing the test of a single tested object; or b, receiving a cancel instruction input by a user to terminate the test;
s4: sending a query instruction to the vector network analyzer to obtain a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested based on the step S2 a;
and S5, repeatedly executing S2a-S3a-S4 until all the measured objects are measured.
It is preferable that the first and second liquid crystal layers are formed of,
the steps S1 and S2 further include: a1: a, receiving and storing the total amount of a measured object input by a user; or b, receiving a cancel instruction input by a user to terminate the test;
the process of determining whether all the objects to be measured have been measured in step S5 includes: and recording the repeated execution times of the steps S2a-S3a-S4, and when the repeated execution times of the steps S2a-S3a-S4 reach the total amount of the measured object, all the measured objects are measured.
It is preferable that the first and second liquid crystal layers are formed of,
the steps S1 and S2 further include: a2: a, receiving and storing a test index threshold value input by a user; or b, receiving a cancel instruction input by a user to terminate the test;
step S5 is followed by: a3, comparing the test result of the tested object with the test index threshold value, and displaying the test result which does not meet the requirement of the test index threshold value in a test table by red characters.
Preferably, the test result grids of each tested object are multiple and belong to different test indexes respectively, and the multiple test result grids of the same tested object are in different columns of the same row in the test table respectively;
the process of automatically writing the test result of the object to be tested into the test result grid of the object to be tested in step S4 includes: and determining the row number of the test result grids of the tested object to be filled through the cell attribute of the test table, and automatically writing the test result of the tested object into the corresponding test result grids of the tested object through setting the range.
Preferably, the steps S1 and S2 further include: a4, calling dll driver through GetTickCount function to set the delay time of the vector network analyzer.
Preferably, the instrument initialization command and the S parameter switching command sent to the vector network analyzer in steps S1 and S3a are both SCPI commands;
the initialization process of the vector network analyzer comprises the following steps: initializing a vector network analyzer through a VXI driving function;
the switching process of the S parameters of the vector network analyzer comprises the following steps: performing S-parameter S11, S22 switching and setting standing wave maximum value instructions, and performing S-parameter S12, S21 switching and setting insertion loss minimum value instructions.
Preferably, the process of sending the query instruction to the vector network analyzer in step S4 to obtain the test result of the object to be tested includes: and sending a test result query instruction to the vector network analyzer through the viVPrintf writing function, reading the test result through the viVScaf reading function, and adjusting the data format and decimal digits of the test result through the format function.
Preferably, the process of receiving the information input by the user in steps S2a and S3a includes: and acquiring the information input by the user through an InputBox function and/or an MsgBox function.
The invention also provides an automatic test system of the vector network analyzer, which comprises:
the form information acquisition unit is used for acquiring a test form to be filled in a bookmark mode, the test form at least comprises test result lattices of a plurality of tested objects to be filled in, the test result lattices of the plurality of tested objects are respectively positioned in different rows in the test form, each tested object has a unique serial number, and the serial number of each tested object has a corresponding relation with the row number of the tested object in the test form;
the first receiving unit is used for receiving the serial number of the tested object input by a user and determining the row of the tested result grid of the tested object according to the serial number of the tested object;
the second receiving unit is used for receiving a determination test instruction input by a user and sending an S parameter switching instruction to the vector network analyzer so that the vector network analyzer automatically completes the test on the tested object and obtains a signal fed back by the vector network analyzer for completing the test of the single tested object;
the query writing unit is used for sending a query instruction to the vector network analyzer, acquiring a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested based on the execution result of the first receiving unit;
the circulating unit is used for repeatedly enabling the first receiving unit, the second receiving unit and the query writing unit to sequentially execute self functions until all the detected objects are detected;
and the termination unit is used for receiving a cancel instruction input by a user so as to terminate the test.
The present invention also provides an electronic device comprising: the system comprises at least one processor and a memory which is in communication connection with the at least one processor, wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to execute the automatic test method of the vector network analyzer.
The invention at least comprises the following beneficial effects: the upper computer can be connected with the vector network analyzer through the VBA language and the interface conversion card, and various instructions are sent to the vector network analyzer through the upper computer.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention.
Drawings
Fig. 1 is a flowchart of an automatic testing method of a vector network analyzer according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a test table in the automatic test method of the vector network analyzer according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating that a radio frequency cable serial number input by a user is obtained through an InputBox function in the automatic test method for a vector network analyzer according to an embodiment of the present invention;
fig. 4 is a schematic diagram illustrating that a certain test command input by a user is obtained through an MsgBox function in the automatic test method for a vector network analyzer according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating that the total amount of radio frequency cables input by a user is obtained through an InputBox function in the automatic test method for a vector network analyzer according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a standing wave index obtained by a user through an InputBox function in the automatic test method for a vector network analyzer according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating an insertion loss index obtained by a user through an InputBox function in the automatic test method for a vector network analyzer according to an embodiment of the present invention.
Detailed Description
The present invention is further described in detail below with reference to the attached drawings so that those skilled in the art can implement the invention by referring to the description text.
It is to be noted that the experimental methods described in the following embodiments are all conventional methods unless otherwise specified, and the reagents and materials are commercially available unless otherwise specified.
The vector network analyzer is a kind of electromagnetic wave energy testing equipment, it can measure various parameter amplitudes of single-port network or two-port network, and can measure phase position, the vector network analyzer can use Smith chart to display measured data, it is more convenient for engineering application and debugging.
The vector network analyzer generally has a GPIB interface, can be in communication connection with an upper computer through a GPIB/USB interface conversion card, and generally supports an SCPI protocol, so that the upper computer can control the vector network analyzer through an SCPI instruction.
Based on the above knowledge, as shown in fig. 1, the present invention provides an automatic test method for a vector network analyzer, which is applied to an upper computer, and the automatic test method for the vector network analyzer is described below by taking an example of using the vector network analyzer to test a maximum value and a frequency point of a standing wave at two ends of a radio frequency cable, and a minimum value and a frequency point of an insertion loss at two ends.
The automatic test method of the vector network analyzer comprises the following steps:
s1: sending an instrument initialization instruction to a vector network analyzer, and simultaneously acquiring a test form to be filled in a bookmark mode, wherein the test form at least comprises test result lattices of a plurality of tested objects to be filled in, the test result lattices of the plurality of tested objects are respectively positioned in different rows in the test form, each tested object has a unique serial number, and the serial number of each tested object has a corresponding relation with the row number of the tested object in the test form;
the vector network analyzer supports the SCPI protocol, so that an instrument initialization instruction automatically sent to the vector network analyzer can be set to be the SCPI instruction, the vector network analyzer is initialized through the VXI driving function after receiving the instrument initialization instruction, and if the initialization is successful, a return value is 0.
The bookmark is commonly used for marking a position designated by a user in the word, the position of each cell in the form can be obtained by obtaining a test form to be filled in a bookmark form, the style of the test form is shown in fig. 2, a tested object is a radio frequency cable, each radio frequency cable corresponds to a unique serial number, simultaneously, the test result grid of each radio frequency cable and the serial number of the radio frequency cable are in the same row, the row number of the serial number of the radio frequency cable belongs to the position attribute of the cell, and therefore the row number of the test result grid of the radio frequency cable in the test form can be determined by knowing the serial number of each radio frequency cable through the relation of the bookmark.
S2: a, receiving a serial number of a tested object input by a user, and determining a row of a test result lattice of the tested object according to the serial number of the tested object; or b, receiving a cancel instruction input by a user to terminate the test;
specifically, as shown in fig. 3, the process of receiving the serial number of the measured object input by the user includes: and acquiring the radio frequency cable serial number input by the user through an InputBox function.
In the VBA language, the InputBox function is used for popping up a dialog box, prompting a user to input characters, returning the characters input by the user after the user presses a confirm button for inputting the characters, and returning to be null if a cancel button is pressed.
In the test table, the test result lattice of each radio frequency cable is in the same row with the serial number of the radio frequency cable, so that the serial number of the tested radio frequency cable input by a user is received, and the row of the test result lattice of the tested radio frequency cable can be immediately positioned.
Therefore, if the user inputs the serial number of the tested cable, the serial number is confirmed to be correct, and the confirming button is pressed, the row where the test result grid of the tested radio frequency cable is located can be immediately positioned. However, if the user presses the cancel button, it may indicate that the user has found an error and needs to stop the test, so that when the user returns to null, a jump-out test program may be set to terminate the test.
S3: a, receiving a determination test instruction input by a user, and sending an S parameter switching instruction to a vector network analyzer so that the vector network analyzer automatically completes the test of a tested object and obtains a signal fed back by the vector network analyzer for completing the test of a single tested object; or b, receiving a cancel instruction input by a user to terminate the test;
specifically, as shown in fig. 4, the process of receiving the test instruction input by the user includes: and acquiring a determined test instruction input by a user through the MsgBox function.
In the VBA language, the MsgBox function is used for popping up a dialog box, waiting for a user to click a button, returning an integer value to indicate which button the user clicks, wherein if the user clicks a determined button, the returned integer value is 1, and if the user clicks a cancel button, the returned integer value is 2.
Therefore, when the return value is 1, the S parameter switching instruction can be automatically sent to the vector network analyzer, so that the vector network analyzer automatically completes the test of the radio frequency cable, and a signal fed back by the vector network analyzer and used for completing the test of the single radio frequency cable is obtained; when the return value is 2, a jump-out test program can be set, and the test is terminated.
And the vector network analyzer supports the SCPI protocol, so that an S parameter switching command automatically sent to the vector network analyzer can be set to be an SCPI command, and after the vector network analyzer receives the S parameter switching command, the S parameter S11 and S22 are switched, a standing wave maximum value command is set, and S parameters S12 and S21 are switched, and an insertion loss minimum value command is set.
S4: sending a query instruction to the vector network analyzer to obtain a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested based on the step S2 a;
specifically, the process of sending the query instruction to the vector network analyzer based on step S3a to obtain the test result of the radio frequency cable includes: and sending a test result query instruction to the vector network analyzer through the viVPrintf writing function, reading the test result through the viVScaf reading function, and adjusting the data format and decimal digits of the test result through the format function.
In the embodiment, the test result display format of the table is 2 decimal places, so that each newly obtained test result is adjusted before filling the table. When the insertion loss test result is less than 1dB, a number 0 is written into the cell before writing into the cell, and for the case that the test result only has a 1-bit decimal, a function str (0) instruction is added, for example: the instrument reads a value of.4, when writing in a cell, firstly writing a number 0 in the cell, and then adding a function str (0) instruction behind the test result, so that the cell displays 0.40. And when the insertion loss test result is greater than 1dB, if the test result only has 1-bit decimal, adding a function str (0) instruction, otherwise, not adding. The processing method for writing the standing wave test result is the same as that for the insertion loss test result.
The process of automatically writing the test result of the radio frequency cable into the radio frequency cable test result grid comprises the following steps: and determining the row number of the radio frequency cable test result grids to be filled through the cell attribute of the test table, and automatically writing the test result of the tested object into the corresponding test result grid of the tested object through setting the range.
Because each radio frequency cable needs to fill in 8 test result grids which belong to different test indexes respectively, and the 8 test result grids are respectively positioned in different columns of the same row in the test table, the method for automatically writing the test result of the radio frequency cable into the test result grid of the radio frequency cable is used for each test result grid once until the 8 test result grids in one row are filled.
And S5, repeatedly executing S2a-S3a-S4 until all the measured objects are measured.
Specifically, the operations S2a-S3a-S4 can be repeatedly executed through the VBA loop statement until all the objects to be tested are tested.
In the embodiment, the upper computer can be connected with the vector network analyzer through the VBA language and the interface conversion card, various instructions are sent to the vector network analyzer through the upper computer, and the automatic test method of the vector network analyzer is implemented through the program preset in the upper computer, so that the automatic input of the test result is realized, the workload of manual input is reduced, the manual input error is avoided, and the test efficiency of the vector network analyzer used by a user is improved. In the test process, the user inputs information each time and has two choices of determining and canceling, so that when the user finds that the test has a problem, the user can stop the test by clicking a cancel button, and the problem is prevented from continuously expanding.
In another embodiment, the steps S1 and S2 further include: a1: a, receiving and storing the total amount of a measured object input by a user; or b, receiving a cancel instruction input by a user to terminate the test;
specifically, as shown in fig. 5, the process of receiving and storing the total amount of the measured object input by the user includes: and acquiring the total amount of the radio frequency cables input by a user through an InputBox function.
The input box function is introduced previously, and only the execution operation of the upper computer after the user clicks to confirm or cancel is described here, because the input box function returns the characters input by the user after the user presses the confirm button, the total amount of the radio frequency cables input by the user can be set and stored, so as to be convenient for the subsequent judgment of whether all the radio frequency cables are tested, and when the user presses the cancel button, a jump-out test program can be set to terminate the test.
The process of determining whether all the objects to be measured have been measured in step S5 includes: and recording the repeated execution times of the steps S2a-S3a-S4, and when the repeated execution times of the steps S2a-S3a-S4 reach the total amount of the measured object, all the measured objects are measured.
The number of times that steps S2a-S3a-S4 are repeatedly executed may be set as a variable, when steps S2a-S3a-S4 are executed once, a self-increment operation is performed on the repeatedly executed variable, the result of each self-increment operation of the repeatedly executed variable is compared with the total number of the radio frequency cables, when the result of the repeatedly executed variable is the same as the total number of the radio frequency cables, it indicates that all the radio frequency cables are tested, and if the result is less than the total number of the radio frequency cables, steps S2a-S3a-S4 are continuously executed repeatedly.
In another embodiment, the steps S1 and S2 further include: a2: a, receiving and storing a test index threshold value input by a user; or b, receiving a cancel instruction input by a user to terminate the test;
the object to be tested is a radio frequency cable, the test result comprises the maximum value and the maximum value frequency point of the standing wave at the two ends of the radio frequency cable, and the minimum value frequency point of the insertion loss at the two ends, so the test index threshold comprises the standing wave index and the insertion loss index.
Specifically, as shown in fig. 6 to 7, the process of receiving and storing the test index threshold value input by the user includes: and obtaining a standing wave index input by a user through an InputBox function, and obtaining an insertion loss index input by the user through the InputBox function. The input box function returns the characters input by the user after the user presses the determining button, so that the standing wave index and the insertion loss index input by the user can be set and stored, whether the test result meets the index requirement or not can be conveniently judged in the following process, and when the user presses the cancel button, a jump-out test program can be set, and the test is terminated.
Step S5 is followed by: a3, comparing the test result of the tested object with the test index threshold value, and displaying the test result which does not meet the requirement of the test index threshold value in a test table by red characters.
If, then, else and End if sentences in the VBA language can be adopted to execute the operation of comparing the test result of the tested object with the threshold value of the test index, and the test result higher than the standing wave index and the test result larger than the insertion loss index are displayed in the test form by using a red font (the color of the original font is black), so that a user can distinguish which radio frequency cables are unqualified at a glance, and the working efficiency is greatly improved.
If the first test result is doubtful, the second test can be carried out, the second test result can be written in the table to cover the first test result, if the first test result is abnormal, the first test result is displayed in red font, and if the second test result is normal, the second test result is still displayed in black font.
In another embodiment, the steps S1 and S2 further include: a4, calling dll driver through GetTickCount function to set the delay time of the vector network analyzer.
In the VBA language, the GetTickCount function returns the number of milliseconds elapsed from the start of the operating system, so that the delay time of the vector network analyzer is set by calling dll drive by using a return value obtained by the GetTickCount function, and the synchronous work of the upper computer and the vector network analyzer can be kept.
The invention also provides an automatic test system of the vector network analyzer, which comprises:
the form information acquisition unit is used for sending an instrument initialization instruction to the vector network analyzer and simultaneously acquiring a test form to be filled in a bookmark mode, wherein the test form at least comprises test result lattices of a plurality of objects to be tested to be filled, the test result lattices of the plurality of objects to be tested are respectively positioned in different rows in the test form, each object to be tested has a unique serial number, and the serial number of each object to be tested and the row number of the object to be tested in the test form have a corresponding relation;
the first receiving unit is used for receiving the serial number of the tested object input by a user and determining the row of the tested result grid of the tested object according to the serial number of the tested object;
the second receiving unit is used for receiving a determination test instruction input by a user and sending an S parameter switching instruction to the vector network analyzer so that the vector network analyzer automatically completes the test on the tested object and obtains a signal fed back by the vector network analyzer for completing the test of the single tested object;
the query writing unit is used for sending a query instruction to the vector network analyzer, acquiring a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested based on the execution result of the first receiving unit;
the circulating unit is used for repeatedly enabling the first receiving unit, the second receiving unit and the query writing unit to sequentially execute self functions until all the detected objects are detected;
and the termination unit is used for receiving a cancel instruction input by a user so as to terminate the test.
In another embodiment, the vector network analyzer automatic test system further comprises:
and the third receiving unit is used for receiving and storing the total amount of the measured object input by the user.
The process of the circulation unit for judging whether all the measured objects are measured includes: and recording the repetition times of the first receiving unit, the second receiving unit and the query writing unit for sequentially executing the functions of the first receiving unit, the second receiving unit and the query writing unit, and judging that all the detected objects are detected when the repetition times of the first receiving unit, the second receiving unit and the query writing unit for sequentially executing the functions of the first receiving unit, the second receiving unit and the query writing unit reach the total amount of the detected objects.
In another embodiment, the vector network analyzer automatic test system further comprises:
and the fourth receiving unit is used for receiving and storing the test index threshold value input by the user.
And the marking unit is used for comparing the test result of the tested object with the test index threshold value and displaying the test result which does not meet the requirement of the test index threshold value in a test table in red.
In another embodiment, the vector network analyzer automatic test system further comprises:
and the delay unit is used for calling dll drive to set the delay time of the vector network analyzer through the GetTickCount function.
The present invention also provides an electronic device comprising: the system comprises at least one processor and a memory which is in communication connection with the at least one processor, wherein the memory stores instructions which can be executed by the at least one processor, and the instructions are executed by the at least one processor so as to enable the at least one processor to execute the automatic test method of the vector network analyzer.
The embodiment of the invention also provides a storage medium, wherein a computer program is stored on the storage medium, and when the program is executed by a processor, the automatic test method of the vector network analyzer is realized.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various readable storage media capable of storing program codes.
While embodiments of the invention have been described above, it is not limited to the applications set forth in the description and the embodiments, which are fully applicable in various fields of endeavor to which the invention pertains, and further modifications may readily be made by those skilled in the art, it being understood that the invention is not limited to the details shown and described herein without departing from the general concept defined by the appended claims and their equivalents.
Claims (10)
1. An automatic test method for a vector network analyzer is characterized by comprising the following steps:
s1: sending an instrument initialization instruction to a vector network analyzer, and simultaneously acquiring a test form to be filled in a bookmark mode, wherein the test form at least comprises test result lattices of a plurality of tested objects to be filled in, the test result lattices of the plurality of tested objects are respectively positioned in different rows in the test form, each tested object has a unique serial number, and the serial number of each tested object has a corresponding relation with the row number of the tested object in the test form;
s2: a, receiving a serial number of a tested object input by a user, and determining a row of a test result lattice of the tested object according to the serial number of the tested object; or b, receiving a cancel instruction input by a user to terminate the test;
s3: a, receiving a determination test instruction input by a user, and sending an S parameter switching instruction to a vector network analyzer so that the vector network analyzer automatically completes the test of a tested object and obtains a signal fed back by the vector network analyzer for completing the test of a single tested object; or b, receiving a cancel instruction input by a user to terminate the test;
s4: sending a query instruction to the vector network analyzer to obtain a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested based on the step S2 a;
s5: and repeatedly executing S2a-S3a-S4 until all the measured objects are measured.
2. The vector network analyzer automatic test method of claim 1,
the steps S1 and S2 further include: a1: a, receiving and storing the total amount of a measured object input by a user; or b, receiving a cancel instruction input by a user to terminate the test;
the process of determining whether all the objects to be measured have been measured in step S5 includes: and recording the repeated execution times of the steps S2a-S3a-S4, and when the repeated execution times of the steps S2a-S3a-S4 reach the total amount of the measured object, all the measured objects are measured.
3. The vector network analyzer automatic test method of claim 2,
the steps S1 and S2 further include: a2: a, receiving and storing a test index threshold value input by a user; or b, receiving a cancel instruction input by a user to terminate the test;
step S5 is followed by: a3: and comparing the test result of the tested object with the test index threshold value, and displaying the test result which does not meet the requirement of the test index threshold value in a test table in red.
4. The automatic test method of the vector network analyzer according to claim 1, wherein the test result grids of each object to be tested have a plurality of different test indexes, and the test result grids of the same object to be tested are respectively located in different columns of the same row in the test table;
the process of automatically writing the test result of the object to be tested into the test result grid of the object to be tested in step S4 includes: and determining the row number of the test result grids of the tested object to be filled through the cell attribute of the test table, and automatically writing the test result of the tested object into the corresponding test result grids of the tested object through setting the range.
5. The method for automatically testing a vector network analyzer of claim 2, further comprising, between steps S1 and S2: a4: and calling dll driver through a GetTickCount function to set the delay time of the vector network analyzer.
6. The automatic test method of vector network analyzer of claim 1, wherein the instrument initialization command and the S parameter switching command sent to the vector network analyzer in steps S1 and S3a are SCPI commands;
the initialization process of the vector network analyzer comprises the following steps: initializing a vector network analyzer through a VXI driving function;
the switching process of the S parameters of the vector network analyzer comprises the following steps: performing S-parameter S11, S22 switching and setting standing wave maximum value instructions, and performing S-parameter S12, S21 switching and setting insertion loss minimum value instructions.
7. The method for automatically testing the vector network analyzer according to claim 6, wherein the step S4 of sending the query command to the vector network analyzer to obtain the test result of the object to be tested includes: and sending a test result query instruction to the vector network analyzer through the viVPrintf write-in function, reading the test result through the viVScanf read-out function, and adjusting the data format and the decimal digit of the test result through the format function.
8. The vector network analyzer automatic test method of claim 2, wherein the process of receiving the information inputted by the user in steps S2a and S3a comprises: and acquiring the information input by the user through an InputBox function and/or an MsgBox function.
9. An automatic test system for a vector network analyzer, comprising:
the form information acquisition unit is used for sending an instrument initialization instruction to the vector network analyzer and simultaneously acquiring a test form to be filled in a bookmark mode, wherein the test form at least comprises test result lattices of a plurality of objects to be tested to be filled, the test result lattices of the plurality of objects to be tested are respectively positioned in different rows in the test form, each object to be tested has a unique serial number, and the serial number of each object to be tested and the row number of the object to be tested in the test form have a corresponding relation;
the first receiving unit is used for receiving the serial number of the tested object input by a user and determining the row of the tested result grid of the tested object according to the serial number of the tested object;
the second receiving unit is used for receiving a determination test instruction input by a user and sending an S parameter switching instruction to the vector network analyzer so that the vector network analyzer automatically completes the test on the tested object and obtains a signal fed back by the vector network analyzer for completing the test of the single tested object;
the query writing unit is used for sending a query instruction to the vector network analyzer, acquiring a test result of the object to be tested, and automatically writing the test result of the object to be tested into a test result grid of the object to be tested based on the execution result of the first receiving unit;
the circulating unit is used for repeatedly enabling the first receiving unit, the second receiving unit and the query writing unit to sequentially execute self functions until all the detected objects are detected;
and the termination unit is used for receiving a cancel instruction input by a user so as to terminate the test.
10. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210440017.3A CN114878867A (en) | 2022-04-25 | 2022-04-25 | Automatic test method and system for vector network analyzer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210440017.3A CN114878867A (en) | 2022-04-25 | 2022-04-25 | Automatic test method and system for vector network analyzer |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114878867A true CN114878867A (en) | 2022-08-09 |
Family
ID=82671438
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210440017.3A Pending CN114878867A (en) | 2022-04-25 | 2022-04-25 | Automatic test method and system for vector network analyzer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114878867A (en) |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243022A (en) * | 2014-08-28 | 2014-12-24 | 北京邮电大学 | Light vector network analyzer and using method thereof |
CN204349995U (en) * | 2014-12-30 | 2015-05-20 | 三维通信股份有限公司 | The full-automatic regulating and measuring system of a kind of GSM digital high-frequency amplification station |
CN105242246A (en) * | 2015-09-08 | 2016-01-13 | 西安电子科技大学 | Automatic radar T/R (Transmitter/Receiver) assembly testing system and method thereof |
CN105846918A (en) * | 2016-05-24 | 2016-08-10 | 中国电子科技集团公司第四十研究所 | Modularized multi-port scattering parameter testing apparatus and method |
CN108011950A (en) * | 2017-12-01 | 2018-05-08 | 杭州电子科技大学 | A kind of implementation method of remote radio frequency Experiment of Electrical Circuits platform |
CN108375759A (en) * | 2018-04-09 | 2018-08-07 | 中国电子科技集团公司第三十八研究所 | A kind of high integration alignment source automatic testing equipment and test method |
CN108919105A (en) * | 2018-05-23 | 2018-11-30 | 中国电子科技集团公司第四十研究所 | A kind of microwave mechanical switch reperformance test device and method |
CN208478561U (en) * | 2018-07-13 | 2019-02-05 | 北京雷格讯电子股份有限公司 | Ultra-wideband antenna with signal automatic regulation function |
CN109782208A (en) * | 2019-03-04 | 2019-05-21 | 上海精密计量测试研究所 | Vector network analyzer auto-calibration device and calibration method |
CN113029007A (en) * | 2021-04-27 | 2021-06-25 | 北京凌微光电科技有限公司 | Method and device for measuring length of optical fiber gyroscope ring and readable storage medium |
CN215866887U (en) * | 2021-07-21 | 2022-02-18 | 常州第四无线电厂有限公司 | Multifunctional cable detection equipment |
-
2022
- 2022-04-25 CN CN202210440017.3A patent/CN114878867A/en active Pending
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104243022A (en) * | 2014-08-28 | 2014-12-24 | 北京邮电大学 | Light vector network analyzer and using method thereof |
CN204349995U (en) * | 2014-12-30 | 2015-05-20 | 三维通信股份有限公司 | The full-automatic regulating and measuring system of a kind of GSM digital high-frequency amplification station |
CN105242246A (en) * | 2015-09-08 | 2016-01-13 | 西安电子科技大学 | Automatic radar T/R (Transmitter/Receiver) assembly testing system and method thereof |
CN105846918A (en) * | 2016-05-24 | 2016-08-10 | 中国电子科技集团公司第四十研究所 | Modularized multi-port scattering parameter testing apparatus and method |
CN108011950A (en) * | 2017-12-01 | 2018-05-08 | 杭州电子科技大学 | A kind of implementation method of remote radio frequency Experiment of Electrical Circuits platform |
CN108375759A (en) * | 2018-04-09 | 2018-08-07 | 中国电子科技集团公司第三十八研究所 | A kind of high integration alignment source automatic testing equipment and test method |
CN108919105A (en) * | 2018-05-23 | 2018-11-30 | 中国电子科技集团公司第四十研究所 | A kind of microwave mechanical switch reperformance test device and method |
CN208478561U (en) * | 2018-07-13 | 2019-02-05 | 北京雷格讯电子股份有限公司 | Ultra-wideband antenna with signal automatic regulation function |
CN109782208A (en) * | 2019-03-04 | 2019-05-21 | 上海精密计量测试研究所 | Vector network analyzer auto-calibration device and calibration method |
CN113029007A (en) * | 2021-04-27 | 2021-06-25 | 北京凌微光电科技有限公司 | Method and device for measuring length of optical fiber gyroscope ring and readable storage medium |
CN215866887U (en) * | 2021-07-21 | 2022-02-18 | 常州第四无线电厂有限公司 | Multifunctional cable detection equipment |
Non-Patent Citations (1)
Title |
---|
程知群等: "基于LabVIEW的射频通信电路实验测试平台开发", 实验技术与管理, vol. 35, no. 8, pages 361 - 366 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6681343B1 (en) | Debugging device and method as well as storage medium | |
US8001468B2 (en) | Method and system for accelerating test automation of software applications | |
CN102662839B (en) | Testing method and device for software interface state change time | |
CN108802652A (en) | A kind of vector network analyzer internal module test system and test method | |
CN113905095B (en) | Data generation method and device based on CAN communication matrix | |
US5058052A (en) | Method for checking the syntax of an instruction list program to determine if the program is expressible as a relay ladder diagram by a programmable logic controller | |
CN114878867A (en) | Automatic test method and system for vector network analyzer | |
CN112965657A (en) | Method, device, processor and storage medium for realizing storage processing aiming at measurement state of vector network analysis instrument | |
CN112732502A (en) | Method and device for detecting I2C signal, detection equipment and storage medium | |
CN113127486B (en) | Information collection and storage method, device, equipment and storage medium | |
US6016143A (en) | Multi-device direct I/O object that generates transactions capable of controlling multiple instruments and transaction dialog boxes having device and address fields | |
CN115857976A (en) | Chip burning method, device, equipment and storage medium | |
CN115409182B (en) | Quantum chip testing method, system, storage medium and quantum computer | |
CN117094296A (en) | VB language-based form splitting method, intelligent terminal and storage medium | |
CN113806224A (en) | Integrated test method and device | |
CN111813673A (en) | Hard disk filling test method and system | |
CN110333975A (en) | A kind of test method and device and equipment storing equipment | |
CN112748300B (en) | Test method, test device and test system of microwave equipment | |
CN118550815A (en) | Program-controlled instrument driving system and method | |
CN115684787B (en) | Relay protection equipment closed loop test system and method | |
CN110647465A (en) | Test data entry method and device and computer readable storage medium | |
LU504245B1 (en) | Method for analyzing and processing vector network analyzer data | |
CN114579235B (en) | Language type-based icon display method, device, equipment and storage medium | |
CN112346577B (en) | Input information correction method, system and related device | |
US11886841B2 (en) | Argument helper for python program editor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220809 |