CN103176017A - Oscilloscope, configuring device and configuring method thereof - Google Patents
Oscilloscope, configuring device and configuring method thereof Download PDFInfo
- Publication number
- CN103176017A CN103176017A CN2011104356026A CN201110435602A CN103176017A CN 103176017 A CN103176017 A CN 103176017A CN 2011104356026 A CN2011104356026 A CN 2011104356026A CN 201110435602 A CN201110435602 A CN 201110435602A CN 103176017 A CN103176017 A CN 103176017A
- Authority
- CN
- China
- Prior art keywords
- configuration
- configuration file
- order
- character
- buffer memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention relates to an oscilloscope, a configuring device and a configuring method thereof. The configuring device comprises a configuration file import unit used for importing an external configuration file; a configuration file converting unit used for converting the externally imported configuration file into a configuration command; a configuration command executing unit used for configuring the oscilloscope based on the configuration command. According to the oscilloscope, the configuring device and the configuring unit thereof provided by the invention, the setting for the oscilloscope is shown intuitively by using the way of the configuration file; the oscilloscope can be set in an offline manner without exporting from the oscilloscope; edited configuration files when being imported are carried out sequentially; and the automatic setting and automatic measurement can be realized.
Description
Technical field
The invention relates to the oscillograph technical field, is about a kind of oscillograph and inking device and collocation method specifically.
Background technology
Utilizing during oscillograph carries out the process of work, according to different applied environment needs, oscillograph is carried out different settings.Such as in order to observe a narrow pulse signal, oscillographic triggering system need to be set, perpendicular system and system horizontal, perpendicular system comprise the gear of passage, the probe ratio, impedance, coupling, anti-phase, limit bandwidth etc.; System horizontal comprises horizontal timebase, horizontal shift, delaying sweep etc.For width that can read pulse also needs to open the pulse width measure item.Under more complicated test environment, oscillographic setting is just more complicated.Front to oscillographic a series of settings in order to simplify test, instrument generally can provide memory function is set.Like this, the user can first once arrange oscillograph, then current setting is stored on nonvolatile memory with the form that file is set, and when needed, then reads this from storer file is set, and recovers to arrange.
That is to say, in prior art, if need to obtain the oscillographic file that arranges, must oscillograph be set first, derive Set For Current after setting and obtain arranging file.If oscillographic action button breaks down or other reason causes and can't effectively arrange oscillograph, also just can't obtain arranging file.Accordingly, if want to check certain so that the design parameter of file to be set, must read on oscillograph also that file is set is just passable.
In addition, in prior art, the oscillographic file that arranges is binary mode, and (as Windows) checks under other environment, can't learn its implication, therefore can't edit intuitively and check under other environment.
Summary of the invention
In prior art, the oscillographic file that arranges must arrange and check by oscillograph in order to overcome, and the problem that can't edit intuitively and check under other environment, the invention provides a kind of oscillograph and inking device thereof and collocation method.
The invention provides a kind of oscillographic inking device, described inking device is arranged in oscillograph, and described inking device comprises:
Configuration file imports the unit, is used for importing outside configuration file;
The configuration file converting unit is used for the configuration file that the outside imports is converted to configuration order;
The configuration order performance element is used for according to described configuration order configuration oscillograph.
The present invention also provides a kind of oscillographic collocation method, and described collocation method comprises:
Import outside configuration file;
The configuration file that the outside is imported is converted to configuration order;
According to described configuration order configuration oscillograph.
The present invention also provides a kind of oscillograph, and described oscillograph comprises an inking device, and described inking device comprises:
Configuration file imports the unit, is used for importing outside configuration file;
The configuration file converting unit is used for the configuration file that the outside imports is converted to configuration order;
The configuration order performance element is used for according to described configuration order configuration oscillograph.
Oscillograph provided by the invention and inking device thereof and collocation method, the setting of using the visual representation of character command mode that oscillograph is carried out, can file be set the off-line editing oscillograph, do not need to derive from oscillograph and arrange, import editor file is set the time, order is carried out, and can realize Lookup protocol and automatically measure.
Description of drawings
Accompanying drawing described herein is used to provide a further understanding of the present invention, consists of the application's a part, does not consist of limitation of the invention.In the accompanying drawings:
Fig. 1 is the module map of a kind of oscillographic inking device of providing of the embodiment of the present invention.
Fig. 2 is the module map of the configuration file converting unit 102 that provides of the embodiment of the present invention.
Fig. 3 is the module map of a kind of oscillographic inking device of providing of the embodiment of the present invention.
Fig. 4 is the process flow diagram that a file converting unit 102 that the embodiment of the present invention provides realizes the file conversion process.
Fig. 5 is the process flow diagram that file converting unit 102 realizes the command messages conversion.
Fig. 6 is the process flow diagram of file converting unit 102 scan command parameter before message conversion.
A kind of buffer memory johning knot composition that Fig. 7 provides for the embodiment of the present invention.
Fig. 8 is the process flow diagram of a kind of oscillographic collocation method of providing of the embodiment of the present invention.
Fig. 9 is the process flow diagram of the step S802 that provides of the embodiment of the present invention.
Figure 10 is the process flow diagram of a kind of oscillographic collocation method of providing of the embodiment of the present invention.
Embodiment
For making the purpose, 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.At this, exemplary embodiment of the present invention and explanation thereof are used for explanation the present invention, but not as a limitation of the invention.
The embodiment of the present invention provides a kind of oscillograph and inking device and collocation method, and the present invention is described in detail below in conjunction with accompanying drawing.
Embodiment one
Fig. 1 is the module map of a kind of oscillographic inking device of providing of the embodiment of the present invention, as shown in Figure 1, inking device 100 is arranged in oscillograph 10, and inking device 100 comprises that configuration file imports unit 101, configuration file converting unit 102 and configuration order performance element 103, wherein:
Configuration file imports unit 101, is used for importing outside configuration file.
Configuration file converting unit 102 is used for the configuration file that the outside imports is converted to configuration order.The process that configuration file is converted to configuration order is also resolving, is the discernible configuration order of oscillograph internal processes with the command analysis of character style.
In embodiments of the present invention, configuration file can have dual mode to produce, and namely derives configuration file with oscillograph or directly utilizes the text edit software edit commands character string of PC end to produce configuration file.Profile data can be the SCPI command format, and file suffixes and System Dependent are so that import or download from external memory storage.Configuration file can arrange oscillograph, read oscillographic internal state, and comprise measured value and settings etc. or oscillograph is carried out system's operation, as system hibernates, file operation etc.The user can use nonvolatile memory to import outside configuration file, also can use external communication interface to import outside configuration file.
A kind of buffer memory johning knot composition that Fig. 7 provides for the embodiment of the present invention, as shown in Figure 7, the configuration file of the outside that imports by external memory storage is directed into file and reads in buffer memory, the configuration file that imports by external communication interface is directed in the reception buffer memory, resolve buffer memory and read buffer memory and receive buffer memory reception profile data from file, and be stored to respectively in order buffer memory and parameter buffer memory.
When configuration file imports unit 101 and reads configuration file from external memory storage, system identification is after the external memory storage access, in oscillograph, built-in file system reads the data of this storer, the data that read are buffered, then the data of 102 pairs of buffer memorys of configuration file converting unit are carried out command analysis, complete the command execution process by configuration order performance element 103 afterwards.If outside configuration file is larger, internal file reads buffer memory needs file reading in batches, resolves in batches.Configuration file finishes with newline (0x0A), can read successively take newline as mark every data line, with one or the multirow data as a complete parsing lot data.Need to prove, when reading configuration file from external memory storage, system has the initiative and obtains data mode, needs the user to operate to start the reading out data process.Resolving starts read in file from external memory storage after automatically, does not need the user manually to intervene.
When configuration file imported unit 101 from external communication interface reception configuration file, the profile data that receives directly imported configuration file converting unit 102 into, and then startup command resolving, can realize that order reception and execution concurrence carry out.Receive buffer memory the data that receive are carried out buffer memory, then will receive data transmission in buffer memory to the parsing buffer memory, then begin the receiving course of next group data.Configuration file converting unit 102 begins from resolve buffer memory reading out data resolve command successively when to resolve buffer memory be empty, the parsing buffer memory is based on the mode of formation, and the data that receiving course receives sequentially enter the parsing buffer queue.Need to prove, after communication interface receives data, can be automatically and processor complete alternately, the data that receive are write in the parsing buffer memory, this process does not need the user to operate, but need the user operate miscellaneous equipment by communication interface to equipment sending data.
Use the communication interface translation profile, after receiving buffer memory and receiving configuration file, the configuration file converting unit 102 startup command process of resolving with by after the external memory storage importing configuration files, the configuration file converting unit 102 startup command process of resolving is identical.Receiving buffer memory and file, to read buffer memory be different storage spaces, receive buffer memory and be used for from communication interface receive data passively, and file to read buffer memory be initiatively reading out data from external memory storage of system.They are all blocks of data spaces of system in itself, storage be configuration file, identical to the processing procedure of two block spaces.All to start resolving, the resolving resolve command, order enters the command execution formation successively, and the command execution process goes out team successively, carries out every order.
In embodiments of the present invention, the configuration file that 102 pairs of configuration files of configuration file converting unit import the outside of unit 101 importings carries out dissection process, is converted to the configuration order that oscillograph can be carried out.
Fig. 2 is the module map of the configuration file converting unit 102 that provides of the embodiment of the present invention, and as shown in Figure 2, configuration file converting unit 102 comprises:
In embodiments of the present invention, the size that configuration file converting unit 102 is read in buffer memory according to size and the profile system of configuration file is determined once to read configuration file or reads in batches configuration file.If need to read in batches configuration file, require profile system to support random read operation, the deviation post from appointment reads a blocks of data to buffer memory at every turn, then adds up deviation post, is convenient to read next blocks of data from this position next time.
Whether end mark detection module 202 is end mark for detection of the character that scans.
In embodiments of the present invention, if end mark detection module 202 does not detect end mark, character writing module 203 continues the character that scans is write the order buffer memory.
In embodiments of the present invention, if end mark detection module 202 has detected end mark, character parsing module 204 is resolved the character in described order buffer memorys.
In embodiments of the present invention, the order buffer memory that imports into from the order analytic process is single command, character parsing module 204 carries out commands match and searches in the order conversion, if matched and searched success, will to order the character conversion in buffer memory be configuration order to character parsing module 204 and be delivered to configuration order performance element 103, processed successively by configuration order performance element 103 and come from the configuration order after 204 conversions of character parsing module in the command analysis process, if order is not mated, do not carry out message dilivery, provide miscue.
Configuration order performance element 103 is used for according to described configuration order configuration oscillograph.
In embodiments of the present invention, configuration order performance element 103 is carried out the configuration order after configuration file converting unit 102 is resolved, according to configuration order configuration oscillograph.
In embodiments of the present invention, configuration file converting unit 102 and configuration order performance element 103 are configured respectively document analysis and configuration order is carried out two processes, two processes can be placed on sequence call in a processing procedure, also can independently call respectively in process at two, when independently calling respectively in process for two, require these two independently interprocedual synchronization mechanism is arranged, sequentially carry out to guarantee command sequence.
Sequence call in a process is namely resolved and is carried out in same process and complete, and first resolves, then carries out the operation of resolving.On this basis two class methods can be arranged:
First kind method is to resolve in batches, carry out in batches, namely at first resolves data all in configuration file or first resolves a part of data, resolves the configuration order and the parameter that obtain and is buffered in formation; Then take out successively configuration order and the parameter of resolving from formation, carry out operation accordingly
The Equations of The Second Kind method is that single is resolved, single is carried out, and namely resolves data, carries out the order of a correspondence
The difference of two class methods is: the method for resolving in batches, carrying out is in batches carried out the batch parsing, in operation set, is conducive to improve the efficient of parsing, but needs at least two formations to come buffer memory order and parameter respectively; The method that single is resolved, single is carried out does not need command queue and parameter formation, does not need other householder methods, just can guarantee that the order of order is carried out.
For the operating environment of supporting multithreading, can be placed on respectively in two independent threads resolving and carrying out, realize that the logic of resolving and carrying out is independent and concurrent.The synchronous of parsing and execution just begins to carry out next command for after guaranteeing that last command execution completed, particularly for resolving and the situation of execution in self-contained process.For the class order is set, the configuration order after parsing is cached in command queue successively, and a rear order is bound to could carry out after last command execution completed; For obtaining the class order, if order is also completed in the process of implementation, do not need synchronously, command queue can guarantee the order execution of order; If order is carried out in resolving, namely inquire about oscillographic state and return, need to guarantee command queue complete after query State again.Otherwise the state that querying command returns can be incorrect.
Configuration file is resolved and the configuration order execution needs synchronously in following two kinds of situations, situation one, and next command depends on the execution result of last order, the execution result of last order of inquiry during as a rear order; Situation two, configuration order are carried out and configuration file is resolved shared resource, and in carrying out as message, the buffer memory of access and order buffer memory are the same zone.
Below illustrate, if there is following order in file:
*RST;
:CHAN1:DISP1;
:CHAN1:SCAL20E-3;
Read above data from file after buffer memory, resolver scans character successively.When scanning first branch (branch after * RST), the data of order in buffer memory are * RST, and this command string is submitted to configuration file converting unit 102, table look-up or dictionary to obtain its corresponding command messages be system reset.Configuration file enters the command execution formation after being converted to configuration order, and the command execution process goes out team successively, guarantees that the order of order is carried out, and a rear order one fixes on last the complete rear execution of command execution.
After order is submitted to, continue the character of scanning back, when scanning: during space after DISP, the order of this moment writes buffer memory and is: CHAN1:DISP is submitted in the command analysis module, table look-up or dictionary obtains its expression is the channel switch operation, with parameter, continue scanning backward, stop after scanning branch, the parameter buffer memory of this moment is 1.Parameter to this configuration order and configuration order all obtains, is submitted in the configuration order processing procedure.
If adopt scan command parameter after the configuration order conversion, detect: just can submiting command behind the space after DISP to configuration file converting unit 102, the scanning process of parameter is carried out in command execution.Requirement can not be carried out the parsing of next command again before last command execution completed.
If adopt scan command parameter before message conversion, detect: behind the space after DISP, do not submit to, but beginning parameter scanning process, in the data write parameters buffer memory that scans.Submit to again after order separator or order end mark being detected.The parsing of next command can be carried out before last command execution.
Enter the parameter scanning process after the space after SCAL being detected, the order buffer memory of this moment is: CHAN1:SCAL.in the parameter scanning process, scanning is resolved buffer memory until the order separator detected successively, the parameter buffer memory of this moment is 20E-3, the order separator detected, to order buffer memory and parameter buffer memory to be submitted to initiation command parsing in configuration file converting unit 102, configuration file converting unit 102 is incited somebody to action: CHAN1:SCAL is converted to the passage gear message is set, and from the parameter buffer memory reading out data, be converted to numerical value, be filled in the parameter of message, command messages is delivered to configuration order performance element 103, configuration file converting unit 102 passage gears arrange command execution and complete.
Fig. 4 is the process flow diagram that a file converting unit 102 that the embodiment of the present invention provides realizes the file conversion process, in conjunction with shown in Figure 4, file converting unit 102 identification ascii characters, command sequence with branch (; ) separate, the end with newline (0x10) expression order utilizes space-separated between order and parameter, comma () expression of parameter end mark.
S401, a character of configuration file is read in file converting unit 102 scanning from resolve buffer memory, and the character of data buffer area can read or the communication interface reception from file, in conjunction with shown in Figure 7.
S402-S404, file converting unit 102 judge successively the character that reads be whether the order separator (; ), argumnent separator and order end mark (0x0A), if be judged to be the order separator, carry out step S406, the data in the submiting command buffer memory are to message conversion; If be judged to be the order end mark, carry out step S406, the data in the submiting command buffer memory are guaranteed still can normally resolve when the last item order is not ordered separator to message conversion; If be judged to be argumnent separator, the expression order need to scan parameter with parameter; If not the order separator, order end mark or argumnent separator carry out step S405, and this character is write in the order buffer memory, and this buffer memory is data of buffer memory only, and the maximum data length of cache size and system is relevant.After order separator and end mark being detected, file converting unit 102 is carried out step S407, the data in the order buffer memory is submitted to message conversion processes, and empties the order buffer memory after submission.
Wherein order separator to refer to the end of an order; What the order end mark represented is the end of order line; Can there be many orders in delegation, and separator may not be ordered in the last item order.As:
:CHAN1:DISP1;:CHAN2:DISP1
:CHAN1:DISP1;:CHAN2:DISP1;
Its implementation effect is identical, if do not judge the order end mark, rear data of the first row will form with article one data of the second row: CHAN2:DISP1:CHAN1:DISP1 consists of the illegal data of parameter.
Fig. 5 is the process flow diagram that file converting unit 102 realizes the command messages conversion, as shown in Figure 5, file converting unit 102 is when carrying out the message conversion processing, need to carry out step S501, whether there is parameter to continue the scan-data buffer memory according to order, if without parameter, carry out step S503, directly table look-up according to command string or the data structure such as number converts corresponding message to; If order also needs to carry out step S502 with parameter, continue scan-data buffer memory backward, simultaneously the position of mobile caching.The data that the scan-data buffer memory obtains also need to convert to the form of message appointment, and as numeric type, and command parameter is delivered in main message processing procedure together.
For the order that contains parameter, from resolve buffer memory the process of sweep parameter can be placed on message conversion also can be before message conversion be completed after completing.
The implementation method of scan command parameter such as front after message conversion is completed after message conversion is completed, for concrete message, orders corresponding message implication to determine, as number of parameters and the type of message support.This method need to increase the parameter scanning process in each message conversion.
Scan command parameter before message conversion, the meaning of parameters after order is inapt, but parameter can be left in the parameter buffer memory, after message conversion is completed like this, only need to read supplemental characteristic from the parameter buffer memory, no longer needs the visit data buffer memory.
The scan method that reads supplemental characteristic and sweep parameter buffer memory from the parameter buffer memory is identical, is all to extract the parameter of order from resolve buffer memory.If sweep parameter after message conversion is completed, the command execution process that needs each that parameter is arranged comprises the process of sweep parameter, initiatively reads parameter from resolve buffer memory.Scan command parameter before message conversion only need to be a local scan command parameter, with Parameter storage in the parameter buffer memory, only need during command execution need to be from the parameter buffer memory reading out data, no longer need access to resolve buffer memory.
Fig. 6 is the process flow diagram of file converting unit 102 scan command parameter before message conversion, as shown in Figure 6, be with flow process difference shown in Figure 4, file converting unit 102 detects argumnent separator in step S603 after, enter step S608 parameter scanning process, rather than directly carrying out step S606, submiting command is cached to message conversion.File converting unit 102 reads parameter successively, if argumnent separator (space) continues reading out data; If parameter end mark (comma) represents that this parameter finishes, also have next parameter, need the position of moving parameter buffer memory, or read supplemental characteristic to other position from the parameter buffer memory; If order separator (branch) end mark (line feed), parameter scanning finishes, otherwise, in the data write parameters buffer memory that scans.File converting unit 102 continues the reading out data buffer memory afterwards, the new parameter scanning once of beginning.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 inking device of providing of the embodiment of the present invention, and as shown in Figure 3, inking device 300 comprises:
Configuration parameter reading unit 301 is used for reading described oscillographic configuration parameter.
In embodiments of the present invention, corresponding one or several configuration parameter of the configurable state of each of oscillograph inside during derivation, outputs in configuration file after configuration parameter format that need to it is corresponding.
Configuration parameter converting unit 302 is used for described configuration parameter is converted to configuration file.
In embodiments of the present invention, at first configuration parameter converting unit 302 is formatted as concrete configuration parameter corresponding command word and command parameter, command sequence after formaing subsequently is written in buffer memory, after being accumulated to certain-length, write configuration file in batches, complete until all settings of oscillograph are all formatd.Also can be directly with in the configuration parameter writing in files after format.For the implementation with buffer memory, after all configuration parameters of format are completed, also need the data in buffer memory are all write in configuration file, to guarantee the complete of configuration file.
In embodiments of the present invention, the most function of oscillograph all needs the configure hardware parameter to realize, in oscillographic control software, the control relation of itself and hardware is carried out layering, 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, manufacturer is relevant with the oscillograph model.As ADC, the entity component such as screen.
The second layer: hardware abstraction layer, unification for oscilloscope hardware is abstract, and oscillograph has ADC and screen, correspondingly abstract data-switching and the display module of becoming, the data-switching assembly provides operation-interface control hardware ADC, and display module provides the operation-interface display waveform to screen.For all types of oscillographs, data-switching and display module are arranged, but implementation method separately depends on hardware.By hardware abstraction, the variation of isolation hardware and hardware capability.
The 3rd layer: the hardware capability layer, hardware capability abstract, relevant with concrete hardware, such as oscillographic perpendicular system, system horizontal, triggering system, they are all direct relevant with one or more hardware abstraction component.Perpendicular system is relevant with the data-switching assembly with the front end modulate circuit, needs to regulate the gain of front end and the zero point of data-switching.
The 4th layer: the application software layer, and hardware do not have the function of direct corresponding relation to realize, it has made up a series of hardware capability.As the waveform memory function, stop sampling system, obtain data from passage, write data in storer.When function realizes, need to control sampling, control channel and file system.
According to this level, application software layer and hardware capability layer contain configuration parameter information, so only need to derive this two-layer configuration parameter, the hardware capability layer is in lower floor, and needing first derives and first carry out, and the export (swf) command file carries out in two steps:
The first step: derive hardware capability layer configuration parameter.Wherein hardware capability is independent separately, and the front and back order is unfixing.For example can adopt with such an order: sampling system, system horizontal, perpendicular system (passage), triggering system, display system.
Second step: derive application software layer configuration parameter.Application software depends on hardware capability, only derives software configuration separately.Software function has multiple, and order is unfixing.As mathematical operation, cursor, decoding, storage is measured etc.
For the configuration parameter of hardware capability layer and application software layer, system all provides corresponding configuration order.During the export (swf) command file, functional module is formatted into corresponding configuration order input with configuration parameter separately separately.Arrange as adopting for perpendicular system CH1 as following table 1:
Configuration item | Configuration | Order | Command parameter |
Switch | Open | :CHAN1: |
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 that derives arranges as follows:: CHAN1:DISP1; : CHAN1:SCAL0.1; : CHAN1:OFFS0.1; : CHAN1:IMP50; : CHAN1:COUP AC;
Arrange as adopting for mathematical operation as following table 2:
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 of deriving is set to:: MATH:OPER ADD; : MATH:ADD:SA CHAN1; : MATH:ADD:SB CHAN2;
Configuration file lead-out unit 303 is used for described configuration file is exported to external unit.
In embodiments of the present invention, configuration file lead-out unit 303 can export to nonvolatile memory with configuration file, also can use external communication interface that described configuration file is derived.
In embodiments of the present invention, inking device 300 can only comprise configuration parameter reading unit 301, configuration parameter converting unit 302 and configuration file lead-out unit 303, only has the configuration file export function, can comprise simultaneously that also the configuration file that inking device 100 comprises imports unit 101, configuration file converting unit 102 and configuration order performance element 103, has importing and the export function of configuration file simultaneously.
Oscillographic inking device provided by the invention, the setting that the visual representation of utility command mode is carried out oscillograph, can file be set the off-line editing oscillograph, do not need to derive from oscillograph and arrange, import editor file is set the time, order is carried out, and can realize Lookup protocol and automatically measure.
Embodiment two
Fig. 8 is the process flow diagram of a kind of oscillographic collocation method of providing of the embodiment of the present invention, and as shown in Figure 8, oscillographic collocation method is applied in an oscillographic inking device, and collocation method comprises:
S801 imports outside configuration file.
In embodiments of the present invention, configuration file can have dual mode to produce, and namely derives configuration file with oscillograph or directly utilizes the text edit software edit commands character string of PC end to produce configuration file.Profile data can be the SCPI command format, and file suffixes and System Dependent are so that import or download from external memory storage.Configuration file can arrange oscillograph, read oscillographic internal state, and comprise measured value and settings etc. or oscillograph is carried out system's operation, as system hibernates, file operation etc.The user can use nonvolatile memory to import outside configuration file, also can use external communication interface to import outside configuration file.
S802, the configuration file that the outside is imported is converted to configuration order.
In embodiments of the present invention, inking device carries out dissection process to the configuration file of the outside of importing, is converted to the configuration order that oscillograph can be carried out.
S803 is according to described configuration order configuration oscillograph.
In embodiments of the present invention, inking device is carried out the configuration order after resolving, according to configuration order configuration oscillograph.
Fig. 9 is the process flow diagram of the step S802 that provides of the embodiment of the present invention, and as shown in Figure 9, the step that the configuration file that the outside is imported is converted to configuration order specifically comprises:
S901, the character of the configuration file of buffer memory is read in scanning successively.
In embodiments of the present invention, the size that inking device reads in buffer memory according to size and the profile system of configuration file is determined once to read configuration file or reads in batches configuration file.If need to read in batches configuration file, require profile system to support random read operation, the deviation post from appointment reads a blocks of data to buffer memory at every turn, then adds up deviation post, is convenient to read next blocks of data from this position next time.
S902 detects whether the character that scans is end mark.
S903 writes the order buffer memory with the character that scans.
In embodiments of the present invention, if inking device does not detect end mark, continue the character that scans is write the order buffer memory.
S904 resolves the character in described order buffer memory.
In embodiments of the present invention, if inking device has detected end mark, resolve the character in described order buffer memory.
In embodiments of the present invention, the order buffer memory that imports into from the order analytic process is single command, inking device carries out commands match and searches in the order conversion, if matched and searched success, inking device will order character conversion in buffer memory for to order and to deliver, and inking device is processed successively and come from the configuration order after conversion in the command analysis process, if order is not mated, do not carry out message dilivery, provide miscue.
Figure 10 is the process flow diagram of a kind of oscillographic collocation method of providing of the embodiment of the present invention, as shown in figure 10, is with collocation method difference shown in Figure 8, and collocation method shown in Figure 10 comprises:
S1001 reads described oscillographic configuration parameter.
In embodiments of the present invention, corresponding one or several configuration parameter of the configurable state of each of oscillograph inside during derivation, outputs in configuration file after configuration parameter format that need to it is corresponding.
S1002 is converted to configuration file with described configuration parameter.
In embodiments of the present invention, at first inking device is formatted as concrete configuration parameter corresponding command word and command parameter, and the command sequence after formaing subsequently is written in buffer memory, after being accumulated to certain-length, in batches write configuration file, all format and complete until all settings are set.Also can be directly with in the configuration parameter writing in files after format.For the implementation with buffer memory, after all configuration parameters of format are completed, also need the data in buffer memory are all write in configuration file, to guarantee the complete of configuration file.
S1003 exports to external unit with described configuration file.
In embodiments of the present invention, inking device can export to nonvolatile memory with configuration file, also can use external communication interface that described configuration file is derived.
Oscillographic collocation method provided by the invention, the setting that the visual representation of utility command mode is carried out oscillograph can arrange oscillograph by off-line, do not need to derive from oscillograph and arrange, import editor file is set the time, order is carried out, and can realize Lookup protocol and automatically measure.
Embodiment three
The embodiment of the present invention provides a kind of oscillograph, wherein comprises the oscillograph inking device of describing in embodiment one, specifically sees also embodiment one, does not repeat them here.
Oscillograph provided by the invention, the setting that the visual representation of utility command mode is carried out oscillograph can arrange oscillograph by off-line, do not need to derive from oscillograph and arrange, import editor file is set the time, order is carried out, and can realize Lookup protocol and automatically measure.
Above-described embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above is only the specific embodiment of the present invention; the protection domain that is not intended to limit the present invention; within the spirit and principles in the present invention all, any modification of making, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (9)
1. oscillographic inking device, described inking device is arranged in oscillograph, it is characterized in that, and described inking device comprises:
Configuration file imports the unit, is used for importing outside configuration file;
The configuration file converting unit is used for the configuration file that the outside imports is converted to configuration order;
The configuration order performance element is used for according to described configuration order configuration oscillograph.
2. inking device according to claim 1, is characterized in that, described inking device also comprises:
The configuration parameter reading unit is used for reading described oscillographic configuration parameter;
The configuration parameter converting unit is used for described configuration parameter is converted to configuration file;
The configuration file lead-out unit is used for described configuration file is exported to external unit.
3. inking device according to claim 1, is characterized in that, described configuration file converting unit comprises:
The character scan module is used for the character that the configuration file of buffer memory is read in scanning successively;
Whether the end mark detection module is end mark for detection of the character that scans;
The character writing module is used for when end mark not detected, the character that scans being write the order buffer memory;
The character parsing module, the character for resolve described order buffer memory when end mark being detected obtains configuration order.
4. an oscillographic collocation method, is characterized in that, described collocation method comprises:
Import outside configuration file;
The configuration file that the outside is imported is converted to configuration order;
According to described configuration order configuration oscillograph.
5. collocation method according to claim 4, is characterized in that, described collocation method also comprises:
Read described oscillographic configuration parameter;
Described configuration parameter is converted to configuration file;
Described configuration file is exported to external unit.
6. collocation method according to claim 4, is characterized in that, the described configuration file that the outside is imported is converted to configuration order and comprises:
The character of the configuration file of buffer memory is read in scanning successively;
Whether the character that detection scans is end mark;
When end mark not detected, the character that scans is write the order buffer memory;
Resolve the character in described order buffer memory when end mark being detected, obtain configuration order.
7. oscillograph, described oscillograph comprises an inking device, it is characterized in that, described inking device comprises:
Configuration file imports the unit, is used for importing outside configuration file;
The configuration file converting unit is used for the configuration file that the outside imports is converted to configuration order;
The configuration order performance element is used for according to described configuration order configuration oscillograph.
8. oscillograph according to claim 7, is characterized in that, described inking device also comprises:
The configuration parameter reading unit is used for reading described oscillographic configuration parameter;
The configuration parameter converting unit is used for described configuration parameter is converted to configuration file;
The configuration file lead-out unit is used for described configuration file is exported to external unit.
9. oscillograph according to claim 7, is characterized in that, described configuration file converting unit comprises:
The character scan module is used for the character that the configuration file of buffer memory is read in scanning successively;
Whether the end mark detection module is end mark for detection of the character that scans;
The character writing module is used for when end mark not detected, the character that scans being write the order buffer memory;
The character parsing module, the character for resolve described order buffer memory when end mark being detected obtains configuration order.
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 true CN103176017A (en) | 2013-06-26 |
CN103176017B 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) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092630A (en) * | 2014-07-18 | 2014-10-08 | 国家电网公司 | 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 |
CN112465168A (en) * | 2020-11-26 | 2021-03-09 | 中国南方电网有限责任公司 | Automatic configuration method of graph-model integrated intelligent wave recorder based on configuration |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060060634A (en) * | 2006-04-13 | 2006-06-05 | 주식회사 시드컴 | Digital multi-meter |
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 |
-
2011
- 2011-12-22 CN CN201110435602.6A patent/CN103176017B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20060060634A (en) * | 2006-04-13 | 2006-06-05 | 주식회사 시드컴 | Digital multi-meter |
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 |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104092630A (en) * | 2014-07-18 | 2014-10-08 | 国家电网公司 | Configuration file for automatic operation of switchboards and operation method thereof |
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 |
CN112465168A (en) * | 2020-11-26 | 2021-03-09 | 中国南方电网有限责任公司 | Automatic configuration method of graph-model integrated intelligent wave recorder based on configuration |
CN112465168B (en) * | 2020-11-26 | 2023-04-07 | 中国南方电网有限责任公司 | Automatic configuration method of graph-model integrated intelligent wave recorder based on configuration |
Also Published As
Publication number | Publication date |
---|---|
CN103176017B (en) | 2016-08-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100437832C (en) | Fail analysis device | |
CN106226573B (en) | A kind of digital signal processing method for digital fluorescence oscilloscope | |
CN101788579B (en) | Oscilloscope, signal wave shape collection and display method and system thereof | |
CN103034585B (en) | The collection Memory Allocation of digital storage oscilloscope | |
CN104679658A (en) | Test method and test system for WEB pages | |
CN102402430A (en) | Method and system for generating random test case by using script | |
CN103176017A (en) | Oscilloscope, configuring device and configuring method thereof | |
CN101762732A (en) | Oscilloscope with automatic measurement function and measurement data storage method thereof | |
CN110543300B (en) | Automatic generation method and tool for automatic test script of automobile instrument | |
CN102621364B (en) | Electronic measuring device and serial-to-parallel data sorting method thereof | |
CN208872796U (en) | A kind of general card oscillograph of multichannel based on pci interface and system | |
CN101262681A (en) | Automatic testing mobile terminal and its implementation method | |
CN103308846A (en) | Method and device for detecting functional performance of integrated chip based on model identification | |
CN104977525A (en) | Method for manually editing flying probe test file | |
CN114281624A (en) | Method, system, device and equipment for testing I2C signal integrity | |
CN106919484A (en) | A kind of universal serial bus Time Series Analysis Method and device | |
CN113945743A (en) | Multichannel test automatic management system and method for pulse current injection experiment | |
CN102254569B (en) | Quad-data rate (QDR) controller and realization method thereof | |
CN103931143A (en) | Testing device and testing method with zoom display of test messages | |
CN109100556A (en) | A kind of general card oscillograph of multichannel based on pci interface | |
CN105698865A (en) | Method and system for acquiring cigarette production quality control data | |
CN100356339C (en) | Method and system for measuring functions of electronic product with keyboard | |
CN100458711C (en) | Data pickup processing method for logic analyzer and apparatus thereof | |
CN103185820A (en) | Oscilloscope with automatic cursor tracing function | |
CN101029919B (en) | Compressed logic sample storage |
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 |