CN104569650B - A kind of instrument driving implementation method based on signal - Google Patents

A kind of instrument driving implementation method based on signal Download PDF

Info

Publication number
CN104569650B
CN104569650B CN201410647181.7A CN201410647181A CN104569650B CN 104569650 B CN104569650 B CN 104569650B CN 201410647181 A CN201410647181 A CN 201410647181A CN 104569650 B CN104569650 B CN 104569650B
Authority
CN
China
Prior art keywords
signal
instrument
code
tsf
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
CN201410647181.7A
Other languages
Chinese (zh)
Other versions
CN104569650A (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.)
Shaanxi Hitech Electronic Co Ltd
Original Assignee
Shaanxi Hitech Electronic Co Ltd
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 Shaanxi Hitech Electronic Co Ltd filed Critical Shaanxi Hitech Electronic Co Ltd
Priority to CN201410647181.7A priority Critical patent/CN104569650B/en
Publication of CN104569650A publication Critical patent/CN104569650A/en
Application granted granted Critical
Publication of CN104569650B publication Critical patent/CN104569650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A kind of instrument driving implementation method based on signal, this method describes signal library at TSF layers using XML, is then converted into signal library to call the library code of operation;ATML standards are introduced at TR layers, testing requirement is described using XML, is then converted into calling the code of TSF signal libraries;During TR layers of description are converted into code, instrument drivers are have invoked.The present invention utilizes the concept and method of STD signals, with reference to instrument drivers, by ATML test description contents be automatically converted into can compilation run test program code, the interchangeability of tester is realized, and greatly improves other various characteristics such as expansible test software portable, test system, system component reusable, test program set interoperability.

Description

A kind of instrument driving implementation method based on signal
Technical field
It is specifically a kind of to build the invention belongs to test measurement (Test and Measurement, T&M) field The implementation method of the instrument drivers of Auto-Test System (Automatic Test System, ATS).
Background technology
In order to avoid manually operated poorly efficient, ATS needs to carry out programme-control to tester, and this is accomplished by instrument driving Program performs control command, transmission state parameter and returning result data as the intermediary between system software and specific instrument.
As equipment under test or system (Unit Under Test, UUT) become increasingly complex, test parameter to be obtained It is more and more various with the test process to be performed, the tester used also just correspondingly become increasingly complex with it is various, therefore more More to require that ATS has expansible interchangeable tester, test software portable, test system, system component reusable, survey Try the various characteristics such as procedure set interoperability.In these requirements, instrument drivers are directly related with the interchangeable characteristic of tester, And other characteristics are had a major impact.
In order to meet these requirements, ATS softwares and instrument driving generally require to follow certain exploitation style.According to setting out The difference of point, there is the following three kinds styles differed from one another, and every kind of standard for having correlation is supported:
1)From test equipment, the test based on instrument.Testing requirement, is directly assigned to by this style simple, intuitive It can be achieved on the API (Application Programming Interface) that instrument is provided, thus it is most widely used.IVI (Interchangeable Virtual Instrument) standard is its Typical Representative.Have the disadvantage that software is easy to and specific instrument Device is bound, so as to damage equipment compatibility and software transportability.
2)From testing field, the test based on function.This is particularly suitable for the survey that those have standard gauge to determine test process Examination field, for example electromagnetic compatibility test.IVI-MSS (Measurement and Stimulus Subsystems) standard is it Typical Representative.But non-standard test is many in real world, causes IVI-MSS standards, can not possibly to be also not specified by specific work( Can interface, the impossible interoperation test procedure set between different ATS.In addition, higher is required to peopleware, therefore application is inadequate Extensively.
3)From measurand, the test based on signal.Because signal kinds are limited, it can describe exactly, and Be not related to specific test equipment, so the characteristic such as equipment compatibility, test program set interoperability is all fine, exceeded before Two types.ATLAS (Abbreviated Test Language for All Systems) standard is its Typical Representative, very More large-scale ATS has used ATLAS.Have the disadvantage that development process is complicated, it is necessary to expensive proprietary instrument, so using also wideless.
IEEE is directed to 1671 and 1641 standards of current ATS requirement definition.The professional standards of IEEE 1671 are simultaneously IEC 61671 international standards, also known as ATML (Automatic Test Markup Language), effect is the letter for providing various objects Cease DIF;The standards of IEEE 1641 are also known as STD (Signal and Test Definition), and effect is using signal as base Plinth is described and modeled to test process, is succession and development to ATLAS.The two standards are interrelated, and ATML is quoted STD content as test description means;STD is used as requirement source using the document for meeting ATML.Reasonably utilize, efficiently Realize that this two standards can reach the targets such as interchangeability, transplantability, autgmentability, durability, interoperability in ground.
Referring to Fig. 1, STD standards include SML (Signal Modeling Language), BSC (Basic Signal Component), four layers of TSF (Test Signal Framework) and TR (Test Requirement) etc..To exploitation ATS's For most of users, the SML and BSC of lower floor immobilize, the work to be done be in two layers of conceputal modeling of TR and TSF, And with reference to instrument drivers convert thereof into can actual motion test program.The operation that TSF layers of description is performed to signal, can To use IDL (Interface Definition Language) and two kinds of XML (eXtensible Markup Language) Describing mode;TR layers of description demand signals, can use IDL, XML and TPL (Test Procedure Language) etc. three Plant describing mode.
IDL is a kind of software development technique applied for a long time, and the developing instrument for having many prevalences is supported, but it also has very big Shortcoming.IDL itself only describes interface without describing process, is adapted to the signal library of TSF layers of description, and can not describe to believe containing process The testing requirement of breath, so TR layers of testing requirement is hidden in the program code using the IDL certain programmed languages called.This Both the portability of test software had been compromised, has made this method unsuitable again as high-level requirement description instrument.Europe Enterprise EADS takes the lead in being proposed the test software NewwaveX SD using IDL there is provided signal development environment and based on signal Test platform.
TPL is the testing requirement description instrument that STD standards itself are proposed, is also unique TR layers of technology in earlier version. TPL is the neutral technology unrelated with specific programming language, is embedded in the mode of annotation in program code, so needing to carry out it Pre-process, be converted into after programming language sentence being just compiled into executable code.The implementation process of this mode is more difficult, at present It there is no well-known commercial development instrument.
The content of the invention
It is an object of the invention to provide a kind of instrument driving implementation method based on signal, its whole link is all used XML technology, employs the solutions different from NewwaveX SD.
The present invention technical solution be:
A kind of instrument driving implementation method based on signal, it is characterized in that:This method is retouched at TSF layers using XML Signal library is stated, is then converted into signal library to call the library code of operation;ATML standards are introduced at TR layers, XML is used Testing requirement is described, is then converted into calling the code of TSF signal libraries;In the process for describing to be converted into code by TR layers In, it have invoked instrument drivers.
Above-mentioned instrument drivers are divided into two layers of explorer and instrument driving component;The explorer on the upper strata It is single blob, the testing requirement that processing is described with signal form, and convert thereof into specific instrument driving component Call;The instrument driving component of the lower floor is the more single small object of many functions, and effect is encapsulation distinct interface, inhomogeneity The instrumental function of type, and unified signal invocation component is provided.
The above-mentioned instrument driving implementation method based on signal, it is characterized in that, this method is specifically included:
1)Edit the TSF signal libraries of XML format;
STD standards provide XML Schema for TSF signal libraries, so can be carried out using general XML instruments to it Editor;There is provided supporting graphical TSF signal libraries edit tool, import, export qualified TSF signal libraries;
2)TSF signal libraries are converted into interface code;
The TSF signal libraries of XML format are converted into C# bank codes, it is necessary first to which its sequence is melted into C# descriptor objects, Then C# interface codes file and corresponding project profile are exported into using code Generation accordingly;
3)Edit the testing requirement of XML format;
ATML standards provide XML Schema for test description, wherein being greatly testing requirement, so using General XML instruments can enter edlin to it;Edit tool is configured there is provided supporting graphic process, is imported, export is closed The test description of lattice;
4)Testing requirement is converted into storehouse to call;
The test description of XML format is converted into C# codes, it is necessary first to retouch testing requirement sequence therein chemical conversion C# Symbol object is stated, then C# code files and corresponding project profile is exported into using code Generation accordingly;This Process needs to mix TSF interface codes and explorer calls code.
Above-mentioned explorer includes:
1)Information registering;Self information is registered in the information distribution center that this both sides both knows about by instrument driving component (Repository) when, program is performed it can be found that, start and adjust and be used to perform test, this is equivalent in operating system Registration table;
2)Ability integration;Explorer, which can be inquired about, is registered in all component information therein, and believes from scattered component Breath, which is concluded, integrates the power of test that system resource currently has;
3)The matching analysis;When certain testing requirement signal is suggested, explorer is analyzed and processed, and and resource Power of test carries out matching comparison, provides optimal matching resource;
4)Session management;Interacted during test execution with instrument, instrument is not manipulated directly in order to reduce coupling, but will It gives resource manager processes;
5)Call conversion;Upper procedure describes demand using signal language, and underlying instrument can only drive by API Calls, because This must realize the conversion from signal to function call.
Above-mentioned instrument driving component is that specific instrument driving realizes code, it is necessary to which instrument supplier is carried in API forms The apparatus measures function package of confession is into message reference interface to call.
Above-mentioned API forms have VISA, IVI and DAQ form;Additionally, due to the opening of framework, it is not limited in selecting this A little API, any type of API can be used.
Present invention comprehensive utilization XML technology, code Generation, tool interface system technology, STD signals concept, ATML data The different element such as switching technology, with lot of advantages:
1. standardization completely.It is of the invention whole in accordance with relevant criterions such as XML, STD and ATML, except realizing tester Outside this main target of interchangeability, other various characteristics can also be strengthened;
2. Code automatic build.TSF signal descriptions are converted into interface code storehouse by the present invention, will meet the survey of ATML standards Calling for the examination description paired instrument driving code of automatic conversion, reduces the difficulty that exploitation is used;
3. testing requirement is independent.Testing requirement is described using XML, and has ATML standard guidances, it is not necessary to checked specially Some programming language codes, suitable for high-level testing requirement express;
4. fill up technological gap.The instrument drivers for being based entirely on STD signal standards there is no realization at home, abroad There are a small number of realizations described based on IDL, therefore the present invention has filled up related technological gap.
Brief description of the drawings
Fig. 1 is the hierarchy for the STD standards (IEEE 1641) that the present invention is quoted, the background skill for illustrating the present invention Art;
Fig. 2 is the framework of instrument driving, the software configuration for illustrating the present invention;
Fig. 3 is that instrument driving realizes schematic diagram, the embodiment for illustrating the present invention.
Embodiment
Referring to Fig. 2, the present invention provides a kind of instrument driving implementation method based on signal, including following particular contents:
1)Edit the TSF signal libraries of XML format;
STD standards provide XML Schema for TSF signal libraries, so can be carried out using general XML instruments to it Editor.In order to improve editorial efficiency, reduction using threshold, reduction mistake, the invention provides supporting graphical TSF letters Number storehouse edit tool, can import, export qualified TSF signal libraries.
2)TSF signal libraries are converted into interface code;
The TSF signal libraries of XML format are converted into C# bank codes, it is necessary first to which its sequence is melted into C# descriptor objects, Then C# interface codes file and corresponding project profile are exported into using code Generation accordingly.
3)Edit the testing requirement of XML format;
ATML standards provide XML Schema for test description, wherein being greatly testing requirement, so using General XML instruments can enter edlin to it.Threshold, reduction mistake, this hair are used in order to improve editorial efficiency, reduction It is bright to configure edit tool there is provided supporting graphic process, it can import, export qualified test description.
4)Testing requirement is converted into storehouse to call;
The test description of XML format is converted into C# codes, it is necessary first to retouch testing requirement sequence therein chemical conversion C# Symbol object is stated, then C# code files and corresponding project profile is exported into using code Generation accordingly.This Process is generally similar with the 2nd, but the content involved is more, it is necessary to mix TSF interface codes and explorer calls generation Code.
5)Explorer
Explorer major function includes:
5.1)Information registering;Self information is registered in the information distribution center that this both sides both knows about by instrument driving component (Repository) when, program is performed it can be found that, start and adjust and be used to perform test, this is equivalent in operating system Registration table.
5.2)Ability integration;Explorer, which can be inquired about, is registered in all component information therein, and from scattered component Information, which is concluded, integrates the power of test that system resource currently has.
5.3)The matching analysis.When certain testing requirement signal is suggested, explorer is analyzed and processed, and with money Source power of test carries out matching comparison, provides optimal matching resource.
5.4)Session management;Interacted during test execution with instrument, instrument is not manipulated directly in order to reduce coupling, but It is handed over to resource manager processes.
5.5)Call conversion;Upper procedure describes demand using signal language, and underlying instrument can only drive by API Calls, Therefore the conversion from signal to function call must be realized.
6)Instrument driving component;
Instrument driving component is that specific instrument driving realizes code, it is necessary to which instrument supplier is provided in API forms Apparatus measures function package is into message reference interface to call.Referring to Fig. 3, conventional API has the shapes such as VISA, IVI and DAQ Formula, so as to also there is different types of instrument driving component.Due to the opening of framework, it is not limited in selecting these API, it is any The API of form can be used.

Claims (4)

1. a kind of instrument driving implementation method based on signal, it is characterised in that:This method describes signal at TSF layers using XML Signal library, is then converted into that the library code of operation can be called by storehouse;ATML standards are introduced at TR layers, describe to survey using XML Examination demand, is then converted into calling the code of TSF program libraries;During TR layers of description are converted into code, call Instrument drivers;
The instrument drivers are divided into two layers of explorer and instrument driving component;The explorer on upper strata is single Blob, the testing requirement that processing is described with signal form, and convert thereof into calling for specific instrument driving component;Lower floor Instrument driving component be the more single small object of many functions, effect is encapsulation distinct interface, different types of instrumental function, And unified signal invocation component is provided;
This method is specifically included:
1)Edit the TSF signal libraries of XML format;
STD standards provide XML Schema for TSF signal libraries, so can enter edlin to it using general XML instruments; There is provided supporting graphical TSF signal libraries edit tool, import, export qualified TSF signal libraries;
2)TSF signal libraries are converted into interface code;
The TSF signal libraries of XML format are converted into C# bank codes, it is necessary first to its sequence is melted into C# descriptor objects, then Accordingly C# interface codes file and corresponding project profile are exported into using code Generation;
3)Edit the testing requirement of XML format;
ATML standards provide XML Schema for test description, wherein being greatly testing requirement, so using general XML instruments can enter edlin to it;Configure edit tool there is provided supporting graphic process, import, export it is qualified Test description;
4)Testing requirement is converted into storehouse to call;
The test description of XML format is converted into C# codes, it is necessary first to which testing requirement sequence therein is melted into C# descriptors Object, then exports into C# code files and corresponding project profile using code Generation accordingly;This process Need to mix TSF interface codes and explorer calls code.
2. the instrument driving implementation method based on signal according to claim 1, it is characterised in that the explorer bag Include:
1)Information registering;Self information is registered in the information distribution center that this both sides both knows about by instrument driving component (Repository) when, program is performed it can be found that, start and adjust and be used to perform test, this is equivalent in operating system Registration table;
2)Ability integration;Explorer, which can be inquired about, is registered in all component information therein, and returns from scattered module information Receive and integrate the power of test that system resource currently has;
3)The matching analysis;When certain testing requirement signal is suggested, explorer is analyzed and processed, and and resource testing Ability carries out matching comparison, provides optimal matching resource;
4)Session management;Interacted during test execution with instrument, do not manipulate instrument directly to reduce coupling, but handed over To resource manager processes;
5)Call conversion;Upper procedure describes demand using signal language, and underlying instrument can only drive by API Calls, therefore must The conversion from signal to function call must be realized.
3. the instrument driving implementation method based on signal according to claim 2, it is characterised in that:The instrument driving component It is that specific instrument driving realizes code, it is necessary to which the apparatus measures function package that instrument supplier is provided in API forms is into letter Number access interface is to call.
4. the instrument driving implementation method based on signal according to claim 2, it is characterised in that:The API forms have VISA, IVI or DAQ form.
CN201410647181.7A 2014-11-14 2014-11-14 A kind of instrument driving implementation method based on signal Active CN104569650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410647181.7A CN104569650B (en) 2014-11-14 2014-11-14 A kind of instrument driving implementation method based on signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410647181.7A CN104569650B (en) 2014-11-14 2014-11-14 A kind of instrument driving implementation method based on signal

Publications (2)

Publication Number Publication Date
CN104569650A CN104569650A (en) 2015-04-29
CN104569650B true CN104569650B (en) 2017-09-19

Family

ID=53086184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410647181.7A Active CN104569650B (en) 2014-11-14 2014-11-14 A kind of instrument driving implementation method based on signal

Country Status (1)

Country Link
CN (1) CN104569650B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111159032A (en) * 2019-12-25 2020-05-15 中国航空工业集团公司北京长城航空测控技术研究所 Signal-driven universal automatic test development system and system establishment method
CN111964724B (en) * 2020-08-18 2022-10-28 中电科思仪科技股份有限公司 Instrument-oriented test description model-based description method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6868513B1 (en) * 2000-10-26 2005-03-15 International Business Machines Corporation Automated multi-device test process and system
CN104076214A (en) * 2014-06-11 2014-10-01 南京第五十五所技术开发有限公司 Multi-channel microwave module automatic test method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6868513B1 (en) * 2000-10-26 2005-03-15 International Business Machines Corporation Automated multi-device test process and system
CN104076214A (en) * 2014-06-11 2014-10-01 南京第五十五所技术开发有限公司 Multi-channel microwave module automatic test method

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ATS软件平台的通用性研究与设计;吕晓峰 等;《计算机测量与控制》;20120229;第20卷(第2期);全文 *
基于ATML的自动测试系统软件研究;王睿;《仪器仪表学报》;20110630;第32卷(第6期);第184-188页 *
基于IEEE1641的面向信号自动测试系统体系结构设计;马永平;《仪器仪表学报》;20110630;第32卷(第6期);第178-182页 *

Also Published As

Publication number Publication date
CN104569650A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN105608254B (en) A kind of the Automation Design method and platform towards Intelligent hardware system development
EP3745256B1 (en) External code integrations within a computing environment
US9164859B2 (en) Computing device for enabling concurrent testing
US5920479A (en) System and method for performing interface independent virtual instrumentation functions in a graphical data flow program
CN107807878B (en) Keyword-based universal test resource driving and execution management method
US4827404A (en) Method and system for computer programming
CN105068927A (en) Keyword drive-based automatic test method of urban rail drive control units
CN105004984A (en) Automatic chip testing method
KR20010041944A (en) Object oriented method of structuring a software step program
US9785415B2 (en) Remote interface to logical instruments
CN106093897B (en) A kind of the test system and test method of radar system
Garzón et al. Umple: A framework for model driven development of object-oriented systems
CN109783340A (en) Test code programming method, IP test method and the device of SoC
CN104484267A (en) Testing system and method
CN104657263A (en) System and method for realizing universal type target code coverage rate testing based on JTAG (Joint Test Action Group) debug mode
CN105739481B (en) The test method of industrial control software, apparatus and system
CN104569650B (en) A kind of instrument driving implementation method based on signal
CN104375932A (en) Method and device for analyzing code coverage rate of Java card
CN108959094A (en) A kind of definition and methods for using them of the test program based on data structure
CN111651149B (en) Machine learning model system convenient to deploy and calling method thereof
CN105868104B (en) A kind of cross-platform graphic user interface automatic test approach
US20060074625A1 (en) Program development suport device, program execution device, compile method and debug method
CN106970787A (en) A kind of automobile controller rapid prototyping implementation method
CN111176995A (en) Test method and test system based on big data test case
CN105045698A (en) Method for analyzing chip verification progress by using MATPLOTLIB of PYTHON

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant