In the system and method for oscillograph up-regulation entire data decoding function
Technical field
The present invention relates to electric variable testing field more particularly to a kind of systems in oscillograph up-regulation entire data decoding function
And method.
Background technique
Digital storage oscilloscope is test fields of measurement commonly used equipment, is answered with the development of science and technology with digital storage oscilloscope
Go deep into, the function that digital storage oscilloscope has has obtained very big extension, is no longer limited to observation waveform and completion
Simple measurement, the decoding to acquisition Wave data are the critical functions of new-generation digital storage oscillograph.It realizes to acquisition
The decoding of data needs correctly to acquire data, the suitable triggering mode of setting, collects the waveform number containing specific information
According to, to acquisition data carry out logically;Properly configure decoder, the Wave data after logically is transferred to it is complete in decoder
At decoding function.
Correctly acquisition data, need to be arranged trigger condition appropriate and oscillograph are collected containing to be decoded
Data.Decoder is properly configured, needs to select corresponding decoder, the channel of decoder, transmission rate, polarity etc. is set.I
Will setting trigger condition be defined as acquisition configuration item, will select decoder, be arranged decoder channel, transmission rate, polarity etc.
It is defined as decoder configuration item.
In the prior art, acquisition configuration item and decoder configuration item can be independent, acquisition configuration item and decoder configuration item
It separates, different acquisition configuration items can be used in this way to acquire data, and identical decoder is used to carry out protocol-decoding.Example
Such as, the triggering mode in acquisition configuration item be selected as edging trigger, pulsewidth triggering, pattern triggering in any one, decoder
Configuration item can choose I2C.
Acquisition configuration item and decoder configuration item share, and this mode is bundled with acquisition and decoding configuration, use decoder
Shi Bixu uses corresponding agreement acquisition configuration item.It is exported in this way, common acquisition configuration item cannot be used to generate decoder.
For example, when the common triggering mode such as selection edge/pulsewidth/pattern, because agreement is not selected to trigger, it is impossible to which output is correct
Protocol-decoding result.The advantages of this mode is to acquire data and decoder using identical configuration, eliminates the repetition of user
Configuration process.
For multi-thread agreement, configuration process is just more complicated, such as I2C agreement, needs to configure clock in decoding
(CLK), two channels of data (DATA) for above-mentioned acquisition configuration item and the independent mode of decoder configuration item or above-mentioned are adopted
Collect the form that configuration item and decoder configuration item share, requires this configuration process.Often occurs physics in practical applications
The clock lane and data channel of interface channel configure opposite situation with clock lane in decoder configuration item and data channel.
Such as physical channel 1 (CH1) access is clock, physical channel 2 (CH2) access is data, and being configured that in decoder
Clock configuration CLK is corresponded to physical channel 2 (CH2), and data configuration DATA corresponds to physical channel 1 (CH1), it is clear that correctly to decode
Decoder configuration must be made consistent with actual circuit configuration, it may be assumed that clock configuration CLK corresponds to physical channel 1 (CH1), and data are matched
It sets DATA and corresponds to physical channel 2 (CH2).
When clock lane and data in the clock lane and data channel and decoder configuration item for physical connection channel occur
When channel configures opposite situation, the phenomenon that oscillograph will appear the output of no decoding data, and occur exporting without decoding data
Phenomenon, but not exclusively depending on clock lane in the clock lane and data channel and decoder configuration item in physical connection channel and
Data channel configuration is on the contrary, in the prior art, when occurring without the phenomenon that decoding data output, technical staff or user may
First check that oscillograph other configurations item can just check the clock in physical connection channel when other configurations item is not found the problem
Channel and data channel and clock lane in decoder configuration item and data channel configuration whether on the contrary, if on the contrary, if need
Clock lane and data channel matches in the probe connection of exchange oscillograph physical channel or manual modification decoder configuration item
It sets.Either change matching for clock lane and data channel in the physical connection or manual modification decoder configuration item of oscillograph
It sets, requires more complicated configuration process, apply inconvenient.And show if there is what no decoding data exported
As being completely by clock lane and data channel in the clock lane and data channel and decoder configuration item in physical connection channel
Configuration instead results in, and if user first checks oscillograph other configurations item, reexamine oscillograph physical connection channel when
Clock channel and data channel and clock lane in decoder configuration item and data channel configuration whether opposite situation, will lead to more
The waste of more time and resource.
Summary of the invention
It is an object of the present invention to: it solves prior art oscillograph and occurs in data decoding procedure without decoding data
When the phenomenon that output, problem hard is checked, solves the problems, such as cumbersome technical problem, provided a kind of in oscillograph up-regulation entire data solution
The system of code configuration.
System provided by the invention in oscillograph up-regulation entire data decoding configuration, comprises the following modules:
Key response module pops up a decoding menu for responding a decoding key;
Detection module, for detecting the polyteny and single linear of decoding protocol;
Update module, when for detecting polyteny decoding protocol according to the detection module, in the decoding menu
Automatically update out an exchange menu item.
As an example, can also include a Switching Module, for according to it is described exchange menu item trigger command,
Exchange the configuration of the data channel and clock lane that have gated in corresponding oscillograph decoder with oscillograph two.
In the embodiment of the present invention, when occurring without the phenomenon that decoding data output, exchange menu item can be directly selected, just
The configuration that the data channel and clock lane that have gated in corresponding oscillograph decoder with oscillograph two can be exchanged, is saved
The physical connection of change oscillograph or the complex configurations process of manual modification decoder configuration item are kept away since exchange is convenient
If having exempted from technical staff or user first checks the wasting of resources caused by oscillograph other configurations item.
As an example, the trigger command can refer to, key exchange has gated corresponding show with oscillograph two
The order of the configuration of data channel and clock lane in wave device decoder.
One key exchanges so that alternate arrangement is more time saving, is more convenient.
As an example, the multi-thread agreement can be I2C agreement or SPI protocol.
As an example, the decoding key can be menu soft key.
Another object of the present invention is to: it solves prior art oscillograph and occurs in data decoding procedure without decoding data
When the phenomenon that output, problem hard is checked, solves the problems, such as cumbersome technical problem, provided a kind of in oscillograph up-regulation entire data solution
The method of code function.
Method provided by the invention in oscillograph up-regulation entire data decoding function, comprising the following steps:
Key response step responds a decoding key, pops up a decoding menu;
Detecting step detects the polyteny and single linear of decoding protocol;
Step is updated, according to when detecting polyteny decoding protocol, a friendship is automatically updated out in the decoding menu
Change menu item.
It as an example, can also include an exchange step, according to the trigger command of the exchange menu item, exchange
The configuration of the data channel and clock lane that have been gated in corresponding oscillograph decoder with oscillograph two.
In the embodiment of the present invention, when occurring without the phenomenon that decoding data output, exchange menu item can be directly selected, just
The configuration that the data channel and clock lane that have gated in corresponding oscillograph decoder with oscillograph two can be exchanged, is saved
The physical connection of change oscillograph or the complex configurations process of manual modification decoder configuration item are kept away since exchange is convenient
If having exempted from technical staff or user first checks the wasting of resources caused by oscillograph other configurations item.
As an example, the trigger command can refer to, key exchange has gated corresponding show with oscillograph two
The order of the configuration of data channel and clock lane in wave device decoder.
One key exchanges so that alternate arrangement is more time saving, is more convenient.
As an example, the multi-thread agreement can be I2C agreement or SPI protocol.
As an example, the decoding key can be menu soft key.
Detailed description of the invention
Fig. 1 is method flow diagram of the preferred embodiment of the present invention in oscillograph up-regulation entire data decoding function;
Fig. 2 is first interface schematic diagram of the preferred embodiment of the present invention in oscillograph up-regulation entire data decoding function;
Fig. 3 is second contact surface schematic diagram of the preferred embodiment of the present invention in oscillograph up-regulation entire data decoding function;
Fig. 4 is third interface schematic diagram of the preferred embodiment of the present invention in oscillograph up-regulation entire data decoding function;
Fig. 5 is fourth interface schematic diagram of the preferred embodiment of the present invention in oscillograph up-regulation entire data decoding function;
Fig. 6 is block diagram of the preferred embodiment of the present invention in the system 600 of oscillograph up-regulation entire data decoding function.
Specific embodiment
The preferred embodiment of the present invention is further described in detail below in conjunction with attached drawing.
Referring to Fig.1, in conjunction with referring to Fig. 2, the side in oscillograph up-regulation entire data decoding function of the preferred embodiment of the present invention
Method, comprising the following steps:
Key response step S101 responds a decoding key, pop-up decoding menu 201;
In the preferred embodiment, decoding key is a menu soft key, when touching the menu soft key, will pop up decoding
Menu 201.
As other citing, in this illustration, decoding key be also possible on an oscillograph keyboard it is hard by
Key, when touching the hard key, pop-up decoding menu 201.
Detecting step S102 detects the polyteny and single linear of decoding protocol;
Step S103 is updated, according to when detecting polyteny decoding protocol, automatically updates out one in decoding menu 201
Exchange menu item 202.
In the preferred embodiment, decoding protocol is polyteny decoding protocol I2C, therefore automatic in decoding menu 201
Update an exchange menu item 202 out.
Exchange step S104, according to the trigger command of exchange menu item 202, exchange has gated corresponding with oscillograph two
Oscillograph decoder in data channel and clock lane configuration.
In the preferred embodiment, the trigger command for exchanging menu item 202 refers to that key exchange has been selected with oscillograph two
The order of the configuration of data channel and clock lane in the corresponding oscillograph decoder in channel.Here key exchange is to give directions
The configuration of data channel and clock lane can be exchanged by hitting primary exchange menu item 202.
In the embodiment of the present invention, when occurring without the phenomenon that decoding data output, exchange menu item can be directly selected
202, it has exchanged after selection exchanges menu item 202 referring to Fig. 3 and has gated corresponding oscillograph decoder with oscillograph two
In data channel and clock lane configuration, such as oscillograph two selected physical channel 1 (CH1) access be clock,
Select physical channel 2 (CH2) access is data, and clock configuration CLK corresponds to physical channel 2 to being configured that in decoder
(CH2), data configuration DATA is corresponded to physical channel 1 (CH1), after clicking exchange menu item 202, can be exchanged in decoder at once
The configuration of former data channel and clock lane is i.e.: clock configuration CLK is corresponded to physical channel 1 (CH1), data configuration DATA counterpart
It manages channel 2 (CH2).Occur decoding data string 203 on display interface at once, prove at this time, is due to physical connection channel
Clock lane and data channel configuration have been instead resulted in without decoding data in clock lane and data channel and decoder configuration item
The phenomenon that output, due to the exchange menu item 202 automatically updated out when polyteny decoding protocol, first by exchange menu item 202
Decoder allocation problem is checked, technical staff is avoided or user checks the wasting of resources caused by other configurations item.It saves simultaneously
The physical connection of change oscillograph or the complex configurations process of manual modification decoder configuration item.Meanwhile exchanging menu item
202 key exchanges so that alternate arrangement is more time saving, is more convenient.
Referring to Fig. 4, as other citing, the multi-thread agreement can also be SPI protocol, since SPI decoding protocol is
Polyteny decoding protocol, therefore an exchange menu item 402 is automatically updated out in decoding menu 401.
Referring to Fig. 5, when detection module detects single linear decoding protocol, such as when RS232 agreement, decode in menu 501
It will not automatically update out and exchange menu item.
Referring to Fig. 6, the preferred embodiment of the present invention raises the system 600 of entire data decoding function in oscillograph, including following
Module:
Key response module 601 pops up a decoding menu for responding a decoding key;
Detection module 602, for detecting the polyteny and single linear of decoding protocol;
Update module 603, when for detecting polyteny decoding protocol according to the detection module, in the decoding menu
In automatically update out an exchange menu item.
Switching Module 604, for the trigger command according to the exchange menu item, exchange has been gated with oscillograph two
The configuration of data channel and clock lane in corresponding oscillograph decoder.
In the preferred embodiment, the trigger command refers to, key exchange has gated corresponding show with oscillograph two
The order of the configuration of data channel and clock lane in wave device decoder.
In the preferred embodiment, multi-thread agreement is I2C agreement.
In the preferred embodiment, decoding key is menu soft key.
Each step specifically is executed according to flow chart shown in FIG. 1 in the system 600 of oscillograph up-regulation entire data decoding function
Suddenly.
It is above-described to be merely a preferred embodiment of the present invention, it should be understood that the explanation of preferred embodiment above is only
It is to be used to help understand method and its core concept of the invention, is not intended to limit the scope of protection of the present invention, it is all in this hair
Any modification for being made within bright thought and principle, equivalent replacement etc., should all be included in the protection scope of the present invention.