CN102467369B - Measurement resource control system and measurement resource control method - Google Patents

Measurement resource control system and measurement resource control method Download PDF

Info

Publication number
CN102467369B
CN102467369B CN201010534838.0A CN201010534838A CN102467369B CN 102467369 B CN102467369 B CN 102467369B CN 201010534838 A CN201010534838 A CN 201010534838A CN 102467369 B CN102467369 B CN 102467369B
Authority
CN
China
Prior art keywords
measuring instrument
resource
instrument
list
application
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
CN201010534838.0A
Other languages
Chinese (zh)
Other versions
CN102467369A (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.)
Rigol Technologies Inc
Original Assignee
Rigol Technologies Inc
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 Rigol Technologies Inc filed Critical Rigol Technologies Inc
Priority to CN201010534838.0A priority Critical patent/CN102467369B/en
Publication of CN102467369A publication Critical patent/CN102467369A/en
Application granted granted Critical
Publication of CN102467369B publication Critical patent/CN102467369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses one kind measurement resource control system, for controlling multiple measuring instruments and multiple application resources, the control system includes:One resource transfer part, for assembled according to select one to measuring instrument and application resource, make the application resource call the measuring instrument, and be in the measuring instrument to forbid calling state again.How many measuring instrument measurement resource control system of the invention can make be in called state can be very easy to use with very clear.

Description

Measurement resource control system and measurement resource control method
Technical field
The present invention relates to one kind measurement resource control system and measurement resource control method, more particularly to one kind runs on Computer, the measurement resource control system for managing multiple measuring instruments and multiple application program and its use measurement money Operated control method.
Background technology
In Industrial Engineering and education of science field, measurement tester is all to test, manufacture in the links such as production, test not The basic tool that can or lack, such as oscillograph, universal meter, frequency spectrograph, signal source are all conventional multimeters.With section Technology is continued to develop, and measuring instrument is also converted from analogue measurement instrument to digital measuring instruments.Digitized measuring instrument Have the advantages that not available for many analogue measurement instruments, for example, be easy to storage, conveniently carry out data analysis and calculating, it is anti-interference Property it is strong etc..In addition, digital measuring instrument also has the advantages that a uniqueness is exactly, and it can easily and computer Connection, constitute a measuring system, measuring instrument is controlled using computer rich in natural resources and powerful function with And increasingly complex treatment is carried out to measurement result.
Due to above-mentioned advantage, the measuring system being made up of computer and measuring instrument is by extensive research and development.It is worth One is mentioned that, because computer possesses powerful data processing and display function so that the measuring instrument such as oscillograph is in measurement system The effect of data acquisition has been functioned only as in system, and the data processing of itself and display function turn into a kind of and waste.Therefore, survey Template card is given birth to therefrom.Measurement board is also regarded as a kind of measuring instrument, and unlike oscillograph etc., it only possesses data The effect of collection, itself does not carry out the treatment or display of data.When in use, measurement board is generally required and is plugged into calculating On the I/O interface of machine, for example, measurement board can be total by VXI (VME extensions for Instrumentation) Line, PXI (PCI extensions for Instrumentation) bus, GPIB (General Purpose Interface ) and the serial ports (serial port) or parallel port (parallel port) of computer to be connected with computer Bus.
It can be seen from above-mentioned introduction, Fig. 1 is refer to, current measuring system 1 includes a computer 11 and at least one Measuring instrument 12, each measuring instrument 12 is connected by an interface 13 with computer 11.Computer 11 can be personal electricity Brain (PC), server (server) are connected to client (client) of server etc. with data operation and processing function Equipment.Measuring instrument 12 is the equipment with data acquisition function, can be measuring instrument, e.g. oscillograph, universal meter, Frequency spectrograph, signal source, or measurement board, or even can also be sensor etc..Interface 13 can be vxi bus, PXI total Line, GPIB, serial ports, parallel port or be LAN mouthfuls, serial ports includes USB interface, RS232 etc..
Due to the diversity of interface 13, computer 11 it is general all can mounting interface driver 111, such as VISA drives, For shielding the difference that different interfaces 13 are brought.Computer 11 is based on interface drive program 111, can be by standardization SCPI command sets 112 carry out corresponding operation passing on to measuring instrument 12 various orders.SCPI command sets 112 include a plurality of SCPI orders, for carrying out different operations to measuring instrument 12, the operation is included to measuring instrument 12 for different SCPI orders Control, the parameter of measuring instrument 12 is configured, data etc. is read from measuring instrument 12.
SCPI orders are various, and user is controlled to different measuring instruments 12, measurement result is carried out respectively for convenience Computing is planted, computer 11 also includes at least one application program 14.Application program 14 can be based on the He of interface drive program 111 SCPI command sets 112, using programming language tools such as VC, VB, LabVIEW etc., by developer, user oneself or other people Exploitation is completed, and various operations is carried out to measuring instrument 12 for control computer 11 and measurement data is processed etc..For example, Refer to Fig. 2, shown in Fig. 2 be the application program for being applied to the frequency spectrograph disclosed in a kind of prior art display interface 1490.Display interface 1490 has multiple input windows 1491, and it is right that user easily can be input into by input window 1491 The various operations of measuring instrument 12, and replace directly sending SCPI orders to measuring instrument 12;Display interface 1490 also has one Individual waveform display window 1492, for being shown the measurement data that computer 11 is obtained from measuring instrument 12 in the form of figure line Come.
Due to the diversity of measuring instrument 12, the specification of each measuring instrument 12, parameter or function etc. are not quite similar.It is right The different application program 14 of exploitation is generally required in different measuring instruments 12.Fig. 3 is refer to, for example, a model The power supply 121 of DP1308A correspond to application program 141;One frequency spectrograph of model DSA1030A 122 correspond to application program 142.In addition, even if same kind of measuring instrument 12 is different due to its model, version, its specification, parameter or work(are caused Energy etc. may be different, therefore are also required to the different application programs 14 of exploitation sometimes.
In addition, for some special application scenarios, it is necessary to multiple identical or different measuring instruments 12 cooperate To realize a certain measurement task, therefore, multiple measuring instruments 123 may correspond to an application program 143, the application program Needing the plurality of measuring instrument 123 to work simultaneously during 143 operation could complete measurement task.
It is another again, multiple application programs 144 can also be developed for realizing different work(respectively for a measuring instrument 124 Energy;For some measuring instruments 125, such as different measuring instrument of same type but model, it is possible to have one is applied journey Sequence 145 can with the situation of compatible multiple measuring instruments 125, now the application program 145 can individually with each measuring instrument 125 cooperatings.For example, application program 145 is while the frequency spectrograph 125 and the frequency spectrum of DSA1000A of compatible model DSA1030A Instrument 125 '.
Fig. 4 is refer to, computer 11 includes CPU114, internal memory 115, hard disk 116 and bus 117.CPU114, internal memory 115, Hard disk 116 is connected with bus 117 respectively, and completes to communicate by bus 117.Application program 14 is a kind of executable program, Generally it is stored in when not being run in hard disk 116.When being called and running, the operating system that user passes through computer 11 After the instruction of the application program 14 is opened in input, the application program 14 is loaded into the middle of internal memory 115, just can be held by CPU114 OK.
Please reference picture 1 and Fig. 5 together, when application program 14 is performed, computer 11 under the control of application program 14 sequentially Perform following steps:
Step S1, instrument finding step;
Although according to foregoing, measuring instrument 12 has passed through an interface 13 and has been connected with computer 11, and this connection is Measuring instrument 12 is got up with the grafting of interface 13, also measuring instrument 12 is not configured, for example interface configures to obtain The address of measuring instrument 12, this computer-chronograph 11 cannot be set up with measuring instrument 12 and communicate.Therefore, instrument finding step is mainly complete The configuration of paired measuring instrument 12 obtains an original address for correspondence measuring instrument 12.Even if it should be pointed out that obtaining The original address, but this connection is only the connection in physics rank, that is to say, that and computer 11 can utilize the original Beginning, address communicated with the measuring instrument 12.And according to mentioned above, due to application program 14 and measuring instrument 12 exist it is many Various corresponding relation is planted, instrument finding step is completed and is also not meant to that application program 14 can control 11 pairs, computer to be somebody's turn to do Measuring instrument 12 is operated and controlled, in addition it is also necessary to further recognize the essential information of connected measuring instrument 12 to sentence Whether connected measuring instrument 12 of breaking is matched with application program 14, or which platform is surveyed in many measuring instruments 12 for being connected Measuring appratus 12 match with application program 14.
Step S2, instrument Connection Step;
Step S2 mainly completes measuring instrument 12 and is connected with the logic of computer 11, and measuring instrument is set up on application 12 with the communication channel of computer 11.That is, it needs to complete the identification of INSTRUMENT MODEL, with ensure the instrument be application program 14 it is right The measuring instrument 12 answered, that is, judge whether follow-up instrument application step can control the measuring instrument 12.
The work specifically made of step S2 is:The original address is received, is sent out to measuring instrument 12 using the original address Lose one's life order, inquire about instrument essential information, the instrument essential information that measuring instrument 12 is returned is parsed, according to the instrument base This information analysis goes out trade name, INSTRUMENT MODEL, instrument sequence number, instrument version number etc., and trade name, instrument are parsed according to this Type number, instrument sequence number, instrument version number etc. judge whether the measuring instrument 12 is the corresponding measuring instrument of application program 14 12。
Step S3, instrument application step;
The work of step S3 includes:First, communicated with measuring instrument 12 using the original address control computer 11, led to Letter content includes receiving the measurement data of measuring instrument 12, sends SCPI orders to measuring instrument 12 to carry out measuring instrument 12 Control etc.;The 2nd, one display interface is provided, Fig. 2 is refer to, e.g. the display interface of the application program of the frequency spectrograph, pass through The measurement data that waveform display window 1492 will be received shows in forms such as curves, by modes such as input windows 1491 Receive the instruction of user input and be converted into corresponding SCPI orders and send to measuring instrument 12.
Fig. 6 is refer to, application program 14 includes that is used for the instrument searching modul that control computer 11 realizes step S1 147th, the instrument link block 148 of step S2 is realized for control computer 11 and one is realized for control computer 11 for one The instrument application module 149 of step S3.
A kind of software that can be used to verify communication between computer and measuring instrument that National Instruments (NI) company releases (Measurement & Automation Explorer, MAX) can also obtain measuring instrument primitively by step S1 Location, but software is merely creating the original address, not follow-up step S2 and step S3.
Agilent (Agilent) company is also proposed and a kind of can be used to verifying communicated between computer and measuring instrument soft Part (Agilent Connection Expert), the software can also produce original address and acquisition instrument by step S1 and S2 Device essential information, but the software is also merely creating the original address and instrument essential information, also not subsequent step S3.
It can be seen from introduction above, as being continuously increased for the species of measuring instrument 12 and model, and various applications need That asks is continuously increased, application program 14 it is continuous by substantial amounts of exploitation, quantity is dramatically increased.This causes following problem:Measurement The model slight change of instrument 12 this may result in needing development and application program 14 again, and in development and application program 14 still Need to develop instrument searching modul 147, instrument link block 148 and instrument application module 149 again so that application program 14 Exploitation and maintenance process are complicated, relatively costly.
The content of the invention
In order to solve the problems, such as that prior art application development and maintenance process are complicated, relatively costly, the present invention is provided It is a kind of to make application development and maintenance process simplification, the measurement resource control system of cost reduction.
Meanwhile, the present invention also provides the measurement resource control method that the measurement resource control system is used.
One kind measurement resource control system, for controlling multiple measuring instruments and multiple application resources, the control system Including:One resource transfer part, for according to select one assemble to measuring instrument and application resource, make the application Measuring instrument described in resource transfer, and make the measuring instrument be in forbid calling state again.
It is in an embodiment of the invention, described that to forbid calling again state be that the measuring instrument is protruded into aobvious Show.
In an embodiment of the invention, the resource matched part includes:One measurement the Resources list generating unit Part, for according to the measuring instrument, producing a measuring instrument list for including multiple measuring instrument marks, wherein, it is described Measuring instrument mark is corresponding with the measuring instrument, and the measuring instrument mark in the measuring instrument list is with the first display Attribute display;One resource transfer sets up part, for by from the one selected measuring instrument of selection in the measuring instrument with The selected application resource selected from the application resource is set up and is called;One display control section, for according to described The foundation called will be chosen corresponding to measuring instrument measuring instrument mark described in the measuring instrument list shows with second Attribute display.
One kind measurement resource control system, for controlling multiple measuring instruments and multiple application resources, the control system Including:One resource matched part, for according to select one assemble to measuring instrument and application resource, make the application Measuring instrument described in resource transfer, and be in the measuring instrument to forbid calling state again, the releasing called described in, Being in the measuring instrument allows to call state.
In an embodiment of the invention, the resource matched part includes:One measurement the Resources list generating unit Part, for according to the measuring instrument, producing a measuring instrument list for including multiple measuring instrument marks, wherein, it is described Measuring instrument mark is corresponding with the measuring instrument, and the measuring instrument mark in the measuring instrument list is with the first display Attribute display;One resource transfer sets up part, for by from the one selected measuring instrument of selection in the measuring instrument with The selected application resource selected from the application resource is set up and is called;One resource transfer releases part, for by institute State the call release between selected measuring instrument and the selected application resource;One display control section, for according to described The foundation called will be chosen corresponding to measuring instrument measuring instrument mark described in the measuring instrument list shows with second Attribute display, and the measurement according to corresponding to the releasing called will be chosen measuring instrument described in the measuring instrument list Identifier is shown with the first display properties.
One kind measurement resource control method, for controlling multiple measuring instruments and multiple application resources, the control method Including:One resource transfer step, according to select one assemble to measuring instrument and application resource, make the application resource The measuring instrument is called, and is in the measuring instrument and forbid calling state again.
It is in an embodiment of the invention, described that to forbid calling again state be that the measuring instrument is protruded into aobvious Show.
In an embodiment of the invention, the resource matched step includes:One measurement the Resources list produces step Suddenly, according to the measuring instrument, a measuring instrument list for including multiple measuring instrument marks is produced, wherein, the measurement Identifier is corresponding with the measuring instrument, and the measuring instrument in the measuring instrument list is identified with the first display properties Display;One resource transfer establishment step, will answer from the one selected measuring instrument of selection in the measuring instrument with from described Set up with one selected in resource selected application resource and called;One display control step, will according to the foundation called The measuring instrument mark corresponding to measuring instrument is chosen described in the measuring instrument list to be shown with the second display properties.
One kind measurement resource control method, for controlling multiple measuring instruments and multiple application resources, the control method Including:One resource matched step, according to select one assemble to measuring instrument and application resource, make the application resource The measuring instrument is called, and is in the measuring instrument and forbid calling state again, the releasing called described in makes institute State measuring instrument be in allow to call state.
In an embodiment of the invention, the resource matched step includes:One measurement the Resources list produces step Suddenly, according to the measuring instrument, a measuring instrument list for including multiple measuring instrument marks is produced, wherein, the measurement Identifier is corresponding with the measuring instrument, and the measuring instrument in the measuring instrument list is identified with the first display properties Display;One resource transfer establishment step, will answer from the one selected measuring instrument of selection in the measuring instrument with from described Set up with one selected in resource selected application resource and called;One resource transfer releases step, by the selected measuring instrument Call release between device and the selected application resource;One display control step, according to the foundation called by described in The measuring instrument mark corresponding to measuring instrument is chosen described in measuring instrument list to be shown with the second display properties, and according to institute The measuring instrument that stating the releasing called will be chosen corresponding to measuring instrument described in the measuring instrument list is identified and shown with first Show attribute display.Measurement resource control system of the invention and measurement resource control method at least have the advantages that:
After being called due to some measuring instruments and application program foundation, it is impossible to called by other application programs again, otherwise The problems such as miscommunication occurring, therefore, the present invention measurement resource control system and measure resource control method make with Selected application program sets up the selected measuring instrument called and forbids calling state again in one.So can not only prevent from using The selected measuring instrument is called at family using other application program again, the problems such as cause miscommunication, and in on-line instrument row How many measuring instrument can be very easy to use with very clear in called state in table.
Brief description of the drawings
Fig. 1 is a kind of modular structure schematic diagram of traditional measuring system.
Fig. 2 is a kind of display interface schematic diagram of existing application program.
Fig. 3 is the schematic diagram of measuring instrument and application matches relation.
Fig. 4 is a kind of modular structure schematic diagram of traditional computer.
Fig. 5 is that a kind of traditional application program operation is performed step flow chart.
Fig. 6 is the software module structure schematic diagram of application program shown in Fig. 5.
Fig. 7 is that the modular structure that measurement resource control system first embodiment of the invention is applied to a measuring system is shown It is intended to.
Fig. 8 is the structural representation of the computer that measuring system is used in Fig. 7.
Fig. 9 is the schematic diagram of measuring instrument and application matches relation.
Figure 10 is the software module knot of the application program that present invention measurement resource control system first embodiment is managed Structure schematic diagram.
Figure 11 is step flow chart performed when present invention measurement resource control system first embodiment works.
Figure 12 is the display interface figure of present invention measurement resource control system first embodiment.
Figure 13 is the surface chart of the gpib interface parameter setting of present invention measurement resource control system first embodiment.
Figure 14 is the surface chart of the RS232 interface parameters setting of present invention measurement resource control system first embodiment
Figure 15 is the display interface figure of the on-line instrument list of present invention measurement resource control system first embodiment.
Figure 16 is that dynamic application list produces the specific of step during the present invention measures resource control system first embodiment Flow chart of steps.
Figure 17 is the display interface figure of the dynamic application list of present invention measurement resource control system first embodiment.
Figure 18 is the schematic diagram of the application program storage file of present invention measurement resource control system first embodiment.
Figure 19 is that the later interface of the startup application program for measuring resource control system first embodiment of the invention is illustrated Figure.
Figure 20 is the signal of the LabVIEW tree list controls of present invention measurement resource control system first embodiment Figure.
Figure 21 is that the on-line instrument list of invention measurement resource control system first embodiment will be employed routine call Measuring instrument identifier display properties change after display interface figure.
Figure 22 is the display interface figure after on-line instrument list recovers identifier after call release in Figure 21.
Figure 23 is the module diagram that present invention measurement resource control system first embodiment realizes Figure 11 process steps.
Figure 24 is that dynamic application list produces the module diagram for loseing M123 in Figure 20.
Figure 25 is step flow chart performed when present invention measurement resource control system second embodiment works.
Figure 26 is the display interface figure of the list of application of present invention measurement resource control system second embodiment.
Figure 27 is one application of user's selection in the list of application for measuring resource control system second embodiment of the invention The display interface figure of program.
Figure 28 is the display interface of the dynamic on-line instrument list of present invention measurement resource control system second embodiment Figure.
Figure 29 is user's selection in the dynamic on-line instrument list for measuring resource control system second embodiment of the invention One display interface figure of measuring instrument.
Figure 30 is the module diagram that present invention measurement resource control system second embodiment realizes Figure 25 process steps.
Figure 31 is step flow chart performed when present invention measurement resource control system the 3rd implementation method works.
Figure 32 is the list of application of the present invention measurement implementation method of resource control system the 3rd and showing for on-line instrument list Show surface chart.
Figure 33 is the user of the present invention measurement implementation method of resource control system the 3rd in on-line instrument list in Figure 32 One display interface figure of measuring instrument of selection.
Figure 34 is that the user of the present invention measurement implementation method of resource control system the 3rd selects in list of application in Figure 32 One display interface figure of application program.
Figure 35 is the display interface figure of the dynamic application list of the present invention measurement implementation method of resource control system the 3rd.
Figure 36 is the display interface of the dynamic on-line instrument list of the present invention measurement implementation method of resource control system the 3rd Figure.
Figure 37 is one display interface figure of application program of selection in dynamic application list of the user in Figure 32.
Figure 38 is one display interface figure of measuring instrument of selection in user's dynamic on-line instrument list in fig. 33.
Figure 39 is the module diagram that the present invention measurement implementation method of resource control system the 3rd realizes Figure 31 process steps.
Specific embodiment
The first embodiment of present invention measurement resource control system is described below.
Fig. 7 is refer to, measurement resource control system 4 is applied in a measuring system 2.Measuring system 2 includes multiple survey Amount resource 20 and the measurement resource control system 4 for managing and controlling the plurality of measurement resource 20.The plurality of measurement resource 20 Including multiple measuring instruments 22 and multiple application resources, in the present embodiment, the application resource is application program 24.
Measuring instrument 22 is the equipment with data acquisition function, can be measuring instrument, e.g. oscillograph, general-purpose Table, frequency spectrograph, signal source, or measurement board, or even can also be sensor etc..Measurement resource control system 4 is by counting Calculation machine and operation measurement resource control system software on computers are realized.Computer can be PC, flat board electricity Brain, server are connected to the equipment with data operation and processing function such as client of server.Measuring instrument 22 is led to Cross interface to be connected with measurement resource control system 4, interface can be vxi bus, PXI buses, GPIB, serial ports, parallel port or be LAN mouthfuls.
Fig. 8 is refer to, in the middle of present embodiment, the computer 41 that measurement resource control system 4 is used includes CPU414, internal memory 415, memory 416, bus 417, display screen 418 and peripheral hardware 419.CPU414, internal memory 415, memory 416 Be connected with bus 417 respectively, display screen 418 is connected by video card 419 with bus 417, peripheral hardware 419 by various interfaces with it is total Line 417 is connected, and CPU414, internal memory 415, memory 416, display screen 418 and peripheral hardware 419 complete communication by bus 417.Storage Device 416 is made up of hard disk, and flash memory, CD, disk etc. are can also be certainly.Peripheral hardware 419 includes mouse, keyboard etc..
Due to the diversity of measuring instrument 22, the specification of each measuring instrument 22, parameter or function etc. are not quite similar.It is right The different application program 24 of exploitation is generally required in different measuring instruments 22, i.e. each measuring instrument 22 has its corresponding application Program 24.Fig. 9 is refer to, for example, a power supply of model DP1308A 221 correspond to application program 241;One model The frequency spectrograph 222 of DSA1030A correspond to application program 242.In addition, even if same kind of measuring instrument 22 is due to it Model, version are different, cause its specification, parameter or function etc. different, therefore are also required to the different application journey of exploitation sometimes Sequence 24.
In addition, for some special application scenarios, it is necessary to multiple identical or different measuring instruments 22 cooperate To realize a certain measurement task, therefore, multiple measuring instruments 223 may correspond to an application program 243, the application program Needing the plurality of measuring instrument 223 to work simultaneously during 243 operation could complete measurement task.
It is another again, multiple application programs 244 can also be developed for realizing different work(respectively for a measuring instrument 224 Energy;For some measuring instruments 225, such as different measuring instrument of same type but model, it is possible to have one is applied journey Sequence 245 can with the situation of compatible multiple measuring instruments 225, now the application program 245 can individually with each measuring instrument 225 cooperatings.For example, application program 245 is while the frequency spectrograph 225 and the frequency spectrum of DSA1000A of compatible model DSA1030A Instrument 225 '.
Application program 24 is a kind of executable program, and the memory 416 of computer 41 is stored in when not being run In.Figure 10 is refer to, application program 24 includes instrument application module 249.No longer include that instrument searches mould due to application program 24 Block and instrument link block, thus only by perform application program 24 can not control computer 41 obtain measuring instrument 22 original Beginning address, and the resource control system to be measured 4 such as need for original address to pass to application program 24, i.e., can not be only by fortune Row application program 24 is carried out control computer 41 and is communicated with the foundation of measuring instrument 22.Therefore user directly runs application program 24 not The control to measuring instrument 22 can be realized.
It is described below measurement resource control system 4 is how to complete the management and control to measuring resource 20.
Figure 11 is refer to, measurement resource control system 4 performs following steps:
Step S11, instrument resource management process:Set up with the measuring instrument and be connected, produced and the measuring instrument pair The original address and an identifier answered.Wherein, step S11 includes step S111 and step S112:
Step S111, instrument finding step:Produce the original address of the measuring instrument;
The work of step S111 includes completing the original searching work of instrument resource, that is, find and be connected with computer 41 , measuring instrument 22 being under open state (also referred to as presence), and obtain an original address.Due to measuring instrument 22 can be connected by different interfaces with computer 41, therefore for different interfaces, and it searches mode and original address Acquisition modes are also not quite similar.
Be divided three classes for lookup mode by the type of service according to interface:The first kind:Automatic to search, plug and play mode is triggered Finding step, such as USB-TMC interfaces;Equations of The Second Kind:Semi-automatic lookup, it is necessary to trigger finding step or configuration trigger condition manually To trigger finding step, such as LAN-VX-11 interfaces;3rd class:Search manually, the side of instrument is connected by being input into configuration data Formula come realize search, such as RS232 interfaces.
For automatic lookup, illustrated by taking USB-TMC interfaces as an example, be based on Universal Serial Bus Testand Measurement Class Specification (USBTMC) and Universal Serial Bus Test and Measurement Class, Subclass USB488 Specification (USBTMC-USB488).Measuring instrument 22 is connected The back operation system of computer 41 (such as Windows) can for its installation drive (Windows Vista and 7 can be installed automatically, other Version needs to install manually).After completing drive installation, measurement resource control system 4 can be tested the connection computer 41 of measuring appratus 22 Action triggers, measurement resource control system 4 call VISA USB-TMC search function obtain USB-TMC interfaces address believe Breath, the address information is exactly the original address.
For semi-automatic lookup, illustrated by taking LAN interface as an example, be the LAN completed based on VX-11 agreements and mDNS agreements The lookup of interface instrument.Because there are two sets of agreements on existing LAN interface upper strata and deposits (VX-11 and mDNS) so searching mode to it There are two sets.
For VX-11 interface instruments, lookup mode is to search message to transmission inside LAN, is received within a certain period of time The response of the message, the IP of response is considered as measuring instrument to be determined, and the IP of the response constitutes the original address.Refer to figure 12, measuring has " LAN " button 140 on the display interface of resource control system 4, and user should be pressed by clicking on by " LAN " Button 140 triggers step S11.
Pair with mDNS interfaces instrument (meet the agreement and also meet VX-11 agreements), the instrument of mDNS interfaces supporting above-mentioned The lookup mode based on mDNS is also supported on the basis of lookup mode, i.e., is measured when the equipment access network of mDNS agreements is met Resource control system 4 can receive the connection request report of the equipment, and measurement resource control system 4 obtains the resource by this report Information, the resource information constitutes the original address.Measurement resource control system 4 also includes an online situation checking of timing resources Function, the measuring instrument 22 can be automatically removed if mDNS equipment disconnects measurement resource control system 4.
For lookup manually, illustrated by taking gpib interface as an example, completed based on IEEE488.1 and IEEE488.2 agreements Search.Refer to Figure 13, user connects instrument by being input into window 150 GPIB parameters, it is original that the parameter of input constitutes this Address 151.
For lookup manually, illustrated by taking RS232 interfaces as an example, be the lookup completed based on the standards of EIA 232.Refer to Figure 14, user connects instrument by being input into RS232 parameters in window 160, and the parameter of input constitutes the original address.
Step S112, instrument Connection Step:Sent to the measuring instrument according to the original address and ordered, obtain described The instrument essential information of measuring instrument, the identifier is produced according to the instrument essential information.
Measurement resource control system 4 connects instrument according to the original address, is communicated with the instrument, the content of communication It is to send SCPI orders, i.e. " * IDN to measuring instrument 22" order.The order is the basic command in SCPI standards, to certain Original address sends " * IDN" order and the order can not be responded, that is, think the original address exception, then it is not recognized as surveying Measuring appratus 22 are thus not recorded, otherwise are recorded.In " * IDN" order returned data in can obtain instrument and believe substantially Breath, the instrument essential information has the form that SCPI standards are defined, and corresponding manufacturer is obtained by parsing the instrument essential information Entitled, INSTRUMENT MODEL, instrument sequence number, instrument version number etc., and using at least a portion of the instrument essential information as this The identifier of measuring instrument 22.
For example:Step S11 produce original address be:USB0::0x0400::0x09C4::DSA1A113600019:: INSTR, step S12 is then to original address USB0::0x0400::0x09C4::DSA1A113600019::INSTR sends:“* IDN", the instrument essential information for meeting with a response:" XXXX, DSA1030A, DSA1A113600019,00.01.03.01.01 ".It is logical Cross and parse the instrument essential information and obtain " manufacturer's information:" XXXX ", " type information:DSA1030A " etc..
Figure 15 is refer to, in the present embodiment, resource control system 4 is measured using the type information as the measuring instrument 22 identifier 220.For example, the original address in previous example is:USB0::0x0400::0x09C4:: DSA1A113600019::The identifier of the measuring instrument 22 of INSTR is " DSA1030A ".Again for example, another measuring instrument Identifier 220 be " DS1204B ".In other embodiments, the identifier can also include the instrument essential information In trade name, instrument sequence number, instrument version number etc., or the original address can also be included.
Step S12, input step:One selected measuring instrument is selected from the measuring instrument by the identifier Device, and a selected application resource is selected from the application resource;Wherein, step S12 includes step S121~S124:
Step S121, instrument list produce step:According to the identifier, generation one is relative with the identifier The on-line instrument list answered;
Figure 15 is refer to, measurement resource control system 4 produces an on-line instrument list 410 on display interface, online Instrument list 410 includes whole identifiers 220 that step S11 is produced, and a survey why is represented using identifier 220 The advantage of measuring appratus is:Measuring instrument is only represented with original address very not directly perceived, user is difficult which original remembered Beginning, address represented any measuring instrument.Such as identifier " DS1204B " in Figure 15, " DSA1030A " intuitively show very much Go out be connected with computer 41 have which measuring instrument 22.Each identifier 220 uniquely correspond to one The measuring instrument 22 of connection, and each identifier 220 also uniquely correspond to an original address simultaneously.
Whole identifiers 220 in the on-line instrument list 410 are all shown with the first display properties, such as non-with white Overstriking font shows.The whole identifiers 220 shown with the first display properties are represented that the measuring instrument is in and allow to call State.It refers to that the measuring instrument 22 sets up a new call relation with application program 24 to allow to call state, and is applied by this Program 24 is called.In the present embodiment, this allows to call state using the first display properties to indicate, in other reality Apply in mode, can also represent that the measuring instrument 22 is in using extra prompt message is increased allows to call state.
Step S122, apparatus selection step:A measuring instrument is selected from the on-line instrument list as institute State selected measuring instrument;
Figure 15 is refer to, measurement resource control system 4 receives the apparatus selection instruction of user input, from online instrument An identifier 220 is selected in device list 410.User have selected identifier 220, that is, have selected corresponding measuring instrument Device 22 is used as selected measuring instrument.In present embodiment, user is by mouse click on-line instrument list 410 instrument mark The mode for knowing 220 is input into apparatus selection instruction, have selected the measuring instrument that identifier 2201 is DSA1030A.Certainly, use Family can also be input into apparatus selection instruction by peripheral hardwares such as keyboards.
Step S123, dynamic application list produce step:Produced according to the selected measuring instrument and the application resource One dynamic application list comprising the application resource matched with the selected measuring instrument;Figure 16 is refer to, in this implementation In mode, step S123 is specifically included:Match information obtaining step S1231, application resource searching step S1232 and dynamic column Table generation step S1233.
Match information obtaining step S1231:The instrument essential information according to the selected measuring instrument produces one Match information.Match information obtaining step S1231 includes that a series name obtaining step S12311 and a model name obtain step Rapid S12312.Serial name obtaining step S12311:Instrument essential information according to the selected measuring instrument produces described selected The generic series name of measuring instrument.One model name obtaining step:Instrument essential information according to the selected measuring instrument is produced The affiliated model name of the life selected measuring instrument.
In the present embodiment, it is preceding to have described in detail, instrument essential information include trade name, INSTRUMENT MODEL, instrument sequence number, Instrument version number etc., measurement resource control system 4 produces the match information according to the INSTRUMENT MODEL.In present embodiment Include the generic series name of the selected measuring instrument and affiliated model name with information.For example, refer to Figure 17, user have selected Identifier 220 is the measuring instrument of DAS1030A as selected measuring instrument, and its instrument is understood by the selected measuring instrument INSTRUMENT MODEL in essential information is " DSA1030A ", and the INSTRUMENT MODEL " DSA1030A " not only illustrates the selected measuring instrument INSTRUMENT MODEL is DAS1030A, and understands that the selected measuring instrument belongs to DAS1000A series, thus may determine that this is selected The generic series of measuring instrument are entitled " DSA1000A ", and affiliated model is entitled " DSA1030A ".It should be pointed out that serial name is obtained The execution sequence for taking step S12311 and model name obtaining step S12312 can be overturned mutually, it is also possible to while executed in parallel.
Used as other implementation method, instrument essential information includes INSTRUMENT MODEL and instrument series number, therefore can pass through INSTRUMENT MODEL in the instrument essential information of selected measuring instrument determines affiliated model name, by the instrument base for being chosen measuring instrument Instrument series number generic series name in this information.
Refer to Figure 16, application resource searching step S1232:Searched and the selected measuring instrument according to the match information The application program that device matches.Application resource searching step S1232 specifically includes generic resource finding step S12321, one An individual serial name finding step S12322 and model name finding step S12323.Generic resource finding step S12321:According to Using the application program that a common name in essential information is searched with all the measuring instrument is matched;Serial name finding step S12322:The application program matched with the selected measuring instrument generic series is searched according to generic series name;Model name Finding step S12323:The application journey matched with the selected affiliated model of measuring instrument is searched according to the affiliated model name Sequence.
In the present embodiment, application program 24 applies essential information with one, and this includes series using essential information Name, model name and common name.In the middle of the file name of the application program 24 comprising serial name, model name and common name wherein it One.Common name is included in the middle of the file name of the application program 24, represents that the application program 24 can match arbitrary measurement Instrument 22.Comprising serial name in the middle of the file name of the application program 24, represent that the application program 24 can match same system The measuring instrument 22 of row name, you can to match the measuring instrument 22 of the series all models under one's name.The file of the application program 24 Model name is included in the middle of title, 24 measuring instruments 22 of the same model name of matching of the application program are represented.In order to illustrate It is bright, Figure 18 is refer to, multiple application programs 24 are store in the memory 416 of computer 41, each application program 24 is stored in Under the file of the same name with it.Wherein, entitled " Instrument_Common_XXXX_SCPI ControlPanel's " should With in the title of program 2401 include common name " Instrument_Common ", therefore represent the application program 2401 can with With any one measuring instrument 22.Included in the title of the application program 2402 of entitled " XXXX_DSA1000A_Tools " and be Row name " DSA1000A ", therefore represent that the application program 2402 can match the measuring instrument 22 for belonging to DSA1000A series. Model name " DSA1030A ", therefore table are included in the title of the application program 2403 of entitled " XXXX_DSA1030A_Tools " Show that 2403 matching model names of the application program are all the measuring instrument 22 of DSA1030A.
Therefore, generic resource finding step S12321 is by searching answering comprising common name " Instrument_Common " With program, application program 2401 can be found;Serial name finding step S12322, can be with according to generic series name " DSA1000A " Find application program 2402;Model name finding step S12323 model name " DSA1030A " according to belonging to, can find and apply journey Sequence 2403.
As other implementation method, matched instrument can also be recorded in the filename of application program 24 and believed substantially What is ceased is part or all of.
As other implementation method, matched instrument can also be recorded in the supporting paper of application program 24 basic Information it is part or all of.
As other implementation method, the application program 24 can also be recorded in the registration table of operating system and is matched Instrument essential information it is part or all of.
Dynamic listing generation step S1233:The application program matched according to finding produces the dynamic to answer Use list.
Figure 17 is refer to, according to the application program 2401,2402,2403 that step S1232 finds, dynamic application row is generated Table 240.What the dynamic application list 240 was included is the application program that is matched with selected measuring instrument supplies user further to select Select.Dynamic application list 240 eliminate with the unmatched application program of selected measuring instrument, make user avoid receiving when selecting To interference, it is easy to fast and accurately select.
Step S124, using selection step:The selected application resource is selected from the dynamic application list;
Figure 17 is refer to, of the measurement reception user input of resource control system 4 applies selection instruction, in dynamic An application program is selected in list of application 240, as a selected application program.This can be mouse point using selection instruction Hit application program 2401.That is, user selects entitled " Instrument_Common_XXXX_SCPI Control Panel " Application program.
Step S13, resource transfer establishment step:By from the one selected measuring instrument of selection in the measuring instrument with from this The selected application resource selected in application resource is set up and is called.
Figure 19 is refer to, measurement resource control system 4 is according to the selected measuring instrument for choosing and is chosen answer With program 2401, the original address of selected measuring instrument is passed into selected application program 2401, make the selected application program 2401 have the communication object for determining, are communicated with selected measuring instrument using the original address.So far, the application program is completed The foundation that 2401 pairs of selected measuring instruments are called, allows user normally to control quilt using the selected application program 2401 Select measuring instrument.
In the present embodiment, the application program 24 of .exe entitled for extension, measurement resource control system 4 is used Command line modes of the Windows with parameter completes to pass original address to application program 24 while application program 24 are started Pass;For the application program 24 of VI forms, measurement resource control system 4 completes original address using the dynamic load mode of VI Transmission.
In the present embodiment, measurement resource control system 4 has an invocation list, the tune for recording current foundation With.After the call establishment, the window title information of the selected application program 2401 and corresponding selected measuring instrument all by Record is in the invocation list.
Step S14, resource transfer release step:Solution will be called between the selected measuring instrument and the selected application resource Remove.
In the present embodiment, after user closes selected application program 2401, be chosen measuring instrument and it is described it is selected should Released with calling between resource.
Window title letter of the measurement resource control system 4 according to the selected application program 2401 recorded in the invocation list Breath, recursive call Windows api functions " FindWindowA " makees the window title information of the selected application program 2401 It is |input paramete, FindWindowA functions return to the state of window, if window is turned off, function returns to 0 and is worth.
In other implementation method, application program 2401 or measurement resource control system 4 are preset with a call release Condition, e.g. timing condition, when the call release condition is met, are chosen between measuring instrument and the selected application resource Call and automatically terminate, without closing selected application program 2401.
Step S15, display control step:To be chosen survey described in the measuring instrument list according to the foundation called Measuring instrument mark corresponding to measuring appratus shows with the second display properties, and according to the releasing called by the measuring instrument The measuring instrument mark corresponding to measuring instrument is chosen described in device list to be shown with the first display properties.
After being called due to some measuring instruments 22 and the foundation of application program 24, it is impossible to adjusted by other application programs 24 again With the problems such as will otherwise miscommunication occurs, therefore having set up with selected application program 2401 the selected measuring instrument for having called Device then is forbidden calling state again in one.In the present embodiment, it is by the selected measurement that this forbids calling state again Instrument is highlighted, and specifically the measuring instrument mark corresponding to the selected measuring instrument is shown with the second display properties, example Such as to be shown with red overstriking font and have also been employed that the purpose that program is called playing the prompting user measuring instrument.And work as After the call release, the selected measuring instrument called with the foundation of selected application program 2401 returns to and allows to call state, for example It is white non-overstriking font.In other implementation method, this is forbidden calling state to can also be in user again and uses other When application program calls the selected measuring instrument again, the prompt message called is forbidden in ejection.
In the present embodiment, step S15 includes step S151~S152.
Step S151, Resource orientation step:According to the selected measuring instrument navigate in the measuring instrument list with The corresponding measuring instrument mark of the selected measuring instrument, identifies as measuring instrument to be modified;
Figure 20 is refer to, in the present embodiment, measurement resource control system 4 is according to being chosen that step S13 foundation is called The title of measuring instrument, by " ActiveltemTag " the attribute section in the attribute node for calling LabVIEW tree list controls Point, navigates to position of the corresponding measuring instrument mark in measuring instrument list.
Equally, measurement resource control system 4 can also be according to the selected application journey that FindWindowA function return values are 0 The title of the selected measuring instrument corresponding to sequence, by the attribute node for calling LabVIEW tree list controls " ActiveltemTag " attribute node, navigates to position of the corresponding measuring instrument mark in measuring instrument list.
Step S152, display properties amendment step:The measuring instrument to be modified is identified according to the foundation called Display properties be revised as the second display properties;According to the display that the releasing called identifies the measuring instrument to be modified Attribute modification is the first display properties.
Please with reference to Figure 20 and Figure 21, in the present embodiment, measurement resource control system 4 according to it is described call build It is vertical, by " CellFontBold " attribute node in the attribute node for calling LabVIEW tree list controls, by step The font-weight of the measuring instrument mark of S151 positioning, by the attribute node for calling LabVIEW tree list controls " CellFontColor " attribute node, the font of the measuring instrument mark that step S151 is positioned is revised as red.
Please with reference to Figure 20 and Figure 22, resource control system 4 is measured according to the releasing called, by calling " CellFontBold " attribute node in the attribute node of LabVIEW tree list controls, will be positioned by step S151 The font of measuring instrument mark recover non-overstriking font, by the attribute node for calling LabVIEW tree list controls " CellFontColor " attribute node, the font of the measuring instrument mark that will be positioned by step S151 is revised as white.
Figure 23 is refer to, in order to realize above-mentioned each step, measurement resource control system 4 includes an instrument resource control Part M11, input block M12, a resource transfer set up part M13, a resource transfer contact component M14 and one Display control section M15.Instrument resource control unit M11 is used to be connected with measuring instrument foundation, produces and the survey The corresponding original address of measuring appratus and an identifier;Input block M12 be used for by the identifier come from A selected measuring instrument is selected in the measuring instrument, and a selected application resource is selected from the application resource;Money Source call establishment part M13 is used to be selected with from the application resource from the one selected measuring instrument of selection in the measuring instrument The selected application resource selected is set up and is called;Resource transfer contact component M14 is used to be chosen the selected measuring instrument with this Call release between application resource;The foundation that display control section M15 is used to be called according to arranges the measuring instrument The measuring instrument mark corresponding to measuring instrument is chosen described in table to be shown with the second display properties, and according to the solution called Except the measuring instrument mark that will be chosen described in the measuring instrument list corresponding to measuring instrument is shown with the first display properties.
Instrument resource control unit M11 includes that an instrument resource searches part M111 and an instrument resource connection member M112.The instrument resource searches part M111 is used to produce the original address of the measuring instrument;The instrument resource is connected Part M112 is used to be sent to the measuring instrument according to the original address to be ordered, and the instrument for obtaining the measuring instrument is basic Information, the identifier is produced according to the instrument essential information.
Input block M12 includes instrument list generating section M121, apparatus selection part M122, a dynamic A list of application generating means M123 and application alternative pack M124.Instrument list generating section M121 is used for according to the instrument Device is identified, and produces an on-line instrument list corresponding with the identifier;Apparatus selection part M122 is used for from described A measuring instrument is selected in on-line instrument list as the selected measuring instrument;Dynamic application list generating section M123 is used to produce one to include and the selected measuring instrument phase according to the selected measuring instrument and the application resource The dynamic application list of the application resource matched somebody with somebody;It is used to select the quilt from the dynamic application list using alternative pack M124 Select application resource.
Figure 24 is refer to, dynamic application list generating section M123 includes match information obtaining widget M1231, application resource Searching part M1232 and dynamic listing generating unit M1233.Match information obtaining widget M1231 is used for according to the selected survey The instrument essential information of measuring appratus produces a match information.Application resource searching part M1232 is used for according to described With the application program that information searching matches with the selected measuring instrument.Dynamic listing generating unit M1233 is used for basis and looks into The application program for matching for finding produces the dynamic application list.
Match information obtaining widget M1231 includes a series name obtaining widget M12311 and a model name obtaining widget M12312.Serial name obtaining widget M12311 is used to produce described being chosen according to the instrument essential information of the selected measuring instrument The generic series name of measuring instrument.Model name obtaining widget M12312 is used to be believed substantially according to the instrument of the selected measuring instrument Breath produces the affiliated model name of the selected measuring instrument.
Application resource searching part M1232 specifically includes a generic resource lookup part M12321, a serial name and looks into Part M12322 and a model name is looked for search part M12323.Generic resource searches part M12321 to be used for according to application base A common name in this information is searched and the application program that all measuring instrument is matched;Serial name searches part M12322 For searching the application program matched with the selected measuring instrument generic series according to generic series name;Model name is searched Part M12323 is used to be searched according to the affiliated model name application program matched with the selected affiliated model of measuring instrument.
Referring again to Figure 23, display control section M15 includes that a Resource orientation part M151 and a display properties are repaiied Change part M152, Resource orientation part M151 be used for according to the selected measuring instrument navigate in the measuring instrument list with The corresponding measuring instrument mark of the selected measuring instrument, identifies as measuring instrument to be modified;Display properties modification portion The display properties of the measuring instrument mark to be modified is revised as the second display by the foundation that part M152 is used to be called according to Attribute;The display properties that the measuring instrument to be modified is identified is revised as by the first display properties according to the releasing called.
The second embodiment of present invention measurement resource control system is described below.
Refer to Figure 25, the measurement resource control system 5 of second embodiment and the measurement resource control of first embodiment Execution step when differring primarily in that work of system processed 4 is different.Wherein, the step of measurement resource control system 5 is performed S21 is identical with step S11, and step S23 is identical with step S13, and step S24 is identical with step S14, step S25 and step S15 phases Together, the step included by step S22 is different from the step included by step S12.
Step S21, instrument resource management process:Set up with the measuring instrument and be connected, produced and the measuring instrument pair The original address and an identifier answered.
The step of with the measurement resource control system 4 of first embodiment, S11 was identical, and step S21 also includes step S211 And S212, it is connected with measuring instrument 22 in the same way, the original address with each measuring instrument 22 is produced, and obtain every Instrument essential information corresponding to one measuring instrument 22, and a corresponding instrument mark is produced according to the instrument essential information Know.
Step S22, input step:The apparatus selection instruction for receiving user input applies selection instruction with one, institute State apparatus selection instruct for from the identifier select a selected measuring instrument, the application selection instruction be used for from A selected application program is selected in the application program;Wherein, step S22 includes step S221~S224:
Step S221, list of application produce step:According to the application resource, generation one is relative with the application resource The list of application answered;
Figure 26 is refer to, measurement resource control system 5 produces a list of application 540 on display interface 58, using row Table 540 includes the application name 541 corresponding to whole application programs, for for the selected application program of user's selection.
Step S222, using selection step:One application resource is selected from the list of application as institute State selected application resource;
Figure 27 is refer to, of the measurement reception user input of resource control system 5 applies selection instruction, arranged from application An application name 541 is selected in table 540, and then selects the application program corresponding to the application name 541.In this implementation In mode, included in the application name 541 of the application program manufacturer's information in match information, i.e. instrument essential information and Type information, measuring instrument corresponding with the application program is assured that by the manufacturer's information and type information.
Step S223, the list of dynamic instrument produce step:Produced according to the selected application resource and the measuring instrument One dynamic on-line instrument list comprising the measuring instrument matched with the selected application resource;
Refer to Figure 28, the matching letter that measurement resource control system 5 is included according to the application name 541 that user selects Cease and the measuring instruments of all connections retrieved, find the measuring instrument matched with the application name 541, and by these The identifier 521 of the measuring instrument matched somebody with somebody shows that these identifiers 521 constitute dynamic on-line instrument list 520.
Step S224, apparatus selection part:The selected measuring instrument is selected from the dynamic on-line instrument list.
Figure 29 is refer to, measurement resource control system 5 receives the apparatus selection instruction of user input, exists from dynamic An identifier 521 is selected in line instrument list 520, and then have selected the work of the measuring instrument corresponding to the identifier 521 To be chosen measuring instrument.
Step S23, resource matched step:Original address corresponding to the selected measuring instrument is sent to described selected Application resource.
The original address of the measuring instrument corresponding to identifier 521 that measurement resource control system 5 selects user is passed Pass user the application program of selection.Application program is had the communication object for determining, use the original address and measuring instrument Communication.So far, the foundation that the application program is called to the selected measuring instrument is completed, user is normally used the quilt Application program is selected to control selected measuring instrument.
Step S24, resource transfer release step:Solution will be called between the selected measuring instrument and the selected application resource Remove.
Step S25, display control step:To be chosen survey described in the measuring instrument list according to the foundation called Measuring instrument mark corresponding to measuring appratus shows with the second display properties, and according to the releasing called by the measuring instrument The measuring instrument mark corresponding to measuring instrument is chosen described in device list to be shown with the first display properties.
In the present embodiment, step S25 includes step S251~S252.
Step S251, Resource orientation step:According to the selected measuring instrument navigate in the measuring instrument list with The corresponding measuring instrument mark of the selected measuring instrument, identifies as measuring instrument to be modified;
Step S252, display properties amendment step:The measuring instrument to be modified is identified according to the foundation called Display properties be revised as the second display properties;According to the display that the releasing called identifies the measuring instrument to be modified Attribute modification is the first display properties.
Figure 30 is refer to, in order to realize above-mentioned each step, measurement resource control system 5 includes an instrument resource control Part M21, input block M22, a resource transfer set up part M23, a resource transfer contact component M24 and one Display control section M25.Instrument resource control unit M21 is used to be connected with measuring instrument foundation, produces and the survey The corresponding original address of measuring appratus and an identifier;Input block M22 be used for by the identifier come from A selected measuring instrument is selected in the measuring instrument, and a selected application resource is selected from the application resource;Money Source call establishment part M23 is used to be selected with from the application resource from the one selected measuring instrument of selection in the measuring instrument The selected application resource selected is set up and is called;Resource transfer contact component M24 is used to be chosen the selected measuring instrument with this Call release between application resource;The foundation that display control section M25 is used to be called according to arranges the measuring instrument The measuring instrument mark corresponding to measuring instrument is chosen described in table to be shown with the second display properties, and according to the solution called Except the measuring instrument mark that will be chosen described in the measuring instrument list corresponding to measuring instrument is shown with the first display properties.
Instrument resource control unit M21 includes that an instrument resource searches part M211 and an instrument resource connection member M212.The instrument resource searches part M211 is used to produce the original address of the measuring instrument;The instrument resource is connected Part M212 is used to be sent to the measuring instrument according to the original address to be ordered, and the instrument for obtaining the measuring instrument is basic Information, the identifier is produced according to the instrument essential information.
Input block M22 includes a list of application generating means M221, application alternative pack M222, a dynamic An instrument list generating section M223 and apparatus selection part M224.One list of application generating means M221, for basis The application resource, produces a list of application corresponding with the application resource;Using alternative pack M222, for from institute State and select one application resource as the selected application resource in list of application;Dynamic instrument list generating section M223, for producing one to include and the selected application resource phase according to the selected application resource and the measuring instrument The dynamic on-line instrument list of the measuring instrument matched somebody with somebody;Apparatus selection part M224, for from the dynamic on-line instrument list Select the selected measuring instrument.
The 3rd implementation method of present invention measurement resource control system is described below.
Refer to Figure 31, the measurement resource control system 6 of the 3rd implementation method and the measurement resource control of first embodiment Execution step when differring primarily in that work of system processed 4 is different.Wherein, the step of measurement resource control system 6 is performed S31 is identical with step S11, and step S33 is identical with step S13, and step S34 is identical with step S14, step S35 and step S15 phases Together, the step included by step S32 is different from the step included by step S12.
Step S31, instrument resource management process:Set up with the measuring instrument and be connected, produced and the measuring instrument pair The original address and an identifier answered.
The step of with the measurement resource control system 4 of first embodiment, S11 was identical, and step S31 is also in the same way Be connected with measuring instrument 22, produce with the original address of each measuring instrument 22, and obtain each measuring instrument 22 it is right The instrument essential information answered, and a corresponding identifier is produced according to the instrument essential information.
Step S32, input step:The apparatus selection instruction for receiving user input applies selection instruction with one, institute State apparatus selection instruct for from the identifier select a selected measuring instrument, the application selection instruction be used for from A selected application program is selected in the application program;Wherein, step S32 includes step S321~S324:
Step S321, measurement the Resources list produce step:According to the identifier, one is produced with the identifier Corresponding on-line instrument list, and answered for according to the application resource, generation one to be corresponding with the application resource Use list;
Figure 32 is refer to, measurement resource control system 6 produces an on-line instrument list 620 and on display interface 68 Individual list of application 640, on-line instrument list 620 includes the identifier corresponding to the measuring instrument 22 for all having connected 621, list of application 640 then includes the application name 641 of the application program 24 of whole.
Step S322, first resource selection step:One is selected from the on-line instrument list and the list of application Selected first resource, the selected first resource is in the selected measuring instrument and the selected application resource;
Figure 33 is refer to, measurement resource control system 6 receives an instruction of user input, and user can be input into an instrument Device selection instruction, selects an identifier 621, and then select corresponding to the identifier 621 from on-line instrument list 620 Measuring instrument;Refer to Figure 34, it is also possible to be input into one and apply selection instruction, an application is selected from list of application 640 Program name 641, and then select the application program corresponding to the application name 641.
Step S323, the list of dynamic Secondary resource produce step:If the selected first resource is the selected application Resource, then produce one to include and match with the selected application resource according to the selected application resource and the measuring instrument Measuring instrument dynamic on-line instrument list, the dynamic on-line instrument list is at least of the on-line instrument list Point;If the selected selected first resource is the selected measuring instrument, according to the selected measuring instrument and it is described should A dynamic application list comprising the application resource matched with the selected measuring instrument is produced with resource, the dynamic should It is at least a portion of the list of application with list;
Figure 35 is refer to, if first choice instruction is to apply selection instruction, measurement resource control system 6 is selected according to user The instrument essential information that the application name 641 selected is included is retrieved to the measuring instrument of all connections, and finding should with this The measuring instrument matched with program name 641, and the identifier 621 of these measuring instruments for matching is shown, these instrument marks Know 621 and constitute dynamic on-line instrument list 660.Figure 36 is refer to, if first choice instruction is apparatus selection instruction, is surveyed Amount resource control system 6 then instructs the instrument essential information of selected identifier 621 according to the apparatus selection, to application journey Sequence is retrieved the application program to obtain being matched with measuring instrument, and by the application name of these application programs for matching 641 constitute a dynamic application list 670.
Step S324, Secondary resource selection step:If the selected first resource is the selected application resource, from The selected measuring instrument is selected in the dynamic on-line instrument list;If the selected first resource is the selected measurement Instrument, then select the selected application resource from the dynamic application list.
Figure 37 is refer to, if what is produced is dynamic on-line instrument list 660, measurement resource control system 6 receives user One apparatus selection instruction of input, selects an identifier 621, and then select from dynamic on-line instrument list 660 Measuring instrument corresponding to the identifier 621 is used as selected measuring instrument.Figure 38 is refer to, if what is produced is that dynamic should With list 670, of the measurement reception user input of resource control system 6 applies selection instruction, in dynamic application list In 670 select an application name 641 come represent select the application name 641 corresponding to application program, as one Selected application program.
Step S33, resource matched step:Original address corresponding to the selected measuring instrument is sent to described selected Application resource.
The original address of the measuring instrument corresponding to identifier 621 that measurement resource control system 6 selects user is passed Pass user the application program of selection.Application program is had the communication object for determining, use the original address and measuring instrument Communication.So far, the foundation that the application program is called to the selected measuring instrument is completed, user is normally used the quilt Application program is selected to control selected measuring instrument.
Step S34, resource transfer release step:Solution will be called between the selected measuring instrument and the selected application resource Remove.
Step S35, display control step:To be chosen survey described in the measuring instrument list according to the foundation called Measuring instrument mark corresponding to measuring appratus shows with the second display properties, and according to the releasing called by the measuring instrument The measuring instrument mark corresponding to measuring instrument is chosen described in device list to be shown with the first display properties.
In the present embodiment, step S35 includes step S351~S352.
Step S351, Resource orientation step:According to the selected measuring instrument navigate in the measuring instrument list with The corresponding measuring instrument mark of the selected measuring instrument, identifies as measuring instrument to be modified;
Step S352, display properties amendment step:The measuring instrument to be modified is identified according to the foundation called Display properties be revised as the second display properties;According to the display that the releasing called identifies the measuring instrument to be modified Attribute modification is the first display properties.
Figure 39 is refer to, in order to realize above-mentioned each step, measurement resource control system 5 includes an instrument resource control Part M31, input block M32, a resource transfer set up part M33, a resource transfer contact component M34 and one Display control section M35.Instrument resource control unit M31 is used to be connected with measuring instrument foundation, produces and the survey The corresponding original address of measuring appratus and an identifier;Input block M32 be used for by the identifier come from A selected measuring instrument is selected in the measuring instrument, and a selected application resource is selected from the application resource;Money Source call establishment part M33 is used to be selected with from the application resource from the one selected measuring instrument of selection in the measuring instrument The selected application resource selected is set up and is called;Resource transfer contact component M34 is used to be chosen the selected measuring instrument with this Call release between application resource;The foundation that display control section M35 is used to be called according to arranges the measuring instrument The measuring instrument mark corresponding to measuring instrument is chosen described in table to be shown with the second display properties, and according to the solution called Except the measuring instrument mark that will be chosen described in the measuring instrument list corresponding to measuring instrument is shown with the first display properties.
Instrument resource control unit M31 includes that an instrument resource searches part M311 and an instrument resource connection member M312.The instrument resource searches part M311 is used to produce the original address of the measuring instrument;The instrument resource is connected Part M312 is used to be sent to the measuring instrument according to the original address to be ordered, and the instrument for obtaining the measuring instrument is basic Information, the identifier is produced according to the instrument essential information.
Input block M32 include a measurement the Resources list generating means M321, first resource alternative pack M322, An one dynamic Secondary resource list generating section M223 and Secondary resource alternative pack M224.
Measurement the Resources list generating means M321, for according to the identifier, producing one with the identifier Corresponding on-line instrument list, and answered for according to the application resource, generation one to be corresponding with the application resource Use list;
First resource alternative pack M322, for selecting a quilt from the on-line instrument list and the list of application First resource is selected, the selected first resource is in the selected measuring instrument and the selected application resource;
Dynamic Secondary resource list generating section M323, if being the selected application money for the selected first resource Source, then produce one comprising matching with the selected application resource according to the selected application resource and the measuring instrument The dynamic on-line instrument list of measuring instrument, the dynamic on-line instrument list is at least of the on-line instrument list Point;If the selected selected first resource is the selected measuring instrument, according to the selected measuring instrument and it is described should A dynamic application list comprising the application resource matched with the selected measuring instrument is produced with resource, the dynamic should It is at least a portion of the list of application with list;
Secondary resource alternative pack M324, if being the selected application resource for the selected first resource, from The selected measuring instrument is selected in the dynamic on-line instrument list;If the selected first resource is the selected measurement Instrument, then select the selected application resource from the dynamic application list.
Measurement resource control system of the invention and measurement resource control method at least have the advantages that:
1. because measurement resource control system of the invention and measurement resource control method can provide survey for application program The original address of measuring appratus, it is no longer necessary to each application program oneself go produce original address, therefore original program exploitation During can save instrument searching modul 147, the exploitation of instrument link block 148 so that application development, safeguard more Simply.
2. when the substantial amounts of measuring instrument and application program, user have selected selected measuring instrument or be chosen answer After with program, it is of the invention measurement resource control system and measurement resource control method will be automatically found matching application program and Measuring instrument, eliminates the interference of unmatched option so that measuring instrument is very convenient with matching for application program.
3. after being called due to some measuring instruments 22 and the foundation of application program 24, it is impossible to adjusted by other application programs 24 again With, the problems such as will otherwise miscommunication occurs, therefore, present invention measurement resource control system and measurement resource control method make The selected measuring instrument called is set up with selected application program 2401 to forbid calling state again in one.So not only Can prevent user from calling the selected measuring instrument again using other application program, the problems such as cause miscommunication, Er Qie How many measuring instrument can be very easy to use with very clear in called state in on-line instrument list.

Claims (6)

1. it is a kind of to measure resource control system, for controlling multiple measuring instruments and multiple application resources, it is characterised in that described Control system includes:
One resource matched part, for according to select one assemble to measuring instrument and application resource, make the pairing Application resource call the measuring instrument of the pairing, and make the pairing measuring instrument be in forbid calling state again;
The resource matched part includes:
One measurement the Resources list generating means, for according to the multiple measuring instrument, producing one to include multiple measuring instruments The measuring instrument list of device mark, wherein, the measuring instrument identifies, the measuring instrument corresponding with the multiple measuring instrument Measuring instrument mark in list is shown with the first display properties;
One resource transfer sets up part, for will from the multiple measuring instrument select a selected measuring instrument with from The selected application resource selected in the multiple application resource is set up and is called;
One display control section, for according to calling for the foundation measuring instrument will to be chosen described in the measuring instrument list Measuring instrument mark corresponding to device is shown with the second display properties.
2. system according to claim 1, it is characterised in that described to forbid calling state again be by the survey of the pairing Measuring appratus are highlighted.
3. it is a kind of to measure resource control system, for controlling multiple measuring instruments and multiple application resources, it is characterised in that described Control system includes:
One resource matched part, for according to select one assemble to measuring instrument and application resource, make the pairing Application resource call the measuring instrument of the pairing, and make the pairing measuring instrument be in forbid calling state again, The releasing called described in, being in the measuring instrument of the pairing allows to call state;
The resource matched part includes:
One measurement the Resources list generating means, for according to the multiple measuring instrument, producing one to include multiple measuring instruments The measuring instrument list of device mark, wherein, the measuring instrument identifies, the measuring instrument corresponding with the multiple measuring instrument Measuring instrument mark in list is shown with the first display properties;
One resource transfer sets up part, for will from the multiple measuring instrument select a selected measuring instrument with from The selected application resource selected in the multiple application resource is set up and is called;
One resource transfer releases part, for will call solution between the selected measuring instrument and the selected application resource Remove;
One display control section, for according to calling for the foundation measuring instrument will to be chosen described in the measuring instrument list Measuring instrument mark corresponding to device shows with the second display properties, and according to the call release by the measuring instrument list Described in be chosen measuring instrument corresponding to measuring instrument mark shown with the first display properties.
4. it is a kind of to measure resource control method, for controlling multiple measuring instruments and multiple application resources, it is characterised in that described Control method includes:
One resource matched step, according to select one assemble to measuring instrument and application resource, make the pairing should With described in resource transfer match measuring instrument, and make the pairing measuring instrument be in forbid calling state again;
The resource matched step includes:
One measurement the Resources list produces step, according to the multiple measuring instrument, produces one to include multiple measuring instrument marks The measuring instrument list of knowledge, wherein, the measuring instrument identifies, the measuring instrument list corresponding with the multiple measuring instrument In the measuring instrument mark shown with the first display properties;
One resource transfer establishment step, the selected measuring instrument that will be selected from the multiple measuring instrument with from described The selected application resource selected in multiple application resources is set up and is called;
One display control step, measuring instrument institute will be chosen according to calling for the foundation described in the measuring instrument list Corresponding measuring instrument mark is shown with the second display properties.
5. method according to claim 4, it is characterised in that described to forbid calling state again be by the survey of the pairing Measuring appratus are highlighted.
6. it is a kind of to measure resource control method, for controlling multiple measuring instruments and multiple application resources, it is characterised in that described Control method includes:
One resource matched step, according to select one assemble to measuring instrument and application resource, make the pairing should With described in resource transfer match measuring instrument, and make the pairing measuring instrument be in forbid calling state again, foundation The releasing called, being in the measuring instrument of the pairing allows to call state;
The resource matched step includes:
One measurement the Resources list produces step, according to the multiple measuring instrument, produces one to include multiple measuring instrument marks The measuring instrument list of knowledge, wherein, the measuring instrument identifies, the measuring instrument list corresponding with the multiple measuring instrument In the measuring instrument mark shown with the first display properties;
One resource transfer establishment step, the selected measuring instrument that will be selected from the multiple measuring instrument with from described The selected application resource selected in multiple application resources is set up and is called;
One resource transfer releases step, by the call release between the selected measuring instrument and the selected application resource;
One display control step, measuring instrument institute will be chosen according to calling for the foundation described in the measuring instrument list Corresponding measuring instrument mark shows with the second display properties, and according to the call release by institute in the measuring instrument list The mark of the measuring instrument corresponding to selected measuring instrument is stated to be shown with the first display properties.
CN201010534838.0A 2010-11-03 2010-11-03 Measurement resource control system and measurement resource control method Active CN102467369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010534838.0A CN102467369B (en) 2010-11-03 2010-11-03 Measurement resource control system and measurement resource control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010534838.0A CN102467369B (en) 2010-11-03 2010-11-03 Measurement resource control system and measurement resource control method

Publications (2)

Publication Number Publication Date
CN102467369A CN102467369A (en) 2012-05-23
CN102467369B true CN102467369B (en) 2017-06-09

Family

ID=46071046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010534838.0A Active CN102467369B (en) 2010-11-03 2010-11-03 Measurement resource control system and measurement resource control method

Country Status (1)

Country Link
CN (1) CN102467369B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105302609B (en) * 2015-11-05 2018-10-16 中国电子科技集团公司第四十一研究所 Data resource configuring management method applied to measuring instrument
TWI676899B (en) * 2018-02-21 2019-11-11 Measuring instrument data collecting device and method
CN112650576B (en) * 2021-01-22 2023-12-29 百度在线网络技术(北京)有限公司 Resource scheduling method, device, equipment, storage medium and computer program product

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367426A (en) * 2000-12-28 2002-09-04 微软公司 Label related to environment for electronic equipment
CN1573723A (en) * 2003-05-15 2005-02-02 三星电子株式会社 Method and apparatus for communication via serial multi-port
CN1821959A (en) * 2005-02-17 2006-08-23 国际商业机器公司 Methods for user interface controlling system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1367426A (en) * 2000-12-28 2002-09-04 微软公司 Label related to environment for electronic equipment
CN1573723A (en) * 2003-05-15 2005-02-02 三星电子株式会社 Method and apparatus for communication via serial multi-port
CN1821959A (en) * 2005-02-17 2006-08-23 国际商业机器公司 Methods for user interface controlling system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于网络的高频虚拟实验室的设计与开发;郝建勋;《学位论文》;20060918;第7,14,17页 *
多仪器测试系统及其串行通信驱动程序的开发;赵伟等;《鱼雷技术》;20070430;第15卷(第2期);全文 *

Also Published As

Publication number Publication date
CN102467369A (en) 2012-05-23

Similar Documents

Publication Publication Date Title
CN102004952B (en) Measuring resource control system and measuring resource control method
CN109840207B (en) AutoSAR-based network management automation test system and test method
CN111078482B (en) Communication navigation equipment test system, method, equipment and readable storage medium
CN109254905B (en) Distributed parallel automatic test system based on workflow
US20050091618A1 (en) Method and apparatus for decomposing and verifying configurable hardware
US20020073374A1 (en) Method,system and program product for testing and/or diagnosing circuits using embedded test controller access data
CN113706110B (en) FPGA test tool integrated test management platform
CN104751690A (en) Automatic analog electronic technology experiment data testing and correcting system and method thereof
CN111176984A (en) Signal-oriented automatic test implementation method
CN104915297B (en) A kind of automated testing method of the APP power consumption of android equipment
CN106093897B (en) A kind of the test system and test method of radar system
CN102467372B (en) One kind measurement resource control system and measurement resource control method
CN102467369B (en) Measurement resource control system and measurement resource control method
Pianegiani et al. An open distributed measurement system based on an abstract client-server architecture
Hofer et al. Iec 61131-3 software testing: A portable solution for native applications
CN114578790A (en) Unmanned aerial vehicle flight control automatic test method, system, equipment and medium
Khorram et al. Adapting TDL to Provide Testing Support for Executable DSLs.
CN102467370B (en) Measure resource control system and measure resource control method
CN104933923A (en) A medical electronic apparatus simulation experiment teaching platform based on a virtual instrument
CN110749814A (en) Automatic testing system and method for chip IC sample
CN102467090B (en) A kind of measurement resource control method and measurement resource control system
Guo et al. ISDP: Interactive software development platform for household appliance testing industry
CN102467368B (en) A kind of measurement resource control system and measurement resource control method
Denaro et al. Self-test components for highly reconfigurable systems
Benetazzo et al. Networking automatic test equipment environments

Legal Events

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