CN100485610C - Automatic generation method for virtual instrument software - Google Patents

Automatic generation method for virtual instrument software Download PDF

Info

Publication number
CN100485610C
CN100485610C CNB2006100167791A CN200610016779A CN100485610C CN 100485610 C CN100485610 C CN 100485610C CN B2006100167791 A CNB2006100167791 A CN B2006100167791A CN 200610016779 A CN200610016779 A CN 200610016779A CN 100485610 C CN100485610 C CN 100485610C
Authority
CN
China
Prior art keywords
module
data
virtual instrument
relationship
modules
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
CNB2006100167791A
Other languages
Chinese (zh)
Other versions
CN1838072A (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.)
Jilin University
Original Assignee
Jilin University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jilin University filed Critical Jilin University
Priority to CNB2006100167791A priority Critical patent/CN100485610C/en
Publication of CN1838072A publication Critical patent/CN1838072A/en
Application granted granted Critical
Publication of CN100485610C publication Critical patent/CN100485610C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

This invention relates to an automatic generation method for virtual instrument software. Building required module with demand as drive, abstract extracting and fining on four aspects as data acquisition, data process, data display and data storage; by the reasoning on matching relation with functional module set, obtaining the compatibility of data inlet and outlet between user selected modules to automatic decide the in-out sequence of data stream among modules; arranging standard uniform interface for functional module start and stop in every functional module. This invention just needs select opposite module for target software, eliminates the design and control loop, and increases efficiency.

Description

Automatic generation method for virtual instrument software
Technical field:
The present invention relates to the computer application software programmed method, generate the virtual instrument software method automatically especially for the automatic connection mechanism of virtual instrument platform.
Background technology:
The core concept of virtual instrument is " software promptly is instrument ", promptly on the basis of hardware, cooperates powerful software systems can generate different types of virtual instrument.Virtual instrument utilizes computing machine, adds that hardware integrated circuit board and special-purpose software systems just can make computing machine possess instrumental function.Virtual instrument utilizes the instrument control softpanel of setting up emulation of the graphics capability of computing machine, realizes the control to the hardware of forming instrument.Simultaneously, utilize the powerful data-handling capacity of computing machine to carry out the processing and the demonstration of data.Virtual instrument is an important research direction that is used for substituting traditional instrument, also is an important development direction in instrumental science field simultaneously.
Virtual instrument is made up of hardware integrated circuit board and software, and software is the core that constitutes virtual instrument.The main in the world implementation of at present popular virtual instrument software has: (1) American National instrument (NI) company can carry out the exploitation of virtual instrument software at its leading products LabVIEW, the attractive in appearance easy-to-use and text language that combines figure that it is more perfect powerful flexibly, and virtual instrument solution towards the extensive testing field is provided on this basis, occupy monopoly position at the global virtual instrument field.(2) hewlette-packard (existing Agilent) provides the another kind of solution-VEE development platform of virtual instrument.Virtual instrument software is in the existing main mode of China: (1) is based on the secondary development of external software platform such as LabVIEW and relevant hardware plan.(2) based on the virtual instrument combined platform of Component Gallery, mainly towards the mechanical test field.(3), and realized the virtual instrument development platform VPP of similar VEE on this basis based on the simultaneous streaming model of Event triggered.The popular virtual instrument development platform in China and foreign countries such as picture LabVIEW and VEE adopts patterned virtual instrument software development scheme, on behalf of the control of instrumental function, the developer directly will drag to and assemble on the screen and design, and establishment and exploitation that these visual virtual instruments generation platforms are virtual instrument software are provided convenience.Yet, the common shortcoming that develops software of these types, from the angle of soft project, the user is the best supplier of demand, rather than the best deviser of software itself.For these above virtual instrument development platform, require the user to possess special procedure designer's programming capability, from general angle, this is unfavorable for popularizing with regard to making the exploitation of virtual instrument software become loaded down with trivial details.
Summary of the invention
Purpose of the present invention just is at above-mentioned the deficiencies in the prior art, provide a kind of user not need to possess the professional of computer hardware aspect knowledge, just can select module according to the needs of thermometrically task, by reasoning to selected module, the data that draw between the selected module flow into and the compatibility that flows out, automatically determination data stream between each module inflow and the sequencing of outflow, just can generate virtual instrument software automatically.
The objective of the invention is to realize in the following manner:
Automatic generation method for virtual instrument software comprises following method and step:
A. set up the module general collection, set up that the module general collection has that data are obtained, data processing, data presentation and four kinds of functional modules of data storage constitute parent layer, four kinds of functional modules are again respectively by offspring's layer PCI, USB with stratiform inheritance, FFT, PWE, and DSO, LINE constitute;
B. set up the global data district, the global data district is made of the identical memory block of size more than, the global data district is the path that carries out streams data between the module, and the module relationship reasoning is to be used for realizing that functional module reads the sequencing and the compatibility of judgment data between each module of the right of the data in the global data district;
C. set up the module relationship rule set, module relationship is the matching relationship that has between the same parent layer module that forms between several modules, and the process of generation module rule set is the process that generates the offspring's layer rule module table with same parent layer module;
D. mate reasoning between the module, concentrate order to read two modules,, form IF condition 1 and condition 2 and by searching the module relationship tree from user-selected module ... and condition n THEN decision-making;
E. generate virtual instrument software automatically, by reasoning to user-selected module, the data that draw between the user-selected module flow into and the compatibility that flows out, automatically determination data stream between each module inflow and the sequencing of outflow, generate virtual instrument software automatically.
Purpose of the present invention can also realize in the following manner:
Module in the module general collection is divided into module that possesses display interface and the module that does not possess display interface, and all modules have unified data flow interface; The rule module collection is divided into generator rule module collection and generates negation element rule module collection.
Good effect: automatic generation method for virtual instrument software provided by the present invention, need not coding, compiling, operation stepss such as connection only need to select corresponding functional modules can generate virtual instrument software automatically, by reasoning to selected module, the data that draw between the selected module flow into and the compatibility that flows out, automatically determination data stream between each module inflow and the sequencing of outflow, just can generate virtual instrument software automatically, simplify program, improved efficient.
Accompanying drawing and description of drawings
Fig. 1 is the automatic generation method for virtual instrument software structured flowchart
Fig. 2 is that automatic generation method for virtual instrument software module stratiform concerns block diagram
Fig. 3 is automatic generation method for virtual instrument software global data district and data mobile block diagram between module
Fig. 4 is that automatic generation method for virtual instrument software global data district connects block diagram
Fig. 5 is an automatic generation method for virtual instrument software step block diagram
Embodiment:
Be described further below in conjunction with the drawings and specific embodiments:
Set up the module general collection: functional module is divided into four basic modules: data are obtained, data processing, data presentation, data storage.And these four basic modules as the ground floor in the module relationship tree, carefully draw, promptly four basic modules are segmented from functional perspective.The inheritance that new module and the data that form are obtained, data processing, data presentation, four basic modules of data storage have stratiform.The definition of module can be expressed as formally: (Dom), wherein M is a module name to M=M for T, P, and T is the parent layer module name of module, and P is the attribute-name set of module, and Dom is the pairing codomain of attribute-name among the P; If the lower floor's property value among the P is 0, be referred to as element module MM (Meta-Module), if the lower floor's property value among the P is 1, be referred to as non-element module NMM (Non-Meta-Module).
Set up the global data district: the global data district is similar to the data bus in the architecture, and the exchanges data between responsible a plurality of modules is with shared.Simultaneously, also be the path that carries out streams data between the module.The global data district is that the DOUBLE type global variable of a variable length is used for realizing that the exchange of data is with shared.The global data district can be divided into exclusive district and shared region.Exclusive district is used for carrying out between two specific modules the exchange of data, promptly has only these two modules to have the right of reading and writing or read-write.Shared region is meant that the functional module of all selections all has the right of reading and writing or read-write.Originally the storage area that only distributes 256 DOUBLE sizes is expanded according to system resource when depositing large-scale array again.For large-scale exchanges data but system resource can't distribute more internal memories the time, handy disk file read in read mutual.
The foundation that concerns between the module: module relationship is a formed stratiform module relationship tree with set membership between several modules, the process of generation module relation rule collection is the process that generates with relation rule table between the layer module, forms module by all relation rule tables and closes rule set.
Concentrate sequential read to get next module from module, by searching the module relationship tree, find out between two modules and whether mate, as the result is empty, then search the parent layer module of one of them module and the matching relationship between another module, if still be empty, then search the matching relationship number of the same parent layer module separately of two modules, finally form IF condition 1 and condition 2 and ... and condition n THEN decision-making.
Generate negation element rule module collection: be selected in all given under Automatic Program generting machanism module collections, comprise all element modules and non-element module, add the superiors parent module of a virtual module M00 simultaneously as all modules.Revise that the lower floor's attribute in the P property set is 1 among the M00, establishing the module collection that all module collection are used to set up the module relationship derivation tree is D.
Generator rule module collection: selecting T attribute in all modules is the ground floor module collection D1 (M1i (i=0 that 0 module forms the module relationship tree, 1,2,3)), comprise several parent layer modules among the D1 and be 0 module, specify the relation between each module simultaneously, that is to say the mutual matching relationship between the ground floor module, matching relationship is stored in the node in the module relationship tree mutually.The T attribute of revising concentrated each module of ground floor module is M00; Form module collection D21 from module collection (D-D1) module that to select its T attribute be M10, select the module formation module collection D22 that the T attribute is M11 from module collection (D-D1-D21), the rest may be inferred, from module collection [D-D1-D21-...-D2 (i-1)] to select the T attribute be that the module of M1i forms module collection D2i; Each module collection D21, D22 ... D2i forms second layer module collection D2, and the module among the D2 is joined in the module relationship tree; And specify each module to concentrate relation in each module; Revise the D21 module and concentrate all module T attribute M10, revise the D22 module and concentrate all module T attribute M11 ... revise the D2i module and concentrate all module T attribute M1i; Specify the relation between the concentrated module of same module; While modified module collection D21, D22 ... lower floor's attribute among the parent module attribute collection P of D2i, if set is not empty, then lower floor's property value is 1, if set is empty, then lower floor's property value is 0; If set is not empty, specify the matching relationship of negation element intermodule in each set.
Algorithm above repeating, up to satisfy set (D-D1-D2-Dj) (j=1,2,3 ... n) be empty; Preserve the reasoning process of this module relationship tree in order to follow-up Automatic Program generting machanism.
New module adds fashionable: if its parent layer module is an element module, lower floor's attribute of then revising among the parent layer module P is 1, and revises the attribute of new module; If its parent layer module is non-element module, it may be noted that in adding module relationship tree process that then this module and its have the relation between the module of same parent layer module.Store this amended module relationship tree then, in order to reasoning process.
Carry out the reasoning of mating between the module: the process of utilizing the module relationship tree that generates to carry out module relationship match reasoning promptly is to judge the problem of whether mating between selected a plurality of functional module.Collect selected functional module, form the module collection, read first module in order, read module relational tree tree, the reasoning decision process is carried out in preparation, concentrates sequential read to get next module from module, finds out the matching relationship between the same parent layer module separately of these two modules, if the parent layer module is mated entirely, then this two module is mated entirely; If the parent layer module does not match fully, then this two module does not match fully; If the result who searches, then searches the matching relationship between another module of module of parent of one of them module for empty,, then search the matching relationship of the same parent layer module separately of two modules if lookup result still be a sky.Finally can form the judgment rule of " IF condition 1 and condition 2 and ... and condition n THEN decision-making ".
Virtual instrument software generates automatically: according to judging The reasoning results, if Conditions reports an error the relation of not matching between the specification module in false in reasoning process.If condition is true, then the data stream between the specification module can be compatible, and each module that can be dynamically connected certainly forms virtual instrument software, data stream is flowed between each module and flows out.Data flowing between each module.
By the reasoning to user-selected module, the data that draw between the user-selected module flow into and the compatibility that flows out, automatically determination data stream between each module inflow and the sequencing of outflow, generate virtual instrument software automatically.
Functional module is unified external interface.In each functional module, all comprise the interface of the functional module start and stop of standard.Automatically generate the operation that utilizes this standard interface to control all modules and stop.

Claims (3)

1, a kind of automatic generation method for virtual instrument software that is used for virtual instrument platform is characterized in that, may further comprise the steps:
A. set up the module general collection, the module general collection be by data obtain, data processing, data presentation and four kinds of functional modules of data storage constitute parent layer, four kinds of functional modules are made of offspring's layer PCI, USB, FFT, PWE and DSO, LINE with stratiform inheritance respectively again;
B. set up the global data district, the global data district is made of the identical memory block of size more than, the global data district is the path that carries out streams data between the module, and the module relationship reasoning is to realize that functional module reads the sequencing and the compatibility of judgment data between each module of the right of the data in the global data district;
C. set up the module relationship rule set, module relationship is a formed stratiform module relationship tree with set membership between several modules, the process of generation module relation rule collection is the process that generates with relation rule table between the layer module, forms the module relationship rule set by all relation rule tables;
D. module relationship reasoning concentrates order to read two modules from user-selected module, by searching the module relationship tree, forms IF condition 1 and condition 2 and ... the decision-making of and condition n THEN;
E. generate virtual instrument software automatically, by to user-selected module relationship reasoning, the data that draw between the user-selected module flow into and the compatibility that flows out, automatically determination data stream between each module inflow and the sequencing of outflow, generate virtual instrument software automatically.
According to the said virtual instrument software of claim 1 generation method, it is characterized in that 2, the module in the general collection of step a module is divided into module that possesses display interface and the module that does not possess display interface, all modules have unified data flow interface.
According to the said virtual instrument software of claim 1 generation method, it is characterized in that 3, step c module relationship rule set is divided into generator module relationship rule set and generates negation element module relationship rule set.
CNB2006100167791A 2006-04-19 2006-04-19 Automatic generation method for virtual instrument software Expired - Fee Related CN100485610C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100167791A CN100485610C (en) 2006-04-19 2006-04-19 Automatic generation method for virtual instrument software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100167791A CN100485610C (en) 2006-04-19 2006-04-19 Automatic generation method for virtual instrument software

Publications (2)

Publication Number Publication Date
CN1838072A CN1838072A (en) 2006-09-27
CN100485610C true CN100485610C (en) 2009-05-06

Family

ID=37015479

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100167791A Expired - Fee Related CN100485610C (en) 2006-04-19 2006-04-19 Automatic generation method for virtual instrument software

Country Status (1)

Country Link
CN (1) CN100485610C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872313B (en) * 2010-05-18 2012-12-12 重庆大学 Method for developing intelligent control-oriented virtual instrument capable of reconfiguring functions
CN103049954B (en) * 2012-12-27 2016-04-06 福州福大自动化科技有限公司 The graphical control strategy configuration method of gate control system
CN104360863A (en) * 2014-11-26 2015-02-18 陈亮 Graphical software development platform

Also Published As

Publication number Publication date
CN1838072A (en) 2006-09-27

Similar Documents

Publication Publication Date Title
US10496525B2 (en) Visual analysis and debugging of event flows
US9535975B2 (en) Parallel programming of in memory database utilizing extensible skeletons
CN101601012B (en) Producer graph oriented programming framework with scenario support
CN101617292A (en) Programming and execution towards producer graph
US7788269B2 (en) Integration of predefined multi-dimensional and flexibly-ordered dynamic search interfaces
CN101145152A (en) System and method for automatically refining reality in specific context
CN109508352A (en) A kind of output method of report data, device, equipment and storage medium
CN101887464B (en) Method and device for displaying data in database
CN109492150A (en) Reverse nearest neighbor queries method and device based on semantic track big data
CN102200974A (en) Unified information retrieval intelligent agent system and method for search engine
CN109359287A (en) The online recommender system of interactive cultural tour scenic area and scenic spot and method
CN100485610C (en) Automatic generation method for virtual instrument software
CN106528756B (en) A kind of network map data method for organizing based on space-time relationship
CN110045982A (en) A kind of embedded system configuration method based on source code polymerization
Wang et al. S-store: An engine for large rdf graph integrating spatial information
CN108470057A (en) Integrate generation, method for pushing, device, terminal, server and the medium of information
Wu et al. Explainable data transformation recommendation for automatic visualization
Chen et al. Design and implementation of an intelligent system for tourist routes recommendation based on Hadoop
CN110070100A (en) A kind of agricultural weather Outliers Detection method and device that multiple-factor is integrated
US20220180245A1 (en) System and method of constructing machine learning workflows through machine learning suggestions
Thakore et al. Performance analysis of parallel object-oriented query processing algorithms
CN110232063A (en) Hierarchical data querying method, device, computer equipment and storage medium
CN104268092B (en) File storage system and file storage method
CN113238743B (en) Virtual-real hybrid control method for simulation training system
CN109241468A (en) Map search display methods, system, storage medium and equipment

Legal Events

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

Granted publication date: 20090506

Termination date: 20100419