CN103176017B - A kind of oscillograph and configuration device thereof and collocation method - Google Patents

A kind of oscillograph and configuration device thereof and collocation method Download PDF

Info

Publication number
CN103176017B
CN103176017B CN201110435602.6A CN201110435602A CN103176017B CN 103176017 B CN103176017 B CN 103176017B CN 201110435602 A CN201110435602 A CN 201110435602A CN 103176017 B CN103176017 B CN 103176017B
Authority
CN
China
Prior art keywords
configuration
order
configuration file
character
file
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
CN201110435602.6A
Other languages
Chinese (zh)
Other versions
CN103176017A (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 CN201110435602.6A priority Critical patent/CN103176017B/en
Publication of CN103176017A publication Critical patent/CN103176017A/en
Application granted granted Critical
Publication of CN103176017B publication Critical patent/CN103176017B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention is about a kind of oscillograph and to configure device and collocation method, and described configuration device includes: configuration file import unit, for importing the configuration file of outside;Configuration file converting unit, for being converted to configuration order by the configuration file that outside imports;Configuration order performance element, for according to described configuration order configuration oscillograph.Oscillograph that the present invention provides and configuration device and collocation method thereof, use the setting that oscillograph is carried out by configuration file mode visual representation, oscillograph can be set with off-line, need not derive from oscillograph arrange, when importing the configuration file of editor, order performs, it is possible to achieve automatically arranges and automatically measures.

Description

A kind of oscillograph and configuration device thereof and collocation method
Technical field
The present invention is about oscillograph technical field, specifically about a kind of oscillograph and configuration device thereof and collocation method.
Background technology
During utilizing oscillograph to be operated, need oscillograph is carried out different settings according to different applied environments.Such as in order to observe a narrow pulse signal, needing to arrange oscillographic triggering system, perpendicular system and system horizontal, perpendicular system includes the gear of passage, ratio of popping one's head in, impedance, and coupling is anti-phase, bandwidth restriction etc.;System horizontal includes horizontal timebase, horizontal displacement, delaying sweep etc..In order to the width of read pulse also needs to open pulse width measure item.Under increasingly complex test environment, oscillographic setting is the most complicated.Front to oscillographic a series of settings in order to simplify test, instrument typically can provide and arrange storage function.So, oscillograph can first once be arranged by user, then current setting is stored in the form of a profile on nonvolatile storage, when needed, then reads this from memorizer and arranges file, recovers to arrange.
It is to say, in prior art, if needing to obtain oscillographic arranges file, it is necessary to first arrange oscillograph, setting derives current setting afterwards and obtains arranging file.If oscillographic operation button breaks down or other reason causes cannot effectively arranging oscillograph, the most just cannot obtain arranging file.Accordingly, if it is desired to check that certain is with the design parameter arranging file, it is also necessary on oscillograph, read that to arrange file just the most permissible.
It addition, the oscillographic file that arranges is binary form in prior art, check (such as Windows) in other circumstances, it is impossible to learn its implication, therefore cannot edit the most intuitively and check.
Summary of the invention
For overcoming the oscillographic file that arranges in prior art must be configured by oscillograph and check, and the problem cannot edited the most intuitively and check, the present invention provides a kind of oscillograph and configuration device thereof and collocation method.
The present invention provides a kind of oscillographic configuration device, and described configuration device is arranged in oscillograph, and described configuration device includes:
Configuration file import unit, for importing the configuration file of outside;
Configuration file converting unit, for being converted to configuration order by the configuration file that outside imports;
Configuration order performance element, for according to described configuration order configuration oscillograph.
The present invention also provides for a kind of oscillographic collocation method, and described collocation method includes:
Configuration file outside Dao Ruing;
The configuration file that outside imports is converted to configuration order;
According to described configuration order configuration oscillograph.
The present invention also provides for a kind of oscillograph, and described oscillograph includes that a configuration device, described configuration device include:
Configuration file import unit, for importing the configuration file of outside;
Configuration file converting unit, for being converted to configuration order by the configuration file that outside imports;
Configuration order performance element, for according to described configuration order configuration oscillograph.
Oscillograph that the present invention provides and configuration device and collocation method thereof, use the setting that oscillograph is carried out by character Command mode visual representation, file can be set with off-line editing oscillograph, need not derive from oscillograph arrange, when arranging file of importing editor, order performs, it is possible to achieve automatically arranges and automatically measures.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, is not intended that limitation of the invention.In the accompanying drawings:
Fig. 1 is the module map of a kind of oscillographic configuration device that the embodiment of the present invention provides.
Fig. 2 is the module map of the configuration file converting unit 102 that the embodiment of the present invention provides.
Fig. 3 is the module map of a kind of oscillographic configuration device that the embodiment of the present invention provides.
Fig. 4 is the flow chart that the file conversion unit 102 that the embodiment of the present invention provides realizes file conversion process.
Fig. 5 is the flow chart that file conversion unit 102 realizes command messages conversion.
Fig. 6 is file conversion unit 102 flow chart of scan command parameter before message is changed.
A kind of caching attachment structure figure that Fig. 7 provides for the embodiment of the present invention.
Fig. 8 is the flow chart of a kind of oscillographic collocation method that the embodiment of the present invention provides.
Fig. 9 is the flow chart of step S802 that the embodiment of the present invention provides.
Figure 10 is the flow chart of a kind of oscillographic collocation method that the embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in further details.Here, the exemplary embodiment of the present invention and explanation thereof are used for explaining the present invention, but not as a limitation of the invention.
The embodiment of the present invention provides a kind of oscillograph and configuration device thereof and collocation method, and below in conjunction with accompanying drawing, the present invention is described in detail.
Embodiment one
Fig. 1 is the module map of a kind of oscillographic configuration device that the embodiment of the present invention provides, as shown in Figure 1, configuration device 100 is arranged in oscillograph 10, and configuration device 100 includes configuration file import unit 101, configuration file converting unit 102 and configuration order performance element 103, wherein:
Configuration file import unit 101, for importing the configuration file of outside.
Configuration file converting unit 102, for being converted to configuration order by the configuration file that outside imports.Configuration file is converted to process namely the resolving of configuration order, is the discernible configuration order of oscillograph internal processes by the command analysis of character style.
In embodiments of the present invention, configuration file can have two ways to produce, and i.e. uses oscillograph derive configuration file or directly utilize the text edit software edit commands character string of PC end to produce configuration file.Profile data can be SCPI command format, and file suffixes is relevant with system, in order to imports from external memory storage or downloads.Oscillograph can be configured, read oscillographic internal state by configuration file, including measured value with arrange value etc. or oscillograph carry out system operation, such as system dormancy, file operation etc..User can use the configuration file outside nonvolatile storage importing, it is possible to use the configuration file outside external communication interface importing.
A kind of caching attachment structure figure that Fig. 7 provides for the embodiment of the present invention, as shown in Figure 7, the configuration file of the outside imported by external memory storage is directed into file and reads in caching, the configuration file imported by external communication interface is directed in reception caching, resolve to cache and read caching from file and receive caching reception profile data, and store respectively to order caching and parameter cache.
When configuration file import unit 101 reads configuration file from external memory storage, after system identification accesses to external memory storage, file system built-in in oscillograph reads the data of this memorizer, the data read are buffered, then configuration file converting unit 102 carries out command analysis to the data of caching, is completed order by configuration order performance element 103 afterwards and performs process.If the configuration file of outside is bigger, internal file reads caching needs to read in batches file, resolves in batches.Configuration file with newline (0x0A) terminate, every data line can be successively read with newline for labelling, using one or multirow data as a complete parsing lot data.It should be noted that when reading configuration file from external memory storage, system has the initiative acquisition data mode, needs user operation to start reading data procedures.Resolving, after reading in file from external memory storage, starts, it is not necessary to user manually intervenes automatically.
When configuration file import unit 101 receives configuration file from external communication interface, the direct incoming configuration file converting unit 102 of profile data received, then start command analysis process, it is possible to achieve order receives and performs concurrently to carry out.Receive caching the data received to be cached, then be transferred to resolve caching by the data received in caching, then start the reception process of next group data.Configuration file converting unit 102, when resolving caching and not being empty, is successively read data parsing order in starting analytically to cache, resolves and cache mode based on queue, and the data order that reception process receives enters parsing buffer queue.It should be noted that after communication interface receives data, meeting is automatically and processor completes alternately, the data write that will receive resolves in caching, and this process need not user operation, but needs user operation miscellaneous equipment to pass through communication interface to equipment sending data.
Use communication interface translation profile, receive caching receive configuration file after, configuration file converting unit 102 start the process of command analysis with by after external memory storage importing configuration files, that configuration file converting unit 102 starts the process of command analysis is identical.Reception caching is different memory spaces with file reading caching, and reception caching is used for passively receiving data from communication interface, and file reading caching is system actively reading data from external memory storage.They are all blocks of data spaces of system in itself, and storage is configuration file, identical to the processing procedure of two block spaces.Being all to start resolving, resolving resolve command, order sequentially enters order and performs queue, and order execution process goes out team successively, performs every order.
In embodiments of the present invention, configuration file converting unit 102 carries out dissection process to the configuration file of the outside that configuration file import unit 101 imports, and is converted to the configuration order that oscillograph can perform.
Fig. 2 is the module map of the configuration file converting unit 102 that the embodiment of the present invention provides, as in figure 2 it is shown, configuration file converting unit 102 includes:
Character scan module 201, reads in the character of the configuration file of caching for scanning successively.
In embodiments of the present invention, configuration file converting unit 102 reads in, according to size and the profile system of configuration file, the size cached, and determines and once reads configuration file or read configuration file in batches.If needing to read in batches configuration file, then require that profile system supports random read operation, read a blocks of data to caching from the deviation post specified, then cumulative offset position, it is simple to next time read next blocks of data from this position every time.
End mark detection module 202, whether the character scanned for detection is end mark.
Character writing module 203, for the character writing commands caching that will scan.
In embodiments of the present invention, if end mark detection module 202 is not detected by end mark, then the character writing commands caching that character writing module 203 persistently will scan.
Character resolution module 204, for resolving the character in described order caching, obtains configuration order.
Character in embodiments of the present invention, if end mark detection module 202 detects end mark, then during character resolution module 204 resolves described order caching.
In embodiments of the present invention, order caching incoming during order analysis is single command, character resolution module 204 carries out commands match lookup in order conversion, if matched and searched success, then the character in order caching is converted to configuration order and is delivered to configuration order performance element 103 by character resolution module 204, processed successively by configuration order performance element 103 and come from the configuration order after character resolution module 204 during command analysis is changed, if order is not mated, the most do not carry out message dilivery, provide miscue.
Configuration order performance element 103, for according to described configuration order configuration oscillograph.
In embodiments of the present invention, configuration order performance element 103 performs the configuration order after configuration file converting unit 102 resolves, and configures oscillograph according to configuration order.
In embodiments of the present invention, configuration file converting unit 102 and configuration order performance element 103 carry out configuration file respectively and resolve and configuration order two processes of execution, two processes can be placed in a processing procedure order and call, can also call respectively during two independence, when calling respectively during two independence, the interprocedual requiring the two independence has synchronization mechanism, to guarantee that command sequence order performs.
Order is called in a procedure, i.e. resolves and performs to complete during same, first resolve, then performs the operation resolved.Can there be two class methods on this basis:
First kind method is that batch resolves, batch performs, and first resolves in configuration file all of data or first resolves a part of data, resolving the configuration order and parameter cache obtained in queue;Then from queue, take out configuration order and the parameter of parsing successively, perform corresponding operation
Equations of The Second Kind method is that single resolves, single performs, and i.e. resolves a data, performs a corresponding order
The difference of two class methods is: the method that batch resolves, batch performs carries out batch and resolves, and in operation set, is conducive to improving the efficiency resolved, but needs at least two queue to cache command and parameter respectively;The method that single resolves, single performs, it is not necessary to command queue and parameter queue, it is not necessary to other householder methods, ensures that the order of order performs.
For supporting the operating environment of multithreading, parsing and execution can be individually positioned in two single threads, it is achieved resolve and perform is logically independent and concurrent.After the synchronization resolved and perform is used for guaranteeing that previous bar order has performed, just start to perform next command, especially for resolving and performing the situation in self-contained process.For arranging class order, the configuration order after parsing is cached in command queue successively, and a rear order is bound to after previous bar order has performed to perform;For obtaining class order, if order completes the most in the process of implementation, then need not synchronize, command queue may insure that the order of order performs;If order performs in resolving, i.e. inquire about oscillographic state and return, being then necessary to ensure that state is inquired about after having performed again by command queue.Otherwise, the state that querying command returns can be incorrect.
Configuration file resolves and configuration order performs to need to synchronize in following two kinds of situations, and situation one, next command depends on the execution result of previous bar order, inquires about the execution result of previous bar order during such as a rear order;Situation two, configuration order performs and configuration file resolves and shares resource, and the caching accessed in performing such as message and order caching are same region.
Illustrated below, if file exists following order:
*RST;
:CHAN1:DISP1;
:CHAN1:SCAL20E-3;
From file read data above to caching after, resolver scans character successively.When scanning first branch (branch after * RST), the data in order caching are * RST, and this command string is submitted to configuration file converting unit 102, table look-up or dictionary to obtain the command messages of its correspondence be system reset.Configuration file enters order after being converted to configuration order and performs queue, and order execution process goes out team successively, it is ensured that the order of order performs, and a rear order one is scheduled on execution after previous bar order has performed.
After order is submitted to, continue to scan on character below, when scanning: during space after DISP, order write caching now is: CHAN1:DISP is submitted in command analysis module, table look-up or dictionary obtains that it represents is channel switching operation, with parameter, continue to scan backward, stopping after scanning branch, parameter cache now is 1.Parameter to this configuration order and configuration order obtains the most, is submitted in configuration order processing procedure.
If using scan command parameter after configuration order conversion, then detecting: just can be with submiting command to configuration file converting unit 102 behind the space after DISP, the scanning process of parameter is carried out in order performs.Require can not carry out again the parsing of next command before previous bar order has performed.
If using scan command parameter before message is changed, then detect: behind the space after DISP, do not submit to, but start parameter scanning process, in the data write parameters caching that will scan.Submit to again after order separator or order end mark being detected.The parsing of next command can be carried out before previous bar order performs.
Entering parameter scanning process after the space after SCAL being detected, order caching now is: CHAN1:SCAL.During parameter scanning, scanning resolves caching until order separator being detected successively, parameter cache now is 20E-3, order separator detected, order caching and parameter cache are submitted to initiation command in configuration file converting unit 102 resolve, configuration file converting unit 102 is incited somebody to action: CHAN1:SCAL is converted to passage gear and arranges message, and from parameter cache, read data, be converted to numerical value, it is filled in the parameter of message, command messages is delivered to configuration order performance element 103, and configuration file converting unit 102 passage gear setting command has performed.
Fig. 4 is that the file conversion unit 102 that the embodiment of the present invention provides realizes the flow chart of file conversion process, and shown in Fig. 4, file conversion unit 102 identifies ascii character, command sequence with branch (;) separate, representing the end of order with newline (0x10), between order and parameter, utilize space-separated, parameter end mark comma () represents.
S401, file conversion unit 102 scans, in analytically caching, the character reading in configuration file, and the character of data buffer area can read from file or communication interface receives, shown in Fig. 7.
S402-S404, file conversion unit 102 judge successively the character read be whether order separator (;), argumnent separator and order end mark (0x0A), if it is decided that for order separator, then carrying out step S406, the data in submiting command caching are to message conversion;If it is determined that order end mark, then carrying out step S406, the data in submiting command caching are changed to message, it is ensured that remain able to normally resolve during the last item order not order separator;If it is determined that argumnent separator, represent that order, with parameter, needs to be scanned parameter;If not order separator, order end mark or argumnent separator, then carrying out step S405, in this character writing commands being cached, it is relevant that this caching only caches the maximum data length that a data, cache size and system design.After order separator and end mark being detected, file conversion unit 102 carries out step S407, and the data in order caching are submitted to message conversion process, empties order caching after submission.
Wherein order separator refers to the end of an order;What order end mark represented is the end of order line;A line can have a plurality of order, and the last item order is likely not to have order separator.As:
:CHAN1:DISP1;:CHAN2:DISP1
:CHAN1:DISP1;:CHAN2:DISP1;
Its implementation effect is identical, if it is not determined that order end mark, then the Article 1 data with the second row are formed by a rear data of the first row: CHAN2:DISP1:CHAN1:DISP1, constitute the illegal data of parameter.
Fig. 5 is the flow chart that file conversion unit 102 realizes command messages conversion, as shown in Figure 5, file conversion unit 102 is when carrying out message conversion process, need to carry out step S501, parameter whether is had to continue to scan on data buffer storage according to order, if without parameter, then carry out step S503, directly table look-up according to command string or number etc. data structure be converted into correspondence message;If order is with parameter, in addition it is also necessary to carry out step S502, continue scan data caching, the position of mobile caching simultaneously backward.Scan data caches the data obtained, in addition it is also necessary to is converted into the form that message is specified, such as numeric type, is delivered in main message processing procedure together with command parameter.
For the order containing parameter, analytically in caching the process of sweep parameter can be placed on can also be before message converts after message converts.
Message converts rear scan command parameter such as implementation method above, and after message converts, for concrete message, the message implication corresponding to order just can determine that, the number of parameters supported such as message and type.This method needs to increase parameter scanning process in each message is changed.
Scan command parameter before message conversion, the meaning of parameters after order is inapt, but can leave in parameter cache by parameter, after such message converts, it is only necessary to read supplemental characteristic from parameter cache, it is no longer necessary to access data buffer storage.
The scan method reading supplemental characteristic and sweep parameter caching from parameter cache is identical, is all the parameter analytically extracting order in caching.If sweep parameter after message converts, then need the process that each order execution process having parameter comprises sweep parameter, analytically caching actively reads parameter.Scan command parameter before message is changed, it is only necessary to a local scan command parameter, parameter stored in parameter cache, needs when order performs to have only to read data from parameter cache, it is no longer necessary to access and resolve caching.
Fig. 6 is file conversion unit 102 flow chart of scan command parameter before message is changed, as shown in Figure 6, it is with the flow process difference shown in Fig. 4, after file conversion unit 102 detects argumnent separator in step S603, enter step S608 parameter scanning process, rather than directly carrying out step S606, submiting command is cached to message conversion.File conversion unit 102 is successively read parameter, if argumnent separator (space), then continues to read data;If parameter end mark (comma), represent that this parameter terminates, also have next parameter, need the position that moving parameter caches, or from parameter cache, read supplemental characteristic to other position;If order separator (branch) end mark (line feed), then parameter scanning terminates, otherwise, in the data write parameters caching that will scan.File conversion unit 102 continues to read data buffer storage afterwards, starts new parameter scanning once.Other steps in Fig. 6 are identical with Fig. 4 corresponding steps, therefore do not repeat them here.
Fig. 3 is the module map of a kind of oscillographic configuration device that the embodiment of the present invention provides, as it is shown on figure 3, configuration device 300 includes:
Configuration parameter reads unit 301, for reading described oscillographic configuration parameter.
In embodiments of the present invention, one or several configuration parameter corresponding of each configurable state within oscillograph, during derivation, export in configuration file after needing to format the configuration parameter of its correspondence.
Configuration parameter converting unit 302, for being converted to configuration file by described configuration parameter.
In embodiments of the present invention, first concrete configuration parameter is formatted as command word and the command parameter of correspondence by configuration parameter converting unit 302, command sequence after formatting subsequently is written in caching, accumulate after certain length, batch write configuration file, until all of setting of oscillograph has all formatted.In configuration parameter write file after can also directly formatting.For having the implementation of caching, after all configuration parameters of formatting complete, in addition it is also necessary to the data in caching all write in configuration file, to guarantee the complete of configuration file.
In embodiments of the present invention, the most function of oscillograph is required for configuring hardware parameter and could realize, it being layered with the control planning of hardware in oscillographic control software, the software on upper strata needs the hardware abstraction layer support of lower floor, and concrete layering is as follows:
The bottom: hardware layer, concrete oscilloscope hardware configuration, relevant with oscillograph model manufacturer.Such as entity component such as ADC, screens.
The second layer: hardware abstraction layer, unification for oscilloscope hardware is abstract, and oscillograph has ADC and screen, is correspondingly abstracted as data conversion and display module, data transformation components provides operation Interface Controller hardware ADC, and display module provides operation interface display waveform to screen.There are data conversion and display module for all types of oscillographs, but respective implementation method depends on hardware.By hardware abstraction, isolation hardware and the change of hardware capability.
Third layer: hardware capability layer, hardware capability abstract, relevant with concrete hardware, the most oscillographic perpendicular system, system horizontal, trigger system, they the most direct and one or more hardware abstraction component are relevant.Perpendicular system is relevant with data transformation components with front end modulate circuit, needs to regulate the gain of front end and the zero point of data conversion.
4th layer: application software layer, and hardware do not has the functional realiey of direct corresponding relation, it is combined with a series of hardware capability.Such as Waveform storage function, stop sampling system, obtain data from passage, write data in memorizer.When functional realiey, need to control sampling, control passage and file system.
Containing configuration parameter information according to this level, application software layer and hardware capability layer, so having only to derive the configuration parameter of this two-layer, hardware capability layer, in lower floor, needs first to derive and first carry out, and export (swf) command file is undertaken in two steps:
The first step: derive hardware capability layer configuration parameter.Wherein hardware capability is each independent, and tandem is not fixed.Such as can adopt with such an order: sampling system, system horizontal, perpendicular system (passage), trigger system, display system.
Second step: derive application software layer configuration parameter.Application software depends on hardware capability, only derives respective software arrangements.Software function has multiple, and order is not fixed.Such as mathematical operation, cursor, decoding, storage, measurement etc..
For hardware capability layer and the configuration parameter of application software layer, system both provides corresponding configuration order.During export (swf) command file, respective configuration parameter is formatted into the configuration order input of correspondence by respective functional module.As table 1 below such as used to arrange for perpendicular system CH1:
Configuration item Configuration Order Command parameter
Switch Open :CHAN1:DISP 1
Gear 100mv :CHAN1:SCAL 0.1
Skew 100mv :CHAN1:OFFS 0.1
Impedance 50 Europe :CHAN1:IMP 50
Coupling AC :CHAN1:COUP AC
The CH1 derived is provided that: CHAN1:DISP1;:CHAN1:SCAL0.1;:CHAN1:OFFS0.1;:CHAN1:IMP50;:CHAN1:COUPAC;
As table 2 below such as used to arrange for mathematical operation:
Configuration item Configuration Order Command parameter
Operation ADD :MATH:OPER ADD
Source A CH1 :MATH:ADD:SA CHAN1
Source B CH2 :MATH:ADD:SB CHAN2
The mathematical operation derived is set to:: MATH:OPERADD;:MATH:ADD:SACHAN1;:MATH:ADD:SBCHAN2;
Configuration file lead-out unit 303, for deriving described configuration file to external equipment.
In embodiments of the present invention, configuration file can be derived to nonvolatile storage by configuration file lead-out unit 303, it is possible to use described configuration file is derived by external communication interface.
In embodiments of the present invention, configuration device 300 can only include that configuration parameter reads unit 301, configuration parameter converting unit 302 and configuration file lead-out unit 303, only there is configuration file export function, can also include configuring configuration file import unit 101, configuration file converting unit 102 and the configuration order performance element 103 that device 100 includes simultaneously, there is importing and the export function of configuration file simultaneously.
The oscillographic configuration device that the present invention provides, use the setting that oscillograph is carried out by command mode visual representation, file can be set with off-line editing oscillograph, need not derive from oscillograph arrange, when arranging file of importing editor, order performs, it is possible to achieve automatically arranges and automatically measures.
Embodiment two
Fig. 8 is the flow chart of a kind of oscillographic collocation method that the embodiment of the present invention provides, and as shown in Figure 8, oscillographic collocation method is applied in an oscillographic configuration device, and collocation method includes:
S801, the configuration file outside importing.
In embodiments of the present invention, configuration file can have two ways to produce, and i.e. uses oscillograph derive configuration file or directly utilize the text edit software edit commands character string of PC end to produce configuration file.Profile data can be SCPI command format, and file suffixes is relevant with system, in order to imports from external memory storage or downloads.Oscillograph can be configured, read oscillographic internal state by configuration file, including measured value with arrange value etc. or oscillograph carry out system operation, such as system dormancy, file operation etc..User can use the configuration file outside nonvolatile storage importing, it is possible to use the configuration file outside external communication interface importing.
S802, is converted to configuration order by the configuration file that outside imports.
In embodiments of the present invention, the configuration file of the configuration device outside to importing carries out dissection process, is converted to the configuration order that oscillograph can perform.
S803, according to described configuration order configuration oscillograph.
In embodiments of the present invention, configuration device performs the configuration order after resolving, and configures oscillograph according to configuration order.
Fig. 9 is the flow chart of step S802 that the embodiment of the present invention provides, as it is shown in figure 9, the step that the configuration file that outside imports is converted to configuration order specifically includes:
S901, the character of the configuration file cached is read in scanning successively.
In embodiments of the present invention, configuration device reads in, according to size and the profile system of configuration file, the size cached, and determines and once reads configuration file or read configuration file in batches.If needing to read in batches configuration file, then require that profile system supports random read operation, read a blocks of data to caching from the deviation post specified, then cumulative offset position, it is simple to next time read next blocks of data from this position every time.
S902, whether the character that detection scans is end mark.
S903, the character writing commands caching that will scan.
In embodiments of the present invention, if configuration device is not detected by end mark, the character writing commands caching that the most persistently will scan.
S904, resolves the character in described order caching.
In embodiments of the present invention, if configuration device detects end mark, then resolve the character in described order caching.
In embodiments of the present invention, order caching incoming during order analysis is single command, configuration device carries out commands match lookup in order conversion, if matched and searched success, then the character in order caching is converted to order and delivers by configuration device, and configuration device processes the configuration order after changing during coming from command analysis successively, if order is not mated, the most do not carry out message dilivery, provide miscue.
Figure 10 is the flow chart of a kind of oscillographic collocation method that the embodiment of the present invention provides, and as shown in Figure 10, is with the collocation method difference shown in Fig. 8, and the collocation method shown in Figure 10 includes:
S1001, the oscillographic configuration parameter described in reading.
In embodiments of the present invention, one or several configuration parameter corresponding of each configurable state within oscillograph, during derivation, export in configuration file after needing to format the configuration parameter of its correspondence.
S1002, is converted to configuration file by described configuration parameter.
In embodiments of the present invention, first concrete configuration parameter is formatted as command word and the command parameter of correspondence by configuration device, and the command sequence after formatting subsequently is written in caching, accumulates after certain length, batch write configuration file, has all formatted until arranging all of setting.In configuration parameter write file after can also directly formatting.For having the implementation of caching, after all configuration parameters of formatting complete, in addition it is also necessary to the data in caching all write in configuration file, to guarantee the complete of configuration file.
S1003, derives described configuration file to external equipment.
In embodiments of the present invention, configuration file can be derived to nonvolatile storage by configuration device, it is possible to use described configuration file is derived by external communication interface.
The oscillographic collocation method that the present invention provides, the setting using command mode visual representation that oscillograph is carried out, oscillograph can be set with off-line, need not derive from oscillograph arrange, when arranging file of importing editor, order performs, it is possible to achieve automatically arranges and automatically measures.
Embodiment three
The embodiment of the present invention provides a kind of oscillograph, wherein comprises the oscillograph configuration device described in embodiment one, specifically refers to embodiment one, do not repeat them here.
The oscillograph that the present invention provides, the setting using command mode visual representation that oscillograph is carried out, oscillograph can be set with off-line, need not derive from oscillograph arrange, when arranging file of importing editor, order performs, it is possible to achieve automatically arranges and automatically measures.
Above-described detailed description of the invention; the purpose of the present invention, technical scheme and beneficial effect are further described; it is it should be understood that; the foregoing is only the detailed description of the invention of the present invention; the protection domain being not intended to limit the present invention; all within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the present invention.

Claims (6)

1. an oscillographic configuration device, described configuration device is arranged in oscillograph, it is characterised in that described configuration device includes:
Configuration file import unit, for importing the configuration file of outside;
Configuration file converting unit, for being converted to configuration order by the configuration file that outside imports;
Configuration order performance element, for according to described configuration order configuration oscillograph;
Described configuration device also includes:
Configuration parameter reads unit, for reading described oscillographic configuration parameter;
Configuration parameter converting unit, for being converted to configuration file by described configuration parameter;
Configuration file lead-out unit, for deriving described configuration file to external equipment.
Configuration device the most according to claim 1, it is characterised in that described configuration file converting unit includes:
Character scan module, reads in the character of the configuration file of caching for scanning successively;
End mark detection module, whether the character scanned for detection is end mark;
Character writing module, for the character writing commands caching that will scan when being not detected by end mark;
Character resolution module, for resolving the character in described order caching when end mark being detected, obtains configuration order.
3. an oscillographic collocation method, it is characterised in that described collocation method includes:
Configuration file outside Dao Ruing;
The configuration file that outside imports is converted to configuration order;
According to described configuration order configuration oscillograph;
Described collocation method also includes:
Oscillographic configuration parameter described in reading;
Described configuration parameter is converted to configuration file;
Described configuration file is derived to external equipment.
Collocation method the most according to claim 3, it is characterised in that the described configuration file by outside importing is converted to configuration order and includes:
The character of the configuration file cached is read in scanning successively;
Whether the character that detection scans is end mark;
The character writing commands caching that will scan when being not detected by end mark;
Resolve the character in described order caching when end mark being detected, obtain configuration order.
5. an oscillograph, described oscillograph includes a configuration device, it is characterised in that described configuration device includes: configuration file import unit, for importing the configuration file of outside;
Configuration file converting unit, for being converted to configuration order by the configuration file that outside imports;
Configuration order performance element, for according to described configuration order configuration oscillograph;
Described configuration device also includes:
Configuration parameter reads unit, for reading described oscillographic configuration parameter;
Configuration parameter converting unit, for being converted to configuration file by described configuration parameter;
Configuration file lead-out unit, for deriving described configuration file to external equipment.
Oscillograph the most according to claim 5, it is characterised in that described configuration file converting unit includes:
Character scan module, reads in the character of the configuration file of caching for scanning successively;
End mark detection module, whether the character scanned for detection is end mark;
Character writing module, for the character writing commands caching that will scan when being not detected by end mark;
Character resolution module, for resolving the character in described order caching when end mark being detected, obtains configuration order.
CN201110435602.6A 2011-12-22 2011-12-22 A kind of oscillograph and configuration device thereof and collocation method Active CN103176017B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110435602.6A CN103176017B (en) 2011-12-22 2011-12-22 A kind of oscillograph and configuration device thereof and collocation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110435602.6A CN103176017B (en) 2011-12-22 2011-12-22 A kind of oscillograph and configuration device thereof and collocation method

Publications (2)

Publication Number Publication Date
CN103176017A CN103176017A (en) 2013-06-26
CN103176017B true CN103176017B (en) 2016-08-03

Family

ID=48636010

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110435602.6A Active CN103176017B (en) 2011-12-22 2011-12-22 A kind of oscillograph and configuration device thereof and collocation method

Country Status (1)

Country Link
CN (1) CN103176017B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104092630B (en) * 2014-07-18 2017-04-12 国家电网公司 Configuration file for automatic operation of switchboards and operation method thereof
CN107907725A (en) * 2017-11-24 2018-04-13 郑州云海信息技术有限公司 A kind of method of automatic test clock signal
CN111258828A (en) * 2020-01-15 2020-06-09 深圳宝龙达信创科技股份有限公司 I2C bus test method, test device and computer readable storage medium
CN112465168B (en) * 2020-11-26 2023-04-07 中国南方电网有限责任公司 Automatic configuration method of graph-model integrated intelligent wave recorder based on configuration

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905589A (en) * 2006-08-01 2007-01-31 武汉龙安集团有限责任公司 Automatic tester of adapter based on virtual apparatus
CN101415095A (en) * 2007-10-18 2009-04-22 索尼株式会社 File transfer method, file transfer apparatus, and file transfer program
CN101609106A (en) * 2009-05-27 2009-12-23 东南大学 The automatic method to set up of digital oscilloscope
CN101706519A (en) * 2009-11-13 2010-05-12 电子科技大学 Gain correcting device of digital storage oscilloscope
CN101839930A (en) * 2009-03-19 2010-09-22 北京普源精电科技有限公司 Measuring device and system with configuration file management function, and configuration file copying method
CN102004766A (en) * 2010-11-09 2011-04-06 北京神州泰岳软件股份有限公司 Query method and system for configurable information based on information system
CN102087606A (en) * 2011-02-16 2011-06-08 电子科技大学 FPGA configuration file update device
CN102096691A (en) * 2009-12-15 2011-06-15 Tdk株式会社 Multi-media server
CN102238259A (en) * 2010-04-29 2011-11-09 比亚迪股份有限公司 Mobile phone contact list file setting method, generation method and importing method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060060634A (en) * 2006-04-13 2006-06-05 주식회사 시드컴 Digital multi-meter

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1905589A (en) * 2006-08-01 2007-01-31 武汉龙安集团有限责任公司 Automatic tester of adapter based on virtual apparatus
CN101415095A (en) * 2007-10-18 2009-04-22 索尼株式会社 File transfer method, file transfer apparatus, and file transfer program
CN101839930A (en) * 2009-03-19 2010-09-22 北京普源精电科技有限公司 Measuring device and system with configuration file management function, and configuration file copying method
CN101609106A (en) * 2009-05-27 2009-12-23 东南大学 The automatic method to set up of digital oscilloscope
CN101706519A (en) * 2009-11-13 2010-05-12 电子科技大学 Gain correcting device of digital storage oscilloscope
CN102096691A (en) * 2009-12-15 2011-06-15 Tdk株式会社 Multi-media server
CN102238259A (en) * 2010-04-29 2011-11-09 比亚迪股份有限公司 Mobile phone contact list file setting method, generation method and importing method
CN102004766A (en) * 2010-11-09 2011-04-06 北京神州泰岳软件股份有限公司 Query method and system for configurable information based on information system
CN102087606A (en) * 2011-02-16 2011-06-08 电子科技大学 FPGA configuration file update device

Also Published As

Publication number Publication date
CN103176017A (en) 2013-06-26

Similar Documents

Publication Publication Date Title
CN101788579B (en) Oscilloscope, signal wave shape collection and display method and system thereof
CN103176017B (en) A kind of oscillograph and configuration device thereof and collocation method
CN109960642B (en) Automatic test method and device
CN105680960B (en) A kind of Bluetooth card reader automated testing method, test host computer and test system
CN104679658A (en) Test method and test system for WEB pages
CN102467442B (en) Software testing method, system and equipment
CN106681624A (en) Device and method for annotation display on basis of touch display screen
CN103376380A (en) Test system and method thereof
CN101272422A (en) Mobile phone automatized test method
CN102904996A (en) Method, device and system for testing performance of mobile phone touch screen
CN103425573A (en) Code testing information collecting method and system
CN103869130A (en) Scrolling measurement display ticker for test and measurement instruments
CN105808417A (en) Automated testing method and proxy server
CN106557308A (en) A kind of software continuous integrated approach and device
CN104977525A (en) Method for manually editing flying probe test file
CN113945743B (en) Multi-channel test automatic management system and method for pulse current injection experiment
EP0163267A2 (en) Logic analyzer
CN114281624A (en) Method, system, device and equipment for testing I2C signal integrity
CN102254569B (en) Quad-data rate (QDR) controller and realization method thereof
CN103931143A (en) Testing device and testing method with zoom display of test messages
CN106940648A (en) A kind of method, equipment and the test system of automatic loading test item
CN105698865A (en) Method and system for acquiring cigarette production quality control data
CN105679217B (en) A kind of AUX signal test systems and method
CN112485750A (en) Communication module interface testing method and system for intelligent electric meter
US9541579B2 (en) Methods and systems for generating displays of waveforms

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant