CN108333445A - A kind of instrument management method of the data acquisition instrument based on VxWorks - Google Patents

A kind of instrument management method of the data acquisition instrument based on VxWorks Download PDF

Info

Publication number
CN108333445A
CN108333445A CN201711435597.2A CN201711435597A CN108333445A CN 108333445 A CN108333445 A CN 108333445A CN 201711435597 A CN201711435597 A CN 201711435597A CN 108333445 A CN108333445 A CN 108333445A
Authority
CN
China
Prior art keywords
instrument
handle
resource
data acquisition
vxworks
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
CN201711435597.2A
Other languages
Chinese (zh)
Other versions
CN108333445B (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 CN201711435597.2A priority Critical patent/CN108333445B/en
Publication of CN108333445A publication Critical patent/CN108333445A/en
Application granted granted Critical
Publication of CN108333445B publication Critical patent/CN108333445B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention provides a kind of instrument management methods of the data acquisition instrument based on VxWorks, realize the unified management of data acquisition instrument under VxWorks real time operating system.Including PCI instruments are classified according to simulation input AI, simulation output AO, numeral input DI, numeral output DO, instrument handle is obtained further according to the model of instrument, virtual instrument number, Bus number, device number, number of modules;The corresponding device information resource chained list of the quasi-instrument is searched in instrument resource chained list, reads instrument calibration data, the instrument handle is bound with corresponding device information resource link table information;The instrument handle of binding and instrument resource chained list, create task, obtain task handle;According to the task handle, knows the corresponding specific instrument essential information of the handle, timing resources, triggering resource, analog physical channel is created with this, which is parsed, real physical channel is obtained.

Description

A kind of instrument management method of the data acquisition instrument based on VxWorks
Technical field
The invention belongs to instrument driver software fields, and in particular to a kind of instrument of the data acquisition instrument based on VxWorks Device management method.
Background technology
Data acquisition refers to measuring:Voltage, electric current, temperature, pressure, sound, coded data etc. be electrical or physical phenomenon Process.At present in measurement and control field, data acquisition instrument is in occupation of the huge market share, the hardware module packet that is related to Include AD (analog signal is converted into digital signal module), DA (digital signal is converted into analog signal module), IO (input and output moulds Block) etc. multiple types and Multiple Type, due to ununified software development specification, user changes in secondary development or HardwareUpgring The instrument driving of Dai Shi, different manufacturers or different developer's exploitations, is required for development system program again, considerably increases out Send out period and cost.
Mainly there is NI and Ling Hua science and technology in the producer for having relatively complete data acquisition hardware and software platform, they all there are one Common feature is exactly based on VISA (virtual instrment software architecture, virtual instrument software Frame) unified driving interface is provided for data acquisition equipment under a windows environment on the basis of library.However in VxWorks Also a large amount of data acquisition instrument is applied under this real time operating system, but without supporting that this data acquisition instrument is unified The instrument driving of management and unified interface.
Invention content
In view of this, the present invention provides a kind of instrument management method of the data acquisition instrument based on VxWorks, realize The unified management of data acquisition instrument under VxWorks real time operating system.
The present invention to achieve the above object, adopts the following technical scheme that:
A kind of instrument management method of the data acquisition instrument based on VxWorks, includes the following steps:
PCI instruments are classified according to simulation input AI, simulation output AO, numeral input DI, numeral output DO, then Instrument handle is obtained according to the model of instrument, virtual instrument number, Bus number, device number, number of modules;
The corresponding device information resource chained list of the quasi-instrument is searched in instrument resource chained list, reads instrument calibration data, The instrument handle is bound with corresponding device information resource link table information;
According to the instrument handle of binding and instrument resource chained list, task is created, obtains task handle;
According to the task handle, the corresponding specific instrument essential information of the handle, timing resources, triggering money are known Source creates analog physical channel with this, is parsed to the analog physical channel, obtains real physical channel.
Further, after this method, removing task discharges resource, terminates the control to instrument.
Further, the device information resource chained list include instrument essential information resource, instrument timing resources, instrument touch Send out resource.
Further, the instrument essential information resource includes:Instrument address, instrument model, instrument channel type, channel Number, instrument type, unit, coupled modes, impedance mode, gain factor, input mode, PFI, maximin, calibration point, Data-transmission mode.
Further, the instrument timing resources include:Instrument address, instrument model, clock source, samples edges, sampling Pattern, maximum collection point, clock type, maximum sample rate, PFI number.
Further, the instrument triggering resource includes instrument address, instrument model, digital edge trigger source, digital side Along triggering edge.
Beneficial effects of the present invention:
The present invention carries out taxonomic revision by creating device information chained list, to the instrument in resource, realizes that VxWorks are real When operating system under data acquisition instrument drive software be managed collectively, reduce due to HardwareUpgring etc. change system-Level software Time, the lifting system development cycle reduces cost and risk.
Specific implementation mode
Computer is connected with the embedded controller of the prepackage vxworks operating system by cable, embedded control Device processed is inserted into PXI cabinets, and an AI modules is taken to be also inserted into cabinet, and developing instrument is used to be carried out for WorkBench on computer Software for Design is developed.
Method provided by the present invention the specific steps are:
S00, instrument essential information resource chained list content is defined, including:Instrument address, instrument model, instrument channel type, Port number, instrument type, unit, coupled modes, impedance mode, gain factor, input mode, PFI, maximin, calibration Point, data-transmission mode;Instrument timing resources chained list content is defined, including:Instrument address, instrument model, clock source, sampling side Edge, sampling configuration, maximum collection point, clock type, maximum sample rate, programmable functions interface PFI (program function Interface) number;It defines instrument and triggers resource chained list content:Instrument address, instrument model, digital edge trigger source, number Edging trigger edge.
S01, search resource in our company's PCI instruments, by its by simulation input AI, simulation output AO, numeral input DI, Press the ascending sequences of device PCI number pciDeviceNo again after numeral output DO classification, and arrange corresponding instrument model, Virtual instrument number, Bus number BusNum and device number DevNum are set, initializes after the instrument obtains control handle and resets again;
S02, corresponding instrument essential information resource is searched in resource chained list, search corresponding instrument timing resources, look into Corresponding instrument triggering resource is looked for, instrument calibration data are read;
The device information that S03, foundation lock, creates certain task, obtains task handle taskHandle;
S04, analog physical channel is created, analog physical channel is carried out to parse real physical channel, it will TaskHandle is bound with instrument channel, and the channel attributes are arranged;
The operations such as S05, other settings, acquisition, stopping being operated by task handle taskHandle;
S06, after control, resource can be discharged by removing task, terminate the control to the instrument;
It can lead to when user's use and above-mentioned steps was called to execute testing process realization instrument controlling.
In conclusion the above is merely preferred embodiments of the present invention, being not intended to limit the scope of the present invention. All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in the present invention's Within protection domain.

Claims (6)

1. a kind of instrument management method of the data acquisition instrument based on VxWorks, it is characterised in that:
PCI instruments are classified according to simulation input AI, simulation output AO, numeral input DI, numeral output DO, further according to instrument Model, virtual instrument number, Bus number, device number, the number of modules of device obtain instrument handle;
The corresponding device information resource chained list of the quasi-instrument is searched in instrument resource chained list, instrument calibration data is read, by institute Instrument handle is stated to be bound with corresponding device information resource link table information;
According to the instrument handle of binding and instrument resource chained list, task is created, obtains task handle;
According to the task handle, the corresponding specific instrument essential information of the task handle, timing resources, triggering money are known Source creates analog physical channel with this, is parsed to the analog physical channel, obtains real physical channel.
2. a kind of instrument management method of the data acquisition instrument based on VxWorks as described in claim 1, feature exist In:The device information resource chained list includes instrument essential information resource, instrument timing resources, instrument triggering resource.
3. a kind of instrument management method of the data acquisition instrument based on VxWorks as claimed in claim 2, feature exist In:The instrument essential information resource includes:Instrument address, instrument model, instrument channel type, port number, instrument type, list Position, coupled modes, impedance mode, gain factor, input mode, PFI, maximin, calibration point, data-transmission mode.
4. a kind of instrument management method of the data acquisition instrument based on VxWorks as claimed in claim 2, feature exist In:The instrument timing resources include:Instrument address, instrument model, clock source, samples edges, sampling configuration, maximum acquisition Point, clock type, maximum sample rate, PFI number.
5. a kind of instrument management method of the data acquisition instrument based on VxWorks as claimed in claim 2, feature exist In:The instrument triggering resource includes instrument address, instrument model, digital edge trigger source, digital edge triggering edge.
6. such as a kind of instrument management methods of the data acquisition instrument based on VxWorks of any one of claim 1-5, feature It is:After this method, removing task discharges resource, terminates the control to instrument.
CN201711435597.2A 2017-12-26 2017-12-26 Instrument management method of data acquisition instrument based on VxWorks Active CN108333445B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711435597.2A CN108333445B (en) 2017-12-26 2017-12-26 Instrument management method of data acquisition instrument based on VxWorks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711435597.2A CN108333445B (en) 2017-12-26 2017-12-26 Instrument management method of data acquisition instrument based on VxWorks

Publications (2)

Publication Number Publication Date
CN108333445A true CN108333445A (en) 2018-07-27
CN108333445B CN108333445B (en) 2020-04-03

Family

ID=62923472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711435597.2A Active CN108333445B (en) 2017-12-26 2017-12-26 Instrument management method of data acquisition instrument based on VxWorks

Country Status (1)

Country Link
CN (1) CN108333445B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6512988B1 (en) * 2000-05-25 2003-01-28 Agilent Technologies, Inc. Fast test application switching method and system
US20030058280A1 (en) * 2001-08-29 2003-03-27 Molinari Alfred A. Graphical application development system for test, measurement and process control applications
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN101833498A (en) * 2009-07-31 2010-09-15 北京伟晨豪嘉科技有限责任公司 Automatic detection system of embedded type system based on testing script technique
CN101944062A (en) * 2010-09-21 2011-01-12 中国人民解放军63961部队 Method for configuring universal virtual instrument interface
CN102467370A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Measurement resource control system and measurement resource control method
CN102467372A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Measurement resource control system and measurement resource control method
CN102467368A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Measurement resource control system and measurement resource control method
CN103077195A (en) * 2012-12-25 2013-05-01 北京航天测控技术有限公司 Instrument attribute management method
CN103309724A (en) * 2013-05-16 2013-09-18 中国电子科技集团公司第四十一研究所 Universal management method for virtual channels based on automatic test system software
CN103697928A (en) * 2013-12-25 2014-04-02 北京航天测控技术有限公司 Instrument calibration method and device
CN103873313A (en) * 2012-12-14 2014-06-18 北京普源精电科技有限公司 Device with channel configuration function and method
CN105224430A (en) * 2015-10-29 2016-01-06 艾德克斯电子(南京)有限公司 A kind of test macro and method of testing
CN105337764A (en) * 2015-09-30 2016-02-17 北京英诺威尔科技股份有限公司 Equipment resource information acquisition method
CN107229584A (en) * 2017-06-01 2017-10-03 西南电子技术研究所(中国电子科技集团公司第十研究所) Aviation electronics simulation test platform I/O management systems

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6512988B1 (en) * 2000-05-25 2003-01-28 Agilent Technologies, Inc. Fast test application switching method and system
US20030058280A1 (en) * 2001-08-29 2003-03-27 Molinari Alfred A. Graphical application development system for test, measurement and process control applications
CN1877543A (en) * 2005-06-06 2006-12-13 华为技术有限公司 Data-driven automatic testing system and method
CN101833498A (en) * 2009-07-31 2010-09-15 北京伟晨豪嘉科技有限责任公司 Automatic detection system of embedded type system based on testing script technique
CN101944062A (en) * 2010-09-21 2011-01-12 中国人民解放军63961部队 Method for configuring universal virtual instrument interface
CN102467372A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Measurement resource control system and measurement resource control method
CN102467370A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Measurement resource control system and measurement resource control method
CN102467368A (en) * 2010-11-03 2012-05-23 北京普源精电科技有限公司 Measurement resource control system and measurement resource control method
CN103873313A (en) * 2012-12-14 2014-06-18 北京普源精电科技有限公司 Device with channel configuration function and method
CN103077195A (en) * 2012-12-25 2013-05-01 北京航天测控技术有限公司 Instrument attribute management method
CN103309724A (en) * 2013-05-16 2013-09-18 中国电子科技集团公司第四十一研究所 Universal management method for virtual channels based on automatic test system software
CN103697928A (en) * 2013-12-25 2014-04-02 北京航天测控技术有限公司 Instrument calibration method and device
CN105337764A (en) * 2015-09-30 2016-02-17 北京英诺威尔科技股份有限公司 Equipment resource information acquisition method
CN105224430A (en) * 2015-10-29 2016-01-06 艾德克斯电子(南京)有限公司 A kind of test macro and method of testing
CN107229584A (en) * 2017-06-01 2017-10-03 西南电子技术研究所(中国电子科技集团公司第十研究所) Aviation electronics simulation test platform I/O management systems

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
汪丽云 等: "基于VxWorks的PCI设备驱动程序开发", 《舰船电子工程》 *
沈勇: "基于VxWorks的嵌入式综合测试平台设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *
黄娟 等: "基于VISA及IVI技术的仪器仪表自动测试系统软件设计", 《电子质量》 *

Also Published As

Publication number Publication date
CN108333445B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN104375914A (en) Automatic testing method for internal pressure change of server
CN106055466A (en) Method for implementing server testing, testing server and to-be-tested server
CN103645900A (en) Method and device for releasing software
CN107247599B (en) Instrument driving module and instrument driving method
Guili et al. Design of virtual oscilloscope based on GPIB interface and SCPI
CN106646315A (en) Automatic testing system and automatic testing method for digital measuring instruments
CN204631211U (en) A kind of general FPGA test macro
CN202582586U (en) Signal acquisition instrument online calibration system
CN102866000A (en) Laser detection system
CN112148241B (en) Light processing method, device, computing equipment and storage medium
CN104076214A (en) Multi-channel microwave module automatic test method
CN105242665B (en) A kind of jtag interface signal processing circuit and system
CN110334018A (en) A kind of big data introduction method and relevant device
CN108333445A (en) A kind of instrument management method of the data acquisition instrument based on VxWorks
CN108470232A (en) The automatic detecting and analysing system of microwave components based on flow and method
CN102540958B (en) 64-Bit block insulation digital I/O (Input/Output) module on basis of PXI (Peripheral Component Interconnect) bus
CN105610530B (en) Satellite data acquisition and analysis method and system
CN103544079B (en) Flash memory chip data recovery achieving system and method based on programmable logic controller
CN105678234A (en) Eye pattern automatic analysis method and apparatus
CN109672482A (en) Radio frequency module testing method, device, equipment and storage medium
CN215005730U (en) Power chip's test system
CN104198786B (en) Method for simulating waveform measured by logic analyzer by utilizing single chip microcomputer model
CN102854875B (en) Automobile air conditioner controller testing method and system
CN109062797B (en) Method and device for generating information
CN106294181A (en) Smart card software method of testing in service life

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