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

Method for configuring universal virtual instrument interface Download PDF

Info

Publication number
CN101944062B
CN101944062B CN 201010287770 CN201010287770A CN101944062B CN 101944062 B CN101944062 B CN 101944062B CN 201010287770 CN201010287770 CN 201010287770 CN 201010287770 A CN201010287770 A CN 201010287770A CN 101944062 B CN101944062 B CN 101944062B
Authority
CN
China
Prior art keywords
function
instrument
usi
parameter
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.)
Expired - Fee Related
Application number
CN 201010287770
Other languages
Chinese (zh)
Other versions
CN101944062A (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

Landscapes

  • Stored Programmes (AREA)

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 method for configuring universal virtual instrument interface
Technical field
The invention belongs to the computer automation testing field, particularly a kind of method for configuring universal virtual instrument interface.
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 need not to change test program code with regard to the method for available new instrument hardware improved system in the urgent need to a kind of.
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, graphical user interface Windows becomes the common configuration of PC machine.Under this background, the concept 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 (usually being called virtual front panel), as operation oneself definition, a self-designed single traditional instrument.VI combines measurement, the control ability of computer resource (such as microprocessor, internal memory, display etc.) and instrument hardware (such as A/D, D/A, digital I/O, timer, signal condition etc.) in transparent mode, 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 the 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) so that each manufacturer all develops instrument drivers with this interface software as the bottom function library of I/O control.Like this, the software of different vendor just can be on identical platform cooperating operation, greatly reduced the overlapping development of software.VISA has made a unified DLL (dynamic link library) in different buses, and the program of using the VISA interface to write can be controlled 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 interface type and the software of device.
However, in instrument programming and testing system software application facet, still there are some problem demanding prompt solutions, 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 consist of; 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 at the basis of the compatible framework of VPP definition definition series of standards instrument programming model.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 the same quasi-instrument of supporting the IVI standard.Use the most important purpose of IVI instrument driver to be exactly so that do not changing application code, do not carrying out realizing under the condition that source program recompilates the replacing of test macro Instrumental.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 support 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) because the IVI foundation has only defined 8 quasi-driver function groups at present, and other a large amount of instrument and equipments (such as the communication class instrument) can not be contained, cause IVI to be driven as main software interface and use;
IVI driver rule system is complicated, 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 method for configuring universal virtual instrument interface, 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 test macro Instrumental; B) testing software bag can not adapt to the test macro that dissimilar instrument hardware and bus consist of; C) test code must add the problem on the different instrument of being transplanted to of modification.
This kind method for configuring universal virtual instrument interface 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 windows system Plays pattern;
The USI dll dynamic link library of b, all appts has been stipulated 4 standard exported functions: open function, close function, self check function and measurement functions;
C, every kind of instrument define a USI description document simultaneously;
The quantity of the input/output parameters of d, 4 standard exported functions and data type 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 according to the USI description document of this instrument, the function of instrument is configured; Dispose complete after, by application program with configuration result as Transfer Parameters, 4 standard exported functions of the USI dll dynamic link library of dynamic call instrument regulation;
F, 4 parameters that the standard exported function is come according to application passes are called actual driver or other application program modules of instrument again, 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 rules 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 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], whole file are with [program] beginning, take [end] as ending;
Each paragraph comprises several rows, and every row adopts the form of "=" expression formula, and expression formula "=" left side be attribute, and the right side is value, is used for describing 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 attribute and the value of each driving function input parameter, if a kind of function comprises a plurality of input parameters, then successively in order all row write in [input parameter] this paragraph;
[output parameter] paragraph is described attribute and the value of each driving function output parameter, if a kind of function comprises a plurality of output parameters, then successively in order all row write in [output parameter] this paragraph;
[end] paragraph identifies the end of whole interface document.
4 standard exported functions of the USI dll dynamic link library of all appts regulation 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 unsuccessfully;
long UiDeviceClose(void)
Function name: close function
Function return value: if=0 then function run succeeded, otherwise carry out unsuccessfully;
long UiDeviceSelftTest(void)
Function name: self check function
Function return value: if=0 then function run succeeded, otherwise carry out unsuccessfully;
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 unsuccessfully.
The method of 4 standard exported functions of the USI dll dynamic link library of dynamic call instrument regulation is among the described step e:
At first state 4 entrance functions;
In application program, obtain the address of dll dynamic link library and 4 standard exported functions;
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, sequentially, number is all by USI description document Dynamic Definition;
Call at last and close function, close instrumentation.
Method for configuring universal virtual instrument interface provided by the invention, in fact between common instrument drivers and application program, to have added a USI layer, application program and actual instrumentation called thoroughly keep apart, by calling interface function and the GDV file of definition unified standard, thereby realized not changing application code, not carrying out the replacing of test macro Instrumental 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 method for configuring universal virtual instrument interface 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 restriction of not opposing:
This kind method for configuring universal virtual instrument interface 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 windows system Plays pattern;
The USI dll dynamic link library of b, all appts has been stipulated 4 standard exported functions: 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 respectively quantity and the data type of the input/output parameters of 4 standard exported functions 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 according to the GDV file of this instrument, the function of instrument is configured; Dispose complete after, by application program with configuration result as Transfer Parameters, 4 standard exported functions of the USI dll dynamic link library of dynamic call instrument regulation;
F, 4 parameters that the standard exported function is come according to application passes are called actual driver or other application program modules of instrument again, and execution result is returned application program.
Method for configuring universal virtual instrument interface provided by the invention, in fact between common instrument drivers and application program, to have added a USI layer, application program and actual instrumentation called thoroughly keep apart, by calling interface function and the GDV file of definition unified standard, thereby realized not changing application code, not carrying out the replacing of test macro Instrumental 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 method for configuring universal virtual instrument interface 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 standard exported functions of the USI dll dynamic link library of all appts regulation 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 unsuccessfully.
l long UiDeviceClose(void)
Function name: close function
Function return value: if=0 then function run succeeded, otherwise carry out unsuccessfully.
l long UiDeviceSelftTest(void)
Function name: self check function
Function return value: if=0 then function run succeeded, otherwise carry out unsuccessfully.
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 unsuccessfully.
The method of 4 standard exported functions of the USI dll dynamic link library of dynamic call instrument regulation is among the described step e:
At first state 4 entrance functions;
In application program, obtain the address of dll dynamic link library and 4 standard exported functions;
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, sequentially, 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 rules 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 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], whole file are with [program] beginning, take [end] as ending.
Each paragraph comprises several rows, and every row adopts the form of "=" expression formula, and expression formula "=" left side is attribute, and the right side is 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 successively in order all row write in [function] this paragraph.
[input parameter] paragraph is described attribute and the value of each driving function input parameter.If a kind of function comprises a plurality of input parameters, then successively in order all row write in [input parameter] this paragraph.
[output parameter] paragraph is described attribute and the value of each driving function output parameter.If a kind of function comprises a plurality of output parameters, then successively in order all 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 as example in universal test software platform the inside:
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 the interface configuration contents such as the number of parameters of instrument model, driver name, 4 functions 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
; Not automatic powder adding add operation does not show in operating list
[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
; The automatic powder adding add operation shows in operating list
[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
; The automatic powder adding add operation shows in operating list
[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
; The automatic powder adding add operation shows in operating list
[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, then corresponding with this instrument, define a unique logical name (such as " 1# vector network analyzer "), distribute simultaneously an actual hardware resource address that takies (such as " GPIB0:15:INSTR ");
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 developing in general-utility test platform software the inside, 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) this instrument of flow process parameter access of configuring in the step.
When the same quasi-instrument (such as abc2000) that vector network analyzer abc1000 need to 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 (such 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 again development and testing flow process, 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 apparent 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 (3)

1. a method for configuring universal virtual instrument interface 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 windows system Plays pattern;
The USI dll dynamic link library of b, all appts has been stipulated 4 standard exported functions: open function, close function, self check function and measurement functions;
C, every kind of instrument define a USI description document simultaneously;
D, define respectively quantity and the data type of the input/output parameters of 4 standard exported functions 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 according to the USI description document of this instrument, the function of instrument is configured; Dispose complete after, by application program with configuration result as Transfer Parameters, 4 standard exported functions of the USI dll dynamic link library of dynamic call instrument regulation;
F, 4 parameters that the standard exported function is come according to application passes are called actual driver or other application program modules of instrument again, and execution result is returned application program;
Wherein, the corresponding USI description document of each instrument, described USI description document is text-only file, the file extension unification is defined as " .gdv ", and the USI description document is the illustrative file of virtual instrument USI, uses with virtual instrument USI dynamic link library, as the foundation of application call virtual instrument USI, the establishment rules of described USI description document is as follows:
File is divided into 6 paragraphs, i.e. [program], [operation], [function], [input parameter], [output parameter] and [end], whole file are with [program] beginning, take [end] as ending;
Each paragraph comprises several rows, and every row adopts the form of "=" expression formula, and expression formula "=" left side be attribute, and the right side is value, is used for describing 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 attribute and the value of each driving function input parameter, if a kind of function comprises a plurality of input parameters, then successively in order all row write in [input parameter] this paragraph;
[output parameter] paragraph is described attribute and the value of each driving function output parameter, if a kind of function comprises a plurality of output parameters, then successively in order all row write in [output parameter] this paragraph;
[end] paragraph identifies the end of whole interface document.
2. a kind of method for configuring universal virtual instrument interface according to claim 1, it is characterized in that 4 standard exported functions of the USI dll dynamic link library of all appts regulation 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 unsuccessfully;
long UiDeviceClose(void)
Function name: close function
Function return value: if=0 then function run succeeded, otherwise carry out unsuccessfully;
long UiDeviceSelftTest(void)
Function name: self check function
Function return value: if=0 then function run succeeded, otherwise carry out unsuccessfully;
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 unsuccessfully.
3. a kind of method for configuring universal virtual instrument interface according to claim 1 is characterized in that, the method for 4 standard exported functions of the USI dll dynamic link library of dynamic call instrument regulation is among the described step e:
At first state 4 entrance functions;
In application program, obtain the address of dll dynamic link library and 4 standard exported functions;
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, sequentially, 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 CN101944062A (en) 2011-01-12
CN101944062B true 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704376B (en) * 2016-08-11 2023-07-07 福建省天奕网络科技有限公司 Game automation testing method and system

Families Citing this family (10)

* 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
CN103092752B (en) * 2012-12-25 2015-06-03 北京航天测控技术有限公司 Error identification method of instrument attributes
CN107766083A (en) * 2016-08-16 2018-03-06 中兴通讯股份有限公司 Interface document analysis method and device
CN108333445B (en) * 2017-12-26 2020-04-03 北京航天测控技术有限公司 Instrument management method of data acquisition instrument based on VxWorks
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
CN113111015B (en) * 2021-03-30 2024-03-19 南京翼辉信息技术有限公司 Non-driving virtual equipment management method
CN115657503A (en) * 2022-12-15 2023-01-31 江苏航远新科技有限公司 Semi-physical simulation system of aircraft engine
CN116150039B (en) * 2023-04-23 2023-06-27 成都华兴汇明科技有限公司 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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107704376B (en) * 2016-08-11 2023-07-07 福建省天奕网络科技有限公司 Game automation testing method and system

Also Published As

Publication number Publication date
CN101944062A (en) 2011-01-12

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
US5784275A (en) System and method for performing interface independent virtual instrumentation functions in a graphical data flow program
US7120876B2 (en) System and method for programmatically generating a graphical program in response to user input
US6513143B1 (en) Method for automaticallly remapping an HDL netlist to provide compatibility with pre-synthesis behavioral test benches
US6507842B1 (en) System and method for importing and exporting test executive values from or to a database
US9053260B2 (en) Utilizing spreadsheet user interfaces with flowsheets of a CPI simulation system
CN102375778B (en) Method and system for automatically testing digital signal processor (DSP)
US20020109722A1 (en) System and method for performing type checking for hardware device nodes in a graphical program
CN112270149B (en) Verification platform automatic integration method and system, electronic equipment and storage medium
US20060293768A1 (en) System and Method for Accessing Registers of a Hardware Device in a Graphical Program
US10095678B2 (en) Database user interfaces with flowsheets of a simulation system
CN101334806A (en) Methods and apparatus for automation of register maps
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN106843887A (en) A kind of implementation method of embedded customized development platform automatic creation system
CN102981882A (en) Analytic method and analytic device
CN104714881B (en) A kind of unit test system and method for table driving
CN115061772B (en) Multi-field simulation model integration method and system
CN102354275B (en) Text input box and data processing method thereof
Dutt et al. An intermediate representation for behavioral synthesis
CN104063231A (en) Test resource rapid access method based on HIT-TENA
CN102467369B (en) Measurement resource control system and measurement resource control method
CN102467370A (en) Measurement resource control system and measurement resource control method

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