Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP2552827B2 - Output correction device for stepwise data - Google Patents
[go: Go Back, main page]

JP2552827B2 - Output correction device for stepwise data - Google Patents

Output correction device for stepwise data

Info

Publication number
JP2552827B2
JP2552827B2 JP60214133A JP21413385A JP2552827B2 JP 2552827 B2 JP2552827 B2 JP 2552827B2 JP 60214133 A JP60214133 A JP 60214133A JP 21413385 A JP21413385 A JP 21413385A JP 2552827 B2 JP2552827 B2 JP 2552827B2
Authority
JP
Japan
Prior art keywords
output
value
data
pulse
counter
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 - Lifetime
Application number
JP60214133A
Other languages
Japanese (ja)
Other versions
JPS6273123A (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.)
KOKO RISAACHI KK
Original Assignee
KOKO RISAACHI KK
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 KOKO RISAACHI KK filed Critical KOKO RISAACHI KK
Priority to JP60214133A priority Critical patent/JP2552827B2/en
Publication of JPS6273123A publication Critical patent/JPS6273123A/en
Application granted granted Critical
Publication of JP2552827B2 publication Critical patent/JP2552827B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Recording Measured Values (AREA)
  • Measuring Frequencies, Analyzing Spectra (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明は、例えば周波数計や液量計において計測結
果を所定の時間間隔毎に記録する場合のように記録する
計測結果が階段状になるのを連続的に変化するエンベロ
ープ状出力に補正する出力補正装置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] In the present invention, for example, in a frequency meter or a liquid level meter, the measurement result to be recorded becomes stepwise as in the case of recording the measurement result at predetermined time intervals. The present invention relates to an output correction device that corrects the output of a continuous envelope.

〔発明の概要〕[Outline of Invention]

この発明においては、階段状データの各サンプル値と
その1サンプル前のデータとを減算し、その減算結果に
基づいて1サンプル前のデータからそのサンプルデータ
まで連続的に変化するときの傾向を推定し、これにより
1サンプル前のデータからそのデータまで連続的に変化
する出力データを得るようにするものである。
In the present invention, each sample value of the stepwise data and the data one sample before are subtracted, and the tendency when continuously changing from the data one sample before to the sample data is estimated based on the subtraction result. In this way, output data that continuously changes from the data one sample before to the data is obtained.

〔従来の技術〕[Conventional technology]

例えば、刻々と変化する信号周波数を計測する周波数
計として第5図に示すようなものがある。
For example, there is a frequency meter as shown in FIG. 5 as a frequency meter for measuring a signal frequency which changes every moment.

すなわち同図において、(2)はカウンタで、入力端
子(1)を通じて刻々と周波数が変化するパルスがこの
カウンタ(2)に供給されてカウントされる。このカウ
ンタ(2)の出力カウント値はラッチ回路(3)に供給
されている。
That is, in the figure, (2) is a counter, and a pulse whose frequency changes from moment to moment is supplied to the counter (2) through the input terminal (1) and counted. The output count value of the counter (2) is supplied to the latch circuit (3).

一方、パルス発生器(7)より計測したい周期T例え
ば1秒周期のパルスが得られ、これにより単安定マルチ
バイブレータ(8)がトリガされ、これよりラッチパル
スL1(第6図A)が得られる。そして、このラッチパル
スL1によりカウンタ(2)のカウント値がラッチ回路
(3)にラッチされる。
On the other hand, the pulse generator (7) obtains a pulse having a period T to be measured, for example, a one-second period, which triggers the monostable multivibrator (8), which produces a latch pulse L 1 (Fig. 6A). To be Then, the count value of the counter (2) is latched in the latch circuit (3) by the latch pulse L 1 .

ラッチパルスL1は、また、単安定マルチバイブレータ
(9)に供給されてトリガされ、これよりラッチパルス
L1より遅延されたパルスL2(第6図B)が得られ、これ
によりカウンタ(2)はリセットされる。したがって、
ラッチ回路(3)には、カウンタ(2)がリセットされ
た後、次にリセットされる直前のカウント値がラッチさ
れることになり、そのカウント値はラッチ周期T内に含
まれる入力パルス数であり、これは取り直さずその周期
T内における入力パルスの周波数を示していることにな
る。
The latch pulse L 1 is also fed to and triggered by the monostable multivibrator (9), from which the latch pulse
A delayed pulse L 2 (FIG. 6B) is obtained from L 1 , which resets the counter (2). Therefore,
After the counter (2) is reset, the latch circuit (3) latches the count value immediately before being reset. The count value is the number of input pulses included in the latch cycle T. Yes, this represents the frequency of the input pulse within its period T without re-acquisition.

このラッチ回路(3)の出力COは、パルスL1により周
期Tで更新されるので、第6図Cに示すような階段状デ
ータとなる。したがって、この出力COがD/Aコンバータ
(4)によりD/A変換されたアナログ出力も階段状とな
り、これがローパスフィルタ(5)を通されて階段状変
形がなまらされて変化がステップ的でなく連続的な波形
となるようにされ、出力端子(6)に導出される。
The output CO of the latch circuit (3) is updated in the cycle T by the pulse L 1 and therefore becomes stepwise data as shown in FIG. 6C. Therefore, the output CO is D / A converted by the D / A converter (4), and the analog output also has a stepwise shape, which is passed through the low-pass filter (5) to smooth the stepwise deformation so that the change is not stepwise. It is made to have a continuous waveform and is led to the output terminal (6).

そして、この出力端子(6)に得られるアナログ出力
電圧が例えば記録紙に記録される。
Then, the analog output voltage obtained at the output terminal (6) is recorded on, for example, a recording paper.

〔発明が解決しようとする問題点〕[Problems to be solved by the invention]

上記のように、段階状データを記録紙にそのまま記録
すると、ステップ的な変化が目につき、ユーザにとって
記録を扱いずらいため、ステップ的変化のない連続的な
波形に補正して出力し、それを記録するのが一般的であ
る。
As described above, if the stepwise data is recorded as it is on the recording paper, step changes will be noticed and it will be difficult for the user to handle the recording.Therefore, the waveform will be corrected and output as a continuous waveform without step changes and output. It is common to record.

第5図の例ではローパスフィルタによりその波形補正
がなされている。
In the example of FIG. 5, the waveform is corrected by the low pass filter.

ところが、このローパスフィルタを用いたものは時定
数のため、応答が遅いという欠点があった。
However, the one using this low-pass filter has a drawback that the response is slow because of the time constant.

〔問題点を解決するための手段〕[Means for solving problems]

この発明は応答の速い出力補正装置を提案するもの
で、この発明においては、所定間隔毎に入力データを取
り込む第1のラッチ手段(13)と、この第1のラッチ手
段(13)に取り込まれたデータの1つ前のデータを取り
込む第2のラッチ手段(14)と、第1及び第2のラッチ
手段(13)(14)のデータの差を演算する減算回路(1
5)と、この減算回路(15)よりの減算結果に応じて第
2のラッチ手段(14)のデータ値から第1のラッチ手段
(13)のデータ値に向かって連続的に値を変化させる手
段(16)(17)(18)とを設ける。
The present invention proposes an output correction device having a fast response. In the present invention, first latch means (13) for fetching input data at predetermined intervals and fetched by the first latch means (13). Subtraction circuit (1) for calculating the difference between the data of the second latch means (14) for fetching the immediately preceding data and the data of the first and second latch means (13) (14).
5) and the value is continuously changed from the data value of the second latch means (14) toward the data value of the first latch means (13) according to the subtraction result from the subtraction circuit (15). Means (16) (17) (18) are provided.

〔作用〕[Action]

第2のラッチ手段(14)よりの1サンプル前のデータ
値から第1のラッチ手段(13)のそのときのデータ値に
向かって連続的に値を変化させる出力が得られ、応答の
速い補正出力が得られる。
An output for continuously changing the value from the data value one sample before from the second latch means (14) toward the data value at that time of the first latch means (13) is obtained, and the correction with fast response is obtained. Output is obtained.

〔実施例〕〔Example〕

第1図はこの発明装置の一実施例で、この例は第5図
例と同様に周波数計に適用した場合の例である。
FIG. 1 shows an embodiment of the device of the present invention, which is an example when applied to a frequency meter as in the case of FIG.

すなわち、入力端子(11)を通じた刻々と周波数が変
化する入力パルスはカウンタ(12)に供給されてカウン
トされる。そのカウント値出力はストレージレジスタ
(13)に供給される。さらに、このストレージレジスタ
(13)の出力はストレージレジスタ(14)に供給されて
いる。
That is, the input pulse whose frequency changes every moment through the input terminal (11) is supplied to the counter (12) and counted. The count value output is supplied to the storage register (13). Further, the output of this storage register (13) is supplied to the storage register (14).

一方、パルス発生器(22)より計測周期Tのパルスが
得られ、このパルスが単安定マルチバイブレータ(23)
により遅延されてパルスP0(第2図A)が得られ、ま
た、このパルスP0が単安定マルチバイブレータ(24)に
より遅延されてパルスP1(第2図B)が得られ、さら
に、このパルスP1が単安定マルチバイブレータ(25)に
より遅延されてパルスP2(第2図C)が得られる。そし
て、パルスP0がストレージレジスタ(14)に、パルスP1
がストレージレジスタ(13)にラッチパルスとして供給
され、また、パルスP2によりカウンタ(12)がリセット
される。
On the other hand, a pulse of the measurement cycle T is obtained from the pulse generator (22), and this pulse is a monostable multivibrator (23).
To obtain a pulse P 0 (FIG. 2A), and this pulse P 0 is delayed by the monostable multivibrator (24) to obtain a pulse P 1 (FIG. 2B). This pulse P 1 is delayed by the monostable multivibrator (25) to obtain the pulse P 2 (FIG. 2C). Then, the pulse P 0 is transferred to the storage register (14) and the pulse P 1
Is supplied to the storage register (13) as a latch pulse, and the pulse P 2 resets the counter (12).

したがって、ストレージレジスタ(13)には、計測周
期T内での入力パルス数であるカウンタ(12)がリセッ
トされる直前のカウント値が取り込まれ、ストレージレ
ジスタ(14)には、レジスタ(13)の1サンプル前のカ
ウント値が取り込まれる。
Therefore, the storage register (13) stores the count value immediately before the counter (12), which is the number of input pulses in the measurement cycle T, is reset, and the storage register (14) stores the count value of the register (13). The count value one sample before is taken in.

ストレージレジスタ(13)の出力データ値M1(第2図
D参照)とストレージレジスタ(14)の出力データ値M2
(同図E参照)とはサブトラクタ(15)に供給されて、
これにおいてM1−M2なる減算がなされ、その絶対値S=
|M1−M2|と、減算結果の正、負の極性を示す信号POLが
これより得られる。
Output data value M 1 of storage register (13) (see FIG. 2D) and output data value M 2 of storage register (14)
(Refer to E in the figure) is supplied to the subtractor (15),
In this, a subtraction of M 1 −M 2 is performed, and its absolute value S =
| M 1 −M 2 | and the signal POL indicating the positive and negative polarities of the subtraction result are obtained from this.

そして、差の絶対値Sは周波数変更手段(16)に供給
され、発振器(17)よりのクロックの周波数が絶対値S
の大きさに応じて変更される。つまり、値Sが大きくな
ればなるほど周波数が高くなるようにされる。この周波
数変更手段(16)は掛算回路を用いてもよいし、また、
分周回路を用いその分周比を絶対値Sに応じて変えても
よい。また、マイクロコンピュータを用いることもで
き、その場合には、発振器(17)と周波数変更手段(1
6)を一体的に構成し、周期Tを絶対値Sに対応してい
くつに分割するかを決定し、それを周波数に変換するこ
とにしてもよい。
Then, the absolute value S of the difference is supplied to the frequency changing means (16), and the frequency of the clock from the oscillator (17) is the absolute value S.
It is changed according to the size of. That is, the larger the value S, the higher the frequency. This frequency changing means (16) may use a multiplication circuit, or
A frequency dividing circuit may be used and the frequency dividing ratio may be changed according to the absolute value S. A microcomputer can also be used, in which case an oscillator (17) and frequency changing means (1
6) may be integrally configured, the period T may be divided into a number corresponding to the absolute value S, and the number may be converted into a frequency.

この周波数変更手段(16)よりのクロックCPはアップ
ダウンカウンタ(18)のクロック端子に供給される。一
方、サブトラクタ(15)よりの極性を示す信号POLがこ
のアップダウンカウンタ(18)のアップダウン制御端子
に供給され、信号POLが「正」を示すものであるときは
カウンタ(18)はアップカウント、信号POLが「負」を
示すものであるときはカウンタ(18)はダウンカウント
の状態になる。
The clock CP from the frequency changing means (16) is supplied to the clock terminal of the up / down counter (18). On the other hand, when the signal POL indicating the polarity from the subtractor (15) is supplied to the up / down control terminal of the up / down counter (18) and the signal POL indicates "positive", the counter (18) is up. When the count and signal POL indicate "negative", the counter (18) is in the down count state.

また、このカウンタ(18)にはレジスタ(14)の出力
データ値がパルスP0の時点でプリセットされる。すなわ
ち、レジスタ(14)にデータが取り込まれると同時に、
その取り込まれたデータ値M2がカウンタ(18)にプリセ
ットされる。
The output data value of the register (14) is preset in the counter (18) at the time of the pulse P 0 . That is, at the same time that the data is taken into the register (14),
The fetched data value M 2 is preset in the counter (18).

したがって、カウンタ(18)はデータ値M2からそのと
きのデータ値M1(次のデータ値M2に等しい)に向かって
クロックCPをアップカウント又はダウンカウントする。
この場合、クロックCPの周波数はパルス発生器(22)の
出力パルスよりも十分に高い周波数であり、また、周期
T経過後には、値M2から開始したカウンタ(18)のカウ
ント値が丁度値M1となるような周波数に選定されるのは
もちろんである。
Accordingly, the counter (18) counts up or down counts the clock CP toward the data value M 1 at that time from the data value M 2 (equal to the next data value M 2).
In this case, the frequency of the clock CP is sufficiently higher than the output pulse of the pulse generator (22), and after the lapse of the period T, the count value of the counter (18) started from the value M 2 is just the value. Of course, the frequency is selected to be M 1 .

しかし、クロックCPの周波数が精確にそのような周波
数になっていなくても、レジスタ(14)のデータ値M2
カウンタ(18)にプリセットされるので、その周波数誤
差が累積されることはない。
However, even if the frequency of the clock CP is not exactly such a frequency, the data value M 2 of the register (14) is preset in the counter (18), so that the frequency error is not accumulated. .

すなわち、原理的にはカウンタ(18)はプリセットす
る必要はなく、初期値より順次アップカウント、ダウン
カウントすればよい。しかし、上述のようなクロックCP
の周波数を精確に選定することは困難であるから、その
ままであれば誤差が累積し、正しくデータ値M2からM1
まで変化しなくなる。しかし、この例では、周期T毎に
その周期における初期データ値M2に必ずカウンタ(12)
をプリセットするので、そのような誤差の累積はないの
である。
That is, in principle, it is not necessary to preset the counter (18), and it is sufficient to sequentially count up and down from the initial value. But the clock CP as described above
Since it is difficult to accurately select the frequency of, the error will accumulate if it remains as it is, and the data value will not change correctly from M 2 to M 1 . However, in this example, the counter (12) is always added to the initial data value M 2 in the cycle every cycle T.
Since we preset, there is no such error accumulation.

なお、第1図の例では初期Tの間、クロックCPは一定
の周波数としたので、上昇又は下降は直線状であるが、
周波数を周期T内で変えて、曲線的に上昇又は下降させ
るようにしてもよい。
In the example of FIG. 1, since the clock CP has a constant frequency during the initial T, the rising or falling is linear,
The frequency may be changed within the period T to increase or decrease in a curve.

以上のようにして、カウンタ(18)のカウント値は第
2図Eにおいて破線で示すような変化をする。このカウ
ント値出力はD/Aコンバータ(19)においてアナログ電
圧AO(第2図F)に変換され、この電圧AOがアンプ(2
0)を通じて出力端子(21)に導出され、この電圧AOの
波形が記録紙に記録されるようになされる。
As described above, the count value of the counter (18) changes as shown by the broken line in FIG. 2E. This count value output is converted into an analog voltage AO (Fig. 2F) in the D / A converter (19), and this voltage AO is converted into an amplifier (2
It is led to the output terminal (21) through 0) and the waveform of this voltage AO is recorded on the recording paper.

ところで、この第1図例はマイクロコンピュータで実
現することができ、その場合には、D/Aコンバータ(1
9)及びアンプ(20)を除く回路部分をすべてマイクロ
コンピュータのソフトウェアで実現可能である。そし
て、その場合には、演算手段で差の絶対値に応じた傾き
をもって変化するデジタル値を出力として得ることがで
き、これをD/A変換するだけで上述と全く同様の動作を
なすものである。
By the way, the example of FIG. 1 can be realized by a microcomputer, and in that case, a D / A converter (1
All the circuit parts except 9) and the amplifier (20) can be realized by microcomputer software. Then, in that case, a digital value that changes with a slope according to the absolute value of the difference can be obtained as an output by the calculation means, and the same operation as described above can be performed only by D / A converting this. is there.

第3図はこの発明装置の他の例で、この例は周期検出
装置の出力補正にこの発明を適用した場合の例である。
FIG. 3 shows another example of the device of the present invention, which is an example in which the present invention is applied to the output correction of the cycle detecting device.

すなわち、第3図において、(30)は積分器で、その
出力VO1としては端子(31)の入力電圧VIを抵抗(32)
で除した一定の電流Iを積分した電圧が得られる。積分
用コンデンサ(33)に並列に接続されたスイッチ回路
(34)はリセット用で、このスイッチ回路(34)がオン
にされると積分出力VO1はリセットされ、再び零から電
流Iが積分される。したがって、このスイッチ回路(3
4)がリセットされる周期が長ければ積分出力VO1は高く
なり、周期が短ければ積分出力VO1は低くなる。
That is, in FIG. 3, (30) is an integrator, and its output VO 1 is the input voltage VI of the terminal (31) to the resistor (32).
A voltage obtained by integrating the constant current I divided by is obtained. The switch circuit (34) connected in parallel to the integrating capacitor (33) is for resetting. When the switch circuit (34) is turned on, the integrated output VO 1 is reset and the current I is integrated again from zero. It Therefore, this switch circuit (3
If the cycle in which 4) is reset is long, the integrated output VO 1 will be high, and if the cycle is short, the integrated output VO 1 will be low.

この例では、このことを利用して周期検出をするもの
で、入力端子(35)を通じて周期が刻々と変化する入力
パルスSI0(第4図A)が単安定マルチバイブレータ(3
6)によって遅延されてパルスSI1が得られ、また、この
パルスSI1が単安定マルチバイブレータ(37)によって
遅延されてパルスSI2が得られ、さらにこのパルスSI2
単安定マルチバイブレータ(38)によって遅延されてパ
ルスSI3が得られる。そして、この遅延パルスSI3がスイ
ッチ回路(34)に供給されて、そのパルス幅期間、この
スイッチ回路(34)がオンとされる。したがって、スイ
ッチ回路(34)は入力パルスSI0の周期でオンになっ
て、積分器(30)はリセットされ、積分出力電圧VO1
しては入力パルスSI0の周期に応じたピーク値の鋸歯状
波が得られる(第4図B)。
In this example, this is used to detect the cycle, and the input pulse SI 0 (FIG. 4A) whose cycle changes momentarily through the input terminal (35) is applied to the monostable multivibrator (3
6) is delayed to obtain pulse SI 1 , this pulse SI 1 is delayed by monostable multivibrator (37) to obtain pulse SI 2 , and this pulse SI 2 is further added to monostable multivibrator (38 ), A pulse SI 3 is obtained. Then, the delay pulse SI 3 is supplied to the switch circuit (34) and the switch circuit (34) is turned on during the pulse width period. Therefore, the switch circuit (34) is turned on in the cycle of the input pulse SI 0 , the integrator (30) is reset, and the integrated output voltage VO 1 has a sawtooth-shaped peak value corresponding to the cycle of the input pulse SI 0. Waves are obtained (Fig. 4B).

そして、積分器(30)がリセットされる直前の出力電
圧VO1、すなわち、出力電圧VO1のピーク値が、パルスSI
2によりスイッチ回路(39)がオンにされることにより
コンデンサ(40)にサンプルホールドされる。したがっ
て、オペアンプ(41)の出力M1′として第4図Cに示す
ように、鋸歯状波電圧VO1のピーク値を入力するパルスS
I0の周期でサンプルホールドした電圧が得られる。
The output voltage VO 1 immediately before the integrator (30) is reset, that is, the peak value of the output voltage VO 1 is the pulse SI.
When the switch circuit (39) is turned on by 2 , the sample is held in the capacitor (40). Therefore, as shown in FIG. 4C, the pulse S for inputting the peak value of the sawtooth wave voltage VO 1 as the output M 1 ′ of the operational amplifier (41).
The voltage sampled and held in the cycle of I 0 is obtained.

さらに、この出力M1′が、スイッチ回路(42)とコン
デンサ(43)からなるサンプリングホールド回路におい
てパルスSI1によってサンプリングホールドされる。し
たがって、オペアンプ(44)の出力M2′として、第4図
Dに示すように出力M1′の、これが次にサンプリングホ
ールドされる直前の値(すなわち1サンプル前の値)が
パルスSI1によりサンプルホールドされた電圧が得られ
る。
Further, the output M 1 ′ is sampled and held by the pulse SI 1 in the sampling and holding circuit composed of the switch circuit (42) and the capacitor (43). Therefore, as the output M 2 ′ of the operational amplifier (44), as shown in FIG. 4D, the value of the output M 1 ′ immediately before it is sampled and held (that is, the value one sample before) is changed by the pulse SI 1. The sampled and held voltage is obtained.

そして、オペアンプ(41)の出力M1′が抵抗(46)を
介してオペアンプ(45)の反転入力端子に供給されると
ともにオペアンプ(44)の出力M2′がこのオペアンプ
(45)の非反転入力端子に供給される。このオペアンプ
(45)の出力端子と反転入力端子との間には抵抗(47)
が接続されている。この場合、抵抗(46)と(47)の値
が等しく選定されるとすると、このオペアンプ(45)で
は2M2′−M1′なる演算がなされ、その演算結果がダイ
オード(48)とスイッチ回路(49)の並列回路を介して
積分器(50)を構成するオペアンプ(51)の反転入力端
子に抵抗(52)を介して供給される。一方、オペアンプ
(44)の出力M2′がこの積分器(50)のオペアンプ(5
1)の非反転入力端子に供給される。
The output M 1 ′ of the operational amplifier (41) is supplied to the inverting input terminal of the operational amplifier (45) via the resistor (46), and the output M 2 ′ of the operational amplifier (44) is non-inverted of this operational amplifier (45). It is supplied to the input terminal. A resistor (47) is placed between the output terminal and the inverting input terminal of this operational amplifier (45).
Is connected. In this case, if the resistors (46) and (47) are selected to have the same value, the operational amplifier (45) performs an operation of 2M 2 ′ −M 1 ′, and the operation result is the diode (48) and the switch circuit. It is supplied via a resistor (52) to an inverting input terminal of an operational amplifier (51) which constitutes an integrator (50) via a parallel circuit of (49). On the other hand, the output M 2 ′ of the operational amplifier (44) is the operational amplifier (5
It is supplied to the non-inverting input terminal of 1).

また、積分用コンデンサ(53)に並列にプリセット用
スイッチ回路(54)が接続され、このスイッチ回路(5
4)がパルスS1によりオンとされる。このスイッチ回路
(54)がオンとされると積分器(50)の出力はオペアン
プ(44)の出力M2′にプリセットされる。
Further, a preset switch circuit (54) is connected in parallel with the integrating capacitor (53), and the switch circuit (5
4) is turned on by pulse S 1 . When the switch circuit (54) is turned on, the output of the integrator (50) is preset to the output M 2 ′ of the operational amplifier (44).

そして、積分器(50)においては、オペアンプ(51)
の両入力端子間の電位差、すなわち(2M2′−M1′)−M
2′=M2′−M1′を抵抗(52)で除した電流を積分する
ことになるから、プリセット値M2′からM1′に向かって
積分がなされることになる。
Then, in the integrator (50), the operational amplifier (51)
Potential difference between the two input terminals, that is, (2M 2 ′ −M 1 ′) −M
2 '= M 2' -M 1 ' to from would be integrating the divided by current resistor (52), the preset value M 2' will be integrated from towards M 1 'is made.

ところで、出力M2′は出力M1′の1サンプル前の値で
あるが、入力パルスSI0の周期が異なるため、両出力の
対応する値のホールド時間は第4図C及びDから明らか
なように異なる。このため、積分器(50)の積分出力VO
2が出力M1′に向かって上昇してゆくとき、この値M1
を越えてしまう場合がある。そこで、この例では積分出
力VO2とオペアンプ(41)の出力M1′とを比較回路(5
5)に供給し、積分出力VO2が出力M1′を越えてしまうと
きにはこの比較回路(55)の出力によりスイッチ回路
(49)をオフにする。すると、このときダイオード(4
8)はオフであるので、積分動作が中断し、積分出力VO2
は出力M1′に等しい値にホールドされる。
By the way, the output M 2 ′ is a value one sample before the output M 1 ′, but since the period of the input pulse SI 0 is different, the hold times of the corresponding values of both outputs are clear from FIGS. 4C and 4D. So different. Therefore, the integrated output VO of the integrator (50)
When 2 rises toward the output M 1 ′, this value M 1
May exceed. Therefore, in this example, the integrated output VO 2 and the output M 1 ′ of the operational amplifier (41) are compared (5
When the integrated output VO 2 exceeds the output M 1 ′, the switch circuit (49) is turned off by the output of the comparison circuit (55). Then, at this time, the diode (4
8) is off, the integration operation is interrupted and the integrated output VO 2
Is held at a value equal to the output M 1 ′.

なお、積分出力VO2が出力M1′より大きい場合であっ
ても、積分出力VO2が下降するときはダイオード(48)
がオンであるから積分動作がなされる。
Even if the integrated output VO 2 is larger than the output M 1 ′, if the integrated output VO 2 drops, the diode (48)
Is on, the integration operation is performed.

なお、積分出力VO2が出力M1′にまで到達する前にパ
ルスSI1が到来したときは、積分出力VO2はそのパルス時
点で出力値M2′にプリセットされるものである。
When the pulse SI 1 arrives before the integrated output VO 2 reaches the output M 1 ′, the integrated output VO 2 is preset to the output value M 2 ′ at that pulse.

こうして、積分回路(50)の出力VO2として第4図E
に示すように、階段状出力M1′に即応して連続的に値が
変化する出力が得られる。
Thus, the output VO 2 of the integrating circuit (50) is shown in FIG.
As shown in, an output whose value continuously changes in response to the stepwise output M 1 ′ is obtained.

記録紙に記録する場合にはこの積分出力VO2を割算回
路(56)に供給しその逆数を求め、周期出力を周波数出
力に変換し、この周波数出力を周波数電圧変換回路(5
7)に供給して、電圧出力を得、これを出力端子(58)
に導出し、これを記録紙に記録するようにする。
When recording on recording paper, this integrated output VO 2 is supplied to the division circuit (56), the reciprocal thereof is calculated, the periodic output is converted into a frequency output, and this frequency output is converted into a frequency voltage conversion circuit (5
7) to obtain a voltage output, which is output terminal (58)
To be recorded on a recording paper.

〔発明の効果〕〔The invention's effect〕

以上のように、この発明によれば、階段状データをこ
れに即応して連続的に変化する出力に補正することがで
きる。
As described above, according to the present invention, the staircase data can be corrected to an output that continuously changes in response to this.

しかも、この補正出力は1サンプル前のデータ値から
そのデータ値に向かって変化するものであるから、応答
が非常に速い。
Moreover, since this corrected output changes from the data value of one sample before, toward that data value, the response is very fast.

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

第1図はこの発明装置の一例のブロック図、第2図はそ
の説明のためのタイムチャート、第3図はこの発明装置
の他の例のブロック図、第4図はその説明のためのタイ
ムチャート、第5図は従来装置の一例のブロック図、第
6図はその説明のためのタイムチャートである。 (13)は第1のラッチ手段としてのストレージレジス
タ、(14)は第2のラッチ手段としてのストレージレジ
スタ、(15)は減算回路である。
FIG. 1 is a block diagram of an example of the invention device, FIG. 2 is a time chart for explaining the same, FIG. 3 is a block diagram of another example of the invention device, and FIG. 4 is a time chart for explaining the same. A chart, FIG. 5 is a block diagram of an example of a conventional device, and FIG. 6 is a time chart for the explanation. (13) is a storage register as a first latch means, (14) is a storage register as a second latch means, and (15) is a subtraction circuit.

Claims (4)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】所定間隔毎に入力データを取り込む第1の
ラッチ手段と、 この第1のラッチ手段に取り込まれたデータの1つ前の
データを取り込む第2のラッチ手段と、 上記第1及び第2のラッチ手段のデータの差を演算する
減算回路と、 この減算回路よりの減算結果に応じて上記第2のラッチ
手段のデータ値から上記第1のラッチ手段のデータ値に
向かって連続的に値を変化させる手段とからなる階段状
データの出力補正装置。
1. A first latch means for fetching input data at predetermined intervals, a second latch means for fetching data immediately before the data fetched by the first latch means, and the first and the second means. A subtraction circuit for calculating a difference between the data of the second latch means, and a data value of the second latch means continuously from the data value of the second latch means in accordance with the subtraction result from the subtraction circuit. An output correction device for stair-step data, which comprises a means for changing the value.
【請求項2】上記連続的に値を変化させる手段が、上記
第2のラッチ手段のデータ値でプリセットされ、上記減
算手段の出力値を積分して上記プリセット値から上記第
1のラッチ手段のデータ値に向かう出力を得る積分回路
からなる特許請求の範囲第1項記載の階段状データの出
力補正装置。
2. The means for continuously changing the value is preset with the data value of the second latch means, the output value of the subtracting means is integrated, and the preset value is used for the first latch means. The output correction device for stepwise data according to claim 1, comprising an integrating circuit for obtaining an output toward a data value.
【請求項3】上記連続的に値を変化させる手段が、可変
周波数発生手段と、カウンタと、D/Aコンバータからな
り、上記可変周波数発生手段においてはクロック信号の
出力周波数が上記減算回路の出力に応じたものとされ、
このクロック信号が上記カウンタに供給され、このカウ
ンタのカウント値出力が、D/Aコンバータによってアナ
ログデータに変換されてなる特許請求の範囲第1項記載
の階段状データの出力補正装置。
3. The means for continuously changing the value comprises a variable frequency generating means, a counter, and a D / A converter, and in the variable frequency generating means, the output frequency of the clock signal is the output of the subtraction circuit. According to
The output correction device for staircase data according to claim 1, wherein the clock signal is supplied to the counter, and the count value output of the counter is converted into analog data by a D / A converter.
【請求項4】上記連続的に値を変化させる手段が、演算
手段と、D/Aコンバータとからなり、上記演算手段より
上記減算回路の出力に応じた傾きをもって変化するデジ
タル値が出力され、この出力値が上記D/Aコンバータに
よってアナログデータに変換されてなる特許請求の範囲
第1項記載の階段状データの出力補正装置。
4. The means for continuously changing the value comprises an operation means and a D / A converter, and the operation means outputs a digital value which changes with a slope according to the output of the subtraction circuit, The output correction device for stepwise data according to claim 1, wherein the output value is converted into analog data by the D / A converter.
JP60214133A 1985-09-27 1985-09-27 Output correction device for stepwise data Expired - Lifetime JP2552827B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60214133A JP2552827B2 (en) 1985-09-27 1985-09-27 Output correction device for stepwise data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60214133A JP2552827B2 (en) 1985-09-27 1985-09-27 Output correction device for stepwise data

Publications (2)

Publication Number Publication Date
JPS6273123A JPS6273123A (en) 1987-04-03
JP2552827B2 true JP2552827B2 (en) 1996-11-13

Family

ID=16650773

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60214133A Expired - Lifetime JP2552827B2 (en) 1985-09-27 1985-09-27 Output correction device for stepwise data

Country Status (1)

Country Link
JP (1) JP2552827B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5218824B2 (en) * 2008-04-07 2013-06-26 セイコーエプソン株式会社 Frequency measuring device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS599516A (en) * 1982-07-07 1984-01-18 Takamisawa Saibaneteitsukusu:Kk Method for drawing sharp waveform

Also Published As

Publication number Publication date
JPS6273123A (en) 1987-04-03

Similar Documents

Publication Publication Date Title
JPS6166971A (en) Method and circuit for measuring resistance of temperature detector and digitizing it
US4282576A (en) Indicator diagram based AC electric energy meter
JP2552827B2 (en) Output correction device for stepwise data
JPH0820473B2 (en) Continuous period-voltage converter
EP0434030A1 (en) Pressure detector by use of quartz oscillator
US4181949A (en) Method of and apparatus for phase-sensitive detection
JPH10160507A (en) Peak detector
JP3085496B2 (en) Sampling type measuring device
JP2587970B2 (en) Impedance measuring device
RU2020745C1 (en) Nonelectric-quantity-to-digital-code converter
JPS58135970A (en) Method and device for measuring frequency of alternating current signal
JP4422284B2 (en) A / D converter and semiconductor pressure sensor device
SU1698826A1 (en) Resistance deviation-to-digit converter
JPH02196523A (en) Test circuit for delta sigma modulation type a/d converter
SU1580283A1 (en) Digital ohmmeter
JPH039268A (en) Measuring instrument for phase characteristic
SU1016696A1 (en) Device for measuring temperature having frequency output
SU661378A1 (en) Digital power meter
SU855534A1 (en) Device for measuring direct-current resistance
JPH0336936Y2 (en)
SU851115A1 (en) Device for converting thermal resistance to pulse frequency
JPH0412430B2 (en)
SU562918A1 (en) Converter of parameters of two-element electric circuits into unified signals
JP2659128B2 (en) Angular frequency measuring instrument for rotating body
JPH0629722Y2 (en) AE measuring device