CN111782509A - Space flight automatic test method based on virtual instrument pseudo-instruction mechanism - Google Patents

Space flight automatic test method based on virtual instrument pseudo-instruction mechanism Download PDF

Info

Publication number
CN111782509A
CN111782509A CN202010540639.4A CN202010540639A CN111782509A CN 111782509 A CN111782509 A CN 111782509A CN 202010540639 A CN202010540639 A CN 202010540639A CN 111782509 A CN111782509 A CN 111782509A
Authority
CN
China
Prior art keywords
instrument
instruction
pseudo
type
function
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.)
Granted
Application number
CN202010540639.4A
Other languages
Chinese (zh)
Other versions
CN111782509B (en
Inventor
郑炜
鲍建安
曹石超
刘波锋
王康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Northwestern Polytechnical University
Original Assignee
Northwestern Polytechnical University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Northwestern Polytechnical University filed Critical Northwestern Polytechnical University
Priority to CN202010540639.4A priority Critical patent/CN111782509B/en
Publication of CN111782509A publication Critical patent/CN111782509A/en
Application granted granted Critical
Publication of CN111782509B publication Critical patent/CN111782509B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention relates to an automatic aerospace testing method based on a virtual instrument pseudo-instruction mechanism, which is characterized in that each functional unit of an instrument of a certain type is packaged into a pseudo-instruction, and for the instrument of a specific type, an ATS system administrator needs to specify a real instruction code corresponding to each pseudo-instruction of the instrument type to which the ATS system administrator belongs when adding or managing the instrument of the specific type. Based on the mechanism, the upper-layer test service program only needs to specify the type of the required test instrument and the sending logic of the pseudo instruction, and the corresponding real instruction is sent to a user for editing and multiplexing.

Description

Space flight automatic test method based on virtual instrument pseudo-instruction mechanism
Technical Field
The invention is oriented to the aerospace field, is suitable for hardware cascade test software of satellites and other aerospace products, and is an automatic test method based on a general instruction mechanism of a virtual instrument.
Background
The product Testing work in the aerospace field does not leave the support of various Testing and measuring instruments, so the measurement and control of the instruments become an important basis of an Automatic Testing System (ATS). The virtual instrument technology which is started in the beginning of the 21 st century embeds a communication module which follows a specific interface specification in hardware, uses a computer to connect and write a corresponding program to complete the required test work, and improves the test efficiency to a certain extent. According to the technical standard of virtual instruments, the test instrument in the aerospace field can be divided into two major branches: one type is a test Instrument which follows the IVI (Interchangeable Virtual Instrument) specification and can be programmed by using the VISA (Virtual Instrument software architecture) library API, which is referred to as a standard Instrument in the invention; the other type is a test instrument using a self-defined communication protocol for performing a specific space measurement and control task, which is generally developed by a research institute or other cooperative manufacturers and is called a non-standard (standard) instrument or a self-developed instrument. The test instruments under each branch can be divided into a plurality of types, such as a spectrum analyzer, a frequency meter and the like, and then each type also comprises a plurality of models, such as Agilent E4440, RSA6114A and the like of the spectrum analyzer, so that a tree relationship of branch-type-model is formed.
At present, most of the huge number of special ATSs in the aerospace field are only suitable for one or more specific models of standard instruments or specified instrument types under the branch of self-developed instruments, and due to the fact that different models of test instruments are suitable for different instructions and the like, when a new test task needing different models of test instruments appears, a new set of ATS is often required to be redesigned and developed. With the increasing demand of aerospace products, the development period of the aerospace products is continuously shortened, the time for testing is obviously shortened, the one-set ATS has poor universality, almost zero expandability, current development at present and frequent consumption of manpower and financial resources, the requirement of the aerospace testing work which is increased year by year is difficult to meet, the development of the ATS in the aerospace field towards the direction of generalization, transportability and easy expansion becomes a necessary trend, and the ATS is a major challenge so far.
Disclosure of Invention
Technical problem to be solved
In order to avoid the defects of the prior art, the invention provides an aerospace automation test method based on a virtual instrument pseudo-instruction mechanism.
Technical scheme
An aerospace automated testing method based on a virtual instrument pseudo-instruction mechanism is characterized by comprising the following steps:
step 1: for a certain type of instrument, a set of pseudo-instruction templates is made
Defining a pseudo instruction method, wherein a pseudo instruction is a mapping of an instrument test function which can be completed by an independent instruction action and consists of a pseudo instruction name PI, a real instruction code RI and a remark description 3; PI is the only simplified name for this function; the RI is a real instruction which is used by the instrument of the current model to finish the test function represented by the PI and can reserve the parameter position, and can be null; remarks are appropriate descriptions for this pseudo-instruction;
the pseudo instruction template is a set of pseudo instructions of a certain type of instrument and is shared by all types of instruments under the type, the pseudo instruction sets of all types are completely consistent with the pseudo instruction template when being generated, but the PI part can not be modified, only the addition and deletion of the whole pseudo instruction can be carried out synchronously with the template, and the RI part can be dynamically edited;
the pseudo instruction template is the mapping of the union set of the test functions which can be completed by all types of instruments under the type, but when the pseudo instruction template is initially set, the common test function set of the type of instruments is mapped into the pseudo instruction template, wherein RI can be an instruction code of a common type or can be null;
step 2: editing real instruction codes corresponding to pseudo instructions of types of specific instrument models in ATS library
The pseudo-instruction method specifies that the ATS manages the virtual instrument library by adopting a tree-like relation of 'branch-type-model', and suggests that the persistent layer uses extensible markup language (XML) to access the pseudo-instruction information; the RI corresponding to each PI of the instrument type to which the instrument belongs needs to be edited by the user for the instrument of the specific model in the library, and attention needs to be paid to:
a) when a function required by a certain test of the instrument of the model cannot find the mapping in the pseudo-instruction template, a user can add a pseudo-instruction corresponding to the function into the pseudo-instruction template;
b) when the instrument of the model does not have the test function corresponding to a certain pseudo instruction in the pseudo instruction template, the RI in the pseudo instruction is set to be null;
c) for a standard instrument, RI can use SCPI language, which defines a general command syntax specification that can be used for programmable instrument measurement and control, wherein positions of required parameter values and units are respectively marked by "$" and "#";
d) for self-research instruments, the RI generally uses hexadecimal frames of data, the parameter portions being represented by different field mnemonics FM and length;
and step 3: developing test programs, specifying the type of instruments used and pseudo-instruction issue logic
An ATS carrying a pseudo-instruction mechanism should have two key common functions: the function 1 converts PI into RI by instrument branch, type, model and PI; function 2 replaces $ and # in standard instrument RI, or FM in self-developed instrument RI, by instrument branch, RI, parameter value, and unit, into final instruction FI;
and 4, step 4: dynamic configuration of specific instrument information for test program, conversion and transmission of instructions during program execution
Before the test program is executed, a user needs to dynamically configure instrument information used by the test program, wherein the instrument information comprises instrument branches and instrument models; in the program execution process, the instruction sending related code segment is matched with the function 1 and the function 2 to complete the conversion of PI → RI → FI, and finally the FI is sent to the appointed hardware instrument through the instrument driving interface.
In step 2c), for the function of "setting the value of the center frequency point" of the instrument of the type spectrometer under the standard instrument branch, the pseudo instruction corresponding to the model AgilentE4447 is as shown in the following table:
Figure BDA0002538808120000031
advantageous effects
The invention provides a virtual instrument measurement and control pseudo-instruction mechanism which comprises the following steps: the invention can package each function unit of a certain type of instrument into a pseudo instruction, and for the instrument with a specific type, an ATS system administrator needs to specify a real instruction code corresponding to each pseudo instruction of the instrument type to which the ATS system administrator belongs when adding or managing. Based on the mechanism, the upper-layer test service program only needs to specify the type of the required test instrument and the sending logic of the pseudo instruction, and the corresponding real instruction is sent to a user for editing and multiplexing.
A general automatic test platform which is developed by taking the automatic test method as a key technology is delivered to operate in the aerospace five-institute payload AIT center. Due to the fact that the platform carries the pseudo-instruction mechanism, compared with the traditional special ATS, the platform has strong superiority in development and application of each type of instrument test program, and the advantages are shown in the following table.
Figure BDA0002538808120000041
The automatic test method based on the pseudo-instruction mechanism is proposed to solve the problem of instrument instruction unification under different manufacturers and different standards, and can be directly adopted in the development of ATS in the aerospace field in future.
Drawings
FIG. 1 is a pseudo-instruction look-up table (section) for a model of a standard instrument spectrometer.
FIG. 2 is a pseudo-command comparison table (section) for a model of self-contained instrument "TMTC".
Detailed Description
The invention will now be further described with reference to the following examples and drawings:
step 1: for a certain type of instrument, a set of pseudo-instruction templates is prepared.
The Pseudo-Instruction method is defined, and a Pseudo-Instruction is a mapping of an instrument test function which can be completed by an independent Instruction action and consists of a Pseudo-Instruction name (PI), a Real Instruction code (RI) and a remark Instruction 3 part. The PI is the only simplified name of the function, the RI is a real instruction which is used by the current model instrument to complete the test function represented by the PI and can reserve the parameter position, and the RI can be null, and the remark description is a proper description for the pseudo instruction.
The pseudo instruction template is a set of pseudo instructions of a certain type of instrument and is shared by all types of instruments under the type, the pseudo instruction sets of all types are completely consistent with the pseudo instruction template when being generated, but the PI part cannot be modified, the addition and deletion of the whole pseudo instruction can be carried out only synchronously with the template, and the RI part can be dynamically edited.
Theoretically, the pseudo instruction template is a mapping of a union set of test functions which can be completed by all types of instruments under the type, but when the pseudo instruction template is initially formulated, a common test function set of the type of instrument is mapped into the pseudo instruction template, wherein RI can be an instruction code of a common type or can be null.
Step 2: and editing a real instruction code corresponding to the pseudo instruction of the type of the specific instrument model in the ATS library.
The pseudo-instruction method provides that the ATS manages the virtual instrument library with a tree-like relationship of "type-type" and suggests that the persistence layer uses XML (extensible markup language) to access the pseudo-instruction information. The RI corresponding to each PI of the instrument type to which the instrument belongs needs to be edited by the user for the instrument of the specific model in the library, and at this time, attention is paid to:
a) when the mapping cannot be found in the pseudo-instruction template for a function required by a certain test of the instrument of the model, the user can add a pseudo-instruction corresponding to the function into the pseudo-instruction template.
b) When the instrument of the model does not have the test function corresponding to a certain pseudo instruction in the pseudo instruction template, the RI in the pseudo instruction is set to be null.
c) For standard instruments, RI may use the scpi (standard Commands for programmable instruments) language, which defines a common command syntax specification that programmable instrument instrumentation can use, where the positions of the required parameter values and units are identified with "$" and "#", respectively. For example, for the "set center frequency point value" function of an instrument of the type spectrometer under the standard instrument branch, the pseudo-instruction corresponding to the model AgilentE4447 is shown in the following table.
Figure BDA0002538808120000061
A set of pseudo-instructions of this type, made up of several such pseudo-instructions, is shown in figure 1.
d) For self-research instruments, RI typically uses hexadecimal frames of data, with the parameter part being represented by a different Field Mnemonic (FM) and Length, e.g., "[ Length:4 ]" meaning that the Field identifies the frame Length and consists of 4 bytes under the large end, as determined by the different self-research instrument communication protocols. For example, for the function of "preparing to send file response" of the equipment with the type of "universal remote control (TMTC)" in the branch of self-research equipment, the pseudo command corresponding to the model ZT001 is shown in the following table.
Figure BDA0002538808120000062
A set of pseudo-instructions of this type, made up of several such pseudo-instructions, is shown in figure 2.
And step 3: a test program is developed that specifies the type of instrument used and the pseudo-instruction issue logic.
An ATS carrying a pseudo-instruction mechanism should have two key common functions: the function 1 converts PI into RI by instrument branch, type, model and PI; function 2 converts $ and # in standard instrument RI, or FM in self-developed instrument RI, to Final Instructions (FI) by instrument branch, RI, parameter value, and unit.
When a virtual instrument panel or an automatic test program is developed, a developer only needs to specify the type of an instrument used for testing and specify the sending sequence of the PI by contrasting a pseudo instruction template of each type of the instrument used while designing test logic, does not need to care what the type of the instrument used and the RI are during execution, and reduces the burden of the developer.
And 4, step 4: the method comprises the steps of dynamically configuring information of specific instruments used by a test program, and converting and sending instructions in the program execution process.
Before the test program is executed, a user needs to dynamically configure the instrument information used by the test program, including the instrument branch and the instrument model. In fact, it has become a widely used method in the industry to dynamically configure variable parameters in an automated test program through a configuration file in the form of Excel or the like, and instrument information required by the pseudo-instruction method can also be written into the configuration file so as to facilitate program loading, without affecting the automation degree of the test.
In the program execution process, the instruction sending related code segment is matched with the function 1 and the function 2 to complete the conversion of PI → RI → FI, and finally the FI is sent to the appointed hardware instrument through the instrument driving interface.
Therefore, the invention completes all steps of the automatic test method based on the pseudo-instruction mechanism.

Claims (2)

1. An aerospace automated testing method based on a virtual instrument pseudo-instruction mechanism is characterized by comprising the following steps:
step 1: for a certain type of instrument, a set of pseudo-instruction templates is made
Defining a pseudo instruction method, wherein a pseudo instruction is a mapping of an instrument test function which can be completed by an independent instruction action and consists of a pseudo instruction name PI, a real instruction code RI and a remark description 3; PI is the only simplified name for this function; the RI is a real instruction which is used by the instrument of the current model to finish the test function represented by the PI and can reserve the parameter position, and can be null; remarks are appropriate descriptions for this pseudo-instruction;
the pseudo instruction template is a set of pseudo instructions of a certain type of instrument and is shared by all types of instruments under the type, the pseudo instruction sets of all types are completely consistent with the pseudo instruction template when being generated, but the PI part can not be modified, only the addition and deletion of the whole pseudo instruction can be carried out synchronously with the template, and the RI part can be dynamically edited;
the pseudo instruction template is the mapping of the union set of the test functions which can be completed by all types of instruments under the type, but when the pseudo instruction template is initially set, the common test function set of the type of instruments is mapped into the pseudo instruction template, wherein RI can be an instruction code of a common type or can be null;
step 2: editing real instruction codes corresponding to pseudo instructions of types of specific instrument models in ATS library
The pseudo-instruction method specifies that the ATS manages the virtual instrument library by adopting a tree-like relation of 'branch-type-model', and suggests that the persistent layer uses extensible markup language (XML) to access the pseudo-instruction information; the RI corresponding to each PI of the instrument type to which the instrument belongs needs to be edited by the user for the instrument of the specific model in the library, and attention needs to be paid to:
a) when a function required by a certain test of the instrument of the model cannot find the mapping in the pseudo-instruction template, a user can add a pseudo-instruction corresponding to the function into the pseudo-instruction template;
b) when the instrument of the model does not have the test function corresponding to a certain pseudo instruction in the pseudo instruction template, the RI in the pseudo instruction is set to be null;
c) for a standard instrument, RI can use SCPI language, which defines a general command syntax specification that can be used for programmable instrument measurement and control, wherein positions of required parameter values and units are respectively marked by "$" and "#";
d) for self-research instruments, the RI generally uses hexadecimal frames of data, the parameter portions being represented by different field mnemonics FM and length;
and step 3: developing test programs, specifying the type of instruments used and pseudo-instruction issue logic
An ATS carrying a pseudo-instruction mechanism should have two key common functions: the function 1 converts PI into RI by instrument branch, type, model and PI; function 2 replaces $ and # in standard instrument RI, or FM in self-developed instrument RI, by instrument branch, RI, parameter value, and unit, into final instruction FI;
and 4, step 4: dynamic configuration of specific instrument information for test program, conversion and transmission of instructions during program execution
Before the test program is executed, a user needs to dynamically configure instrument information used by the test program, wherein the instrument information comprises instrument branches and instrument models; in the program execution process, the instruction sending related code segment is matched with the function 1 and the function 2 to complete the conversion of PI → RI → FI, and finally the FI is sent to the appointed hardware instrument through the instrument driving interface.
2. The method according to claim 1, wherein in step 2c), for the function of "setting the value of the center frequency point" of the instrument with the type of spectrometer under the standard instrument branch, the pseudo-instruction corresponding to the model AgilentE4447 is as shown in the following table:
Figure FDA0002538808110000021
CN202010540639.4A 2020-06-15 2020-06-15 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism Active CN111782509B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010540639.4A CN111782509B (en) 2020-06-15 2020-06-15 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010540639.4A CN111782509B (en) 2020-06-15 2020-06-15 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Publications (2)

Publication Number Publication Date
CN111782509A true CN111782509A (en) 2020-10-16
CN111782509B CN111782509B (en) 2022-11-29

Family

ID=72756422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010540639.4A Active CN111782509B (en) 2020-06-15 2020-06-15 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Country Status (1)

Country Link
CN (1) CN111782509B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703836A (en) * 2021-08-20 2021-11-26 北京空间飞行器总体设计部 SCPI instruction management method for spacecraft power system evaluation
CN113934186A (en) * 2021-10-10 2022-01-14 苏州大学 Multi-pass control instrument control method based on SCPI (System configuration and interface) command

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6101578A (en) * 1994-09-30 2000-08-08 Intel Corporation Method and apparatus for providing test mode access to an instruction cache and microcode ROM
US6327559B1 (en) * 1999-05-04 2001-12-04 International Business Machines Corporation Method for creating a simulation environment for enhanced logic verification of a branch history table
CN101872313A (en) * 2010-05-18 2010-10-27 重庆大学 Method for developing intelligent control-oriented virtual instrument capable of reconfiguring functions
CN102681821A (en) * 2011-12-31 2012-09-19 浙江大学 Binary tool set designing method based on C-SKY v2 instruction set
CN102681838A (en) * 2010-11-10 2012-09-19 欧贝特技术公司 Method, computer program and device for providing security for intermediate programming code for its execution by a virtual machine
CN103092156A (en) * 2012-12-26 2013-05-08 莱诺斯科技(北京)有限公司 Device replaceable automatic test system and method
CN105659889B (en) * 2009-12-09 2013-08-14 北京航天测控技术有限公司 A kind of test signal is to the dynamic binding method of Instrumentation Motion
US20160092175A1 (en) * 2014-09-29 2016-03-31 National Instruments Corporation Remote Interface to Logical Instruments

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6101578A (en) * 1994-09-30 2000-08-08 Intel Corporation Method and apparatus for providing test mode access to an instruction cache and microcode ROM
US6327559B1 (en) * 1999-05-04 2001-12-04 International Business Machines Corporation Method for creating a simulation environment for enhanced logic verification of a branch history table
CN105659889B (en) * 2009-12-09 2013-08-14 北京航天测控技术有限公司 A kind of test signal is to the dynamic binding method of Instrumentation Motion
CN101872313A (en) * 2010-05-18 2010-10-27 重庆大学 Method for developing intelligent control-oriented virtual instrument capable of reconfiguring functions
CN102681838A (en) * 2010-11-10 2012-09-19 欧贝特技术公司 Method, computer program and device for providing security for intermediate programming code for its execution by a virtual machine
CN102681821A (en) * 2011-12-31 2012-09-19 浙江大学 Binary tool set designing method based on C-SKY v2 instruction set
CN103092156A (en) * 2012-12-26 2013-05-08 莱诺斯科技(北京)有限公司 Device replaceable automatic test system and method
US20160092175A1 (en) * 2014-09-29 2016-03-31 National Instruments Corporation Remote Interface to Logical Instruments

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李晓静: "自动测试系统中仪器资源管理的设计与实现", 《工业控制计算机》 *
肖勇: "通用自动测试系统软件平台中仪器互换技术的研究", 《计量与测试技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113703836A (en) * 2021-08-20 2021-11-26 北京空间飞行器总体设计部 SCPI instruction management method for spacecraft power system evaluation
CN113934186A (en) * 2021-10-10 2022-01-14 苏州大学 Multi-pass control instrument control method based on SCPI (System configuration and interface) command
CN113934186B (en) * 2021-10-10 2023-08-11 苏州大学 Multi-program-controlled instrument control method based on SCPI command

Also Published As

Publication number Publication date
CN111782509B (en) 2022-11-29

Similar Documents

Publication Publication Date Title
US7823168B1 (en) Communication system
CN111782509B (en) Space flight automatic test method based on virtual instrument pseudo-instruction mechanism
CN104778124B (en) A kind of software application automated testing method
CN112783794B (en) Aviation communication radio station software testing system
US20070005805A1 (en) System and method for managing and exchanging the data of a technical project, technical installation and individual installation components
CN111985055B (en) Model packaging method and device and electronic equipment
CN111385292B (en) Descriptor-based protocol message and data interaction method and system
CN113626038A (en) Code conversion method, device, equipment and storage medium
CN111045838B (en) Distributed driving middleware based on remote procedure call protocol
CN108959094B (en) Method for defining and applying test program based on data structure
CN113505054B (en) Network data static test system and test method for unmanned aerial vehicle control station
CN101566835A (en) Method and device for controlling instrument
CN104063231A (en) Test resource rapid access method based on HIT-TENA
TW201321765A (en) Automatic test system of communication device
CN113220561A (en) Test case management method, device, equipment and medium
CN114845328B (en) Polymorphism NR radio frequency test system, test case generation method and test method
CN115833964A (en) Performance test method and performance test system of dual-mode communication module
CN115050365A (en) Vehicle-mounted multimode interaction method
CN111580789B (en) Function block frame generation
Scherfke Mosaik documentation
JPH0359476A (en) Method for measuring electronic circuit
CN105335153A (en) Dynamic script automatic-generating method
CN117724920B (en) Test method and device of embedded equipment, upper computer and medium
CN112653648B (en) Method and device for generating communication protocol
JP2013045350A (en) Model transforming device, model transforming method, and program

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
GR01 Patent grant
GR01 Patent grant