CN111782509B - 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
CN111782509B
CN111782509B CN202010540639.4A CN202010540639A CN111782509B CN 111782509 B CN111782509 B CN 111782509B CN 202010540639 A CN202010540639 A CN 202010540639A CN 111782509 B CN111782509 B CN 111782509B
Authority
CN
China
Prior art keywords
instrument
instruction
pseudo
type
test
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.)
Active
Application number
CN202010540639.4A
Other languages
Chinese (zh)
Other versions
CN111782509A (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

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 virtual instrument general instruction mechanism.
Background
The product Testing in the aerospace field is not supported by various Testing and measuring instruments, so that the product Testing becomes an important basis for an Automatic Testing System (ATS) for instrument measurement and control. 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 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 and RSA6114A of the spectrum analyzer and the like, so as to form a tree relationship of branch-type-model.
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 ATS of the 'one set' has poor universality, almost zero expandability, current use, development at present and frequent consumption of manpower and financial resources, the requirement of aerospace testing work increasing year by year is difficult to meet, the development of the ATS in the aerospace field towards the direction of generalization, portability and easy expansion becomes a necessary trend, and the ATS is a great 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 current type instrument 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 a test function corresponding to a certain pseudo instruction in the pseudo instruction template, 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 which can be used for measurement and control of a programmable instrument, wherein positions requiring 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 3, step 3: developing test programs, specifying instrument types 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 2 c), 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 certain universal automatic test platform which is developed by taking the automatic test method as a key technology is delivered to and operated in an aerospace five-yard effective load AIT center. Due to the fact that the platform is provided with the pseudo-instruction mechanism, compared with a 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-command comparison table (portion) for a model of 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 PI part can only be added and deleted with the template synchronously, 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 should be set to be null.
c) For Standard Instruments, RI can use the SCPI (Standard Commands for Programmable Instruments) language, which defines a common command syntax specification that Programmable instrument instrumentation can use, where the locations of 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 3, step 3: a test program is developed that specifies the type of instrument used and the pseudo-command issuing 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, into 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 cannot be modified, the PI part can only be added and deleted with the template synchronously, 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;
and 2, step: 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 a test function corresponding to a certain pseudo instruction in the pseudo instruction template, 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 which can be used for measurement and control of a programmable instrument, wherein positions requiring parameter values and units are respectively marked by "$" and "#";
d) For self-research instruments, the RI typically uses hexadecimal data frames, with the parameters partially represented by different fields 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 is used for replacing $ and # in standard instrument RI or replacing FM in self-research instrument RI by instrument branch, RI, parameter value and unit, and converting into final instruction FI;
and 4, step 4: dynamic configuration of specific instrument information for test program, and 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 space automation test method based on the dummy command mechanism of the virtual instrument as claimed in claim 1, wherein in step 2 c), for the function of "setting the value of the center frequency point" of the instrument with the type of the spectrometer under the standard instrument branch, the dummy command 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 CN111782509A (en) 2020-10-16
CN111782509B true 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)

Families Citing this family (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
CN113934186B (en) * 2021-10-10 2023-08-11 苏州大学 Multi-program-controlled instrument control method based on SCPI command

Citations (7)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9785415B2 (en) * 2014-09-29 2017-10-10 National Instruments Corporation Remote interface to logical instruments

Patent Citations (7)

* 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

Non-Patent Citations (2)

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

Also Published As

Publication number Publication date
CN111782509A (en) 2020-10-16

Similar Documents

Publication Publication Date Title
CN111782509B (en) Space flight automatic test method based on virtual instrument pseudo-instruction mechanism
US7823168B1 (en) Communication system
US6715139B1 (en) System and method for providing and displaying debugging information of a graphical program on a first computer during execution of the graphical program on a second computer
US8290990B2 (en) System and method for managing and exchanging data of a technical project, technical installation and individual installation components
US5847953A (en) System and method for performing class checking of objects in a graphical data flow program
CN111459889B (en) Equipment data model generation method and device for Internet of things platform
US8549467B2 (en) Integrating software components in a software system using configurable glue component models
CN109032577B (en) Data simulation method
CN112783794A (en) Aviation communication radio station software test system
US8266596B2 (en) Source code analyzing system and source code analyzing method
CN111650847A (en) Method for integrating actuator model in aeroengine hardware on loop platform
CN107391366A (en) The generation method and execution method and apparatus of a kind of test case
CN110196720A (en) A kind of Simulink generates the optimization method of dynamic link library
CN108959094B (en) Method for defining and applying test program based on data structure
CN115098218A (en) Method for describing and simulating functional block model from FMU (functional modeling Unit) model to configuration software
CN102750177B (en) Script realization method using compiler
CN104063231A (en) Test resource rapid access method based on HIT-TENA
CN111045838A (en) Distributed driving middleware based on remote procedure call protocol
CN103164545A (en) Visual editing method of virtual electronic components
US20010051974A1 (en) Method and apparatus for automatic generation of data interfaces
CN113220561A (en) Test case management method, device, equipment and medium
CN100375031C (en) Restructurable virtual device for software bus and chip structure
WO2004036420A1 (en) Program development support device, program execution device, compile method and debug method
CN115833964A (en) Performance test method and performance test system of dual-mode communication module
Scherfke Mosaik documentation

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