CN101944062A - Method for configuring universal virtual instrument interface - Google Patents

Method for configuring universal virtual instrument interface Download PDF

Info

Publication number
CN101944062A
CN101944062A CN 201010287770 CN201010287770A CN101944062A CN 101944062 A CN101944062 A CN 101944062A CN 201010287770 CN201010287770 CN 201010287770 CN 201010287770 A CN201010287770 A CN 201010287770A CN 101944062 A CN101944062 A CN 101944062A
Authority
CN
China
Prior art keywords
function
instrument
parameter
usi
paragraph
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
CN 201010287770
Other languages
Chinese (zh)
Other versions
CN101944062B (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.)
No63961 Unit Of Pla
Original Assignee
No63961 Unit Of Pla
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 No63961 Unit Of Pla filed Critical No63961 Unit Of Pla
Priority to CN 201010287770 priority Critical patent/CN101944062B/en
Publication of CN101944062A publication Critical patent/CN101944062A/en
Application granted granted Critical
Publication of CN101944062B publication Critical patent/CN101944062B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention belongs to the field of automatic testing of computers, and provides a method for configuring a universal virtual instrument interface. In the method, a universal software interface layer is added between a common instrument driver and an application; the calling of the application and the calling of an actual instrument are completely isolated; and by defining a calling interface function with unified standard and a universal software interface description file, the substitution of the instrument in a system is tested under the conditions of not substituting an application code and not recompiling a source program, wherein one testing software package can adapt to the testing system constructed by the different types of conventional and even future instrument hardware and buses; and the test code can be transplanted to different instruments without modification. In a broad sense, by the method of the invention, a data communication method among different program modules is stipulated, so that the data communication function among any instruments or application program modules can be realized by only abiding by the stipulation.

Description

A kind of general virtual tool interface system collocation method
Technical field
The invention belongs to the computer automation testing field, particularly a kind of general virtual tool interface system collocation method.
Background technology
For a long time, interchangeability becomes the target that many slip-stick artists build Computer Automatic Test System.Because under many circumstances, instrument hardware be not out-of-date be exactly to need to change, therefore press for a kind of test program code is improved system with regard to available new instrument hardware method that need not to change.
Along with developing rapidly of PC computer function, performance, and object-oriented and visual programming technology software field for be easy to use more, powerful software development provides possibility, the Windows of graphical operation system becomes the common configuration of PC machine.Under this background, the notion of virtual instrument is worldwide admitted widely and is used.The VI(virtual instrument, Virtual Instrument) by application program multi-purpose computer and instrument hardware are combined, the user can operate this computing machine by friendly graphical interfaces (being called virtual front panel usually), as ownly define in operation, a self-designed single traditional instrument.VI combines measurement, the control ability of computer resource (as microprocessor, internal memory, display etc.) and instrument hardware (as A/D, D/A, digital I/O, timer, signal condition etc.) with transparent way, by analyzing and processing, expression and the graphical user interface of software realization to data.When virtual instrument obtained people's approval, the correlation technique standard of virtual instrument was also perfect constantly.America NI company, Agilent company, Tektronix company, Racal company etc. have released one after another based on the physical bus interface of multiple virtual instruments such as GPIB bus, Serial universal serial bus, isa bus, PCI/CompactPCI bus, VXI bus, PXI bus and LXI bus and general-purpose computing system.
Software interface is to finish the passage of communicating by letter between computing machine and instrument, is commonly referred to instrument drivers.For the virtual instrument of giving physical bus interface of a great variety is developed instrument drivers easily, alliance of VPP system has formulated interface software standard of new generation, be virtual instrument software system (Virtual Instrument Software Architecture, be called for short VISA), make each manufacturer all develop instrument drivers as the bottom function library of I/O control with this interface software.Like this, the software of different vendor just can be on identical platform cooperating operation, significantly reduced the overlapping development of software.VISA has made a unified DLL (dynamic link library) on different buses, use VISA interface written program to control the instrument that uses different bus.For instrument driver and application program, the VISA built-in function is a cover function that can conveniently call, and its core function can be controlled all kinds device, need not to consider the compatibility of the interface type and the software of device.
However,, still there are some problem demanding prompt solutions in instrument programming and testing system software application facet, such as, can in the time of accomplishing in the replacing system some outmoded instruments testing software need not change; Can a testing software bag adapt to the test macro that dissimilar instrument hardware constitute; Can test code be transplanted on the different instruments; When instrument failure maybe needed to calibrate, can test macro run without interruption.Based on above problem, NI company has proposed a kind of interchangeable instrument and has driven programming model, unites many apparatus manufactures and has set up the IVI foundation, is devoted to definition series of standards instrument programming model in the definition of the basis of the compatible framework of VPP.IVI drive ratio VISA standard higher level, be with the different product intercropping of quasi-instrument a unified DLL (dynamic link library).Use the IVI instrument driver to control to the same quasi-instrument of supporting the IVI standard.Using the most important purpose of IVI instrument driver is exactly to make do not changing application code, do not carrying out realizing under the condition that source program recompilates the replacing of instrument in the test macro.In order to realize exchanging, the IVI instrument driver must have the routine interface of standard.At present, the IVI foundation has defined 8 quasi-driver function groups.
But, in the technical guarantee system development process of a plurality of projects of reality, when realizing the software interface of virtual instrument, still have some problem demanding prompt solutions.Subject matter is:
A) it is very limited to have the producer of IVI Driver Development ability both at home and abroad, causes the testing tool product category of the selectable IVI of having driver incomplete, brings the difficulty of reality for the type selecting of instrument and equipment;
B), cause IVI to be driven as main software interface and use because the IVI foundation has only defined 8 quasi-driver function groups at present, and other a large amount of instrument and equipments (as the communication class instrument) can not be contained;
IVI drives the standard system complexity, and collocation method is loaded down with trivial details, the compatibility of the IVI driver between the different manufacturers can't guarantee, has also limited IVI standard criterion promoting the use of worldwide.
Summary of the invention
In view of above problem, fundamental purpose of the present invention is to provide a kind of general virtual tool interface system collocation method, solution is in Computer Automatic Test System, and existing virtual instrument software interface can't satisfy: a) do not changing application code, do not carrying out realizing under the condition that source program recompilates the replacing of instrument in the test macro; B) testing software bag can not adapt to the test macro that dissimilar instrument hardware and bus constitute; C) test code must add the problem on the different instrument of being transplanted to of modification.
This kind general virtual tool interface system collocation method provided by the invention mainly may further comprise the steps:
The USI of a, every kind of instrument is unified into 32 dll dynamic link libraries of standard pattern in the windows system;
The USI dll dynamic link library of b, all appts has stipulated that 4 standards draw function: open function, close function, self check function and measurement functions;
C, every kind of instrument define a USI description document simultaneously;
D, 4 standards are drawn the quantity and the data type of the I/O parameter of function, will define respectively according to the USI description document of every kind of instrument;
E, when in application program, using a certain function of this kind instrument, by the description of tester, the function of instrument is configured according to the USI description document of this instrument; After configuration finishes, by application program with configuration result as transmitting parameter, 4 standards of the USI dll dynamic link library regulation of dynamic call instrument are drawn function;
F, 4 standards are drawn the parameter that function is come according to application passes, call actual driver or other application program modules of instrument once more, and execution result is returned application program.
Wherein, the USI description document unification among the described step c as file extension, is called for short the GDV file with GDV.
The establishment rule of described GDV file:
The GDV file is the illustrative file of virtual instrument USI, uses with virtual instrument USI dynamic link libraries, as the foundation of application call virtual instrument USI;
The GDV file is a text-only file, and the file extension unification is defined as " .gdv ", interface description document of each instrument;
File is divided into 6 paragraphs, i.e. [program], [operation], [function], [input parameter], [output parameter] and [end], and whole file is ending with [program] beginning with [end];
Each paragraph comprises several rows, and every row adopts the form of "=" expression formula, and expression formula "=" left side be an attribute, and the right side is a value, is used for describing the different attribute and the value of instrument driving, every row with "; " as ending, note all starts with " // ";
The model of [program] section description instrument and the function of instrument;
[operation] paragraph is described filename, version number and the type of instrument dynamic link library;
[function] paragraph is described the included function of instrument drivers, comprises a plurality of functions if a kind of instrument drives, and then all is listed as in order successively to write in [function] this paragraph;
[input parameter] paragraph is described the attribute and the value of each driving function input parameter, if a kind of function comprises a plurality of input parameters, then whole in order successively row write in [input parameter] this paragraph;
[output parameter] paragraph is described the attribute and the value of each driving function output parameter, if a kind of function comprises a plurality of output parameters, then whole in order successively row write in [output parameter] this paragraph;
[end] paragraph identifies the end of whole interface document.
4 standards of the USI dll dynamic link library of all appts regulation are drawn function among the described step b: open function, close function, the function prototype of self check function and measurement functions is defined as:
long UiDeviceOpen(char*?resourceName)
Function name: open function
The 1st parameter: the input parameter pointer, logical name or resource name or initialization string, directly the ResourceName field from front instrument management tables of data reads;
Function return value: if=0 then function run succeeded, otherwise carry out failure;
long UiDeviceClose(void)
Function name: close function
Function return value: if=0 then function run succeeded, otherwise carry out failure;
long?UiDeviceSelftTest(void)
Function name: self check function
Function return value: if=0 then function run succeeded, otherwise carry out failure;
l long UiDeviceMeasure(char*?InputParaList,int?InputParaNum,?char*?ReturnParaList,?int?ReturnParaNum)
Function name: measurement functions
The 1st parameter: input parameter pointer
The 2nd parameter: input parameter number
The 3rd parameter: output parameter pointer
The 4th parameter: output parameter number
Function return value: if=0 then function run succeeded, otherwise carry out failure.
The method that 4 standards of the USI dll dynamic link library of dynamic call instrument regulation are drawn function among the described step e is:
At first state 4 entrance functions;
In application program, obtain dll dynamic link library and 4 standards and draw the address of function;
Call and open function, carry out the initialization of instrument;
Call the self check function, carry out the self check of instrument;
Call measurement functions, import parameter into, obtain the result, import into the type of parameter, in proper order, number is all by USI description document Dynamic Definition;
Call at last and close function, close instrumentation.
General virtual tool interface system collocation method provided by the invention, come down between common instrument drivers and application program, to have added a USI layer, application program and actual instrumentation called thoroughly keep apart, by the calling interface function and the GDV file of definition unified standard, thereby realized not changing application code, not carrying out the replacing of instrument in the test macro under the condition that source program recompilates; A testing software bag can adapt to the test macro of the existing even following dissimilar instrument hardware and bus formation; Test code can not add on the different instrument of being transplanted to of modification.
In addition, use general virtual tool interface system collocation method provided by the invention, not only can be so that realize unified software interface between application program and the instrument, and can realize and the different software procedures module between interface, this has also expanded the usable range of USI method greatly.From the broad sense angle, the inventive method has been stipulated a kind of data communications method between the distinct program module, just can realize data communication function between any instrument, the application program module as long as follow it.
Embodiment
Below in conjunction with specific embodiment technical scheme of the present invention is further specified, but its qualification of not opposing:
This kind general virtual tool interface system collocation method provided by the invention mainly may further comprise the steps:
The USI of a, every kind of instrument is unified into 32 dll dynamic link libraries of standard pattern in the windows system;
The USI dll dynamic link library of b, all appts has stipulated that 4 standards draw function: open function, close function, self check function and measurement functions;
C, every kind of instrument define a USI description document simultaneously, unify with GDV as file extension;
D, define quantity and data type that 4 standards are drawn the I/O parameter of function respectively according to the USI description document of every kind of instrument (being called for short the GDV file);
E, when in application program, using a certain function of this kind instrument, by the description of tester, the function of instrument is configured according to the GDV file of this instrument; After configuration finishes, by application program with configuration result as transmitting parameter, 4 standards of the USI dll dynamic link library regulation of dynamic call instrument are drawn function;
F, 4 standards are drawn the parameter that function is come according to application passes, call actual driver or other application program modules of instrument once more, and execution result is returned application program.
General virtual tool interface system collocation method provided by the invention, come down between common instrument drivers and application program, to have added a USI layer, application program and actual instrumentation called thoroughly keep apart, by the calling interface function and the GDV file of definition unified standard, thereby realized not changing application code, not carrying out the replacing of instrument in the test macro under the condition that source program recompilates; A testing software bag can adapt to the test macro of the existing even following dissimilar instrument hardware and bus formation; Test code can not add on the different instrument of being transplanted to of modification.
In addition, use general virtual tool interface system collocation method provided by the invention, not only can be so that realize unified software interface between application program and the instrument, and can realize and the different software procedures module between interface, this has also expanded the usable range of USI method greatly.From the broad sense angle, the inventive method has been stipulated a kind of data communications method between the distinct program module, just can realize data communication function between any instrument, the application program module as long as follow it.
Wherein, 4 standards of the USI dll dynamic link library of all appts regulation are drawn function among the described step b: open function, close function, the function prototype of self check function and measurement functions is defined as:
l long UiDeviceOpen(char*?resourceName)
Function name: open function
The 1st parameter: the input parameter pointer, logical name or resource name or initialization string, directly the ResourceName field from front instrument management tables of data reads
Function return value: if=0 then function run succeeded, otherwise carry out failure.
l long UiDeviceClose(void)
Function name: close function
Function return value: if=0 then function run succeeded, otherwise carry out failure.
l long?UiDeviceSelftTest(void)
Function name: self check function
Function return value: if=0 then function run succeeded, otherwise carry out failure.
l long UiDeviceMeasure(char*?InputParaList,int?InputParaNum,?char*?ReturnParaList,?int?ReturnParaNum)
Function name: measurement functions
The 1st parameter: input parameter pointer
The 2nd parameter: input parameter number
The 3rd parameter: output parameter pointer
The 4th parameter: output parameter number
Function return value: if=0 then function run succeeded, otherwise carry out failure.
The method that 4 standards of the USI dll dynamic link library of dynamic call instrument regulation are drawn function among the described step e is:
At first state 4 entrance functions;
In application program, obtain dll dynamic link library and 4 standards and draw the address of function;
Call and open function, carry out the initialization of instrument;
Call the self check function, carry out the self check of instrument;
Call measurement functions, import parameter into, obtain the result, import into the type of parameter, in proper order, number is all by USI description document (be called for short GDV file) Dynamic Definition;
Call at last and close function, close instrumentation.
The establishment rule of described GDV file:
The GDV file is the illustrative file of virtual instrument USI, uses with virtual instrument USI dynamic link libraries, as the foundation of application call virtual instrument USI.
The GDV file is a text-only file, and the file extension unification is defined as " .gdv ", interface description document of each instrument.
File is divided into 6 paragraphs, i.e. [program], [operation], [function], [input parameter], [output parameter] and [end], and whole file is ending with [program] beginning with [end].
Each paragraph comprises several rows, and every row adopts the form of "=" expression formula, and expression formula "=" left side is an attribute, and the right side is a value, is used for describing different attribute and the value that instrument drives.Every row with "; " as ending.Note all starts with " // ".
The model of [program] section description instrument and the function of instrument.
[operation] paragraph is described filename, version number and the type of instrument dynamic link library.
[function] paragraph is described the included function of instrument drivers.Comprise a plurality of functions if a kind of instrument drives, then whole in order successively row write in [function] this paragraph.
[input parameter] paragraph is described the attribute and the value of each driving function input parameter.If a kind of function comprises a plurality of input parameters, then whole in order successively row write in [input parameter] this paragraph.
[output parameter] paragraph is described the attribute and the value of each driving function output parameter.If a kind of function comprises a plurality of output parameters, then whole in order successively row write in [output parameter] this paragraph.
[end] paragraph identifies the end of whole interface document.
Embodiment 1
To dispose, to call and change vector network analyzer abc1000 in universal test software platform the inside is example:
A) according to user's application testing flow process, instrumental function and concrete use-pattern, create the GDV file Ui_abc1000.gdv of an abc1000 instrument, accurately defined interface configuration contents such as instrument model, driver name, 4 function parameters quantity and implication, as follows:
[program]
NAME?=?abc1000
; The instrument model
TYPE=vector network analyzer
; Function
UPDATE?=?YES
; If dependence is arranged between the parameter, so this field must be arranged, and be YES
DESCRIPTION?=
[operation]
NAME?=?UI_?abc1000
; Corresponding driver
VERSION?=?1.0
; Version number
TYPE?=?UI
; The type of driver is divided into IVI and UI at present
[function 1]
NAME=measurement
INPUTNUM?=?6
; The input parameter total quantity of function
OUTPUTNUM?=?2
; The output parameter total quantity of function
AUTO_ADD?=?NO
; Do not add operation automatically, in operating list, do not show
[function 2]
NAME=self check
INPUTNUM?=?0
; The input parameter total quantity of function
OUTPUTNUM?=?0
; The output parameter total quantity of function
AUTO_ADD?=?YES
; Automatically add operation, in operating list, show
[function 3]
NAME=initialization instrument
INPUTNUM?=?0
; The input parameter total quantity of function
OUTPUTNUM?=?0
; The output parameter total quantity of function
AUTO_ADD?=?YES
; Automatically add operation, in operating list, show
[function 4]
NAME=close instrument
INPUTNUM?=?0
; The input parameter total quantity of function
OUTPUTNUM?=?0
; The output parameter total quantity of function
AUTO_ADD?=?YES
; Automatically add operation, in operating list, show
[function 1. input parameters 1]
FUNCTION=function 1
; The input parameter of function
NAME=measurement channel number
SHOW?=?YES
; Normal parameter
TYPE?=?int
INPUT?=?text
MINIMUM?=?1
MAXIMUM?=?64
DEFAULT?=?1
UNIT?=
[function 1. input parameters 2]
FUNCTION=function 1
; The input parameter of function
NAME=measurement S parameter is selected
SHOW?=?YES
; Normal parameter
TYPE?=?int
INPUT?=?list
MINIMUM?=?0
MAXIMUM?=?3
OPTION0.value?=?0
OPTION0.name?=?s11
OPTION0.unit?=
OPTION1.value?=?1
OPTION1.name?=?s22
OPTION1.unit?=
OPTION2.value?=?2
OPTION2.name?=?s12
OPTION2.unit?=
OPTION3.value?=?3
OPTION3.name?=?s21
OPTION3.unit?=
DEFAULT?=?0
[function 1. input parameters 3]
FUNCTION=function 1
; The input parameter of function
NAME=type
SHOW?=?YES
; Normal parameter
TYPE?=?int
INPUT?=?list
MINIMUM?=?0
MAXIMUM?=?7
OPTION0.value?=?0
OPTION0.name?=?MAXimum?-?finds?the?highest?value
OPTION0.unit?=
OPTION1.value?=?1
OPTION1.name?=?MINimum?-?finds?the?lowest?value
OPTION1.unit?=
OPTION2.value?=?2
OPTION2.name?=?RPEak?-?finds?the?next?valid?peak?to?the?right
OPTION2.unit?=
OPTION3.value?=?3
OPTION3.name?=?LPEak?-?finds?the?next?valid?peak?to?the?left
OPTION3.unit?=
OPTION4.value?=?4
OPTION4.name?=?NPEak?-?finds?the?next?highest?value?among?the?valid?peaks
OPTION4.unit?=
OPTION5.value?=?5
OPTION5.name?=?TARGet?-?finds?the?target?value?to?the?right;?wraps?around?to?the
OPTION5.unit?=
OPTION6.value?=?6
OPTION6.name?=?LTARget?-?finds?the?next?target?value?to?the?left?of?the?marker
OPTION6.unit?=
OPTION7.value?=?7
OPTION7.name?=?RTARget?-?finds?the?next?target?value?to?the?right?of?the?marker
OPTION7.unit?=
DEFAULT?=?0
[function 1. input parameters 4]
FUNCTION=function 1
; The input parameter of function
NAME=initial frequency
SHOW?=?YES
; Normal parameter
TYPE?=?double
INPUT?=?text
MINIMUM?=?0.045
MAXIMUM?=?40000000000
DEFAULT?=?1000000000
UNIT?=?Hz
[function 1. input parameters 5]
FUNCTION=function 1
; The input parameter of function
NAME=termination frequency
SHOW?=?YES
; Normal parameter
TYPE?=?double
INPUT?=?text
MINIMUM?=?0.045
MAXIMUM?=?40000000000
DEFAULT?=?10000000000
UNIT?=?Hz
[function 1. input parameters 6]
FUNCTION=function 1
; The input parameter of function
NAME=preservation filename
SHOW?=?YES
; Normal parameter
TYPE?=?int
INPUT?=?text
MINIMUM?=?1
MAXIMUM?=?8
DEFAULT?=?data.wri
UNIT?=
[function 1. output parameters 1]
FUNCTION=function 1
; The output parameter of function
NAME=mark X value
SHOW?=?YES
; Normal parameter
TYPE?=?double
MINIMUM?=
MAXIMUM?=
DEFAULT?=
UNIT?=
[function 1. output parameters 2]
FUNCTION=function 1
; The output parameter of function
NAME=mark Y value
SHOW?=?YES
; Normal parameter
TYPE?=?double
MINIMUM?=
MAXIMUM?=
DEFAULT?=
UNIT?=
[end]
B) use the instrument management instrument in general-utility test platform software the inside, at first select Ui_abc1000.gdv, corresponding with this instrument then, define a unique logical name (as " 1# vector network analyzer "), distribute an actual hardware resource address that takies (as " GPIB0:15:INSTR ") simultaneously;
When c) developing concrete testing process in general-utility test platform software the inside, these testing process the insides are only with the unique logical name (" 1# vector network analyzer ") in the definition of instrument management instrument the inside, by reading the Ui_abc1000.gdv file, dispose the function of this instrument and concrete parameter values is set;
When d) carrying out the testing process of being developed, also only with at unique logical name (" 1# vector network analyzer ") of instrument management instrument the inside definition, hardware resource address (" GPIB0:15:INSTR ") with at c in general-utility test platform software the inside) this instrument of flow process parameter access of configuring in the step.
When the same quasi-instrument (as abc2000) that vector network analyzer abc1000 need be replaced with other model, as long as at b) stage is selected the configuration file Ui_abc2000.gdv of abc2000, and hardware resource address (as " GPIB0:10:INSTR ") gets final product.Like this, the abc2000 that calls that the testing process of the original exploitation of user can not add modification continues to carry out, and need not development and testing flow process again, also needn't recompilate the user application code.
Below technology contents of the present invention has been done detailed description.For persons skilled in the art, any conspicuous change of under the prerequisite that does not deviate from the principle of the invention it being done can not exceed the protection domain of the application's claims.

Claims (5)

1. a general virtual tool interface system collocation method is characterized in that, may further comprise the steps:
The USI of a, every kind of instrument is unified into 32 dll dynamic link libraries of standard pattern in the windows system;
The USI dll dynamic link library of b, all appts has stipulated that 4 standards draw function: open function, close function, self check function and measurement functions;
C, every kind of instrument define a USI description document simultaneously;
D, define quantity and the data type that 4 standards are drawn the I/O parameter of function respectively according to the USI description document of every kind of instrument;
E, when in application program, using a certain function of this kind instrument, by the description of tester, the function of instrument is configured according to the USI description document of this instrument; After configuration finishes, by application program with configuration result as transmitting parameter, 4 standards of the USI dll dynamic link library regulation of dynamic call instrument are drawn function;
F, 4 standards are drawn the parameter that function is come according to application passes, call actual driver or other application program modules of instrument once more, and execution result is returned application program.
2. a kind of general virtual tool interface system collocation method according to claim 1 is characterized in that, the USI description document unification among the described step c with GDV as file extension.
3. a kind of general virtual tool interface system collocation method according to claim 2 is characterized in that the establishment rule of described USI description document:
The USI description document is the illustrative file of virtual instrument USI, uses with virtual instrument USI dynamic link libraries, as the foundation of application call virtual instrument USI;
The USI description document is a text-only file, and the file extension unification is defined as " .gdv ", interface description document of each instrument;
File is divided into 6 paragraphs, i.e. [program], [operation], [function], [input parameter], [output parameter] and [end], and whole file is ending with [program] beginning with [end];
Each paragraph comprises several rows, and every row adopts the form of "=" expression formula, and expression formula "=" left side be an attribute, and the right side is a value, is used for describing the different attribute and the value of instrument driving, every row with "; " as ending, note all starts with " // ";
The model of [program] section description instrument and the function of instrument;
[operation] paragraph is described filename, version number and the type of instrument dynamic link library;
[function] paragraph is described the included function of instrument drivers, comprises a plurality of functions if a kind of instrument drives, and then all is listed as in order successively to write in [function] this paragraph;
[input parameter] paragraph is described the attribute and the value of each driving function input parameter, if a kind of function comprises a plurality of input parameters, then whole in order successively row write in [input parameter] this paragraph;
[output parameter] paragraph is described the attribute and the value of each driving function output parameter, if a kind of function comprises a plurality of output parameters, then whole in order successively row write in [output parameter] this paragraph;
[end] paragraph identifies the end of whole interface document.
4. a kind of general virtual tool interface system collocation method according to claim 1, it is characterized in that 4 standards of the USI dll dynamic link library of all appts regulation are drawn function among the described step b: open function, close function, the function prototype of self check function and measurement functions is defined as:
long UiDeviceOpen(char*?resourceName)
Function name: open function
The 1st parameter: the input parameter pointer, logical name or resource name or initialization string, directly the ResourceName field from front instrument management tables of data reads;
Function return value: if=0 then function run succeeded, otherwise carry out failure;
long UiDeviceClose(void)
Function name: close function
Function return value: if=0 then function run succeeded, otherwise carry out failure;
long?UiDeviceSelftTest(void)
Function name: self check function
Function return value: if=0 then function run succeeded, otherwise carry out failure;
long?UiDeviceMeasure(char*?InputParaList,int?InputParaNum,?char*?ReturnParaList,?int?ReturnParaNum)
Function name: measurement functions
The 1st parameter: input parameter pointer
The 2nd parameter: input parameter number
The 3rd parameter: output parameter pointer
The 4th parameter: output parameter number
Function return value: if=0 then function run succeeded, otherwise carry out failure.
5. a kind of general virtual tool interface system collocation method according to claim 1 is characterized in that, the method that 4 standards of the USI dll dynamic link library of dynamic call instrument regulation are drawn function among the described step e is:
At first state 4 entrance functions;
In application program, obtain dll dynamic link library and 4 standards and draw the address of function;
Call and open function, carry out the initialization of instrument;
Call the self check function, carry out the self check of instrument;
Call measurement functions, import parameter into, obtain the result, import into the type of parameter, in proper order, number is all by USI description document Dynamic Definition;
Call at last and close function, close instrumentation.
CN 201010287770 2010-09-21 2010-09-21 Method for configuring universal virtual instrument interface Expired - Fee Related CN101944062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010287770 CN101944062B (en) 2010-09-21 2010-09-21 Method for configuring universal virtual instrument interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010287770 CN101944062B (en) 2010-09-21 2010-09-21 Method for configuring universal virtual instrument interface

Publications (2)

Publication Number Publication Date
CN101944062A true CN101944062A (en) 2011-01-12
CN101944062B CN101944062B (en) 2013-01-23

Family

ID=43436059

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010287770 Expired - Fee Related CN101944062B (en) 2010-09-21 2010-09-21 Method for configuring universal virtual instrument interface

Country Status (1)

Country Link
CN (1) CN101944062B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291274A (en) * 2011-07-11 2011-12-21 北京天融信科技有限公司 System and method for realizing automatic adaptation of network testing instrument
CN103092752A (en) * 2012-12-25 2013-05-08 北京航天测控技术有限公司 Error identification method of instrument attributes
CN107704376A (en) * 2016-08-11 2018-02-16 福建省天奕网络科技有限公司 Game automated testing method and its system
WO2018033063A1 (en) * 2016-08-16 2018-02-22 中兴通讯股份有限公司 Interface file parsing method and apparatus
CN108333445A (en) * 2017-12-26 2018-07-27 北京航天测控技术有限公司 A kind of instrument management method of the data acquisition instrument based on VxWorks
CN109144592A (en) * 2018-09-10 2019-01-04 郑州云海信息技术有限公司 A kind of driving business execution system and method based on port mode
CN109491724A (en) * 2018-11-11 2019-03-19 上海精密计量测试研究所 Call method of the software generic test platform of test equipment to special test program
CN110781103A (en) * 2019-11-05 2020-02-11 中电科仪器仪表有限公司 PXI bus switch module control system and method
CN113111015A (en) * 2021-03-30 2021-07-13 南京翼辉信息技术有限公司 Driverless virtual equipment management method
CN116150039A (en) * 2023-04-23 2023-05-23 成都华兴汇明科技有限公司 Test management device, drive self-adaption judging method and system for test cases

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN1983168A (en) * 2005-11-16 2007-06-20 致茂电子股份有限公司 Method for executing control and pickup data of automatically-testing system equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1632747A (en) * 2003-12-22 2005-06-29 联想(北京)有限公司 Software interface testing method
CN1983168A (en) * 2005-11-16 2007-06-20 致茂电子股份有限公司 Method for executing control and pickup data of automatically-testing system equipment

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291274B (en) * 2011-07-11 2016-09-21 北京天融信科技股份有限公司 A kind of system and method realizing automatic adaptation of network testing instrument
CN102291274A (en) * 2011-07-11 2011-12-21 北京天融信科技有限公司 System and method for realizing automatic adaptation of network testing instrument
CN103092752A (en) * 2012-12-25 2013-05-08 北京航天测控技术有限公司 Error identification method of instrument attributes
CN103092752B (en) * 2012-12-25 2015-06-03 北京航天测控技术有限公司 Error identification method of instrument attributes
CN107704376A (en) * 2016-08-11 2018-02-16 福建省天奕网络科技有限公司 Game automated testing method and its system
WO2018033063A1 (en) * 2016-08-16 2018-02-22 中兴通讯股份有限公司 Interface file parsing method and apparatus
CN108333445B (en) * 2017-12-26 2020-04-03 北京航天测控技术有限公司 Instrument management method of data acquisition instrument based on VxWorks
CN108333445A (en) * 2017-12-26 2018-07-27 北京航天测控技术有限公司 A kind of instrument management method of the data acquisition instrument based on VxWorks
CN109144592A (en) * 2018-09-10 2019-01-04 郑州云海信息技术有限公司 A kind of driving business execution system and method based on port mode
CN109144592B (en) * 2018-09-10 2022-03-22 郑州云海信息技术有限公司 Port mode-based driving service execution system and method
CN109491724A (en) * 2018-11-11 2019-03-19 上海精密计量测试研究所 Call method of the software generic test platform of test equipment to special test program
CN110781103B (en) * 2019-11-05 2022-02-15 中电科思仪科技股份有限公司 PXI bus switch module control system and method
CN110781103A (en) * 2019-11-05 2020-02-11 中电科仪器仪表有限公司 PXI bus switch module control system and method
CN113111015A (en) * 2021-03-30 2021-07-13 南京翼辉信息技术有限公司 Driverless virtual equipment management method
CN113111015B (en) * 2021-03-30 2024-03-19 南京翼辉信息技术有限公司 Non-driving virtual equipment management method
CN116150039A (en) * 2023-04-23 2023-05-23 成都华兴汇明科技有限公司 Test management device, drive self-adaption judging method and system for test cases

Also Published As

Publication number Publication date
CN101944062B (en) 2013-01-23

Similar Documents

Publication Publication Date Title
CN101944062B (en) Method for configuring universal virtual instrument interface
CN101944026B (en) Implementation method of universal virtual instrument interface
US6282699B1 (en) Code node for a graphical programming system which invokes execution of textual code
CN102597964B (en) A computing device for enabling concurrent testing
CN107807878B (en) Keyword-based universal test resource driving and execution management method
US6507842B1 (en) System and method for importing and exporting test executive values from or to a database
US7743335B2 (en) System and method for accessing registers of a hardware device in a graphical program
US5784275A (en) System and method for performing interface independent virtual instrumentation functions in a graphical data flow program
US20020109722A1 (en) System and method for performing type checking for hardware device nodes in a graphical program
CN102375778B (en) Method and system for automatically testing digital signal processor (DSP)
CN101526919B (en) Method for generating script files to test Web application software and device thereof
US20100262900A1 (en) Utilizing spreadsheet user interfaces with flowsheets of a cpi simulation system
US5905649A (en) System and method for performing type checking and class propagation of attributes in a graphical data flow program
CA2319719A1 (en) Compiler and method for compiling specification language into implementation language
CN102023861A (en) Method and system for generating test script and test suite
US10095678B2 (en) Database user interfaces with flowsheets of a simulation system
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN104268074A (en) Application software online debugging method based on DCS
CN112363694B (en) Integration method of FMU file, solver running environment and industrial software
CN111176984A (en) Signal-oriented automatic test implementation method
CN102004952A (en) Measuring resource control system and measuring resource control method
CN102981882A (en) Analytic method and analytic device
CN104714881B (en) A kind of unit test system and method for table driving
Dutt et al. An intermediate representation for behavioral synthesis
US6185281B1 (en) Automated testing of a telecommunications platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130123

Termination date: 20140921

EXPY Termination of patent right or utility model