JPH08160078A - Automatic scaling method - Google Patents

Automatic scaling method

Info

Publication number
JPH08160078A
JPH08160078A JP6321285A JP32128594A JPH08160078A JP H08160078 A JPH08160078 A JP H08160078A JP 6321285 A JP6321285 A JP 6321285A JP 32128594 A JP32128594 A JP 32128594A JP H08160078 A JPH08160078 A JP H08160078A
Authority
JP
Japan
Prior art keywords
value
waveform
coordinate axis
waveform data
limit value
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.)
Pending
Application number
JP6321285A
Other languages
Japanese (ja)
Inventor
Yoshihiro Ito
義裕 伊藤
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.)
Ando Electric Co Ltd
Original Assignee
Ando Electric Co Ltd
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 Ando Electric Co Ltd filed Critical Ando Electric Co Ltd
Priority to JP6321285A priority Critical patent/JPH08160078A/en
Publication of JPH08160078A publication Critical patent/JPH08160078A/en
Pending legal-status Critical Current

Links

Landscapes

  • Indication And Recording Devices For Special Purposes And Tariff Metering Devices (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

PURPOSE: To decide a coordinate axis which is suitable for observing waveforms by comparing the signs of the maximum and minimum values of waveform data with each other and distinguishing a scaling when the signs are the same from that when the signs are different from each other. CONSTITUTION: The coordinate axis which is suitable for observing waveform data is decided by storing waveform data 51 acquired by means of a measuring instrument and automatically scaling 52 the data. At the time of deciding the coordinate axis, a rounded numerical value is outputted 53. The automatic scaling is performed in such a way that the signs of the maximum and minimum values of the waveform data are compared with each other and, when they coincide (do not coincide) with each other, the scaling is performed against a single-pole (double-pole) waveform. For the single-pole waveform, the lower-limit value of the coordinate axis is found by rounding the upper-limit value of the coordinate axis and coordinate width when, for example, the sign of the waveform data is positive. When the upper- and lower-limit values have different signs, the lower limit value is made '0' and the upper-limit value is corrected. For a double-pole waveform, the divided value is rounded and, when the position of the waveform is on the positive (negative) side, the negative-side (positive-side) devided value is found from the positive-side (negative-side) divided value and the upper-limit (lower-limit value is found from the positive-side (negative-side) divided value. Therefore, the locus of the waveform data can be brought to the center side.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、自動スケーリング方法
に関し、特に、波形データの軌跡を表示する場合におい
て、座標軸の上限値と下限値を指定することなく、全体
あるいは指定した区間の波形データの軌跡を表示する座
標軸を決定できる自動スケーリング方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an automatic scaling method, and in particular, when displaying a locus of waveform data, the waveform data of the whole or a designated section can be displayed without designating an upper limit value and a lower limit value of coordinate axes. The present invention relates to an automatic scaling method capable of determining coordinate axes displaying a trajectory.

【0002】[0002]

【従来の技術】計測装置によって取得した波形データの
観測を目的として、波形データの軌跡をコンピュータの
グラフィック端末等に表示する場合における自動スケー
リング方法の従来例を図8により説明する。図8は、分
割数を4として等分割したY座標を自動スケーリングし
たX−Y平面に波形データの軌跡を表示した例である。
図8において、波形データの最大値1、波形データの最
小値2、Y座標軸の上限値3、Y座標軸の下限値4、Y
座標軸の座標幅5、Y座標軸の分割値6がそれぞれ示さ
れている。
2. Description of the Related Art A conventional example of an automatic scaling method for displaying a trajectory of waveform data on a graphic terminal of a computer for the purpose of observing the waveform data acquired by a measuring device will be described with reference to FIG. FIG. 8 is an example in which the locus of waveform data is displayed on the XY plane in which the Y coordinate equally divided with the number of divisions being 4 is automatically scaled.
In FIG. 8, the maximum value 1 of the waveform data, the minimum value 2 of the waveform data, the upper limit value 3 of the Y coordinate axis, the lower limit value 4 of the Y coordinate axis, Y
The coordinate width 5 of the coordinate axis and the division value 6 of the Y coordinate axis are shown.

【0003】そして、従来の自動スケーリング方法で
は、波形データの最大値1の丸め値を座標軸の上限値3
とし、波形データの最小値2の丸め値を座標軸の下限値
4としている。ここで、丸めは、丸め値の絶対値が被丸
め値の絶対値に等しいか、あるいは越える値となるよう
な値を求めることである。また、座標幅5は座標軸の上
限値3と下限値4の差分値であり、分割値6は座標幅5
を被除数とし分割数を除数として除算した商である。
In the conventional automatic scaling method, the rounding value of the maximum value 1 of the waveform data is set to the upper limit value 3 of the coordinate axis.
And the rounding value of the minimum value 2 of the waveform data is set as the lower limit value 4 of the coordinate axis. Here, rounding is to obtain a value such that the absolute value of the rounded value is equal to or exceeds the absolute value of the rounded value. The coordinate width 5 is a difference value between the upper limit value 3 and the lower limit value 4 of the coordinate axis, and the division value 6 is the coordinate width 5
Is the quotient obtained by dividing by the dividend and the divisor.

【0004】[0004]

【発明が解決しようとする課題】ところが、上記した従
来の自動スケーリング方法の場合、波形データの絶対値
の最小値が波形データの絶対値の最大値に比べて十分に
ゼロに近い場合には、従来のスケーリング方法によって
求めた座標軸の絶対値の下限値が座標軸の絶対値の上限
値に比べて非常に小さくてゼロでない値となってしまう
結果、座標軸が波形観測に適さない場合となることがあ
る。
However, in the conventional automatic scaling method described above, when the minimum absolute value of the waveform data is sufficiently close to zero as compared with the maximum absolute value of the waveform data, The lower limit value of the absolute value of the coordinate axis obtained by the conventional scaling method is much smaller than the upper limit value of the absolute value of the coordinate axis and becomes a non-zero value.As a result, the coordinate axis may not be suitable for waveform observation. is there.

【0005】また、波形データの最大値の符号と最小値
の符号が異なる場合、座標のゼロの位置が座標の分割線
と一致しないことがあり、この場合にも座標軸が波形観
測に適さなくなってしまう。
In addition, when the sign of the maximum value and the sign of the minimum value of the waveform data are different, the position of the coordinate zero may not coincide with the dividing line of the coordinate, and in this case also the coordinate axis becomes unsuitable for waveform observation. I will end up.

【0006】更に、丸めによって求められた座標軸が1
種類の場合には、波形データの軌跡が座標軸の中央寄り
に配置されないことから、座標軸が波形観測に適さなく
なる場合がある。
Further, the coordinate axis obtained by rounding is 1
In the case of the type, since the locus of the waveform data is not arranged near the center of the coordinate axis, the coordinate axis may not be suitable for waveform observation.

【0007】本発明の目的は、波形データの最大値と最
小値の大小関係や符号の違い等によらず、波形観測に適
した座標軸を決定することができる自動スケーリング方
法を提供することにある。
An object of the present invention is to provide an automatic scaling method capable of determining a coordinate axis suitable for waveform observation regardless of the magnitude relationship between the maximum value and the minimum value of waveform data, the difference in sign, and the like. .

【0008】[0008]

【課題を解決するための手段】第1発明では、等分割さ
れた座標軸を1つないし2つ持つ2次元平面に2個以上
のサンプル点から構成される波形データを表示する装置
において、前記波形データの最大値と最小値の符号を比
較し、符号が一致する単極波形の場合と、符号が異なる
両極波形の場合とに区別して、それぞれ座標軸を決定す
る、構成とした。
According to a first aspect of the invention, in a device for displaying waveform data composed of two or more sample points on a two-dimensional plane having one or two coordinate axes equally divided, the waveform is The maximum value and the minimum value of the data are compared, and the coordinate axes are determined separately for the case of a unipolar waveform having the same code and for the case of a bipolar waveform having a different code.

【0009】また、第2発明では、等分割された座標軸
を1つないし2つ持つ2次元平面に2個以上のサンプル
点から構成される波形データを表示する装置において、
丸め処理によって2種類以上の座標軸を求め、前記波形
データの軌跡が座標軸の中央寄りに配置されるように最
適な座標軸を決定する、構成とした。
According to the second aspect of the invention, in a device for displaying waveform data composed of two or more sample points on a two-dimensional plane having one or two coordinate axes equally divided,
The configuration is such that two or more kinds of coordinate axes are obtained by the rounding process, and the optimum coordinate axis is determined so that the locus of the waveform data is arranged near the center of the coordinate axes.

【0010】[0010]

【作用】第1発明では、波形データの最大値の符号と最
小値の符号とを比較する。そして、符号が一致する単極
波形の場合には、座標軸の絶対値の上限値と座標軸の座
標幅を求める方法により座標軸を決定する。また、符号
が異なる両極波形の場合は、座標軸の分割値とゼロ点の
位置を求める方法により座標軸を決定する。これによ
り、波形データの最大値と最小値の大小関係や符号の違
いによらず、波形観測に適した座標軸を決定することが
できる。
In the first invention, the sign of the maximum value and the sign of the minimum value of the waveform data are compared. Then, in the case of a unipolar waveform having the same sign, the coordinate axis is determined by a method of obtaining the upper limit value of the absolute value of the coordinate axis and the coordinate width of the coordinate axis. In the case of bipolar waveforms having different signs, the coordinate axis is determined by the method of obtaining the division value of the coordinate axis and the position of the zero point. This makes it possible to determine a coordinate axis suitable for waveform observation regardless of the magnitude relationship between the maximum value and the minimum value of the waveform data and the difference in sign.

【0011】第2発明では、丸め処理によって求めた2
種類以上の座標軸から、波形データの最大値と波形デー
タの最小値とから求めた中間値と、座標軸の上限値と座
標軸の下限値とから求めた中間値との絶対値が最小とな
る座標軸を選択して、最適な絶対軸に決定する。これに
より、波形データの軌跡を座標軸の中央寄りに配置でき
る最適な座標軸を決定することができる。
In the second invention, 2 obtained by rounding processing
From the coordinate axes of more than one type, find the coordinate axis with the minimum absolute value of the intermediate value obtained from the maximum value of the waveform data and the minimum value of the waveform data, and the intermediate value obtained from the upper limit value of the coordinate axis and the lower limit value of the coordinate axis. Select to determine the optimum absolute axis. This makes it possible to determine the optimum coordinate axis that allows the locus of the waveform data to be arranged near the center of the coordinate axis.

【0012】[0012]

【実施例】図1に、本発明の実施例の構成を示した。こ
の実施例は、データ取得部51、スケーリング部52、
丸め処理部53、表示部54から構成される。データ取
得部51は、計測装置によって取得した波形データをコ
ンピュータの記憶装置に格納するためのものである。ま
たスケーリング部52は、データ取得部51で取得した
波形データを観測するのに適した座標軸を決定するため
のものである。丸め処理部53は、スケーリング部52
における自動スケーリング処理を行う際に必要な処理部
であり、数値と補正値を入力することで、丸められた数
値が出力される。また、表示部54は、スケーリング部
52によって決定された座標軸をもとに、データ取得部
51で取得した波形データをコンピュータのグラフィッ
ク端末上に軌跡を表示するためのものである。そして、
この構成に基づいて、以下の処理が行われる。
EXAMPLE FIG. 1 shows the configuration of an example of the present invention. In this embodiment, the data acquisition unit 51, the scaling unit 52,
It comprises a rounding unit 53 and a display unit 54. The data acquisition unit 51 is for storing the waveform data acquired by the measuring device in the storage device of the computer. The scaling unit 52 is for determining coordinate axes suitable for observing the waveform data acquired by the data acquisition unit 51. The rounding processing unit 53 includes the scaling unit 52.
This is a processing unit required for performing the automatic scaling process in 1., and by inputting a numerical value and a correction value, a rounded numerical value is output. The display unit 54 is for displaying the locus of the waveform data acquired by the data acquisition unit 51 on the graphic terminal of the computer based on the coordinate axes determined by the scaling unit 52. And
The following processing is performed based on this configuration.

【0013】次に、第1発明に係る自動スケーリング方
法を図2のフローチャートに基づいて説明する。図2に
おいては、まず、波形データの最大値の符号と最小値の
符号を比較し(処理S7)、符号が一致している場合に
は、単極波形のためのスケーリングを行い(処理S
8)、また、符号が不一致の場合には、両極波形のため
のスケーリングを行う(処理S9)。
Next, the automatic scaling method according to the first invention will be described with reference to the flowchart of FIG. In FIG. 2, first, the sign of the maximum value and the sign of the minimum value of the waveform data are compared (process S7), and if the signs match, scaling for a unipolar waveform is performed (process S7).
8) On the other hand, if the signs do not match, scaling for the bipolar waveform is performed (process S9).

【0014】ここで、単純波形のスケーリングS8の場
合のフローチャートを図3に示した。すなわち、波形デ
ータの符号の判定を行い(処理S10)、符号が正の場
合は座標軸の上限値を丸める(処理S11)。次いで、
座標軸の座標幅を丸め(処理S12)また、処理S11
で求めた上限値と処理S12で求めた座標幅から、座標
軸の下限値を求める(処理S13)。
Here, a flow chart in the case of the scaling S8 of the simple waveform is shown in FIG. That is, the sign of the waveform data is determined (process S10), and if the sign is positive, the upper limit of the coordinate axis is rounded (process S11). Then
Round the coordinate width of the coordinate axis (process S12) and process S11
The lower limit value of the coordinate axis is obtained from the upper limit value obtained in step S1 and the coordinate width obtained in step S12 (step S13).

【0015】そして、処理S11の上限値の符号と処理
S13の下限値の符号とを比較し(処理S14)、符号
が一致しない場合には、下限値をゼロに変更して正極波
形を表示する座標軸の下限値をゼロないし正の値にする
(処理S15)。次に、処理S15で下限値をゼロに変
更した分だけ、上限値を修正する(処理S16)。ま
た、処理S9の判定によって符号が負の場合は、座標軸
の下限値を丸める(処理S17)。次いで、座標軸の座
標幅を丸め(処理S18)、処理S17で求めた下限値
と処理S18で求めた座標幅とから、座標軸の上限値を
求める(処理S19)。
Then, the sign of the upper limit value of the process S11 is compared with the sign of the lower limit value of the process S13 (process S14). If the signs do not match, the lower limit value is changed to zero and the positive waveform is displayed. The lower limit value of the coordinate axis is set to zero or a positive value (process S15). Next, the upper limit is corrected by the amount that the lower limit is changed to zero in process S15 (process S16). If the sign is negative in the determination of the process S9, the lower limit of the coordinate axis is rounded (process S17). Next, the coordinate width of the coordinate axis is rounded (step S18), and the upper limit value of the coordinate axis is obtained from the lower limit value obtained in step S17 and the coordinate width obtained in step S18 (step S19).

【0016】その後、処理S17の下限値の符号と処理
S19の上限値の符号とを比較し(処理S20)、符号
が一致しない場合には、上限値をゼロに変更して、負極
波形を表示する座標値の上限値をゼロ又は負の値にする
(処理S21)。次いで、処理S21で上限値をゼロに
変更した分だけ、上限値を修正する(処理S22)。
Thereafter, the sign of the lower limit value of the process S17 and the sign of the upper limit value of the process S19 are compared (process S20). If the signs do not match, the upper limit value is changed to zero and the negative waveform is displayed. The upper limit of the coordinate values to be set is set to zero or a negative value (process S21). Next, the upper limit value is corrected by the amount of changing the upper limit value to zero in the process S21 (process S22).

【0017】次に、両極波形のスケーリングS9の場合
のフローチャートを図4に示した。すなわち、まず、分
割値を丸め(処理S23)、次に波形が負寄りに位置す
るかどうかを判定し(処理S24)、波形が負寄りに位
置する場合には、正側の分割値を求め(処理S25)、
正側の分割数から負側の分割数を求める(処理S2
6)。また、処理S24の判定で波形が負寄りに位置す
る場合には、負側の分割数を求め(処理S27)、負側
の分割数から正側の分割数を求める(処理S28)。
Next, FIG. 4 shows a flowchart in the case of scaling S9 of the bipolar waveform. That is, first, the division value is rounded (process S23), and then it is determined whether the waveform is located on the negative side (process S24). If the waveform is located on the negative side, the division value on the positive side is obtained. (Processing S25),
The number of divisions on the negative side is obtained from the number of divisions on the positive side (process S2
6). If the waveform is located closer to the negative side in the determination of process S24, the number of divisions on the negative side is obtained (process S27), and the number of divisions on the positive side is obtained from the number of divisions on the negative side (process S28).

【0018】そして、処理S25と処理S26、または
処理S27と処理S28によって正側の分割数と負側の
分割数が求められたならば、正側の分割数から座標軸の
上限値を求め(処理S29)、次に、負側の分割数から
座標軸の下限値を求める(処理S30)。
Then, when the positive side division number and the negative side division number are obtained by processing S25 and processing S26 or processing S27 and processing S28, the upper limit value of the coordinate axis is obtained from the positive side division number (processing S29) Next, the lower limit of the coordinate axis is obtained from the number of divisions on the negative side (process S30).

【0019】また、第2の発明に係る、丸め処理を図5
により説明する。なお、この丸め処理は、図1に示した
丸め処理部53において行われる。図5において、丸め
処理31では、まず、数値32と補正値33が入力され
る。そして、仮数/指数分離34において、入力された
数値32が仮数部35と指数部36とに分離される。ま
た、仮数部丸め37は、仮数部35を入力し、これが仮
数部数列38の要素に近似した場合には、該当する要素
の項数を仮数部項数39として出力する。なお、仮数部
数列38は、1<Xi<10の範囲の実数を要素Xiと
する任意の要素数の数列である。
Further, the rounding process according to the second invention is shown in FIG.
This will be described below. The rounding process is performed by the rounding unit 53 shown in FIG. 5, in the rounding process 31, first, the numerical value 32 and the correction value 33 are input. Then, in the mantissa / exponent separation 34, the inputted numerical value 32 is separated into a mantissa part 35 and an exponent part 36. Further, the mantissa part rounding 37 inputs the mantissa part 35, and when this is approximated to the element of the mantissa part sequence 38, outputs the number of terms of the corresponding element as the mantissa part number 39. It should be noted that the mantissa sequence 38 is a sequence of an arbitrary number of elements with the element Xi being a real number in the range of 1 <Xi <10.

【0020】そして、加算器40において、仮数部項数
39に補正値33が加算される。またこのように補正値
33が加算された仮数部項数39と指数部37とが、仮
数/指数合成41において合成され、丸め値42が出力
される。
Then, the adder 40 adds the correction value 33 to the mantissa term number 39. Further, the mantissa part number 39 and the exponent part 37 to which the correction value 33 has been added in this way are combined in the mantissa / exponent combination 41, and the rounded value 42 is output.

【0021】図6に、第2発明に係る自動スケーリング
方法のフローチャートを示した。すなわち、スケーリン
グ処理を実行する前に、補正値が初期化され(処理S4
3)、次に図5で説明した丸め処理を含むスケーリング
処理が行なわれる(処理S44)。ここで、処理S43
の補正値は、スケーリング処理内部の丸め処理の補正値
入力として用いられる。
FIG. 6 shows a flowchart of the automatic scaling method according to the second invention. That is, the correction value is initialized before executing the scaling process (process S4
3) Then, scaling processing including the rounding processing described in FIG. 5 is performed (processing S44). Here, the process S43
The correction value of is used as a correction value input of the rounding process inside the scaling process.

【0022】また、処理S44におけるスケーリング処
理によって求められた座標軸の上限値と下限値とから、
座標軸の中心値を求め、波形データの最大値と最小値か
ら求めた波形データの中心値との偏差を求める(処理S
45)。次に、処理S45の偏差値の絶対値と予め保存
されている最小偏差値とを比較し(処理S46)、処理
S45の偏差値の絶対値が小さい場合には、処理S44
で求められた座標軸の上限値、下限値、並びに処理S4
5の偏差値の絶対値を保存する(処理S47)。次い
で、処理S43の補正値を異なる値に更新し(処理S4
8)、また繰り返しを行うかを判定し(処理S49)、
この判定の結果が繰り返しを行う場合は、処理S44か
ら処理S49までの処理を再度繰り返す。
Further, from the upper limit value and the lower limit value of the coordinate axis obtained by the scaling process in the process S44,
The center value of the coordinate axes is obtained, and the deviation between the center value of the waveform data obtained from the maximum value and the minimum value of the waveform data is obtained (process S
45). Next, the absolute value of the deviation value in the process S45 is compared with the minimum deviation value stored in advance (process S46). If the absolute value of the deviation value in the process S45 is small, the process S44 is performed.
Upper limit value and lower limit value of the coordinate axis obtained in step S4
The absolute value of the deviation value of 5 is stored (processing S47). Next, the correction value of the processing S43 is updated to a different value (processing S4
8), it is determined whether or not to repeat (process S49),
If the result of this determination is that the process is repeated, the processes from step S44 to step S49 are repeated again.

【0023】なお、この場合において、処理S44のス
ケーリング処理内部の丸め処理は、処理S48で更新し
た補正値を補正値入力とするものである。また、処理S
49の判定の結果が繰り返しを行わない場合には、保存
されている処理S47の座標軸の上限値と下限値が自動
スケーリング方法で求めた座標軸の上限値と下限値とな
る。
In this case, the rounding process in the scaling process of step S44 is to input the correction value updated in step S48 as a correction value input. Also, the process S
If the result of determination in 49 is not repeated, the stored upper and lower limit values of the coordinate axis in step S47 become the upper and lower limit values of the coordinate axis obtained by the automatic scaling method.

【0024】本発明のスケーリング方法のより具体的な
フローチャートを図7に示した。すなわち、波形データ
の最大値の符号と波形データの最小値の符号とを比較し
(処理S7)、符号が一致している場合は、座標軸の上
限値ないし下限値の補正値と座標軸の座標幅の補正値を
初期化し(処理S50)、次いで単極波形のためのスケ
ーリングを行う(処理S8)。ここで、処理S50の上
限値ないし下限値の補正値と座標幅の補正値は、スケー
リング処理の内部の上限値と下限値の丸め処理と座標幅
の丸め処理の補正値入力として用いられる。
A more specific flow chart of the scaling method of the present invention is shown in FIG. That is, the sign of the maximum value of the waveform data and the sign of the minimum value of the waveform data are compared (process S7), and if the signs match, the correction value of the upper limit value or the lower limit value of the coordinate axis and the coordinate width of the coordinate axis. The correction value of is initialized (process S50), and then scaling for the unipolar waveform is performed (process S8). Here, the correction value of the upper limit value or the lower limit value and the correction value of the coordinate width in the process S50 are used as the correction value input of the rounding process of the upper limit value and the lower limit value and the rounding process of the coordinate width inside the scaling process.

【0025】次に、処理S8のスケーリング処理によっ
て求められた座標値の上限値と下限値から座標軸の中心
値を求め、波形データの最大値と最小値から求めた波形
データの中心値との偏差値を求める(処理S45a)。
また、処理S45aの偏差値の絶対値と予め保存されて
いる最小偏差値とを比較し(処理S46a)、処理S5
0の偏差値の絶対値が小さい場合には、処理S8で求め
られた座標軸の上限値と下限値、並びに処理S50の偏
差値の絶対値をそれぞれ保存する(処理S47a)。更
に、上限値ないし下限値の補正値、並びに座標幅の補正
値をそれぞれ異なる値に更新する(処理S51)。
Next, the center value of the coordinate axis is obtained from the upper limit value and the lower limit value of the coordinate value obtained by the scaling process of step S8, and the deviation from the center value of the waveform data obtained from the maximum value and the minimum value of the waveform data. A value is obtained (process S45a).
Further, the absolute value of the deviation value in the processing S45a is compared with the minimum deviation value stored in advance (processing S46a), and the processing S5 is performed.
When the absolute value of the deviation value of 0 is small, the upper limit value and the lower limit value of the coordinate axis obtained in the process S8 and the absolute value of the deviation value of the process S50 are stored (process S47a). Further, the correction value of the upper limit value or the lower limit value and the correction value of the coordinate width are updated to different values (process S51).

【0026】その後、繰り返しを行うかを判定し(処理
S49a)、繰り返しを行う場合は、処理S8から処理
S49aまでを再び繰り返す。この場合、処理S8の単
極波形のスケーリング処理内部の丸め処理は、処理S5
1で更新した上限値ないし下限値の補正値と座標幅の補
正値を補正入力とする。また、処理S49aにおける判
定結果が繰り返しを行わない場合には、保存されている
処理S48aの座標軸の上限値と下限値が単極波形のた
めの座標軸の上限値と下限値となる。
After that, it is determined whether or not to repeat the process (process S49a). If the process is to be repeated, the processes S8 to S49a are repeated. In this case, the rounding process inside the unipolar waveform scaling process of the process S8 is the process S5.
The correction value of the upper limit value or the lower limit value and the correction value of the coordinate width updated in 1 are used as the correction input. When the determination result in the process S49a is not repeated, the upper limit value and the lower limit value of the coordinate axis of the stored process S48a become the upper limit value and the lower limit value of the coordinate axis for the unipolar waveform.

【0027】一方、処理S7の判定で符号が不一致の場
合は、座標軸の分割値の補正値を初期化し(処理S5
2)、次いで両極波形のためのスケーリングを行う(処
理S9)。処理S52の分割値の補正値は、スケーリン
グ処理の内部の分割値の丸め処理の補正値入力として用
いられる。次に、処理S9のスケーリング処理によって
求められた座標軸の上限値と下限値から、座標軸の中心
値を求め、波形データの最大値と最小値から求めた波形
データの中心値との偏差値を求める(処理S45b)。
また、処理S52の偏差値の絶対値と予め保存されてい
る最小偏差値とを比較し(処理S46)、比較結果が処
理S52の偏差値の絶対値が小さい場合には、処理S9
で求められた座標軸の上限値と下限値、並びに処理S5
2の偏差値の絶対値を保存する(処理S47b)。更
に、分割値の補正値を異なる値に更新した(処理S5
3)後、繰り返しを行うかを判定し(処理S49a)、
判定結果が繰り返しを行う場合は、処理S9から処理S
40bまでを再度繰り返す。この場合、処理S9の両極
波形のスケーリング処理内部の丸め処理は、処理S53
で更新した分割値の補正値を補正値入力とする。また、
処理S49aの判定結果が繰り返しを行わない場合に
は、保存されている処理S47bの座標軸の上限値と下
限値が、両極波形のための座標軸の上限値と下限値とな
る。
On the other hand, if the signs do not match in the determination in step S7, the correction value of the coordinate axis division value is initialized (step S5).
2) Then, scaling for the bipolar waveform is performed (process S9). The correction value of the division value in the process S52 is used as a correction value input for the rounding process of the division value inside the scaling process. Next, the center value of the coordinate axis is obtained from the upper limit value and the lower limit value of the coordinate axis obtained by the scaling process of step S9, and the deviation value from the center value of the waveform data obtained from the maximum value and the minimum value of the waveform data is obtained. (Processing S45b).
Further, the absolute value of the deviation value in the process S52 is compared with the minimum deviation value stored in advance (process S46). If the comparison result shows that the absolute value of the deviation value in the process S52 is small, the process S9 is performed.
Upper and lower limit values of the coordinate axis obtained in step S5
The absolute value of the deviation value of 2 is stored (process S47b). Further, the correction value of the division value is updated to a different value (process S5
3) After that, it is determined whether to repeat (process S49a),
If the determination result is that the process repeats, the process S9 to the process S
Repeat up to 40b. In this case, the rounding process inside the bipolar waveform scaling process of the process S9 is the process S53.
The correction value of the division value updated in step 1 is used as the correction value input. Also,
When the determination result of the process S49a is not repeated, the stored upper limit value and lower limit value of the coordinate axis of the process S47b become the upper limit value and the lower limit value of the coordinate axis for the bipolar waveform.

【0028】[0028]

【発明の効果】以上のように、本発明によれば、波形デ
ータが単極波形と両極波形のいずれの場合でも、波形デ
ータの軌跡を座標軸の中央寄りに配置することができ
て、波形観測に適した座標軸を決定することができる。
As described above, according to the present invention, regardless of whether the waveform data is a unipolar waveform or a bipolar waveform, the locus of the waveform data can be arranged near the center of the coordinate axis, and the waveform observation can be performed. It is possible to determine a coordinate axis suitable for.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の自動スケーリング方法の実施例の構成
を示した説明図である。
FIG. 1 is an explanatory diagram showing a configuration of an embodiment of an automatic scaling method of the present invention.

【図2】第1の発明による自動スケーリング方法を示し
たフローチャートである。
FIG. 2 is a flowchart showing an automatic scaling method according to the first invention.

【図3】第1の発明による単極波形のスケーリングを示
したフローチャートである。
FIG. 3 is a flowchart showing scaling of a unipolar waveform according to the first invention.

【図4】第1の発明による両極波形のスケーリングを示
したフローチャートである。
FIG. 4 is a flowchart showing scaling of a bipolar waveform according to the first invention.

【図5】第2の発明に用いる丸め処理を示すブロック図
である。
FIG. 5 is a block diagram showing a rounding process used in the second invention.

【図6】第2の発明による自動スケーリリング方法のフ
ローチャートである。
FIG. 6 is a flowchart of an automatic scaling method according to a second invention.

【図7】第1の発明と第2の発明による自動スケーリン
グ方法のフローチャートである。
FIG. 7 is a flowchart of an automatic scaling method according to the first invention and the second invention.

【図8】従来の自動スケーリング方法による座標軸を示
した説明図である。
FIG. 8 is an explanatory diagram showing coordinate axes according to a conventional automatic scaling method.

【符号の説明】[Explanation of symbols]

51 データ取得部 52 スケーリング部 53 丸め処理部 54 表示部 51 data acquisition unit 52 scaling unit 53 rounding processing unit 54 display unit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G09G 5/36 510 A 9377−5H ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G09G 5/36 510 A 9377-5H

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 等分割された座標軸を1つないし2つ持
つ2次元平面に2個以上のサンプル点から構成される波
形データを表示する装置において、 前記波形データの最大値と最小値の符号を比較し、符号
が一致する単極波形の場合と、符号が異なる両極波形の
場合とに区別して、それぞれ座標軸を決定することを特
徴とする自動スケーリング方法。
1. An apparatus for displaying waveform data composed of two or more sample points on a two-dimensional plane having one or two coordinate axes equally divided, wherein the maximum and minimum values of the waveform data are coded. Are compared, and the coordinate axes are determined by distinguishing between a unipolar waveform having the same sign and a bipolar waveform having a different sign, respectively.
【請求項2】 等分割された座標軸を1つないし2つ持
つ2次元平面に2個以上のサンプル点から構成される波
形データを表示する装置において、 丸め処理によって2種類以上の座標軸を求め、前記波形
データの軌跡が座標軸の中央寄りに配置されるように最
適な座標軸を決定することを特徴とする自動スケーリン
グ方法。
2. An apparatus for displaying waveform data composed of two or more sample points on a two-dimensional plane having one or two coordinate axes equally divided, wherein two or more kinds of coordinate axes are obtained by rounding processing. An automatic scaling method, characterized in that an optimum coordinate axis is determined such that the locus of the waveform data is arranged near the center of the coordinate axis.
【請求項3】 前記丸め処理が、入力された数値を被丸
め値とし、入力された補正値によって補正して丸めを行
うことを特徴とする請求項2記載の自動スケーリング方
法。
3. The automatic scaling method according to claim 2, wherein in the rounding process, the input numerical value is used as a rounded value, and the rounding is performed by correcting the rounded value.
JP6321285A 1994-11-30 1994-11-30 Automatic scaling method Pending JPH08160078A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6321285A JPH08160078A (en) 1994-11-30 1994-11-30 Automatic scaling method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6321285A JPH08160078A (en) 1994-11-30 1994-11-30 Automatic scaling method

Publications (1)

Publication Number Publication Date
JPH08160078A true JPH08160078A (en) 1996-06-21

Family

ID=18130862

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6321285A Pending JPH08160078A (en) 1994-11-30 1994-11-30 Automatic scaling method

Country Status (1)

Country Link
JP (1) JPH08160078A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008107293A (en) * 2006-10-27 2008-05-08 Hitachi High-Tech Manufacturing & Service Corp Spectrophotometer
JP2011257169A (en) * 2010-06-07 2011-12-22 Hioki Ee Corp Waveform display device and waveform display method
JP2012090764A (en) * 2010-10-27 2012-05-17 Rion Co Ltd Method for displaying tympanogram
JP6351905B1 (en) * 2017-03-15 2018-07-04 三菱電機株式会社 Display control apparatus and display control method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008107293A (en) * 2006-10-27 2008-05-08 Hitachi High-Tech Manufacturing & Service Corp Spectrophotometer
JP2011257169A (en) * 2010-06-07 2011-12-22 Hioki Ee Corp Waveform display device and waveform display method
JP2012090764A (en) * 2010-10-27 2012-05-17 Rion Co Ltd Method for displaying tympanogram
JP6351905B1 (en) * 2017-03-15 2018-07-04 三菱電機株式会社 Display control apparatus and display control method
WO2018167887A1 (en) * 2017-03-15 2018-09-20 三菱電機株式会社 Display control device and display control method
CN109716144A (en) * 2017-03-15 2019-05-03 三菱电机株式会社 Display control unit and display control method

Similar Documents

Publication Publication Date Title
CN116051551B (en) Display screen defect detection method and related device based on image processing
US4608660A (en) Data processing system with condition data setting function
JPH08160078A (en) Automatic scaling method
US6728407B1 (en) Method for automatically determining trackers along contour and storage medium storing program for implementing the same
US6005988A (en) Method and apparatus for rapid digital image resizing
EP0419259B1 (en) Accurate recognition of input patterns
JP3008057B2 (en) Graph display device
CN105654457A (en) Device and method for processing image
JPH06231081A (en) Numerical formula display system
JP2815261B2 (en) Electronic equipment with complex number calculation function
JPS61163472A (en) Character recognizing device
JPH08329266A (en) Polygonal figure shaping device
JPH04152390A (en) Curve approximating method
JPH0991447A (en) Device for approximating bezier curve
JPH1055364A (en) Character and figure editing device
JPH08234990A (en) Expert system
KR100304883B1 (en) TV arithmetic operation learning device and its learning method
JP3612396B2 (en) Interpolation method of line group
JP3900929B2 (en) Square root symbol display control apparatus, program, and square root symbol display control method
JP2800798B2 (en) Matrix graph display device
JPH07319881A (en) Device and method for information processing
KR100542570B1 (en) A phase generating device connected to image scaler and a phase generating method thereof
JPH0215364A (en) Document processor
JPH05225350A (en) Curve display method
JPH08235178A (en) Check supporting system and method