CN102545840A - Waveform editing method and device - Google Patents

Waveform editing method and device Download PDF

Info

Publication number
CN102545840A
CN102545840A CN2010106062164A CN201010606216A CN102545840A CN 102545840 A CN102545840 A CN 102545840A CN 2010106062164 A CN2010106062164 A CN 2010106062164A CN 201010606216 A CN201010606216 A CN 201010606216A CN 102545840 A CN102545840 A CN 102545840A
Authority
CN
China
Prior art keywords
data
wave
waveform
wave data
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010106062164A
Other languages
Chinese (zh)
Other versions
CN102545840B (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 CN201010606216.4A priority Critical patent/CN102545840B/en
Publication of CN102545840A publication Critical patent/CN102545840A/en
Application granted granted Critical
Publication of CN102545840B publication Critical patent/CN102545840B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Electrophonic Musical Instruments (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a waveform editing method and device. The waveform editing method comprises the following steps of: receiving a waveform editing operation instruction of a user; judging the type of the waveform editing operation of the user according to the operation instruction; judging whether the current mode is in an insert mode or an overwrite mode; and editing a waveform according to the mode judgment result and the type of the operation. The waveform editing provided by the embodiment of the invention provides the insert mode and the overwrite mode. When the waveform is edited, the waveform editing is converted between the two modes, so that a selectable manner is provided for the waveform editing in signal source equipment. The problem in the prior art that user requirements cannot be met due to single waveform editing mode is solved.

Description

A kind of waveform compilation method and apparatus
Technical field
The present invention relates to signal the field takes place, especially relate to a kind of waveform compilation method and apparatus.
Background technology
Present signal source product all can provide the waveform compilation function; Can utilize the cooperation of two cursors to realize shearing, duplicate, paste, delete, add operations such as standard wave through this waveform compilation function; After the user edits the waveform of wanting through the waveform compilation function; Again the Wave data that edits is handed down to the waveform generator of signal source, makes signal source produce corresponding waveform.
But; Waveform compilation function in the existing signal source product generally has only " insertion pattern "; Under this pattern, when waveform compilation was operating as " shearing ", then the Wave data between two cursors was sheared on the editing area; The waveform of back is filled, and is connected with the waveform that is sheared before the waveform; When waveform compilation is operating as " deletion ", with " shearing " class of operation seemingly, the Wave data on the editing area between two cursors is deleted, the waveform of back is filled, and is connected by the waveform before the deletion waveform; When waveform compilation is operating as " stickup ", insert the stickup waveform from the current position of cursor of choosing, the current waveform of cursor back of choosing moves in order backward; When waveform compilation is operating as " adding standard wave ", with " stickup " class of operation seemingly, insert reference waveform (sine wave, square wave, triangular wave etc.) from the current position of choosing cursor, the current waveform of cursor back of choosing is mobile backward in order.
Above waveform compilation operation is all carried out under the insertion pattern; The mode of waveform compilation is more single; When the user need become 0 value with the waveform that cuts off, the waveform of back does not move, and promptly is embodied on the oscillogram; The wave-shape amplitude of this section shearing is 0 o'clock, and above-mentioned insertion pattern just can not realize.Therefore, present waveform compilation mode flexibility ratio is not enough, and the edit mode that can supply the user to select is single, has limited user's use.
Summary of the invention
The embodiment of the invention provides a kind of waveform compilation method and apparatus, is used to the mode that waveform compilation in the signal source equipment provides plurality of optional, and it is too single to solve in the prior art waveform edit mode, the problem that can not meet consumers' demand.
On the one hand, the embodiment of the invention provides a kind of waveform compilation method, and this method comprises: receive the operational order that the user edits waveform; Action type according to said operational order judges editor waveform; Judge that present mode is in the insertion pattern and still is in Overtype Mode; According to pattern judged result and said action type waveform is edited.
Preferably, when the action type according to said operational order judges editor waveform is shearing or deletion action, also comprise in the embodiment of the invention: the abscissa according to two cursors comes the Wave data that needs are sheared or deleted is positioned operation; When the action type according to said operational order judges editor waveform is stickup or the operation of adding standard wave, also comprise: the position of confirming stickup or adding standard wave according to exciting light target abscissa.
Preferably; Come needs are sheared or the Wave data of deletion positions operation and comprises based on the abscissa of two cursors in the embodiment of the invention: as index, need in the Wave data array, to confirm to shear or the Wave data of deletion with the abscissa of said two cursors;
Preferably, confirm that according to exciting light target abscissa the position of stickup or adding standard wave comprises in the embodiment of the invention: as index, in the Wave data array, confirm to paste or add the position of standard wave with said exciting light target abscissa.
Preferably; In the embodiment of the invention when the action type based on said operational order judges editor waveform is shearing manipulation; Said waveform editor based on pattern judged result and said action type comprises: when present mode is in the insertion pattern; To shear storage to buffer memory, data are sheared in deletion in the Wave data array, the Wave data of shearing the data back is merged with the data of shearing the data front form a new Wave data array; When present mode is in Overtype Mode, will shear storage,, make that the wave-shape amplitude of cutting out section is zero the data zero setting that needs are sheared to buffer memory.
Preferably; In the embodiment of the invention when the action type according to said operational order judges editor waveform is deletion action; Said waveform editor according to pattern judged result and said action type comprises: when present mode is in the insertion pattern; Deletion needs the data of deletion in the Wave data array, and the data of the Wave data of deleted data back and deleted data front are merged the new Wave data array of composition one; When present mode is in Overtype Mode,, make that the wave-shape amplitude of deletion is zero with the data zero setting of needs deletion.
Preferably; In the embodiment of the invention when the action type according to said operational order judges editor waveform is paste operation; Said waveform editor according to pattern judged result and said action type comprises: when present mode is in the insertion pattern; Wave data is inserted in the position of in the Wave data array, need pasting, and makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; When present mode was in Overtype Mode, the position that from the Wave data array, needs to paste began the Wave data replacement legacy data with the needs stickup.
Preferably; In the embodiment of the invention when according to the action type of said operational order judges editor waveform when adding the standard wave operation; Said waveform editor according to pattern judged result and said action type comprises: when present mode is in the insertion pattern; Wave data is inserted in the position that in the Wave data array, need to add standard wave, makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; When present mode was in Overtype Mode, the position that from the Wave data array, needs to add standard wave began the reference waveform data replacement legacy data with the needs adding.
On the other hand, the embodiment of the invention also provides a kind of waveform compilation device, and this device comprises: receiving element is used to receive the operational order that the user edits waveform; First judging unit is used for the action type according to said operational order judges editor waveform; Second judging unit is used to judge that present mode is in the insertion pattern and still is in Overtype Mode; Edit cell is used for according to pattern judged result and said action type waveform being edited.
Preferably, the device of the embodiment of the invention also comprises: first positioning unit is used for coming the Wave data that needs are sheared or deleted is positioned operation based on the abscissa of two cursors; Second positioning unit is used for confirming to paste or add based on exciting light target abscissa the position of standard wave.
Preferably, first positioning unit specifically is used in the embodiment of the invention:, need in the Wave data array, to confirm to shear or the Wave data of deletion as index with the abscissa of said two cursors; Second positioning unit specifically is used for: as index, in the Wave data array, confirm to paste or add the position of standard wave with said exciting light target abscissa.
Preferably; Embodiment of the invention inediting unit comprises the shearing edit cell; Be used for when present mode is in the insertion pattern; To shear storage to buffer memory, data are sheared in deletion in the Wave data array, the Wave data of shearing the data back and the data of shearing the data front are merged form a new Wave data array; And when present mode is in Overtype Mode, will shear storage to buffer memory, with the data zero setting that needs are sheared, make that the wave-shape amplitude of cutting out section is zero.
Preferably; Embodiment of the invention inediting unit comprises the deletion edit cell; Be used for when present mode is in the insertion pattern; Deletion needs the data of deletion in the Wave data array, and the data of the Wave data of deleted data back and deleted data front are merged the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, with the data zero setting of needs deletion, make that the wave-shape amplitude of deletion is zero.
Preferably; Embodiment of the invention inediting unit comprises the stickup edit cell; Be used for when present mode is in the insertion pattern, Wave data is inserted in the position of in the Wave data array, need pasting, and makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, the position that from the Wave data array, needs to paste begins the Wave data replacement legacy data with the needs stickup.
Preferably; Embodiment of the invention inediting unit comprises the standard wave edit cell; Be used for when present mode is in the insertion pattern; Wave data is inserted in the position that in the Wave data array, need to add standard wave, makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, the position that from the Wave data array, needs to add standard wave begins the reference waveform data replacement legacy data with the needs adding.
The waveform compilation of the embodiment of the invention provides insertion pattern and Overtype Mode dual mode; When waveform compilation; Can between two kinds of patterns, switch; Thereby for the waveform compilation in the signal source equipment provides optional mode, the waveform edit mode is too single in the solution prior art, the problem that can not meet consumers' demand.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
The schematic flow sheet of a kind of waveform compilation method that Fig. 1 provides for the embodiment of the invention;
Fig. 2 shears schematic flow sheet for a kind of waveform that the embodiment of the invention provides;
A kind of shearing location sketch map that Fig. 3 provides for the embodiment of the invention;
Fig. 4 for the embodiment of the invention provide with Fig. 3 according to the waveform sketch map after shearing under the Overtype Mode;
A kind of waveform deletion schematic flow sheet that Fig. 5 provides for the embodiment of the invention;
Fig. 6 pastes schematic flow sheet for a kind of waveform that the embodiment of the invention provides;
The sketch map of a kind of definite paste position that Fig. 7 provides for the embodiment of the invention;
Fig. 8 for the embodiment of the invention provide with Fig. 7 according to the waveform sketch map after pasting under the insertion pattern;
A kind of schematic flow sheet that adds standard wave that Fig. 9 provides for the embodiment of the invention;
The structural representation of a kind of waveform compilation device that Fig. 10 provides for the embodiment of the invention;
The structural representation of a kind of edit cell that Figure 11 provides for the embodiment of the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Be illustrated in figure 1 as the schematic flow sheet of a kind of waveform compilation method that the embodiment of the invention provides, this method comprises:
S101: receive the operational order that the user edits waveform.
In the present embodiment, the user can pass through input equipment, sends the operational order of editor's waveform such as keyboard, mouse or touch-screen etc.Specifically; The user can need select editor's waveform segment through controlling two cursors in the present embodiment; The cursor of being selected by the user in these two cursors is the cursor that activates; Can show that the cursor of not selected by the user then is unactivated cursor through solid line, can distinguish mutually with the cursor that activates by a dotted line.
S102: according to the action type of said operational order judges editor waveform.
The action type of aforesaid operations instruction can comprise shearing, deletes, pastes, duplicates and add standard wave etc. that according to the difference of action type, the embodiment of the invention is also different to the edit mode of waveform in the present embodiment.
As one embodiment of the present of invention; When the action type according to step S102 judges editor waveform is shearing or deletion action; Can also comprise the steps: behind the step S102 to come the Wave data that needs are sheared or deleted is positioned operation according to the abscissa of two cursors; Can drag respectively in the waveform compilation zone of display interface such as the user that two cursors confirm to need are sheared or the scope of deletion, and the abscissa of noting two cursors is accomplished to shearing or the location of deleted data.Because the Wave data on the waveform compilation interface is that form with array leaves in the memory cell in the present embodiment, each data point data comprise two parts (x, y); Wherein x is the sequence number of data point, promptly representes the position of this data point on abscissa, and y is the amplitude of expression data point; The x value of each data point all is different; And the y value might be identical, therefore, and when the Wave data that needs are sheared or deleted positions; Specifically be abscissa with two cursors as index, need in the Wave data array, to confirm to shear or the Wave data of deletion.In addition, copy operation and shearing manipulation are similar, therefore repeat no more.
As one embodiment of the present of invention; When the action type according to step S102 judges editor waveform is stickup or the operation of adding standard wave; Can also comprise the steps: to confirm the position of stickup or adding standard wave behind the step S102 according to exciting light target abscissa; Specifically, be with exciting light target abscissa as index, in the Wave data array, confirm to paste or add the position of standard wave.
S103: judge that present mode is in the insertion pattern and still is in Overtype Mode.
In embodiments of the present invention; The waveform compilation mode of two kinds of patterns can be provided for the signal source product; For the insertion pattern; With the same in the prior art, operations such as shearing, deletion, stickup, adding standard wave can cause moving after original data reach perhaps in the Wave data array, form a new Wave data array with this; And for Overtype Mode; Operations such as shearing, deletion, stickup, adding standard wave then can not moved original data; But original data are rewritten, the rewriting here is the range value that changes original some data, this can specifically describe in following examples.
S104: waveform is edited according to pattern judged result and said action type.
The embodiment of the invention is based on the difference of present mode, and the identical operations type can produce different edit effects, therefore need edit waveform based on pattern judged result and said action type.It is thus clear that; The waveform compilation of the embodiment of the invention provides insertion pattern and Overtype Mode dual mode; When waveform compilation, can between two kinds of patterns, switch, thereby optional mode is provided for the waveform compilation in the signal source equipment; The waveform edit mode is too single in the solution prior art, the problem that can not meet consumers' demand.
Present embodiment is that concrete waveform compilation in the foregoing description is further explained, is according to the difference of action type waveform compilation to be explained respectively in this enforcement.
A kind of waveform that being illustrated in figure 2 as the embodiment of the invention provides is sheared schematic flow sheet, comprises the steps:
S201: the operational order that receives user's shear-wave.
S202: the abscissa based on two cursors comes the Wave data that needs are sheared is positioned operation.
As shown in Figure 3, need to confirm the scope sheared through the abscissa of cursor 301 and cursor 302, needing the scope of shearing among Fig. 3 is the waveform between cursor 301 and the cursor 302.
S203: judge that present mode is in the insertion pattern and still is in Overtype Mode,, then get into step S204,, then get into step S207 if be in Overtype Mode if be in the insertion pattern.
S204: will shear storage to buffer memory.
Owing to after shearing, might paste in addition and wait subsequent operation, therefore need to supply the subsequent operation use shearing storage to buffer memory earlier.
S205: data are sheared in deletion in the Wave data array.
S206: the Wave data that will shear the data back and the data of shearing the data front merge forms a new Wave data array, and finishes shearing manipulation.
Step S205 and S206 are the steps of shearing manipulation in the prior art, are embodied on the oscillogram, and promptly the waveform of shear-wave back moves forward, links to each other with the waveform of shear-wave front.
S207: will shear storage to buffer memory.
S208: the data zero setting that will shear makes that the wave-shape amplitude of cutting out section is zero, and finishes shearing manipulation.
In embodiments of the present invention, with the data zero setting that needs are sheared, being meant to need the zero setting of the range value of cutting out section in the Wave data array, and abscissa value does not change, and like this, Fig. 3 is promptly as shown in Figure 4 through being embodied on the oscillogram after shearing.
As one embodiment of the present of invention; Also can in the Wave data array, delete earlier behind the step S207 and shear data; And then the Wave data of zero setting affixed to the data division of deleting in the Wave data array, realize the data zero setting that just need shear with this.
Be illustrated in figure 5 as a kind of waveform deletion schematic flow sheet that the embodiment of the invention provides, comprise the steps:
S501: receive the operational order that the user deletes waveform.
S502: the abscissa based on two cursors comes the Wave data of needs deletion is positioned operation.
S503: judge that present mode is in the insertion pattern and still is in Overtype Mode,, then get into step S504,, then get into step S506 if be in Overtype Mode if be in the insertion pattern.
S504: deletion needs the data of deletion in the Wave data array.
S505: the data of the Wave data of deleted data back and deleted data front are merged the new Wave data array of composition one.
S506: the data zero setting that will delete makes that the wave-shape amplitude of deletion is zero.
The flow process of flow process and the shearing of deletion is similar, and different is, and delete need be with storage to buffer memory.
A kind of waveform that being illustrated in figure 6 as the embodiment of the invention provides is pasted schematic flow sheet, comprises the steps:
S601: receive the operational order that the user pastes waveform.
S602: the position of confirming stickup according to exciting light target abscissa.
As shown in Figure 7, confirm the position of pasting through the abscissa that activates cursor 701, the position of stickup is activates the position that cursor 701 belongs to.
S603: judge that present mode is in the insertion pattern and still is in Overtype Mode,, then get into step S604,, then get into step S605 if be in Overtype Mode if be in the insertion pattern.
S604: Wave data is inserted in the position of in the Wave data array, need pasting, and makes the Wave data that inserts and legacy data merge to form a new Wave data array, and finishes the stickup step.
When aforesaid operations is embodied on the waveform, as shown in Figure 8, the data of the data between the cursor 701 and 702 for needing to paste, the data among Fig. 7 after the cursor 701 move automatically backward, link to each other with the end of pasting data, form waveform as shown in Figure 8.
S605: the position that from the Wave data array, needs to paste begins the Wave data replacement legacy data with the needs stickup, and finishes to paste step.
It is that the data after the cursor 701 do not move among Fig. 7 that aforesaid operations is embodied on the oscillogram, but a part of waveform that directly is required stickup is replaced.
Be illustrated in figure 9 as a kind of adding standard wave schematic flow sheet that the embodiment of the invention provides, comprise the steps:
S901: receive the operational order that the user adds standard wave.
S902: the position of confirming to add standard wave according to exciting light target abscissa.
S903: judge that present mode is in the insertion pattern and still is in Overtype Mode,, then get into step S904,, then get into step S905 if be in Overtype Mode if be in the insertion pattern.
S904: the reference waveform data are inserted in the position that in the Wave data array, need to add standard wave, make the reference waveform data inserted and legacy data merge the new Wave data array of composition one.
S905: the position that from the Wave data array, needs to add standard wave begins the reference waveform data replacement legacy data with the needs adding.
The flow process of adding standard wave and the flow process of stickup are similar, have repeated no more at this.
A kind of waveform compilation apparatus structure sketch map that provides for the embodiment of the invention shown in figure 10; This device comprises: receiving element 110, first judging unit 120, second judging unit 130 and edit cell 140; First judging unit 120 links to each other with the receiving element 110 and second judging unit 130 respectively, and edit cell 140 links to each other with second judging unit 130.
Receiving element 110 is used to receive the operational order that the user edits waveform.In the present embodiment, the user can pass through input equipment, sends the operational order of editor's waveform such as keyboard, mouse or touch-screen etc.Specifically; The user can need select editor's waveform segment through controlling two cursors in the present embodiment; The cursor of being selected by the user in these two cursors is the cursor that activates; Can show that the cursor of not selected by the user then is unactivated cursor through solid line, can distinguish mutually with the cursor that activates by a dotted line.
First judging unit 120 is used for the action type according to operational order judges editor waveform.
The action type of aforesaid operations instruction can comprise shearing, deletes, pastes, duplicates and add standard wave etc. that according to the difference of action type, the embodiment of the invention is also different to the edit mode of waveform in the present embodiment.
As one embodiment of the present of invention; This device can also comprise first positioning unit and second positioning unit (not illustrating); This first positioning unit links to each other with first judging unit 120 and second judging unit 130 respectively, and this second positioning unit also links to each other with first judging unit 120 and second judging unit 130 respectively.
First positioning unit is used for coming the Wave data that needs are sheared or deleted is positioned operation based on the abscissa of two cursors.Specifically be abscissa with two cursors as index, need in the Wave data array, to confirm to shear or the Wave data of deletion.
Second positioning unit is used for confirming according to exciting light target abscissa the position of stickup or adding standard wave.Specifically, be with exciting light target abscissa as index, in the Wave data array, confirm to paste or add the position of standard wave.
Second judging unit 130 judges that present mode is in the insertion pattern and still is in Overtype Mode.
In embodiments of the present invention; The waveform compilation mode of two kinds of patterns can be provided for the signal source product; For the insertion pattern; With the same in the prior art, operations such as shearing, deletion, stickup, adding standard wave can cause moving after original data reach perhaps in the Wave data array, form a new Wave data array with this; And for Overtype Mode, operations such as shearing, deletion, stickup, adding standard wave then can not moved original data, but original data are rewritten, and the rewriting here is the range value that changes original some data.
Edit cell 140 is used for according to pattern judged result and action type waveform being edited.
The embodiment of the invention is based on the difference of present mode, and the identical operations type can produce different edit effects, therefore need edit waveform based on pattern judged result and said action type.
The waveform compilation of the embodiment of the invention provides insertion pattern and Overtype Mode dual mode; When waveform compilation; Can between two kinds of patterns, switch; Thereby for the waveform compilation in the signal source equipment provides optional mode, the waveform edit mode is too single in the solution prior art, the problem that can not meet consumers' demand.
The structural representation of a kind of edit cell that provides for the embodiment of the invention shown in figure 11, this edit cell 140 comprise to be sheared editor module 141, deletion editor module 142, pastes editor module 143 and standard wave editor module 144.
Shearing editor module 141 is used for when present mode is in the insertion pattern; To shear storage to buffer memory; Data are sheared in deletion in the Wave data array, the Wave data of shearing the data back and the data of shearing the data front are merged form a new Wave data array; And when present mode is in Overtype Mode, will shear storage to buffer memory, with the data zero setting that needs are sheared, make that the wave-shape amplitude of cutting out section is zero.This concrete workflow of shearing editor module 141 can be referring to the description of the corresponding embodiment of Fig. 2.
Deletion editor module 142 is used for when present mode is in the insertion pattern, and deletion needs the data of deletion in the Wave data array, and the data of the Wave data of deleted data back and deleted data front are merged the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, with the data zero setting of needs deletion, make that the wave-shape amplitude of deletion is zero.The concrete workflow of this deletion editor module 142 can be referring to the description of the corresponding embodiment of Fig. 5.
Paste edit cell 143 and be used for when present mode is in the insertion pattern, Wave data is inserted in the position that in the Wave data array, needs to paste, and makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, the position that from the Wave data array, needs to paste begins the Wave data replacement legacy data with the needs stickup.This concrete workflow of pasting edit cell 143 can be referring to the description of the corresponding embodiment of Fig. 6.
Standard wave edit cell 144 is used for when present mode is in the insertion pattern, and Wave data is inserted in the position that in the Wave data array, need to add standard wave, makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, the position that from the Wave data array, needs to add standard wave begins the reference waveform data replacement legacy data with the needs adding.The concrete workflow of this standard wave edit cell 144 can be referring to the description of the corresponding embodiment of Fig. 9.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Can instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-0nly Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. a waveform compilation method is characterized in that, said method comprises:
Receive the operational order that the user edits waveform;
Action type according to said operational order judges editor waveform;
Judge that present mode is in the insertion pattern and still is in Overtype Mode;
According to pattern judged result and said action type waveform is edited.
2. the method for claim 1 is characterized in that, when the action type according to said operational order judges editor waveform was shearing or deletion action, said method also comprised:
Abscissa according to two cursors comes the Wave data that needs are sheared or deleted is positioned operation;
When the action type based on said operational order judges editor waveform was stickup or the operation of adding standard wave, said method also comprised:
Confirm to paste or add the position of standard wave based on exciting light target abscissa.
3. method as claimed in claim 2 is characterized in that, said abscissa according to two cursors comes that the Wave data that needs are sheared or deleted is positioned operation and comprises:
, need in the Wave data array, to confirm to shear or the Wave data of deletion as index with the abscissa of said two cursors;
Saidly confirm to paste or the position that adds standard wave comprises according to exciting light target abscissa:
As index, in the Wave data array, confirm to paste or add the position of standard wave with said exciting light target abscissa.
4. the method for claim 1 is characterized in that, when the action type according to said operational order judges editor waveform was shearing manipulation, said waveform editor according to pattern judged result and said action type comprised:
When present mode is in the insertion pattern, will shear storage to buffer memory, data are sheared in deletion in the Wave data array, the Wave data of shearing the data back and the data of shearing the data front are merged form a new Wave data array;
When present mode is in Overtype Mode, will shear storage,, make that the wave-shape amplitude of cutting out section is zero the data zero setting that needs are sheared to buffer memory.
5. the method for claim 1 is characterized in that, when the action type according to said operational order judges editor waveform was deletion action, said waveform editor according to pattern judged result and said action type comprised:
When present mode was in the insertion pattern, deletion needed the data of deletion in the Wave data array, and the data of the Wave data of deleted data back and deleted data front are merged the new Wave data array of composition one;
When present mode is in Overtype Mode,, make that the wave-shape amplitude of deletion is zero with the data zero setting of needs deletion.
6. the method for claim 1 is characterized in that, when the action type according to said operational order judges editor waveform was paste operation, said waveform editor according to pattern judged result and said action type comprised:
When present mode was in the insertion pattern, Wave data was inserted in the position of in the Wave data array, need pasting, and made the Wave data that inserts and legacy data merge the new Wave data array of composition one;
When present mode was in Overtype Mode, the position that from the Wave data array, needs to paste began the Wave data replacement legacy data with the needs stickup.
7. the method for claim 1 is characterized in that, when according to the action type of said operational order judges editor waveform when adding the standard wave operation, said waveform editor according to pattern judged result and said action type comprises:
When present mode was in the insertion pattern, Wave data was inserted in the position that in the Wave data array, need to add standard wave, made the Wave data that inserts and legacy data merge the new Wave data array of composition one;
When present mode was in Overtype Mode, the position that from the Wave data array, needs to add standard wave began the reference waveform data replacement legacy data with the needs adding.
8. a waveform compilation device is characterized in that, said device comprises:
Receiving element is used to receive the operational order that the user edits waveform;
First judging unit is used for the action type according to said operational order judges editor waveform;
Second judging unit is used to judge that present mode is in the insertion pattern and still is in Overtype Mode;
Edit cell is used for according to pattern judged result and said action type waveform being edited.
9. device as claimed in claim 8 is characterized in that, said device also comprises:
First positioning unit is used for coming the Wave data that needs are sheared or deleted is positioned operation based on the abscissa of two cursors;
Second positioning unit is used for confirming to paste or add according to exciting light target abscissa the position of standard wave.
10. device as claimed in claim 9 is characterized in that,
Said first positioning unit specifically is used for:, need in the Wave data array, to confirm to shear or the Wave data of deletion as index with the abscissa of said two cursors;
Said second positioning unit specifically is used for: as index, in the Wave data array, confirm to paste or add the position of standard wave with said exciting light target abscissa.
11. device as claimed in claim 8; It is characterized in that; Said edit cell comprises the shearing edit cell, is used for when present mode is in the insertion pattern, will shear storage to buffer memory; Data are sheared in deletion in the Wave data array, the Wave data of shearing the data back and the data of shearing the data front are merged form a new Wave data array; And when present mode is in Overtype Mode, will shear storage to buffer memory, with the data zero setting that needs are sheared, make that the wave-shape amplitude of cutting out section is zero.
12. device as claimed in claim 8; It is characterized in that; Said edit cell comprises the deletion edit cell; Be used for when present mode is in the insertion pattern, deletion needs the data of deletion in the Wave data array, and the data of the Wave data of deleted data back and deleted data front are merged the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, with the data zero setting of needs deletion, make that the wave-shape amplitude of deletion is zero.
13. device as claimed in claim 8; It is characterized in that; Said edit cell comprises the stickup edit cell; Be used for when present mode is in the insertion pattern, Wave data is inserted in the position of in the Wave data array, need pasting, and makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, the position that from the Wave data array, needs to paste begins the Wave data replacement legacy data with the needs stickup.
14. device as claimed in claim 8; It is characterized in that; Said edit cell comprises the standard wave edit cell; Be used for when present mode is in the insertion pattern, Wave data is inserted in the position that in the Wave data array, need to add standard wave, makes the Wave data that inserts and legacy data merge the new Wave data array of composition one; And be used for when present mode is in Overtype Mode, the position that from the Wave data array, needs to add standard wave begins the reference waveform data replacement legacy data with the needs adding.
CN201010606216.4A 2010-12-24 2010-12-24 A kind of waveform editing method and device Active CN102545840B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010606216.4A CN102545840B (en) 2010-12-24 2010-12-24 A kind of waveform editing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010606216.4A CN102545840B (en) 2010-12-24 2010-12-24 A kind of waveform editing method and device

Publications (2)

Publication Number Publication Date
CN102545840A true CN102545840A (en) 2012-07-04
CN102545840B CN102545840B (en) 2016-12-21

Family

ID=46351923

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010606216.4A Active CN102545840B (en) 2010-12-24 2010-12-24 A kind of waveform editing method and device

Country Status (1)

Country Link
CN (1) CN102545840B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456122A (en) * 2019-07-22 2019-11-15 国营芜湖机械厂 A kind of method of digital waveform editor and comparison display
CN116520049A (en) * 2023-04-13 2023-08-01 广州致远仪器有限公司 Waveform output setting method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06196976A (en) * 1992-09-18 1994-07-15 Sony Tektronix Corp Signal generator
US20030184391A1 (en) * 2002-03-27 2003-10-02 Yamaha Corporation Oscillation detection circuit
CN1767384A (en) * 2005-08-22 2006-05-03 华南理工大学 Arbitrary waveform composite signal generator and signal generating method
CN100550625C (en) * 2005-04-22 2009-10-14 浙江大学 A kind of method for generation of burst pulse and device thereof
CN101572534A (en) * 2009-05-22 2009-11-04 深圳迪美泰数字医学技术有限公司 Waveform generation method of biomedicine signals and device
CN101907881A (en) * 2010-06-04 2010-12-08 西安电子科技大学 Programmable digital pulse generator

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06196976A (en) * 1992-09-18 1994-07-15 Sony Tektronix Corp Signal generator
US20030184391A1 (en) * 2002-03-27 2003-10-02 Yamaha Corporation Oscillation detection circuit
CN100550625C (en) * 2005-04-22 2009-10-14 浙江大学 A kind of method for generation of burst pulse and device thereof
CN1767384A (en) * 2005-08-22 2006-05-03 华南理工大学 Arbitrary waveform composite signal generator and signal generating method
CN101572534A (en) * 2009-05-22 2009-11-04 深圳迪美泰数字医学技术有限公司 Waveform generation method of biomedicine signals and device
CN101907881A (en) * 2010-06-04 2010-12-08 西安电子科技大学 Programmable digital pulse generator

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110456122A (en) * 2019-07-22 2019-11-15 国营芜湖机械厂 A kind of method of digital waveform editor and comparison display
CN110456122B (en) * 2019-07-22 2021-05-14 国营芜湖机械厂 Method for editing and comparing and displaying digital waveform
CN116520049A (en) * 2023-04-13 2023-08-01 广州致远仪器有限公司 Waveform output setting method, device, equipment and storage medium
CN116520049B (en) * 2023-04-13 2024-05-17 广州致远仪器有限公司 Waveform output setting method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN102545840B (en) 2016-12-21

Similar Documents

Publication Publication Date Title
CN102981765A (en) Text processing method and terminal
CN101650798B (en) Flow modeling method
AU2003250883A8 (en) A method and system for extending the file system api
TW201600980A (en) Manage event on calendar with timeline
CN103226429A (en) Interface icon display method, device and mobile equipment
CN102819456A (en) Method and device for generating contents in clipboard
CN105096363A (en) Picture editing method and picture editing device
CN103324731A (en) Method and device for converting spreadsheet file into web format file
CN103577906A (en) Workflow generation method, workflow execution method and workflow execution system
CN103729340A (en) Method and device for editing table in webpage
CN106201746A (en) A kind of data editing method based on shear plate and device
CN102545840A (en) Waveform editing method and device
CN105786338A (en) Textbox editing method and apparatus
CN104268194A (en) Method for dynamically generating public opinion brief report
US10204080B2 (en) Rich formatting for a data label associated with a data point
CN103870252A (en) Resource managing method and device
CN109298858A (en) A kind of Excel document generation method and system based on Qt resource file
CN105068983A (en) Rapid input method suitable for batch data acquisition on construction site and control
CN105701649A (en) Data management and control system
CN102411498A (en) Method for realizing data model and graphical designer
CN111506306A (en) Method and device for compiling Ansible script and electronic equipment
CN108279962A (en) A kind of method and device creating visualization data display interface
CN115328462A (en) Js visualization development tool based on Vue and using method
CN101017454A (en) Editing device and method, program, and recording medium
CN102141890B (en) Method for editing text of mobile terminal and mobile terminal

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