JP4012949B2 - Waveform editing method - Google Patents
Waveform editing method Download PDFInfo
- Publication number
- JP4012949B2 JP4012949B2 JP32245597A JP32245597A JP4012949B2 JP 4012949 B2 JP4012949 B2 JP 4012949B2 JP 32245597 A JP32245597 A JP 32245597A JP 32245597 A JP32245597 A JP 32245597A JP 4012949 B2 JP4012949 B2 JP 4012949B2
- Authority
- JP
- Japan
- Prior art keywords
- waveform
- waveform data
- point
- edited
- partial
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 15
- 230000006870 function Effects 0.000 claims description 18
- 238000009499 grossing Methods 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 12
- 238000012888 cubic function Methods 0.000 description 5
- 230000005428 wave function Effects 0.000 description 4
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000009940 knitting Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Images
Landscapes
- Digital Computer Display Output (AREA)
- User Interface Of Digital Computer (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、メモリに記憶された元波形データを編集して編集済波形データを生成する波形編集方法に関する。
【0002】
【従来の技術及び発明が解決しようとする課題】
任意波形発生器は、波形メモリに波形データを記憶しておき、この波形メモリから読み出した波形データをデジタル・アナログ変換することによりアナログ波形信号を出力する。メモリに記憶する波形データの内容を任意に調整することにより任意の出力波形信号を発生することができる。この場合、操作者は、波形メモリに記憶された波形データをCRT(陰極線管)等の表示スクリーン上に表示し、この表示波形の形状を操作パネルを操作して任意に編集することにより所望の波形を生成することができる。
【0003】
波形編集を実行する場合、表示波形の一部分を特定し、その特定の部分波形を横軸方向又は縦軸方向にシフトさせたり、拡大又は縮小表示させたりする操作が頻繁に行われる。その場合、シフトさせたり、拡大又は縮小させたりした特定の部分波形と元の波形とが重なったり離れたりすることにより、波形の不連続や空白部分が生じることがある。図6は、元の波形の一部分(点Aから点Bまでの部分)を時間軸に沿って右方向にΔTだけシフトさせたことにより、表示波形の空白部分と重複部分とが生じている。即ち、点aから点Aまでが空白部分であり、点bから点Bまでが重複部分である。このような波形の空白部分及び重複部分を任意に処理することより波形の編集を行うのであるが、例えば、図7に示すように、単純に直線で波形を連結した場合には、出力波形信号の変化が滑らかではなくなってしまう。出力波形信号の変化を滑らかに連続的に変化するようにしたければ、波形の空白部分及び重複部分を別々に編集し、滑らかな曲線で連結しなければならない。しかし、このような波形編集作業は相当に煩雑で、実際に滑らかな所望の波形を生成するのは時間のかかる面倒な作業であった。
【0004】
したがって、本発明の目的は、元波形の一部分を編集する際に、連続的で滑らかな編集済波形が自動的に簡単に生成可能な波形編集方法を提供することである。
【0005】
【課題を解決する為の手段】
本発明は、横軸及び縦軸を有する画面上で波形表示したときに連続する複数ポイントとして表示される元波形データを編集し、編集済波形データとしてメモリに記憶する波形編集方法である。この方法によれば、元波形データの選択された連続ポイントの部分元波形データの夫々が所定量ずつ横軸又は縦軸に関してシフトした編集済部分波形データをメモリに記憶し、元波形データ上の部分元波形データの一端から外側に連続する第1所定範囲が設定され、元波形データ上の部分元波形データの他端から外側に連続する第2所定範囲が設定され、第1所定範囲の第1スムージング元波形データの各ポイントのシフト量を、ポイント位置の所定の関数に基づいて計算し、この計算結果を編集済部分波形データの一端から外側に連続する第1スムージング編集済波形データとしてメモリに記憶し、第2所定範囲の第2スムージング元波形データの各ポイントのシフト量を、ポイント位置の所定の関数に基づいて計算し、この計算結果を編集済部分波形データの他端から外側に連続する第2スムージング編集済波形データとしてメモリに記憶する。この結果、第1及び第2スムージング編集済波形データと編集済部分波形データとが滑らかな編集済波形データとして生成される。なお、第1及び第2所定範囲は、任意に設定できる。
【0006】
【発明の実施の形態】
図5は、本発明を適用するのに好適な任意波形発生器の構成の一例を示すブロック図である。この装置は、マイクロ・プロセッサ(μP)10によりメイン・バス12を介して制御され、ROM及びRAMを含んだシステム・メモリ14に種々のパターンの波形データ及び制御ソフトウェア等が記憶されている。操作者は、操作パネル16を介して種々の操作を実行する。出力波形メモリ18は、操作者により作成された任意の波形データを記憶する。表示装置20は当業者には周知のものであり、CRT(陰極線管)又は液晶表示装置の如き表示スクリーン上に出力波形メモリ18の内容及び操作者により設定された種々の条件、動作モード等の状態を表示する。出力回路22は、出力波形メモリ18から読み出された波形データをアナログ波形信号に変換して出力端子24を介して出力する。本発明によれば、出力波形メモリ18に記憶した波形データを読出し、表示装置20のスクリーン上に波形を表示しつつ、操作者が波形の編集を実行する。したがって、編集中の波形のデータも出力波形メモリ18の中の所定の記憶領域に記憶させ、元波形データを用いることにより、編集済波形データを生成する。元波形データをどのように用いるかについては、詳細に後述する。なお、出力波形メモリ18とは別のハードウエアとして編集用波形メモリを設けて、編集中の波形データ及び編集済波形データを記憶させるようにしても良い。
【0007】
図1は、本発明の波形編集方法の一例を説明するための波形図である。横軸が時間軸(各時間値はメモリの各アドレス値に対応)であり、縦軸は、各ポイントの電圧値を表す電圧軸である。時間軸上の1つのアドレスが1ポイントのデータに対応しており、1つの波形データは、例えば512ポイントとか1024ポイント等のデータ群で構成されている。図1の波形編集の様子は、図6の従来例の波形編集の様子に対応させ、説明の便宜を図っていることに留意されたい。すなわち、元波形の点a(アドレス値:m)から点b(アドレス値:n)までの波形を時間軸に沿って右方向にΔTだけシフトさせた場合を示している。この元波形の点aから点bまでの部分を部分元波形(a〜b)と表記し、ΔTだけ右方向にシフトした後の点A(アドレス値:m+ΔT)から点B(アドレス値:n+ΔT)までの部分波形を編集済部分波形(A〜B)と表記する。部分元波形(a〜b)の全てのポイントをΔTずつシフトしたのが編集済部分波形(A〜B)であり、両者の波形部分は同一の形状の波形で表されるので、図1では、部分元波形(a〜b)の波形を便宜上表示していないことに留意されたい。
【0008】
このように、部分元波形(a〜b)を編集済部分波形(A〜B)に移動させると、点aと点Aとの間が時間軸上で離間し、点bと点Bとの間が時間軸上で重複することになる。よって、本発明によれば、元波形と編集済部分波形(A+B)との間を滑らかに接続するために、元波形の点aから点cまでの波形データを用いて、点Aから点cまでを滑らかに接続する波形データを自動的に計算する。同様に、元波形の点bから点dまでの波形データを用いて点Bから点dまでを滑らかに接続する波形データも自動的に計算する。この結果、図1に太線で示すような、滑らかな曲線部分(c〜A)及び(B〜d)が自動的に得られるので、操作者は、元波形の任意の部分を選択して、時間軸方向にずらすだけで、ずらした波形部分の両端と元波形とが自動的に滑らかに接続されるので、波形編集を極めて容易かつ迅速に行うことができる。
【0009】
図1において、点c(アドレス値:m−sm)から点A(アドレス値:m+ΔT)までの時間軸領域を第1スムージング領域という。また、点B(アドレス値:n+ΔT)から点d(n+ΔT+sm)までの時間軸領域を第2スムージング領域という。これら第1及び第2スムージング領域の範囲は、smの値を選択することにより、任意に設定できる。図1で太線で示した第1及び第2スムージング領域の部分波形(c〜A)及び(B〜d)は、それぞれ元波形の(c〜a)及び(b〜d)の部分波形データから自動的に計算されて得られもので、それぞれ第1スムージング編集済波形及び第2スムージング編集済波形と呼ぶ。例示として、元波形の部分波形(c〜a)上の任意の点eのデータを所定関数で計算することにより、第1スムージング編集済波形(c〜A)上の点fのデータが求められる。すなわち、点e及び点fの縦軸座標値は同じであり、点e及び点f間の横軸座標値(アドレス値)の差を変数yで表すと、この変数yは、点eの横軸座標(アドレス値)xの所定の3次関数とする。
【0010】
図2は、図1の場合に対応して第1及び第2スムージング編集済波形部分を計算する方法を説明するための図である。横軸は、時間軸に対応する元波形データのアドレス値(変数x)を表し、縦軸は、元波形データから編集済波形データまでのアドレスシフト量(変数y)を表している。すなわち、元波形の点a(アドレス値:m)から点b(アドレス値:n)までの部分の全ポイントは、ΔTだけシフトされ、点Aから点Bまでの編集済部分波形(A〜B)に対応する線分で表している。本発明では、点cから点Aまでを滑らかに接続する曲線を得る必要があるので、求める曲線は、点cにおいてx軸に接し、点Aでは線分ABに滑らかにつながるように、傾きが線分ABと同じになる必要がある。図2では、線分ABは水平な線分であるが、元波形の一部分を拡大したり縮小したりすると、部分波形の連続ポイントにおけるアドレスシフト量を拡大率又は縮小率に応じて変化させることになるので、線分ABが傾く場合や曲線ABとなる場合も生じ得る。したがって、点cと点Aとを滑らかに接続する曲線の関数は、点cではx軸に接すること及び点Aでは線分(又は曲線)ABの点Aにおける傾きに一致した傾きになることを条件とする。この条件を満たす簡単な関数は、3次式で一義的に求めることができる。すなわち、x座標軸のx0の点でx軸に接し、かつ、点(x1,y1)を傾きKで通る3次式は、以下の数式1で表される。
【数1】
y=p*(x−x0)*(x−x0)*(x−q)
ただし、
p={K*(x1−x0)−2*y1}/(x1−x0)**3
q=x1−y1*(x1−x0)/{K*(x1−x0)−2*y1}
ここで、「*」は乗算、「**」は累乗、「/」は除算を表す。
【0011】
もちろん、図2のように線分ABが水平な直線の場合には、点Aにおける傾きK=0となる。上記数式1を図2の場合に適用するには、次の数式2のように置換するだけで容易に適用できる。
【数2】
x0=(m−sm)
x1=m
y1=ΔT
これと同様に、図2の点Bから点dまでの第2スムージング波形の各ポイントのデータも3次式の計算から容易に求めることができる。なお、図2のように、点Aにおける傾きがゼロの場合には、上述の3次関数を必ずしも採用する必要はなく、例えば、余弦波(コサイン)関数や正弦波(サイン)関数等を採用しても良い。
【0011】
図3は、本発明による他の実施の形態の例を示す図である。図3では、元波形の部分波形(a〜b)を縦軸(電圧軸)方向にΔVだけ平行移動させた場合に、その平行移動後の編集済部分波形(A〜B)の両端の点A及び点Bと元波形上の点c及び点dとを夫々滑らかに接続する場合を示している。ここで、元波形上の部分波形(a〜b)は図示していないが、この部分波形の平行移動後の編集済部分波形(A〜B)と同一の形状であることに留意されたい。また、縦軸方向に元波形上の部分波形(a〜b)を平行移動させているので、元部分波形(a〜b)上の各ポイントと編集済部分波形(A〜B)上の各ポイントとは、夫々が同一のアドレス値に対応している。ここで、点a(アドレス値:m)から点c(アドレス値:m−sm)までの範囲を第1スムージング領域とし、点b(アドレス値:n)から点d(アドレス値:n+sm)までの範囲を第2スムージング領域とする。これら第1及び第2スムージング領域は、「sm」のアドレス範囲を調整することにより、任意にアドレス範囲を設定できる。編集済部分波形(A〜B)一端の点Aから元波形上の点cまでの太線で示した曲線部分が第1スムージング編集済波形(A〜c)である。同様に、点Bから点dまでの太線で示した曲線部分が第2スムージング編集済波形である。
【0012】
図3において、元部分波形(a〜c)上の点eから第1スムージング編集済波形(A〜c)上の対応点fまでの電圧シフト量をZとすると、この電圧シフト量Zは、横軸のアドレス値Xの所定の関数で計算することにより与えられる。この結果、第1スムージング編集済波形(A〜c)は、点Aから点cまでを滑らかな曲線で接続する。同様に、点Bから点dまでの第2スムージング編集済波形(B〜d)も、点bから点dまでの元波形部分(b〜d)上の各ポイントのアドレス値Xから所定の関数に従って自動的に計算され、点Bから点dまでが太線で示した滑らかな曲線により自動的に接続される。ここで、これら第1及び第2スムージング編集済波形を計算するための関数は、種々のものが考えられる。例えば、図1及び図2の場合に採用した3次関数を用いても良いし、正弦波関数や余弦波関数等を用いても良い。
【0013】
図4は、図3における第1及び第2スムージング編集済波形の電圧シフト量Zとアドレス値Xとの関係を示す図である。編集済部分波形(A〜B)の部分の全てのポイントは、元波形部分(a〜b)の対応ポイントから一律にΔVだけ平行移動させているので、図4では、水平な線分ABとして表される。一方、太線の曲線で示した第1スムージング編集済波形(A〜c)は、点A〜点c間を滑らかな曲線で接続するように、電圧シフト量Zが変化する所定の関数で自動的に計算される。同様に、第2スムージング編集済波形(B〜d)は、点B〜点d間を滑らかに接続するように、所定の関数に従って自動的に計算される。この図4の例では、所定の関数として余弦(コサイン)関数を採用している。もちろん、上述のような3次関数でも良いし、正弦関数その他の適当な関数を用いても良い。
【0014】
図4において、点cのX座標をX1とし、点AのX座標をX2とすると、第1スムージング編集済波形(A〜c)上における電圧シフト量Zは、以下の数式3で表される。
【数3】
Z=ΔV*{cos[(X-X2)*π/(X2-X1)]+1}/2
この数式3を図3及び図4に適用するには、以下数式4のように置換すればよい。
【数4】
X1=m−sm
X2=m
【0015】
同様にして、図4の第2スムージング編集済波形(B〜d)についても以下の数式5に従って計算できる。ここで、点BのX座標をX3、点dのX座標をX4とする。
【数5】
Z=ΔV*{cos[(X-X3)*π/(X4-X3)]+1}/2
同様に、以下の数式6のように置換する。
【数6】
X3=n
X4=n+sm
【0016】
上述のように、本発明によれば、元波形の一部分を横軸方向に移動させた場合、または縦軸方向に移動させたりした場合、元波形と移動済の波形との間を自動的に滑らかに接続する曲線の波形データを計算することができるので、容易かつ迅速に滑らかな波形を編集生成することが可能となり、極めて操作性の優れた波形編集方法を提供している。
【0017】
以上、本発明の好適実施例を説明したが、本発明は、上述の実施例のみに限定されるものではなく、本発明の要旨から逸脱することなく、種々の変形及び修正を加え得ることは当業者には明らかである。特に、上述の3次関数や余弦関数等は、単なる例示であり、本発明はこれらの関数に限定されるものではないことに留意すべきである。
【図面の簡単な説明】
【図1】本発明の波形編集方法を例示するための波形図である。
【図2】図1の場合に対応して第1及び第2スムージング編集済波形部分を計算する方法を説明するための図である。
【図3】本発明の波形編集方法の他の例を示すための波形図である。
【図4】図3の場合に対応して第1及び第2スムージング編集済波形部分を計算する方法を説明するための図である。
【図5】本発明を用いるのに好適な任意波形発生器の構成の一例を示すブロック図である。
【図6】従来の波形編集方法において元波形の一部分を横軸方向に移動させた場合の一例を示す波形図である。
【図7】図6の場合に元波形と移動済波形部分とを直線で接続した場合の例を示す波形図である。
【符号の説明】
(A〜c) 第1スムージング編集済波形
(A〜B) 編集済部分波形
(B〜d) 第2スムージング編集済波形[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a waveform editing method for generating edited waveform data by editing original waveform data stored in a memory.
[0002]
[Prior art and problems to be solved by the invention]
The arbitrary waveform generator stores waveform data in a waveform memory, and outputs an analog waveform signal by performing digital / analog conversion on the waveform data read from the waveform memory. An arbitrary output waveform signal can be generated by arbitrarily adjusting the contents of the waveform data stored in the memory. In this case, the operator displays the waveform data stored in the waveform memory on a display screen such as a CRT (cathode ray tube) and operates the operation panel to arbitrarily edit the shape of the displayed waveform. Waveforms can be generated.
[0003]
When executing waveform editing, an operation of specifying a part of a display waveform, shifting the specific partial waveform in the horizontal axis direction or the vertical axis direction, and displaying the enlarged or reduced image is frequently performed. In that case, a discontinuity or a blank portion of the waveform may occur due to the specific partial waveform that is shifted, enlarged or reduced, and the original waveform being overlapped or separated. In FIG. 6, a portion of the original waveform (portion from point A to point B) is shifted by ΔT in the right direction along the time axis, so that a blank portion and an overlapping portion of the display waveform are generated. That is, a point a to a point A is a blank portion, and a point b to a point B is an overlapping portion. Waveform editing is performed by arbitrarily processing such blank portions and overlapping portions of the waveform. For example, as shown in FIG. 7, when the waveforms are simply connected by straight lines, the output waveform signal Changes will not be smooth. If it is desired to change the output waveform signal smoothly and continuously, blank portions and overlapping portions of the waveform must be edited separately and connected by a smooth curve. However, such a waveform editing operation is quite complicated, and it has been time-consuming and troublesome to actually generate a desired smooth waveform.
[0004]
Accordingly, an object of the present invention is to provide a waveform editing method capable of automatically and easily generating a continuous and smooth edited waveform when editing a part of an original waveform.
[0005]
[Means for solving the problems]
The present invention, by editing the original waveform data displayed as multiple consecutive points when displayed waveform on the screen having a horizontal axis and a vertical axis, a waveform editing method is stored in the memory as the edited waveform data. According to this method, and stores the edited partial waveform data each partial original waveform data of the selected consecutive points of the original waveform data is shifted with respect to the horizontal axis or the vertical axis by a predetermined amount in the memory, on the original waveform data A first predetermined range that continues outward from one end of the partial original waveform data is set, a second predetermined range that continues outward from the other end of the partial original waveform data on the original waveform data is set, and the first predetermined range of the first predetermined range is set . The shift amount of each point of one smoothing source waveform data is calculated based on a predetermined function of the point position, and the calculation result is stored in memory as first smoothed edited waveform data that continues outward from one end of the edited partial waveform data. stored in the shift amount for each point of the second smoothing the original waveform data of the second predetermined range, and calculated based on a predetermined function of the point position, knitting the calculation result From the other end of the already partial waveform data stored in the memory as a second smoothing edited waveform data continuously to the outside. As a result, the first and second smoothed edited waveform data and the edited partial waveform data are generated as smooth edited waveform data. Note that the first and second predetermined ranges can be arbitrarily set.
[0006]
DETAILED DESCRIPTION OF THE INVENTION
FIG. 5 is a block diagram showing an example of the configuration of an arbitrary waveform generator suitable for applying the present invention. This apparatus is controlled by a microprocessor (μP) 10 via a main bus 12, and various patterns of waveform data, control software, and the like are stored in a system memory 14 including a ROM and a RAM. The operator performs various operations via the operation panel 16. The output waveform memory 18 stores arbitrary waveform data created by the operator. The display device 20 is well known to those skilled in the art, such as the contents of the output waveform memory 18 on the display screen such as a CRT (cathode ray tube) or a liquid crystal display device, and various conditions and operation modes set by the operator. Display status. The output circuit 22 converts the waveform data read from the output waveform memory 18 into an analog waveform signal and outputs it through the output terminal 24. According to the present invention, the waveform data stored in the output waveform memory 18 is read, and the operator executes waveform editing while displaying the waveform on the screen of the display device 20. Therefore, the waveform data being edited is also stored in a predetermined storage area in the output waveform memory 18, and edited waveform data is generated by using the original waveform data. How to use the original waveform data will be described later in detail. Note that an editing waveform memory may be provided as hardware different from the output waveform memory 18, and the waveform data being edited and the edited waveform data may be stored.
[0007]
FIG. 1 is a waveform diagram for explaining an example of the waveform editing method of the present invention. The horizontal axis is a time axis (each time value corresponds to each address value in the memory), and the vertical axis is a voltage axis representing the voltage value at each point. One address on the time axis corresponds to one point of data, and one waveform data is composed of a data group such as 512 points or 1024 points. It should be noted that the waveform editing in FIG. 1 corresponds to the waveform editing in the conventional example in FIG. 6 for the convenience of explanation. That is, it shows a case where the waveform from point a (address value: m) to point b (address value: n) of the original waveform is shifted by ΔT in the right direction along the time axis. The portion of the original waveform from point a to point b is denoted as partial original waveform (ab), and after shifting rightward by ΔT to point A (address value: m + ΔT) to point B (address value: n + ΔT) ) Are represented as edited partial waveforms (A to B). In FIG. 1, since all the points of the partial original waveforms (a to b) are shifted by ΔT, the edited partial waveforms (A to B) are represented by waveforms having the same shape. Note that the waveforms of the partial source waveforms (ab) are not displayed for convenience.
[0008]
As described above, when the partial original waveform (ab) is moved to the edited partial waveform (AB), the point a and the point A are separated on the time axis, and the point b and the point B are separated. The interval will overlap on the time axis. Therefore, according to the present invention, in order to smoothly connect the original waveform and the edited partial waveform (A + B), the waveform data from the point a to the point c of the original waveform is used and the point A to the point c are used. Waveform data that smoothly connects up to is automatically calculated. Similarly, waveform data that smoothly connects point B to point d is automatically calculated using waveform data from point b to point d of the original waveform. As a result, smooth curve portions (c to A) and (B to d) as shown by bold lines in FIG. 1 are automatically obtained, so that the operator selects an arbitrary portion of the original waveform, By simply shifting in the time axis direction, both ends of the shifted waveform portion and the original waveform are automatically and smoothly connected, so waveform editing can be performed very easily and quickly.
[0009]
In FIG. 1, a time axis region from a point c (address value: m−sm) to a point A (address value: m + ΔT) is referred to as a first smoothing region. The time axis region from the point B (address value: n + ΔT) to the point d (n + ΔT + sm) is referred to as a second smoothing region. The range of the first and second smoothing regions can be arbitrarily set by selecting the value of sm. The partial waveforms (c to A) and (B to d) of the first and second smoothing regions indicated by bold lines in FIG. 1 are obtained from the partial waveform data of (c to a) and (b to d) of the original waveform, respectively. These are obtained by automatic calculation and are called a first smoothed edited waveform and a second smoothed edited waveform, respectively. For example, the data of the point f on the first smoothed edited waveform (c to A) is obtained by calculating the data of an arbitrary point e on the partial waveform (c to a) of the original waveform with a predetermined function. . That is, the vertical axis coordinate values of the point e and the point f are the same, and when the difference of the horizontal axis coordinate value (address value) between the point e and the point f is represented by the variable y, the variable y is A predetermined cubic function of the axis coordinate (address value) x is assumed.
[0010]
FIG. 2 is a diagram for explaining a method of calculating the first and second smoothed edited waveform portions corresponding to the case of FIG. The horizontal axis represents the address value (variable x) of the original waveform data corresponding to the time axis, and the vertical axis represents the address shift amount (variable y) from the original waveform data to the edited waveform data. That is, all points in the portion of the original waveform from point a (address value: m) to point b (address value: n) are shifted by ΔT, and edited partial waveforms (A to B from point A to point B). ). In the present invention, since it is necessary to obtain a curve that smoothly connects point c to point A, the curve to be obtained touches the x-axis at point c, and the slope is such that the point A smoothly connects to line segment AB. It must be the same as line segment AB. In FIG. 2, the line segment AB is a horizontal line segment. However, when a part of the original waveform is enlarged or reduced, the address shift amount at the continuous points of the partial waveform is changed according to the enlargement ratio or the reduction ratio. Therefore, there may occur a case where the line segment AB is inclined or a curve AB. Therefore, the function of the curve that smoothly connects the point c and the point A is that the point c touches the x-axis and the point A has a slope that matches the slope at the point A of the line segment (or curve) AB. Condition. A simple function that satisfies this condition can be uniquely determined by a cubic equation. That is, a cubic equation that touches the x-axis at the x-coordinate point x0 and passes through the point (x1, y1) with a slope K is expressed by the
[Expression 1]
y = p * (x−x0) * (x−x0) * (x−q)
However,
p = {K * (x1-x0) -2 * y1} / (x1-x0) ** 3
q = x1-y1 * (x1-x0) / {K * (x1-x0) -2 * y1}
Here, “*” represents multiplication, “**” represents power, and “/” represents division.
[0011]
Of course, when the line segment AB is a horizontal straight line as shown in FIG. 2, the slope K at the point A is zero. In order to apply the
[Expression 2]
x0 = (m-sm)
x1 = m
y1 = ΔT
Similarly, the data of each point of the second smoothing waveform from the point B to the point d in FIG. 2 can be easily obtained from the calculation of the cubic equation. As shown in FIG. 2, when the slope at the point A is zero, it is not always necessary to employ the above-mentioned cubic function. For example, a cosine wave function or a sine wave function is employed. You may do it.
[0011]
FIG. 3 is a diagram showing an example of another embodiment according to the present invention. In FIG. 3, when the partial waveform (a-b) of the original waveform is translated by ΔV in the vertical axis (voltage axis) direction, the points at both ends of the edited partial waveform (A-B) after the parallel movement are obtained. A case where A and point B are smoothly connected to point c and point d on the original waveform is shown. Here, it should be noted that the partial waveforms (ab) on the original waveform are not shown, but have the same shape as the edited partial waveforms (AB) after the partial waveform is translated. Further, since the partial waveforms (ab) on the original waveform are translated in the vertical axis direction, each point on the original partial waveform (ab) and each of the edited partial waveforms (AB) are displayed. Each point corresponds to the same address value. Here, the range from the point a (address value: m) to the point c (address value: m−sm) is defined as the first smoothing region, and the point b (address value: n) to the point d (address value: n + sm). Is a second smoothing region. These first and second smoothing regions can be arbitrarily set by adjusting the address range of “sm”. The curved portion indicated by a thick line from the point A at one end of the edited partial waveform (A to B) to the point c on the original waveform is the first smoothed edited waveform (A to c). Similarly, the curve portion indicated by the bold line from point B to point d is the second smoothed edited waveform.
[0012]
In FIG. 3, when the voltage shift amount from the point e on the original partial waveform (ac) to the corresponding point f on the first smoothed edited waveform (Ac) is Z, the voltage shift amount Z is It is given by calculating with a predetermined function of the address value X on the horizontal axis. As a result, the first smoothed edited waveform (A to c) connects point A to point c with a smooth curve. Similarly, the second smoothed edited waveform (B to d) from the point B to the point d is also a predetermined function from the address value X of each point on the original waveform portion (b to d) from the point b to the point d. The point B to the point d are automatically connected by a smooth curve indicated by a thick line. Here, various functions for calculating the first and second smoothed edited waveforms can be considered. For example, a cubic function employed in the case of FIGS. 1 and 2 may be used, or a sine wave function, a cosine wave function, or the like may be used.
[0013]
FIG. 4 is a diagram showing the relationship between the voltage shift amount Z and the address value X of the first and second smoothed edited waveforms in FIG. Since all the points of the edited partial waveform (A to B) are uniformly translated by ΔV from the corresponding points of the original waveform portions (a to b), in FIG. expressed. On the other hand, the first smoothed edited waveform (A to c) indicated by the bold curve is automatically generated by a predetermined function in which the voltage shift amount Z changes so that the points A to c are connected by a smooth curve. Is calculated. Similarly, the second smoothed edited waveform (B to d) is automatically calculated according to a predetermined function so as to smoothly connect the points B to d. In the example of FIG. 4, a cosine function is employed as the predetermined function. Of course, a cubic function as described above may be used, or a sine function or other appropriate function may be used.
[0014]
In FIG. 4, when the X coordinate of the point c is X1 and the X coordinate of the point A is X2, the voltage shift amount Z on the first smoothed edited waveform (A to c) is expressed by the following Equation 3. .
[Equation 3]
Z = ΔV * {cos [(X−X2) * π / (X2−X1)] + 1} / 2
In order to apply Equation 3 to FIGS. 3 and 4, the following
[Expression 4]
X1 = m-sm
X2 = m
[0015]
Similarly, the second smoothed edited waveform (B to d) of FIG. Here, the X coordinate of the point B is X3, and the X coordinate of the point d is X4.
[Equation 5]
Z = ΔV * {cos [(X−X3) * π / (X4−X3)] + 1} / 2
Similarly, substitution is performed as in the following
[Formula 6]
X3 = n
X4 = n + sm
[0016]
As described above, according to the present invention, when a part of the original waveform is moved in the horizontal axis direction or moved in the vertical axis direction, the gap between the original waveform and the moved waveform is automatically set. Since the waveform data of smoothly connected curves can be calculated, a smooth waveform can be easily and quickly edited and generated, and a waveform editing method with extremely excellent operability is provided.
[0017]
Although the preferred embodiments of the present invention have been described above, the present invention is not limited to the above-described embodiments, and various modifications and corrections can be made without departing from the gist of the present invention. It will be apparent to those skilled in the art. In particular, it should be noted that the above-described cubic function, cosine function, and the like are merely examples, and the present invention is not limited to these functions.
[Brief description of the drawings]
FIG. 1 is a waveform diagram for illustrating a waveform editing method of the present invention.
FIG. 2 is a diagram for explaining a method of calculating first and second smoothed edited waveform portions corresponding to the case of FIG. 1;
FIG. 3 is a waveform diagram for illustrating another example of the waveform editing method of the present invention.
FIG. 4 is a diagram for explaining a method of calculating first and second smoothed edited waveform portions corresponding to the case of FIG. 3;
FIG. 5 is a block diagram showing an example of the configuration of an arbitrary waveform generator suitable for using the present invention.
FIG. 6 is a waveform diagram showing an example when a part of an original waveform is moved in the horizontal axis direction in a conventional waveform editing method.
7 is a waveform diagram showing an example when the original waveform and the moved waveform portion are connected by a straight line in the case of FIG. 6;
[Explanation of symbols]
(A to c) First smoothed edited waveform (A to B) Edited partial waveform (B to d) Second smoothed edited waveform
Claims (1)
上記元波形データの選択された連続ポイントの部分元波形データの夫々が所定量ずつ上記横軸又は上記縦軸に関してシフトした編集済部分波形データを上記メモリに記憶し、
上記元波形データ上の上記部分元波形データの一端から外側に連続する第1所定範囲が設定され、
上記元波形データ上の上記部分元波形データの他端から外側に連続する第2所定範囲が設定され、
上記第1所定範囲の第1スムージング元波形データの各ポイントのシフト量を、ポイント位置の所定の関数に基づいて計算し、この計算結果を上記編集済部分波形データの一端から外側に連続する第1スムージング編集済波形データとして上記メモリに記憶し、
上記第2所定範囲の第2スムージング元波形データの各ポイントのシフト量を、ポイント位置の所定の関数に基づいて計算し、この計算結果を上記編集済部分波形データの他端から外側に連続する第2スムージング編集済波形データとして上記メモリに記憶し、
上記第1及び第2スムージング編集済波形データと上記編集済部分波形データとが滑らかな編集済波形データとして生成されることを特徴とする波形編集方法。Edit the original waveform data displayed as multiple consecutive points when displayed waveform on the screen having a horizontal axis and a vertical axis, a waveform editing method for storing in the memory as the edited waveform data,
The edited partial waveform data in which each of the partial original waveform data of selected continuous points of the original waveform data is shifted by a predetermined amount with respect to the horizontal axis or the vertical axis is stored in the memory,
A first predetermined range that continues outward from one end of the partial original waveform data on the original waveform data is set,
A second predetermined range that is continuous outward from the other end of the partial original waveform data on the original waveform data is set,
A shift amount of each point of the first smoothing source waveform data in the first predetermined range is calculated based on a predetermined function of the point position, and the calculation result is continuously output from one end of the edited partial waveform data to the outside . One smoothed edited waveform data is stored in the memory,
The shift amount of each point of the second smoothing source waveform data in the second predetermined range is calculated based on a predetermined function of the point position, and this calculation result is continuously output from the other end of the edited partial waveform data. Store in the memory as second smoothed edited waveform data,
A waveform editing method, wherein the first and second smoothed edited waveform data and the edited partial waveform data are generated as smooth edited waveform data.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32245597A JP4012949B2 (en) | 1997-11-06 | 1997-11-06 | Waveform editing method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP32245597A JP4012949B2 (en) | 1997-11-06 | 1997-11-06 | Waveform editing method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH11142441A JPH11142441A (en) | 1999-05-28 |
| JP4012949B2 true JP4012949B2 (en) | 2007-11-28 |
Family
ID=18143858
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP32245597A Expired - Fee Related JP4012949B2 (en) | 1997-11-06 | 1997-11-06 | Waveform editing method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4012949B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7159187B2 (en) * | 2001-11-06 | 2007-01-02 | Tektronix, Inc. | In-context creation and editing of masks and waveforms |
-
1997
- 1997-11-06 JP JP32245597A patent/JP4012949B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JPH11142441A (en) | 1999-05-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH03135675A (en) | Electronic graphic system | |
| JPH0419556B2 (en) | ||
| US5167015A (en) | Line drawing method and apparatus | |
| JP4012949B2 (en) | Waveform editing method | |
| JP4012950B2 (en) | Waveform editing method | |
| JPH1063828A (en) | Method for processing image and device therefor | |
| JP3464874B2 (en) | Method and apparatus for tracing point sequence by Bezier curve | |
| JPH06225215A (en) | Pattern generating method based on wipe solid generator | |
| JPH0449474A (en) | Thick line generation method and device | |
| JPH01202785A (en) | Segment generator | |
| JPH03274469A (en) | Waveform display apparatus | |
| JP2644719B2 (en) | Method and apparatus for generating a smoothing curve on a visualized surface by a mesh network | |
| JP2675169B2 (en) | Graphic processing system | |
| JPS6093339A (en) | Electrophoretic device | |
| JP3510515B2 (en) | Fill processing apparatus, method, and recording medium recording computer program used for the processing | |
| JP2929705B2 (en) | How to change the wiring pattern shape | |
| JPS61190661A (en) | Correcting method for curve pattern | |
| JP2802890B2 (en) | Display control device in graphic display system | |
| GB2123658A (en) | Display system with circle generator | |
| JPH103549A (en) | Pronunciation body identification support device | |
| JPH1131233A (en) | Method and device for plotting polygon | |
| JPH03229379A (en) | Data processor | |
| JPH02176698A (en) | display device | |
| JP2000183654A (en) | Waveform generator | |
| JPH1131232A (en) | Method and device for plotting polygon |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20060404 |
|
| A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20060704 |
|
| RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20060704 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20061205 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20070302 |
|
| A601 | Written request for extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A601 Effective date: 20070305 |
|
| A602 | Written permission of extension of time |
Free format text: JAPANESE INTERMEDIATE CODE: A602 Effective date: 20070308 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20070724 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20070801 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100921 Year of fee payment: 3 |
|
| R150 | Certificate of patent (=grant) or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110921 Year of fee payment: 4 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120921 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130921 Year of fee payment: 6 |
|
| LAPS | Cancellation because of no payment of annual fees |