CN103077195B - A kind of instrument attribute management method - Google Patents
A kind of instrument attribute management method Download PDFInfo
- Publication number
- CN103077195B CN103077195B CN201210573165.9A CN201210573165A CN103077195B CN 103077195 B CN103077195 B CN 103077195B CN 201210573165 A CN201210573165 A CN 201210573165A CN 103077195 B CN103077195 B CN 103077195B
- Authority
- CN
- China
- Prior art keywords
- attribute
- instrument
- function
- performance
- list
- 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
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of instrument attribute management method, summarize the function type of existing identical type instrument, all possible attribute of performance under determining this function type for every class function, and the value that often kind of attribute of performance is possible; In attribute management module, for each attribute of performance encapsulation attribute function under each function, and set up the instrument attribute linked-list of often kind of function; The corresponding instrument of each node of instrument attribute linked-list, the element in each node comprises all possible attribute of performance under corresponding function; Adopt instrument attribute management editing machine configuration chained list content.When needs obtain instrument attribute, read from instrument attribute linked-list.The present invention does not need to write instrument configuration function respectively for the different instruments of identical type, only needs configure instrument attribute, can unified management instrument attribute, greatly raising instrument driving development efficiency.
Description
Technical field
The present invention relates to instrument driving technical field, particularly relate to a kind of instrument attribute management method for instrument driver software.
Background technology
At present, instrument driving is to versatility, standardization future development.In driving performance history in the past, driving personnel need write the instrument configuration function corresponding to instrument.When instrument maintenance and upgrading, relate to the maintenance of instrument configuration function.
Having function with quasi-instrument may be different, and identical function property value also possibility difference in different instrument.Such as, the function of current data acquisition quasi-instrument comprises analog input function, modulating output function, digit input function, digital output function, timer/counter input function, timer/counter output function.Dissimilar data acquisition quasi-instrument may comprise the part or all of of above 6 kinds of functions.For analog input function, attribute of performance possible under this function comprises analog channel number, passage allows input maximal value, passage allows input minimum value, input mode, gain, lotus root to close mode, impedance, filtering, triggering, regularly, read, but not all instrument with analog input function all comprises above-mentioned over-all properties attribute.
Which attribute of performance is classic method, when system development, have under the function driving People Analysis's instrument to have and this function, and for the instrument configuration function that the attribute of performance that instrument has is write.Like this when carrying out such as passage configuration to instrument, instrument configuration function can be called and realize.Visible, because instrument configuration function is for instrument development, therefore different appliance requires writes 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 will can 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, do not need the different instruments for identical type to write instrument configuration function respectively, only need configure instrument attribute, can unified management instrument attribute, greatly raising 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, comprises:
S00, summarize the function type of existing identical type instrument, all possible attribute of performance under determining this function type for every class function, and the value that often kind of attribute of performance is possible; In the attribute management module of drive software, macro definition mode is adopted to define the possible value of all properties attribute;
S01, in attribute management module, for each attribute of performance encapsulation attribute function under each function, this attribute function is used for being configured certain attribute of performance under certain function of instrument; The input parameter of attribute function comprises INSTRUMENT MODEL, attribute of performance value; Which which distinguish attribute function by function name to the attribute under function to be configured;
S02, in attribute management module, set up instrument attribute linked-list; The corresponding instrument attribute linked-list of the often kind of function summarized in 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 corresponding function;
S03, in attribute management module, make instrument attribute management editing machine, this editing machine provides user interface; The action type that editing machine is selected by user interface reception user:
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 configured as required and affiliated funcall respective attributes function thereof, by the INSTRUMENT MODEL that user will configure, attribute of performance value is input in attribute function, then attribute function is performed, attribute function searches the instrument attribute linked-list corresponding with the institute function of dominant, if the node of INSTRUMENT MODEL to be configured exists, the data in corresponding node are being upgraded according to attribute of performance value to be configured, 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 are deleted instrument attribute or searched, editing machine receives the operand of user's input, and searches instrument attribute linked-list, operand data is deleted or reads; Described operand comprises INSTRUMENT MODEL, function and/or attribute;
S04, attribute management module receive from the attribute query request of outside, carry query object in this inquiry request, attribute management module searches instrument attribute linked-list according to query object, and the data reading of coupling is fed back to requesting party.
Beneficial effect:
The present invention is first for similar instrumental analysis its possible all functions, attribute and property value, for every formation function chained list, in chained list, node structure is identical, all possible attribute under all comprising function, and writes an attribute function respectively for each attribute.
Because attribute function is general, therefore do not need to write instrument configuration function for certain instrument as traditional scheme, user only needs to adopt attribute management module configuration attribute value provided by the invention, attribute management module can utilize corresponding attribute function to be automatically stored in drive software by configuration information, greatly improves instrument driving development efficiency.
In use, upper layer functions also can utilize attribute management module to conduct interviews to chained list, by chain table access meter configuration information, then realizes the operation to different instrument.
When instrument is upgraded, as long as change deploy content.The method reduce driving function secondary development link, greatly reduce personnel cost and time cost, meanwhile, safeguard and upgrade very simple.
Accompanying drawing explanation
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 user interface schematic diagram.
Fig. 4 is attribute management module composition schematic diagram.
Embodiment
To develop simultaneously embodiment below in conjunction with accompanying drawing, describe the present invention.
The invention provides a kind of instrument attribute management method, be applied to instrument driver software, as shown in Figure 1 flow process, the method comprises the steps:
S00, instrument for identical type, summarize the function of existing the type instrument, all possible attribute of performance under determining this function for every class function, and the value that often kind of attribute of performance is possible.
The present embodiment is for data acquisition instrument:
1. the function type of data with existing acquisition instrument is summarized;
The function of current data acquisition quasi-instrument can summarize following 6: analog input function, modulating output function, digit input function, digital output function, timer/counter input function, timer/counter output function.
2. all possible attribute of performance under determining this function type for every class function, and the value that often kind of attribute of performance is possible;
Above-mentioned every function all has multiple attribute of performance.But for different instrument, even if function is identical, the attribute of performance that function has and property value thereof are also not necessarily identical.
For " analog input function ", the attribute of instrument comprises channel type, channel number, tunnel name, measuring equipment type, unit, coupling scheme, impedance, gain, input mode (terminal type), whether low-pass filtering, allows maximal value, allows minimum value.For instrument A, it has wherein over-all properties attribute, for instrument B, only have wherein part.The instrument difference with function of the same race is the attribute of performance of instrument, the input mode of possible instrument A comprise with reference to single-ended, non-reference is single-ended, difference, pseudo-differential, the input mode of instrument B only may comprise differential mode.
For the ease of quoting different input modes in a program, macro definition mode is adopted to define all properties attribute value, such as:
S01, the attribute of performance possible according to instrument, defined attribute function.
In this step, encapsulate an attribute function for each attribute of performance under each function, this attribute function is used for being configured certain attribute of performance under certain function of instrument, and detailed process can make referrals in subsequent step S03; The input parameter of attribute function comprises INSTRUMENT MODEL, attribute of performance value; Which which distinguish attribute function by function name to the attribute under function to be configured.
The feature of this attribute function has normalization function interface, is applicable to all data acquisition quasi-instrument products.
Such as, the attribute function of " input mode " in the analog input function AI of instrument:
int32_CFUNC SetAITermCfg(int DeviceCode,int32TermData[]);
Function interface parameter declaration:
DeviceCode: INSTRUMENT MODEL, input parameter; Be 4324 as inputted 4324 expression INSTRUMENT MODEL.
TermData []: instrument input mode, input parameter; This interface parameters is as input
TermData [4]=Attribute_RSE, Attribute_NRSE, Attribute_Diff, Attribute_PseudoDiff}, and represent model be 4324 instrument there are single-ended, non-single-ended, difference, pseudo-differential four kinds of input modes.
As can be seen from the function name SetAITermCfg of above-mentioned attribute function, wherein imply function type AI, and attribute Term, the function of this attribute function is configured the Term attribute under AI function in instrument DeviceCode, and Configuration Values is TermData [4].
When writing attribute function, being not carry out writing for certain instrument, but writing for function.There is n attribute function, respectively to should n attribute of performance under function under each function.
S02, set up instrument attribute linked-list
As previously mentioned, different instruments connects each other, because they may have identical instrument attribute.Therefore, adopt chained list to record instrument attribute information, the corresponding instrument attribute linked-list of often kind of summarizing in step S00 function, a node of chained list is an instrument, and the element in each node comprises all possible attribute of performance under corresponding function.Because instrument attribute can be value type, character types, array type etc., therefore suitable as chained list node using structure variable, be defined as follows:
The instrument different by chained list organically links together, and achieves the unified management to different instrument attribute.Fig. 2 shows, the list structure of AI function.The management to instrument attribute is realized by the insertion to chained list, deletion, inquiry, comparison, amendment etc.The size of chained list can dynamic assignment, can increase and decrease node quantity, avoid internal memory to waste.
S03, making instrument attribute management editing machine;
This editing machine is that user uses when configure instrument attribute.This editing machine provides user interface, the action type that editing machine is selected by user interface reception user:
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 configured as required and affiliated funcall respective attributes function thereof, by the INSTRUMENT MODEL that user will configure, attribute of performance value is input in attribute function, then attribute function is performed, attribute function searches the instrument attribute linked-list corresponding with the institute function of dominant, if the node of INSTRUMENT MODEL to be configured exists, the data in corresponding node are being upgraded according to attribute of performance value to be configured, here renewal refer to countless according to time add and have data time covering, 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 are deleted instrument attribute, editing machine receives the deleting object of user's input, and searches instrument attribute linked-list, deleting object data is deleted, and here, deleting object can be one in INSTRUMENT MODEL, function, attribute or combination in any; If deleting object only has INSTRUMENT MODEL, illustrate and need to delete node corresponding to INSTRUMENT MODEL, if deleting object has INSTRUMENT MODEL+function+attribute, then after the chained list finding function corresponding, the data at the specified attribute place in INSTRUMENT MODEL are deleted.
When needs are searched instrument attribute, what editing machine reception user inputted searches object, and searches instrument attribute linked-list, by the digital independent found, then can feed back on interface, check for user.Described object of searching can be the one in INSTRUMENT MODEL, function, attribute or combination in any.
When designing editing machine, can be designed as guide form.Such as homepage first allows user select action type, such as user have selected configuration, then descend one page Show Options, as shown in Figure 3, comprise Show Options to comprise on INSTRUMENT MODEL, instrumental function and current page and need user configured attribute, and be supplied to user property value option, or property value input frame, the attribute that every one page configures is all not identical.User just can complete the configuration of all information of a certain 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 are all positioned at attribute management module, as shown in Figure 4.As required to the configuration feature that instrument hardware completes, utilize collocation channel, in drive software, write hardware configuration function, for realizing the configuration to instrument hardware.
Attribute management module receives from the attribute query request of hardware configuration function, carry query object in this inquiry request, attribute management module searches instrument attribute linked-list according to query object, and the data reading of coupling is fed back to hardware configuration function.Such hardware configuration function just can be configured instrument hardware according to the instrument attribute read.
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, a kind of instrument attribute management method is completed.The beneficial effect of the method is, provides a kind of general, standardized instrument attribute management software architecture, breaks current blank.In addition, without the need to the secondary development driving developer to carry out driver, in the later maintenance and escalation process of instrument, only need change or upgrade " instrument attribute management " editing machine content and renewable instrument attribute information.
In sum, these are only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent 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 of existing identical type instrument, all possible attribute of performance under determining this function for every class function, and the value that often kind of attribute of performance is possible; In the attribute management module of drive software, macro definition mode is adopted to define the possible value of all properties attribute;
S01, in attribute management module, for each attribute of performance encapsulation attribute function under each function, this attribute function is used for being configured certain attribute of performance under certain function of instrument; The input parameter of attribute function comprises INSTRUMENT MODEL, attribute of performance value; Which which distinguish attribute function by function name to the attribute under function to be configured;
S02, in attribute management module, set up instrument attribute linked-list; The corresponding instrument attribute linked-list of the often kind of function summarized in 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 corresponding function;
S03, in attribute management module, make instrument attribute management editing machine, this editing machine provides user interface; The action type that editing machine is selected by user interface reception user:
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 configured as required and affiliated funcall respective attributes function thereof, by the INSTRUMENT MODEL that user will configure, attribute of performance value is input in attribute function, then attribute function is performed, attribute function searches the instrument attribute linked-list corresponding with the institute function of dominant, if the node of INSTRUMENT MODEL to be configured exists, the data in corresponding node are being upgraded according to attribute of performance value to be configured, 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 are deleted instrument attribute or searched, editing machine receives the operand of user's input, and searches instrument attribute linked-list, operand data is deleted or reads; Described operand comprises INSTRUMENT MODEL, function and/or attribute;
S04, attribute management module receive from the attribute query request of outside, carry query object in this inquiry request, attribute management module searches instrument attribute linked-list according to query object, and the data reading of coupling is fed back to requesting party.
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 CN103077195A (en) | 2013-05-01 |
CN103077195B true 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) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
Citations (2)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20110209079A1 (en) * | 2010-02-23 | 2011-08-25 | Paccar Inc. | Graphical display with hierarchical gauge placement |
-
2012
- 2012-12-25 CN CN201210573165.9A patent/CN103077195B/en active Active
Patent Citations (2)
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 |
Non-Patent Citations (1)
Title |
---|
基于IVI模型的通用虚拟仪器驱动程序的开发;李木飞等;《制导与引信》;20091231;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103077195A (en) | 2013-05-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106777970B (en) | A kind of integrated system and method for medical information system data template | |
US20210248165A1 (en) | Pipeline Template Configuration in a Data Processing System | |
CN100557609C (en) | A kind of persistent layer generation method and device | |
CN102810057B (en) | A kind of method of log | |
CN103902653B (en) | A kind of method and apparatus for building data warehouse table genetic connection figure | |
US8341163B2 (en) | Techniques for filter sharing | |
CN103617047A (en) | Method, device and processor for developing business processes | |
CN103530379B (en) | tree structure data display method and device | |
CN102364894A (en) | Issuing method for configuration data file and network management equipment | |
CN104731588B (en) | Page layout document generating method and page layout file creating apparatus | |
CN105868311A (en) | Data analyzing method and device | |
CN103778239A (en) | Multi-database data management method and system | |
CN104915262A (en) | Calibration system and method based on EXCEL data structure | |
US7650276B2 (en) | System and method for dynamic data binding in distributed applications | |
CN105468793A (en) | Automated management method for simulation model data | |
CN103077195B (en) | A kind of instrument attribute management method | |
US8918765B2 (en) | Auto-documenting based on real-time analysis of code execution | |
CN106598885B (en) | A kind of working method of configurable multiport general data bridge system | |
CN102567590B (en) | CAD (computer aided design) server device and method | |
CN111506552A (en) | Dynamic database design method and system of tree structure | |
CN111259014B (en) | Method and system for storing data of one-way linked list of FPGA (field programmable Gate array) | |
CN1425991A (en) | Data base access method and system in management information base of network management protocol | |
CN112632037B (en) | Method and device for graphically defining query data set | |
CN115543428A (en) | Simulated data generation method and device based on strategy template | |
CN105139053A (en) | Radio frequency identification reader-writer interface protocol debugging device and 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 |