CN109714212B - Method and system for dynamically constructing virtual instrument - Google Patents

Method and system for dynamically constructing virtual instrument Download PDF

Info

Publication number
CN109714212B
CN109714212B CN201811642597.4A CN201811642597A CN109714212B CN 109714212 B CN109714212 B CN 109714212B CN 201811642597 A CN201811642597 A CN 201811642597A CN 109714212 B CN109714212 B CN 109714212B
Authority
CN
China
Prior art keywords
instrument
virtual
network
virtual instrument
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811642597.4A
Other languages
Chinese (zh)
Other versions
CN109714212A (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.)
Shanghai Inesa Network Co ltd
Original Assignee
Shanghai Inesa Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Inesa Network Co ltd filed Critical Shanghai Inesa Network Co ltd
Priority to CN201811642597.4A priority Critical patent/CN109714212B/en
Publication of CN109714212A publication Critical patent/CN109714212A/en
Application granted granted Critical
Publication of CN109714212B publication Critical patent/CN109714212B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for dynamically constructing virtual instruments and meters, which relates to the technical field of virtual instruments and meters, and comprises the process of establishing a network structure information table in each instrument and meter and the process of constructing the virtual instrument and meter, wherein the instrument and meter is accessed to a network and transmits the self equipment information to the network in a broadcasting way; the instrument receives the broadcasted equipment information and generates the network structure information table according to the received equipment information; receiving an instruction for constructing the virtual instrument and meter input by an external system by one instrument and meter in the network; and the instrument and meter searches the structural information table according to the instruction to obtain the data node corresponding to the instruction, and constructs the virtual instrument and meter. The invention can conveniently construct a new complex multifunctional instrument and meter, meet the new measurement requirement of an external system without excessive cost, and can be flexibly expanded according to the requirement.

Description

Method and system for dynamically constructing virtual instrument
Technical Field
The invention relates to the technical field of virtual instruments and meters, in particular to a method and a system for dynamically constructing a virtual instrument and meter.
Background
With the rapid development of electronic technology, computer technology and network technology and the application of electronic measurement technology and instrument field, new measurement theory, test method and field and new instrument structure are continuously appeared, the computer is in the core position, the software technology and test system are organically combined into a whole, and the structure, concept and design viewpoint of the instrument are also changed in a breakthrough way. By virtual instrument is meant a personal computer instrument with a virtual instrument panel, which is an organic combination of computer resources, modular functional hardware, and application software for data analysis, process communication, and graphical user interfaces. It uses software to generate various instrument panels on the screen to complete the functions of processing, expressing, transmitting, storing and displaying data. Compared with the traditional instrument, the virtual instrument has the main advantages that the virtual instrument can be defined by a user and an instrument system can be designed by the user so as to meet different requirements, so that the instrument has more powerful and flexible functions, and can be easily connected with a network, a peripheral and other applications. Therefore, the price is reduced, the development and maintenance cost is saved, and the technical development period is shortened.
At present, the development direction of virtual instruments is mainly to separate a data acquisition hardware part from a data analysis and display part, and the same hardware system can obtain measuring instruments with completely different functions only by applying different software programming. However, such a virtual instrument has a single measurement capability in a construction mode, and can only measure measurement indexes of one or two instruments with corresponding sensors; and flexible expansion cannot be carried out, and if a more complex measurement function needs to be expanded, more complex and more expensive instruments need to be purchased or a complex software system needs to be developed for realization.
Disclosure of Invention
Aiming at the problems in the prior art, the invention provides a method for dynamically constructing virtual instruments, which comprises the process of establishing a network structure information table in each instrument, and specifically comprises the following steps:
step A1, the instrument is accessed to the network and sends the device information to the network by broadcasting;
step A2, the instrument receives the broadcasted device information, and generates the network structure information table according to the received device information, the network structure information table includes the data nodes of the instruments of each access network;
the method further comprises a process of constructing the virtual instrument, and specifically comprises the following steps:
step B1, receiving an instruction for constructing the virtual instrument and meter input by an external system by one instrument and meter in the network;
step B2, the instrument retrieves the data node corresponding to the instruction from the structure information table according to the instruction, and sends a data request instruction to the instrument corresponding to the data node;
step B3, the instrument receiving the request data instruction sends confirmation information to the instrument needing to construct the virtual instrument;
step B4, after the instrument needing to construct the virtual instrument receives the confirmation information, the virtual instrument is constructed, and a confirmation instruction is sent to the external system;
after the virtual instrument is constructed, the instrument continues to receive data, which are sent by the instrument corresponding to the data node through the network.
Preferably, the device information includes location, name and service information of the instrument in the network;
the device information is included in a device information table of the instrument.
Preferably, after the step a2 is executed, the method further includes:
the instrumentation sends a confirmation message to other instrumentation in the network to confirm that the network configuration information table has been generated.
Preferably, a control module for controlling the operation of the instrument and a communication module for connecting the instrument and the network are arranged in the instrument and meter;
after said step B4, treating said control module of said instrument of the entity that has constructed said virtual instrument as said control module of said virtual instrument being constructed; and
the communication module of the instrument of the entity that has built the virtual instrument is taken as the communication module of the virtual instrument being built.
Preferably, after the step B4 is executed, the method further includes the step of processing the received data by the instrument that has constructed the virtual instrument, and then sending the processing result to the external system.
Preferably, the instrument processes the data in an edge calculation manner.
A system for dynamically building a virtual instrument, applying the method of any one of the above; the system comprises a plurality of physical instruments, wherein each instrument comprises a control module, a communication module and a data acquisition module;
the data acquisition module is connected with the control module and used for acquiring test data of an external system and sending the test data to the control module for processing and storing;
the control module is connected with the communication module and used for controlling the instruments to access a network through the communication module, and communicating with each instrument in the network after receiving instructions for constructing the virtual instrument, which are input by an external system, so as to construct the virtual instrument.
Preferably, the constructed virtual instrument comprises a control module, a communication module and a data acquisition module;
the control module of the instrument of the virtual instrument has been built as the control module of the virtual instrument;
the communication module of the instrument of the virtual instrument has been constructed as the communication module of the virtual instrument;
the data collection module of the instrument of the virtual instrument has been constructed as the data collection module of the virtual instrument.
The technical scheme has the following advantages or beneficial effects:
1) a plurality of instruments with single measuring function are combined to form a virtual instrument with new measuring function and more complex, so that equipment purchasing cost is saved;
2) the constructed virtual instrument has the same function as the physical instrument and can provide various measurement data to the outside;
3) the constructed virtual instrument has multiple measurement functions, can be flexibly expanded according to needs, and does not need to develop a more complex software system.
Drawings
FIG. 1 is a flow chart illustrating a process for creating a network configuration information table in each instrument according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart illustrating a process for constructing a virtual instrument in accordance with a preferred embodiment of the present invention;
FIG. 3 is a schematic diagram of each instrument in a system for dynamically building virtual instruments in accordance with a preferred embodiment of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and specific embodiments. The present invention is not limited to the embodiment, and other embodiments may be within the scope of the present invention as long as the gist of the present invention is met, and features in the following examples and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention in a schematic manner, and only the modules related to the present invention are shown in the drawings rather than being drawn according to the modules in the actual implementation, and the actual implementation also includes other functional modules.
In a preferred embodiment of the present invention, based on the above problems in the prior art, a method for dynamically constructing virtual instruments is provided, which includes a process of establishing a network configuration information table in each instrument, as shown in fig. 1, and specifically includes:
step A1, accessing the instrument into the network, and sending the device information to the network by broadcasting;
step A2, the instrument receives the broadcasted equipment information, and generates a network structure information table according to the received equipment information, the network structure information table includes the data nodes of each instrument accessing the network;
the method further includes a process of constructing a virtual instrument, as shown in fig. 2, specifically including:
step B1, an instrument in the network receives the instruction of constructing virtual instrument inputted by external system;
step B2, the instrument retrieves the data node corresponding to the instruction from the structure information table according to the instruction, and sends a request data instruction to the instrument corresponding to the data node;
step B3, the instrument receiving the request data instruction sends confirmation information to the instrument needing to construct the virtual instrument;
step B4, after receiving the confirmation information, the instrument needing to construct the virtual instrument and meter constructs the virtual instrument and meter, and sends a confirmation instruction to the external system;
after the virtual instrument is constructed, the instrument continues to receive data sent by the instrument corresponding to the data node through the network.
Specifically, in this embodiment, the method of the present invention includes a process of establishing a network structure information table in each instrument and a process of establishing a virtual instrument, where after a plurality of existing instruments are connected to a network, a process of establishing a network structure information table in each instrument is executed first; through the process of establishing the network structure information table in each instrument, the network structure information table, namely the equipment information of each instrument in the network, is generated in each instrument, and basic information and data are provided for constructing virtual instruments. And when receiving an instruction that the external system needs to construct the virtual instrument, executing a process of dynamically constructing the virtual instrument by the instrument corresponding to the instruction in the network structure information table.
Furthermore, through the process of constructing the virtual instrument, the virtual instrument with multiple measurement functions and capable of being flexibly expanded can be dynamically constructed in the network.
In a preferred embodiment of the invention, the device information includes location, name and service information of the instrument in the network;
the device information is included in a device information table of the instrument.
Specifically, in the present embodiment, the device information includes, but is not limited to, the location, name, and service information of the instrumentation in the network.
In a preferred embodiment of the present invention, after the step a2 is executed, the method further includes:
the instrument sends a confirmation message to other instruments in the network to confirm that the network configuration information table has been generated.
Specifically, in this embodiment, the confirmation information is used to indicate that a network structure information table has been generated in each instrument, so as to ensure that any instrument in the network can receive an instruction for constructing a virtual instrument input by an external system, and further execute a process for constructing the virtual instrument.
In a preferred embodiment of the invention, a control module for controlling the operation of the instrument and a communication module for connecting the instrument and the network are arranged in the instrument;
after step B4, the control module of the physical instrument that has constructed the virtual instrument is used as the control module of the virtual instrument that is constructed; and
the communication module of the instrument of the entity that has built the virtual instrument is taken as the communication module of the virtual instrument being built.
In the preferred embodiment of the present invention, after step B4 is executed, the method further includes processing the received data by the instrument that has constructed the virtual instrument, and then sending the processing result to the external system.
Specifically, in this embodiment, after receiving the processing result, the external system may display data information that can be provided by the constructed virtual instrument.
In the preferred embodiment of the present invention, the instrumentation processes the data in an edge-computing manner.
Specifically, in this embodiment, the instrumentation processes data of the plurality of data nodes by calling the edge calculation module.
A system for dynamically constructing a virtual instrument, which applies any one of the above methods; the system comprises a plurality of physical instruments, as shown in fig. 3, each instrument comprises a control module 1, a communication module 2 and a data acquisition module 3;
the data acquisition module 3 is connected with the control module 1 and used for acquiring test data of an external system and sending the test data to the control module 1 for processing and storing;
the control module 1 is connected with the communication module 2 and used for controlling the instruments to access the network through the communication module, and communicating with each instrument in the network after receiving instructions for constructing the virtual instrument, which are input by an external system, so as to construct the virtual instrument.
Specifically, in this embodiment, after the instrument and meter accesses the network, the control module 1 broadcasts its own device information in the network through the communication module 2, and simultaneously monitors and receives the broadcast information in the network, and then generates a network structure information table according to the received broadcast information and sends a confirmation message to reply the broadcast information.
Further specifically, after receiving an instruction for constructing a virtual instrument and meter input by an external system, the control module 1 retrieves the instrument and meter corresponding to the instruction according to the instruction, then sends confirmation information to the instrument and meter corresponding to the instruction, sends a confirmation instruction for constructing the virtual instrument and meter to the external system after receiving the confirmation information, and then constructs the virtual instrument and meter according to the confirmation instruction.
Further, after the virtual instrument is constructed, the control module 1 receives the test data sent by the data acquisition module of the instrument for constructing the virtual instrument, processes the test data, and sends the data which can be provided by the test data to an external system.
In a preferred embodiment of the invention, the constructed virtual instrument comprises a control module, a communication module and a data acquisition module;
a control module of an instrument of the virtual instrument has been constructed as a control module of the virtual instrument;
the communication module of the instrument of the virtual instrument has been constructed as the communication module of the virtual instrument;
the data collection module of the instrument of the virtual instrument has been constructed as the data collection module of the virtual instrument.
Specifically, in this embodiment, the constructed virtual instrument and the physical instrument have the same functional modules, that is, the control module, the communication module and the data acquisition module, and accordingly, may also provide various measurement data to the outside, as the physical instrument, and have more measurement functions without increasing the equipment purchase cost.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention.

Claims (7)

1. A method for dynamically constructing virtual instruments and meters is characterized by comprising a process of establishing a network structure information table in each instrument and meter, and specifically comprising the following steps:
step A1, the instrument is accessed to the network and sends the device information to the network by broadcasting;
step A2, the instrument receives the broadcasted device information, and generates the network structure information table according to the received device information, the network structure information table includes the data nodes of the instruments of each access network;
the method further comprises a process of constructing the virtual instrument, and specifically comprises the following steps:
step B1, receiving an instruction for constructing the virtual instrument and meter input by an external system by one instrument and meter in the network;
step B2, the instrument retrieves the data node corresponding to the instruction from the structure information table according to the instruction, and sends a data request instruction to the instrument corresponding to the data node;
step B3, the instrument receiving the request data instruction sends confirmation information to the instrument needing to construct the virtual instrument;
step B4, after the instrument needing to construct the virtual instrument receives the confirmation information, the virtual instrument is constructed, and a confirmation instruction is sent to the external system;
after the virtual instrument is constructed, the instrument continues to receive data, which are sent by the instrument corresponding to the data node through the network;
the instrument is provided with a control module for controlling the instrument to work,
and a communication module for providing connection of the instrumentation to a network;
after said step B4, treating said control module of said instrument of the entity that has constructed said virtual instrument as said control module of said virtual instrument being constructed; and
the communication module of the instrument of the entity that has built the virtual instrument is taken as the communication module of the virtual instrument being built.
2. The method of claim 1, wherein the device information includes location, name, and service information of the instrumentation in the network;
the device information is included in a device information table of the instrument.
3. The method according to claim 1, wherein after performing step a2, the method further comprises:
the instrumentation sends a confirmation message to other instrumentation in the network to confirm that the network configuration information table has been generated.
4. The method of claim 1, wherein after step B4, the method further comprises the instrument that has constructed the virtual instrument processing the received data and then sending the processing results to the external system.
5. The method of claim 4, wherein the instrument processes the data using edge calculations.
6. A system for dynamically building a virtual instrument, characterized in that a method according to any of claims 1-5 is applied; the system comprises a plurality of physical instruments, wherein each instrument comprises a control module, a communication module and a data acquisition module;
the data acquisition module is connected with the control module and used for acquiring test data of an external system and sending the test data to the control module for processing and storing;
the control module is connected with the communication module and used for controlling the instruments to access a network through the communication module, and communicating with each instrument in the network after receiving instructions for constructing the virtual instrument, which are input by an external system, so as to construct the virtual instrument.
7. The system of claim 6, wherein the constructed virtual instrument comprises a control module, a communication module, and a data collection module;
the control module of the instrument of the virtual instrument has been built as the control module of the virtual instrument;
the communication module of the instrument of the virtual instrument has been constructed as the communication module of the virtual instrument;
the data collection module of the instrument of the virtual instrument has been constructed as the data collection module of the virtual instrument.
CN201811642597.4A 2018-12-29 2018-12-29 Method and system for dynamically constructing virtual instrument Active CN109714212B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811642597.4A CN109714212B (en) 2018-12-29 2018-12-29 Method and system for dynamically constructing virtual instrument

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811642597.4A CN109714212B (en) 2018-12-29 2018-12-29 Method and system for dynamically constructing virtual instrument

Publications (2)

Publication Number Publication Date
CN109714212A CN109714212A (en) 2019-05-03
CN109714212B true CN109714212B (en) 2022-02-08

Family

ID=66259622

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811642597.4A Active CN109714212B (en) 2018-12-29 2018-12-29 Method and system for dynamically constructing virtual instrument

Country Status (1)

Country Link
CN (1) CN109714212B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555007A (en) * 2003-12-29 2004-12-15 秦树人 Method for intelligent control of virtual instrument
CN101872313A (en) * 2010-05-18 2010-10-27 重庆大学 Method for developing intelligent control-oriented virtual instrument capable of reconfiguring functions
CN102759668A (en) * 2011-04-25 2012-10-31 精航伟泰测控仪器(北京)有限公司 Design method of automatic test system for reconfigurable flexible solar arrays
CN103048510A (en) * 2012-11-29 2013-04-17 安徽徽宁电器仪表集团有限公司 Intelligent instrument and method for applying same
CN204044549U (en) * 2014-04-01 2014-12-24 丽水学院 A kind of multifunctional virtual instrument system
CN106274487A (en) * 2016-08-14 2017-01-04 蓝聪科技(上海)有限公司 A kind of multi-functional virtual instrument system
CN107247599A (en) * 2017-06-26 2017-10-13 北京华睿集成科技有限公司 Instrument driving module and instrument driving method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100368325B1 (en) * 1999-10-30 2003-01-24 한국수력원자력 주식회사 A reconstruction method of axial power shapes in core monitoring system using virtual in-core detectors
CN101718808A (en) * 2009-11-24 2010-06-02 深圳市科陆电子科技股份有限公司 Intelligent virtual instrument and application method
CN102570598A (en) * 2010-12-28 2012-07-11 扬州奥瑞特电力测试系统有限公司 Working method of comprehensive automatic device architected on virtual instrument technology
CN102801676A (en) * 2012-03-06 2012-11-28 东南大学 Virtual-instrument-based receiver

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555007A (en) * 2003-12-29 2004-12-15 秦树人 Method for intelligent control of virtual instrument
CN101872313A (en) * 2010-05-18 2010-10-27 重庆大学 Method for developing intelligent control-oriented virtual instrument capable of reconfiguring functions
CN102759668A (en) * 2011-04-25 2012-10-31 精航伟泰测控仪器(北京)有限公司 Design method of automatic test system for reconfigurable flexible solar arrays
CN103048510A (en) * 2012-11-29 2013-04-17 安徽徽宁电器仪表集团有限公司 Intelligent instrument and method for applying same
CN204044549U (en) * 2014-04-01 2014-12-24 丽水学院 A kind of multifunctional virtual instrument system
CN106274487A (en) * 2016-08-14 2017-01-04 蓝聪科技(上海)有限公司 A kind of multi-functional virtual instrument system
CN107247599A (en) * 2017-06-26 2017-10-13 北京华睿集成科技有限公司 Instrument driving module and instrument driving method

Also Published As

Publication number Publication date
CN109714212A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN109739604B (en) Page rendering method, device, server and storage medium
CN105260299A (en) Method, device, and system for software test
CN111177617A (en) Web direct operation and maintenance method and device based on operation and maintenance management system and electronic equipment
CN111221572B (en) Method, device, medium and equipment for automatically adapting to running environment
CN111818194A (en) Domain name based access system and method
CN106815150B (en) Server-side interface test system and method
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN103593199A (en) Method and systems for data conversion
CN109714212B (en) Method and system for dynamically constructing virtual instrument
CN106921675A (en) The method and apparatus that a kind of Intelligent hardware accesses limited network
CN110069406A (en) The TPC-DS test method and system of automatic trigger
CN110020235B (en) Web browser three-dimensional model positioning method, device, medium and electronic equipment
US20200059798A1 (en) Configuration method of wireless network system, configuration terminal and configuration system
WO2021044502A1 (en) Test design device, test design method, test design program, and test design system
KR20140067279A (en) Method and apparatus for combination of robot software component
CN111192080A (en) Page display method and device and electronic equipment
CN112261176B (en) Method for acquiring actual network access relationship and related equipment
CN112073505B (en) Method for unloading on cloud server, control device and storage medium
CN114745313A (en) Terminal remote testing method and device, electronic equipment and readable medium
CN111177558B (en) Channel service construction method and device
KR102047510B1 (en) Device management system and method
CN107193670B (en) Remote management method, device and system for cluster workstations
CN108197232A (en) Content delivery method, server, storage medium and computer program
CN110046171B (en) System, method and apparatus for obtaining information
CN116319322B (en) Power equipment node communication connection method, device, equipment and computer medium

Legal Events

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