CN103077195A - Instrument attribute management method - Google Patents

Instrument attribute management method Download PDF

Info

Publication number
CN103077195A
CN103077195A CN2012105731659A CN201210573165A CN103077195A CN 103077195 A CN103077195 A CN 103077195A CN 2012105731659 A CN2012105731659 A CN 2012105731659A CN 201210573165 A CN201210573165 A CN 201210573165A CN 103077195 A CN103077195 A CN 103077195A
Authority
CN
China
Prior art keywords
attribute
instrument
function
performance
node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012105731659A
Other languages
Chinese (zh)
Other versions
CN103077195B (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.)
Beijing Aerospace Measurement and Control Technology Co Ltd
Original Assignee
Beijing Aerospace Measurement and Control Technology 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 Beijing Aerospace Measurement and Control Technology Co Ltd filed Critical Beijing Aerospace Measurement and Control Technology Co Ltd
Priority to CN201210573165.9A priority Critical patent/CN103077195B/en
Publication of CN103077195A publication Critical patent/CN103077195A/en
Application granted granted Critical
Publication of CN103077195B publication Critical patent/CN103077195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an instrument attribute management method. Function types of existing instruments of the same type are summarized, and all possible performance attributes under each function type and possible values of each performance attribute are determined by aiming at each type of function; in an attribute management module, an attribute function is packaged by aiming at each performance attribute under each function, and an instrument attribute chain table of each function is established; each node of the instrument attribute chain table corresponds to one instrument, and elements in each node comprise all possible performance attributes under the corresponding function; and content of each chain table is configured by adopting an instrument attribute management editor. Instrument attributes are read out from the instrument attribute chain tables when needing to be obtained. The instrument attribute management method has the advantages that instrument configuration functions do not need to be respectively complied by aiming at different instruments of the same type, and only the instrument attributes need to be configured, so that the instrument attributes can be uniformly managed and the driver development efficiency of the instruments is greatly improved.

Description

A kind of instrument attribute management method
Technical field
The present invention relates to instrument Driving technique field, relate in particular to a kind of instrument attribute management method for instrument driver software.
Background technology
At present, instrument drives to versatility, standardization future development.In driving performance history in the past, the driving personnel need write the instrument configuration function corresponding to instrument.When instrument maintenance and upgrading, relate to the maintenance of instrument configuration function.
Have function with quasi-instrument possible different, and identical function property value in different instruments is also possible different.For example, the function of data acquisition quasi-instrument comprises analog input function, simulation output function, digit input function, digital output function, timer/counter input function, timer/counter output function at present.Dissimilar data acquisition quasi-instrument may comprise the part or all of of above 6 kinds of functions.Take the analog input function as example, under this function possible attribute of performance comprise analog channel number, passage allow input maximal value, passage allow input minimum value, input mode, gain, lotus root close mode, impedance, filtering, triggering, regularly, read etc., but not all instrument with analog input function all comprises above-mentioned over-all properties attribute.
Classic method drives under function that the man analysis instrument has and this function to have which attribute of performance when system development, and the instrument configuration function of writing for the attribute of performance that instrument has.When instrument being carried out for example passage configuration, can call the instrument configuration function and realize like this.As seen, because the instrument configuration function is for instrument development, therefore different appliance requires are write different instrument configuration functions, and the instrument configuration function of different driving staff development is different, can not share.
Therefore on the basis that standardized equipment drives, if can will greatly improve instrument driving development efficiency by unified management instrument attribute.
Summary of the invention
In view of this, the invention provides a kind of instrument attribute management method, need to not write respectively the instrument configuration function for the different instruments of same type, only need a configure instrument attribute get final product, can unified management instrument attribute, greatly improve instrument driving development efficiency.
In order to solve the problems of the technologies described above, the present invention is achieved in that
A kind of instrument attribute management method is applied to instrument driver software, comprising:
S00, summarize the function type of existing same type instrument, determine all possible attribute of performance under this function type for every class function, and every kind of value that attribute of performance is possible; In the attribute management module of drive software, adopt the macro definition mode to define the possible value of all properties attribute;
S01, in attribute management module, for the encapsulation of each attribute of performance under each function attribute function, this attribute function is used for certain attribute of performance under certain function of instrument is configured; The input parameter of attribute function comprises instrument model, attribute of performance value; Distinguishing attribute function by function name to which attribute under which function is configured;
S02, in attribute management module, set up the instrument attribute linked-list; The corresponding instrument attribute linked-list of every kind of function summarizing among the step S00, the corresponding instrument of each node of instrument attribute linked-list, the element in each node comprises all possible attribute of performance under the corresponding function;
S03, in attribute management module, make instrument attribute management editing machine, this editing machine provides user interface; Editing machine receives the action type that the user selectes by user interface:
When needs are configured attribute of performance, editing machine receives the instrument model of user's input, which function type attribute of performance value and attribute of performance to be configured belong to, then the attribute of performance and the affiliated funcall respective attributes function thereof that configure as required, the instrument model that the user will be configured, the attribute of performance value is input in the attribute function, then carry out attribute function, attribute function is searched the instrument attribute linked-list corresponding with the institute function of dominant, if the node of instrument model to be configured exists, in the data of upgrading according to attribute of performance value to be configured in the corresponding node, if the node of instrument model to be configured does not exist, then increase node, and insert attribute of performance value to be configured;
When needs were deleted or searched the instrument attribute, editing machine received the operand of user's input, and searches the instrument attribute linked-list, and the operand data are deleted or read; Described operand comprises instrument model, function and/or attribute;
S04, attribute management module receive the attribute query request from the outside, have carried query object in this query requests, and attribute management module is searched the instrument attribute linked-list according to query object, with the data reading of coupling and feed back to the requesting party.
Beneficial effect:
The present invention is first for its possible all functions of similar instrumental analysis, attribute and property value, for every formation function chained list, node structure is identical in the chained list, all comprises all possible attribute under the function, and writes respectively an attribute function for each attribute.
Because attribute function is general, therefore do not need as traditional scheme, to write the instrument configuration function for certain instrument, the user only need to adopt attribute management module configuration attribute value provided by the invention, attribute management module can utilize corresponding attribute function automatically configuration information to be stored in the drive software, greatly improves instrument and drives development efficiency.
In use, upper layer functions also can utilize attribute management module that chained list is conducted interviews, and by chain table access instrument configuration information, then realizes the operation to different instruments.
When instrument is upgraded, as long as the change deploy content.The method has reduced driving function secondary development link, greatly reduces personnel cost and time cost, and simultaneously, maintenance and upgrading are very simple.
Description of drawings
Fig. 1 is the process flow diagram of instrument attribute management method of the present invention.
Fig. 2 is instrument attribute linked-list structural representation.
Fig. 3 is the user interface schematic diagram.
Fig. 4 is that attribute management module forms schematic diagram.
Embodiment
Below in conjunction with the accompanying drawing embodiment that develops simultaneously, describe the present invention.
The invention provides a kind of instrument attribute management method, be applied to instrument driver software, flow process as shown in Figure 1, the method comprises the steps:
S00, for the instrument of same type, summarize the function of existing the type instrument, determine all possible attribute of performance under this function for every class function, and every kind of value that attribute of performance is possible.
The present embodiment is take data acquisition instrument as example:
1. summarize the function type of data with existing acquisition instrument;
The function of data acquisition quasi-instrument can be summarized following 6 at present: analog input function, simulation output function, digit input function, digital output function, timer/counter input function, timer/counter output function.
2. determine all possible attribute of performance under this function type for every class function, and every kind of value that attribute of performance is possible;
Above-mentioned every function all has multiple attribute of performance.But for different instruments, even if function is identical, the attribute of performance that function has and property value thereof are also not necessarily identical.
Take " analog input function " as example, the attribute of instrument comprise channel type, passage number, tunnel name, measuring equipment type, unit, coupling scheme, impedance, gain, input mode (terminal type), whether low-pass filtering, allow maximal value, allow minimum value.It has wherein over-all properties attribute for instrument A, only has wherein part for instrument B.Instrument difference with function of the same race is that the attribute of performance of instrument, the input mode of possible instrument A comprise that the input mode of instrument B may only comprise differential mode with reference to single-ended, the difference of single-ended, non-reference, pseudo-differential.
For the ease of in program, quoting different input modes, adopt the macro definition mode to define all properties attribute value, for example:
Figure BDA00002651083800041
S01, the attribute of performance possible according to instrument, the defined attribute function.
In this step, for the attribute function of each attribute of performance encapsulation under each function, this attribute function is used for certain attribute of performance under certain function of instrument is configured, and detailed process can make referrals in subsequent step S03; The input parameter of attribute function comprises instrument model, attribute of performance value; Distinguishing attribute function by function name to which attribute under which function is configured.
The characteristics of this attribute function are to have the normalization function interface, are applicable to all data acquisition quasi-instrument products.
For example, the attribute function of " input mode " among the analog input function AI of instrument:
int32_CFUNC?SetAITermCfg(int?DeviceCode,int32TermData[]);
The function interface parameter declaration:
DeviceCode: instrument model, input parameter; As to input 4324 expression instrument models be 4324.
TermData[]: instrument input mode, input parameter; This interface parameters is such as input
TermData[4]=Attribute_RSE, and Attribute_NRSE, Attribute_Diff, Attribute_PseudoDiff}, the expression model is that 4324 instrument has single-ended, non-single-ended, difference, four kinds of input modes of pseudo-differential.
Can find out from the function name SetAITermCfg of above-mentioned attribute function, wherein implied function type AI, and attribute Term, the function of this attribute function is that the Term attribute under the AI function among the instrument DeviceCode is configured, Configuration Values is TermData[4].
When writing attribute function, be not to write for certain instrument, but write for function.Have n attribute function under each function, respectively to n attribute of performance under should function.
S02, set up the instrument attribute linked-list
As previously mentioned, different instruments connect each other, because they may have identical instrument attribute.Therefore, adopt chained list record instrument attribute information, the corresponding instrument attribute linked-list of every kind of summarizing among step S00 function, a node of chained list is an instrument, the element in each node comprises all possible attribute of performance under the corresponding function.Because the instrument attribute can be value type, character types, array type etc., therefore suitable as the chained list node with the structure variable, be defined as follows:
Figure BDA00002651083800051
Figure BDA00002651083800061
The instruments different by chained list organically link together, and have realized the unified management to different instrument attributes.Fig. 2 shows, the list structure of AI function.By the insertion of chained list, deletion, inquiry, comparison, modification etc. being realized the management to the instrument attribute.The size of chained list can dynamic assignment, can increase and decrease node quantity, avoids the internal memory waste.
S03, making instrument attribute management editing machine;
This editing machine is that the user uses when the configure instrument attribute.This editing machine provides user interface, and editing machine receives the action type that the user selectes by user interface:
When needs are configured attribute of performance, editing machine receives the instrument model of user's input, which function type attribute of performance value and attribute of performance to be configured belong to, then the attribute of performance and the affiliated funcall respective attributes function thereof that configure as required, the instrument model that the user will be configured, the attribute of performance value is input in the attribute function, then carry out attribute function, attribute function is searched the instrument attribute linked-list corresponding with the institute function of dominant, if the node of instrument model to be configured exists, in the data of upgrading according to attribute of performance value to be configured in the corresponding node, the renewal here refer to countless according to the time adding and the covering when data are arranged; If the node of instrument model to be configured does not exist, then increase a new node, and insert attribute of performance value to be configured.
When needs were deleted the instrument attribute, editing machine received the deletion object of user's input, and searches the instrument attribute linked-list, will delete the object data deletion, and here, the deletion object can be a kind of or combination in any in instrument model, function, the attribute; If the deletion object only has the instrument model, illustrate needs node corresponding to deletion instrument model, if the deletion object has instrument model+function+attribute, then find chained list corresponding to function after, the data at the specified attribute place in the instrument model are deleted.
When needs were searched the instrument attribute, editing machine received the object of searching of user's input, and searches the instrument attribute linked-list, and the data that find are read, and then can feed back on the interface, checks for the user.The described object of searching can be a kind of or combination in any in instrument model, function, the attribute.
When the design editing machine, can be designed as the guide form.For example homepage allows first the user selection action type, for example user selection configuration, then descend one page Show Options, as shown in Figure 3, comprising that Show Options comprises needs user configured attribute on instrument model, instrumental function and the current page, and offer user property value option, and perhaps property value input frame, the attribute that configures on every one page is all not identical.The user just can finish the configuration of a certain all information of instrument along with guide.
The macro definition of S04, above-mentioned attribute of performance, attribute function, instrument attribute linked-list and instrument attribute management editing machine all are positioned at attribute management module, as shown in Figure 4.The configuration feature of as required instrument hardware being finished utilizes collocation channel, writes the hardware configuration function in drive software, is used for realization to the configuration of instrument hardware.
Attribute management module receives the attribute query request from the hardware configuration function, has carried query object in this query requests, and attribute management module is searched the instrument attribute linked-list according to query object, with the data reading of coupling and feed back to the hardware configuration function.The hardware configuration function just can be configured instrument hardware according to the instrument attribute that reads like this.
Here the object of hardware configuration functional query can be the attribute of whole instrument model, also can be the specified attribute under certain function of certain instrument.
To sum up, finished a kind of instrument attribute management method.The beneficial effect of the method is, a kind of general, standardized instrument attribute management software architecture is provided, and breaks present blank.In addition, need not to drive the secondary development that the developer carries out driver, in the later maintenance and escalation process of instrument, only needing change or upgrading " instrument attribute management " editing machine content is renewable instrument attribute information.
In sum, above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (1)

1. an instrument attribute management method is applied to instrument driver software, it is characterized in that, comprising:
S00, summarize the function type of existing same type instrument, determine all possible attribute of performance under this function type for every class function, and every kind of value that attribute of performance is possible; In the attribute management module of drive software, adopt the macro definition mode to define the possible value of all properties attribute;
S01, in attribute management module, for the encapsulation of each attribute of performance under each function attribute function, this attribute function is used for certain attribute of performance under certain function of instrument is configured; The input parameter of attribute function comprises instrument model, attribute of performance value; Distinguishing attribute function by function name to which attribute under which function is configured;
S02, in attribute management module, set up the instrument attribute linked-list; The corresponding instrument attribute linked-list of every kind of function summarizing among the step S00, the corresponding instrument of each node of instrument attribute linked-list, the element in each node comprises all possible attribute of performance under the corresponding function;
S03, in attribute management module, make instrument attribute management editing machine, this editing machine provides user interface; Editing machine receives the action type that the user selectes by user interface:
When needs are configured attribute of performance, editing machine receives the instrument model of user's input, which function type attribute of performance value and attribute of performance to be configured belong to, then the attribute of performance and the affiliated funcall respective attributes function thereof that configure as required, the instrument model that the user will be configured, the attribute of performance value is input in the attribute function, then carry out attribute function, attribute function is searched the instrument attribute linked-list corresponding with the institute function of dominant, if the node of instrument model to be configured exists, in the data of upgrading according to attribute of performance value to be configured in the corresponding node, if the node of instrument model to be configured does not exist, then increase node, and insert attribute of performance value to be configured;
When needs were deleted or searched the instrument attribute, editing machine received the operand of user's input, and searches the instrument attribute linked-list, and the operand data are deleted or read; Described operand comprises instrument model, function and/or attribute;
S04, attribute management module receive the attribute query request from the outside, have carried query object in this query requests, and attribute management module is searched the instrument attribute linked-list according to query object, with the data reading of coupling and feed back to the requesting party.
CN201210573165.9A 2012-12-25 2012-12-25 A kind of instrument attribute management method Active CN103077195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210573165.9A CN103077195B (en) 2012-12-25 2012-12-25 A kind of instrument attribute management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210573165.9A CN103077195B (en) 2012-12-25 2012-12-25 A kind of instrument attribute management method

Publications (2)

Publication Number Publication Date
CN103077195A true CN103077195A (en) 2013-05-01
CN103077195B CN103077195B (en) 2015-09-02

Family

ID=48153725

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210573165.9A Active CN103077195B (en) 2012-12-25 2012-12-25 A kind of instrument attribute management method

Country Status (1)

Country Link
CN (1) CN103077195B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108333445A (en) * 2017-12-26 2018-07-27 北京航天测控技术有限公司 A kind of instrument management method of the data acquisition instrument based on VxWorks
CN109522077A (en) * 2018-11-15 2019-03-26 中国电子科技集团公司第四十研究所 A kind of general parameter setting method suitable for instrument softpanel

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051947A (en) * 2007-05-15 2007-10-10 华为技术有限公司 Method for establishing equipment configuration parameter and base station single plate configuration system
CN101706745A (en) * 2009-11-30 2010-05-12 英业达股份有限公司 Method for testing storage equipment of mass storage system
US20110209079A1 (en) * 2010-02-23 2011-08-25 Paccar Inc. Graphical display with hierarchical gauge placement

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101051947A (en) * 2007-05-15 2007-10-10 华为技术有限公司 Method for establishing equipment configuration parameter and base station single plate configuration system
CN101706745A (en) * 2009-11-30 2010-05-12 英业达股份有限公司 Method for testing storage equipment of mass storage system
US20110209079A1 (en) * 2010-02-23 2011-08-25 Paccar Inc. Graphical display with hierarchical gauge placement

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李木飞等: "基于IVI模型的通用虚拟仪器驱动程序的开发", 《制导与引信》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108333445A (en) * 2017-12-26 2018-07-27 北京航天测控技术有限公司 A kind of instrument management method of the data acquisition instrument based on VxWorks
CN108333445B (en) * 2017-12-26 2020-04-03 北京航天测控技术有限公司 Instrument management method of data acquisition instrument based on VxWorks
CN109522077A (en) * 2018-11-15 2019-03-26 中国电子科技集团公司第四十研究所 A kind of general parameter setting method suitable for instrument softpanel

Also Published As

Publication number Publication date
CN103077195B (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN106528129B (en) A kind of Web application interface generation system and method
CN106777970B (en) A kind of integrated system and method for medical information system data template
CN102779040B (en) A kind of method and apparatus generating customizing form
US20210248165A1 (en) Pipeline Template Configuration in a Data Processing System
CN108509185B (en) System and method for arbitrary software logic modeling
CN109376866B (en) Method and device for recording metadata and method and device for running quantum program
CN107885499A (en) A kind of interface document generation method and terminal device
CN104102652A (en) Unstructured data storage system and method
CN106980560B (en) ICD database based multi-bus protocol testing and simulating method and platform
CN102323964B (en) Digital circuit net list data processing method
Johannesson et al. Systematic product platform design: a combined function-means and parametric modeling approach
CN101008952A (en) Method and device for generating persistence layer
CN102164050A (en) Log parsing method and log parsing node device
CN104063495A (en) Form extension method and form extension device
CN105868311A (en) Data analyzing method and device
CN103095726A (en) Processing method and device of protocol interpreter
CN110019111A (en) Data processing method, device, storage medium and processor
CN101634833A (en) Open type configuration method and system for IO parameters of field device
US8918765B2 (en) Auto-documenting based on real-time analysis of code execution
CN105550333A (en) MongoDB-based test data storage query method and system
CN103077195B (en) A kind of instrument attribute management method
CN103593182A (en) Method for reconfiguring software by using clustering mode
CN104394518A (en) Short message sending method and short message platform
CN115543428A (en) Simulated data generation method and device based on strategy template
CN114328486A (en) Data quality checking method and device based on model

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