JP2012149976A - Measurement apparatus and measurement method - Google Patents
Measurement apparatus and measurement method Download PDFInfo
- Publication number
- JP2012149976A JP2012149976A JP2011008484A JP2011008484A JP2012149976A JP 2012149976 A JP2012149976 A JP 2012149976A JP 2011008484 A JP2011008484 A JP 2011008484A JP 2011008484 A JP2011008484 A JP 2011008484A JP 2012149976 A JP2012149976 A JP 2012149976A
- Authority
- JP
- Japan
- Prior art keywords
- time
- measurement
- input
- pulse
- pulses
- 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
Links
Images
Landscapes
- Measuring Frequencies, Analyzing Spectra (AREA)
Abstract
Description
本発明は、連続して入力するパルスについての物理量を測定する測定装置および測定方法に関するものである。 The present invention relates to a measuring apparatus and a measuring method for measuring a physical quantity of pulses that are continuously input.
入力信号の物理量(例えば周波数)を測定してその平均値を求める測定装置として、例えば、特開平7−55554号公報に開示された周波数変化測定装置が知られている。この周波数変化測定装置は、カウンタ、記憶回路、減算回路、加算回路、除算回路およびマイクロプロセッサ等を備え、入力信号(共振周波数)の周波数を測定し、n個の測定値を移動平均して周波数の平均値を求めることが可能に構成されている。この周波数変化測定装置では、カウンタが入力信号の周波数を測定し、記憶回路がn個の測定値を記憶する。この場合、記憶回路は、新たな測定値が測定されたときには、記憶しているn個の測定値のうちの最も古い測定値(n個前の測定値)を減算回路に出力して新たな測定値を記憶する。また、減算回路が、記憶回路から出力されたn個前の測定値を新たな測定値から差し引いた差分値を加算回路に出力する。また、加算回路が、記憶回路に記憶されている累積値と減算回路の出力信号とを加算して再び記憶回路に記憶させる。さらに、除算回路が、記憶回路に記憶されている累積値をnで除算する。これにより、n個の測定値が移動平均されて周波数の平均値が求められる。 As a measuring device for measuring a physical quantity (for example, frequency) of an input signal and obtaining an average value thereof, for example, a frequency change measuring device disclosed in JP-A-7-55554 is known. This frequency change measuring device includes a counter, a storage circuit, a subtracting circuit, an adding circuit, a dividing circuit, a microprocessor, and the like, measures the frequency of an input signal (resonance frequency), and performs a moving average of n measurement values to obtain a frequency. It is possible to obtain the average value of. In this frequency change measuring apparatus, the counter measures the frequency of the input signal, and the storage circuit stores n measurement values. In this case, when a new measurement value is measured, the storage circuit outputs the oldest measurement value (n previous measurement values) out of the stored n measurement values to the subtraction circuit to generate a new measurement value. Memorize the measured value. The subtracting circuit outputs a difference value obtained by subtracting the n-th previous measured value output from the storage circuit from the new measured value to the adding circuit. Further, the adder circuit adds the accumulated value stored in the memory circuit and the output signal of the subtractor circuit, and stores the sum in the memory circuit again. Further, the division circuit divides the accumulated value stored in the storage circuit by n. As a result, the n measured values are moving averaged to obtain the average value of the frequencies.
ところが、上記した周波数変化測定装置には、解決すべき以下の課題がある。すなわち、この周波数変化測定装置では、カウンタによって周波数が測定される度に、記憶回路、減算回路、加算回路および除算回路の各回路間で測定値の転送が行われるため、移動平均の算出の対象とする測定値の数nが多く設定されているときには、各回路間での測定値の転送回数が多くなり、その分、高速での処理が困難となる。一方、測定値の平均値を高速で行う方法として次のような方法が知られている。この方法では、例えば、入力信号の物理量として、連続して入力するパルスの周波数の平均値を算出する際には、予め決められた規定時間内に入力したパルスの数をカウントし、規定時間をそのカウント数で除した値の逆数をその規定時間における周波数の平均値とする。しかしながら、この方法では、規定時間内において最後に入力したパルスの入力時点から規定時間の終了時点までの間に、最大でパルスの1周期分程度の時間間隔が生じることとなり、この時間間隔に起因して算出した周波数の平均値が不正確となるおそれがある。 However, the above-described frequency change measuring apparatus has the following problems to be solved. That is, in this frequency change measuring apparatus, every time the frequency is measured by the counter, the measured value is transferred between the memory circuit, the subtracting circuit, the adding circuit, and the dividing circuit. When the number n of measured values is set to be large, the number of times the measured values are transferred between the circuits increases, and accordingly, high-speed processing becomes difficult. On the other hand, the following method is known as a method of performing an average value of measured values at high speed. In this method, for example, when calculating the average value of the frequency of continuously input pulses as the physical quantity of the input signal, the number of pulses input within a predetermined specified time is counted, and the specified time is calculated. The reciprocal of the value divided by the number of counts is taken as the average value of the frequency over the specified time. However, in this method, a time interval of about one cycle of the pulse occurs at the maximum from the input time of the last input pulse within the specified time to the end time of the specified time. There is a risk that the average value of the frequencies calculated in this way will be inaccurate.
本発明は、かかる課題を解決すべくなされたものであり、連続して入力するパルスについての物理量の平均値を正確かつ高速に測定し得る測定装置および測定方法を提供することを主目的とする。 The present invention has been made to solve such a problem, and a main object of the present invention is to provide a measuring apparatus and a measuring method capable of accurately and rapidly measuring an average value of physical quantities of continuously input pulses. .
上記目的を達成すべく請求項1記載の測定装置は、連続して入力するパルスについての物理量を測定する測定処理を実行する処理部を備えた測定装置であって、前記処理部は、1つの前記パルスの入力時点を開始時点として当該開始時点からの経過時間を計測する計時処理と、前記開始時点よりも後に入力した前記パルスの数をカウントするカウント処理とを実行すると共に、前記経過時間が予め決められた規定時間に達するまでの間において最後にカウントした前記パルスの入力時点までの前記経過時間を処理対象時間として、前記経過時間が前記規定時間に達するまでにカウントした前記パルスのカウント数と前記処理対象時間とに基づいて当該処理対象時間における前記物理量の平均値を測定する処理を前記測定処理として実行する。 In order to achieve the above object, the measurement apparatus according to claim 1 is a measurement apparatus including a processing unit that executes a measurement process for measuring a physical quantity of pulses that are continuously input. A time counting process for measuring an elapsed time from the start time with the input time of the pulse as a start time; a count process for counting the number of pulses input after the start time; and the elapsed time Counting the number of pulses counted until the elapsed time reaches the specified time, with the elapsed time until the input time of the pulse counted last as the processing target time until the predetermined time is reached And a process of measuring an average value of the physical quantities at the process target time based on the process target time as the measurement process.
また、請求項2記載の測定装置は、請求項1記載の測定装置において、前記規定時間を任意の値に設定する操作が可能な操作部を備え、前記処理部は、前記操作部に対する操作によって設定された規定時間に基づいて前記測定処理を実行する。 The measuring device according to claim 2 is provided with an operation unit capable of performing an operation of setting the specified time to an arbitrary value in the measuring device according to claim 1, and the processing unit is configured by an operation on the operation unit. The measurement process is executed based on the set specified time.
また、請求項3記載の測定方法は、連続して入力するパルスについての物理量を測定する測定処理を実行する測定方法であって、1つの前記パルスの入力時点を開始時点として当該開始時点からの経過時間を計測する計時処理と、前記開始時点よりも後に入力した前記パルスの数をカウントするカウント処理とを実行すると共に、前記経過時間が予め決められた規定時間に達するまでの間において最後にカウントした前記パルスの入力時点までの前記経過時間を処理対象時間として、前記経過時間が前記規定時間に達するまでにカウントした前記パルスのカウント数と前記処理対象時間とに基づいて当該処理対象時間における前記物理量の平均値を測定する処理を前記測定処理として実行する。 The measurement method according to claim 3 is a measurement method for executing a measurement process for measuring a physical quantity of pulses that are continuously input. The measurement is performed from an input time point of one pulse as a start time point. A time measuring process for measuring the elapsed time and a counting process for counting the number of the pulses input after the start time are executed, and finally, until the elapsed time reaches a predetermined specified time. Based on the count number of the pulses counted until the elapsed time reaches the specified time and the processing target time, the elapsed time until the counted pulse input time is the processing target time. A process for measuring the average value of the physical quantities is executed as the measurement process.
請求項1記載の測定装置、および請求項3記載の測定方法によれば、開始時点としての1つのパルスの入力時点からの経過時間を計測する計時処理と、開始時点よりも後に入力したパルスの数をカウントするカウント処理とを実行することにより、経過時間が規定時間に達するまでの間において最後にカウントしたパルスの入力時点までの経過時間である処理対象時間、および経過時間が規定時間に達するまでにカウントしたパルスのカウント数を正確に特定することができる。このため、この測定装置および測定方法によれば、その処理対象時間およびカウント数に基づいて(例えば、処理対象時間をカウント数で除した平均周期の逆数を算出することによって)パルスについての物理量としての周波数の平均値を正確に測定することができる。また、この測定装置および測定方法によれば、パルスが新たに入力する度に周波数を測定してそのデータを記憶部に記憶させる必要がなく、経過時間が規定時間に達したときに処理対象時間およびカウント数に基づく計算を行うことで周波数の平均値を測定することができるため、測定を高速に行うことができる。 According to the measuring apparatus according to claim 1 and the measuring method according to claim 3, a time measuring process for measuring an elapsed time from an input time point of one pulse as a start time point, and a pulse input after the start time point By executing the counting process that counts the number, the processing target time that is the elapsed time up to the input point of the last counted pulse and the elapsed time reach the specified time until the elapsed time reaches the specified time It is possible to accurately specify the count number of pulses counted up to now. Therefore, according to this measurement apparatus and measurement method, as a physical quantity for a pulse, based on the processing target time and the count number (for example, by calculating the reciprocal of the average period obtained by dividing the processing target time by the count number) It is possible to accurately measure the average value of the frequencies. Further, according to this measuring apparatus and measuring method, it is not necessary to measure the frequency each time a pulse is newly input and store the data in the storage unit, and when the elapsed time reaches the specified time, the processing target time Since the average value of the frequencies can be measured by performing the calculation based on the count number, the measurement can be performed at high speed.
請求項2記載の測定装置によれば、操作部に対する操作によって任意の値に設定された規定時間に基づいて測定処理を実行することにより、例えば、周波数の平均値の変化を示すグラフを表示部に表示させる場合において、表示部の表示領域に表示可能な時間軸の長さに応じて規定時間を設定することができるため、そのグラフを見やすく表示させることができる。 According to the measurement device of claim 2, by performing the measurement process based on the specified time set to an arbitrary value by an operation on the operation unit, for example, a graph showing a change in the average value of the frequency is displayed on the display unit Since the specified time can be set according to the length of the time axis that can be displayed in the display area of the display unit, the graph can be displayed in an easy-to-view manner.
以下、測定装置および測定方法の実施の形態について、添付図面を参照して説明する。 Hereinafter, embodiments of a measurement apparatus and a measurement method will be described with reference to the accompanying drawings.
最初に、測定装置1の構成について、図面を参照して説明する。図1に示す測定装置1は、測定装置の一例であって、パルス出力部11、処理部12、操作部13、記憶部14および表示部15を備えて構成されている。
First, the configuration of the measuring apparatus 1 will be described with reference to the drawings. A measuring apparatus 1 shown in FIG. 1 is an example of a measuring apparatus, and includes a
パルス出力部11は、処理部12の制御に従ってパルス出力処理を実行する。この場合、パルス出力部11は、パルス出力処理において、図2に示すように、アナログ信号(一例として交流電圧信号Sv)を入力して、その交流電圧信号Svの電圧値Vが比較値Vr(一例として、0V)を超えたときに予め規定されている時間長のパルスPを出力する。
The
処理部12は、操作部13から出力される操作信号に従って各部を制御する。また、処理部12は、図3に示す周波数測定処理50(測定処理の一例)を実行することにより、パルス出力部11によって連続して出力されるパルスPを入力して、各パルスP(連続して入力するパルス)についての物理量(一例として、各パルスPの周期や周波数)の平均値(平均周期Tcや平均周波数fa)を測定する。この場合、処理部12は、図外の内部タイマを備えて構成され、周波数測定処理50において、内部タイマから出力される時刻データを用いて後述する計時処理および積算処理を実行すると共に、後述するカウント処理を実行する。
The
操作部13は、電源スイッチや各種の操作キーなどを備えて構成され、それらが操作されたときに操作信号を出力する。また、操作部13は、処理部12によって実行される周波数測定処理50において用いられる規定時間Trを任意の値に設定する操作が可能に構成されている。記憶部14は、操作部13に対する操作によって入力された規定時間Trを記憶する。また、記憶部14は、処理部12によって測定されるパルスPの平均周波数faを記憶する。表示部15は、処理部12の制御に従って平均周波数faの変化を示すグラフなどを表示する。
The
次に、測定装置1を用いて連続して入力するパルスPの周波数(パルスについての物理量の一例)を測定する測定方法、およびその際の測定装置1の動作について図面を参照して説明する。 Next, a measurement method for measuring the frequency (an example of a physical quantity of a pulse) of pulses P that are continuously input using the measurement apparatus 1 and the operation of the measurement apparatus 1 at that time will be described with reference to the drawings.
測定に先立ち、処理部12によって実行される周波数測定処理50において用いられる規定時間Trを入力する。この場合、一例として、規定時間Trを0.85秒(850ms)に設定したものとする(図4参照)。この際に、処理部12が、操作部13から出力される操作信号に従い、規定時間Trを記憶部14に記憶させる。
Prior to the measurement, a specified time Tr used in the
次いで、操作部13を操作して測定の開始を指示する。この際に、処理部12は、操作信号に従ってパルス出力部11に対してパルス出力処理を開始させる。このパルス出力処理では、パルス出力部11は、図2に示すように、交流電圧信号Sv(アナログ信号)を入力し、交流電圧信号Svの電圧値Vが比較値Vr(一例として、0V)を超えたときにパルスPを出力する。
Next, the
続いて、処理部12は、図3に示す周波数測定処理50を実行する。この周波数測定処理50では、処理部12は、記憶部14から規定時間Trを読み出す(ステップ51)。次いで、処理部12は、後述する経過時間Tp、処理対象時間Tiおよびカウント数Nをリセットするリセット処理を実行する(ステップ52)。
Subsequently, the
続いて、処理部12は、リセット処理の実行後におけるパルス出力部11からの最初のパルスPが入力したか否かを判別する(ステップ53)。この場合、処理部12は、最初のパルスP(1つのパルスに相当し、例えば、図4に示すパルスP0)が入力したと判別したときには、計時処理、カウント処理および積算処理を開始する(ステップ54)。
Subsequently, the
処理部12は、上記した計時処理において、パルスP0の入力時点を開始時点Ts1(図4参照)として、その開始時点Ts1からの経過時間Tpを、内部タイマから出力される時刻データを用いて計測する。また、処理部12は、計時処理において、開始時点Ts1よりも後において新たなパルスPが入力したか否かを判別する(ステップ55)。この場合、処理部12は、新たなパルスPが入力していないと判別したときには、経過時間Tpが規定時間Trに達したか否かを判別し(ステップ56)、新たなパルスPが入力したと判別したときには、後に説明するカウント数Nのカウントアップ(ステップ57)、および周期の積算(ステップ58)を実行した後にステップ56を実行する。
The
また、処理部12は、上記したステップ56において経過時間Tpが規定時間Trに達していないと判別したときには、ステップ55を実行する。つまり、処理部12は、経過時間Tpが規定時間Trに達したと判別するまで、ステップ55,56(または55,57,58,56)を繰り返して実行する。
Further, when the
また、処理部12は、上記したカウント処理において、入力したパルスPの数をカウントする。具体的には、処理部12は、上記したステップ55において、新たなパルスP(例えば、図4に示すパルスP1)が入力したと判別したときに、カウント数Nを「1」だけカウントアップする(ステップ57)。この場合、処理部12は、上記したように、経過時間Tpが規定時間Trに達したと判別するまでステップ55,56(または55,57,58,56)を繰り返して実行する。したがって、処理部12は、このカウント処理において、経過時間Tpが規定時間Trに達したと判別するまで、新たなパルスPが入力する度に、カウント数Nを「1」ずつカウントアップし、これによって規定時間Tr内に入力したパルスPの数をカウントする。
Further, the
また、処理部12は、上記した積算処理において、入力したパルスPの周期を積算する。具体的には、処理部12は、上記したステップ55において、新たなパルスP(例えば、図4に示すパルスP1)が入力したと判別したときに、パルスP1の直前に入力したパルスP0の入力時点から新たに入力したパルスP1の入力時点までの周期を内部タイマから出力される時刻データを用いて特定し、特定した周期を積算する(ステップ58)。この場合、処理部12は、上記したように、経過時間Tpが規定時間Trに達したと判別するまでステップ55,56(または55,57,58,56)を繰り返して実行する。したがって、処理部12は、この積算処理において、経過時間Tpが規定時間Trに達したと判別するまで、新たなパルスPが入力する度に、そのパルスPの周期を積算し、これによって規定時間Tr内に入力した全てのパルスPの周期を積算する。
Further, the
次いで、処理部12は、上記したステップ56において、経過時間Tpが規定時間Trに達したと判別したときには、計時処理、カウント処理および積算処理を停止し(ステップ59)、続いて、その時点における周期の積算時間(つまり経過時間Tp)が規定時間Trに達するまでの間において最後にカウントしたパルスP(例えば、図4に示すパルスP3)の入力時点までの経過時間Tp(同図参照)を処理対象時間Tiとして設定する(ステップ60)。次いで、処理部12は、処理対象時間TiにおけるパルスPの周波数の平均値(以下、この平均値を「平均周波数fa」ともいう)を測定する(ステップ61)。具体的には、処理部12は、まず、処理対象時間Tiをカウント数Nで除することにより、処理対象時間Tiにおける周期の平均値(以下、この平均値を「平均周期Tc」ともいう)を測定(算出)する(Tc=Ti/N)。続いて、処理部12は、平均周期Tcの逆数を平均周波数faとして測定(算出)する(fa=1/Tc)。
Next, when it is determined in
この場合、一例として、図4に示すように、開始時点Ts1よりも後において、開始時点Ts1から規定時間Trが経過するまでの間に3つのパルスP1〜P3が入力し(カウント数Nが3)、開始時点Ts1からパルスP3の入力時点までの経過時間Tpが750msのときには、処理部12は、処理対象時間Tiを750msに設定し、また、処理部12は、750msを3で除した250msを平均周期Tcとして測定する。さらに、処理部12は、250msの逆数である4Hzを平均周波数faとして測定する。
In this case, as an example, as shown in FIG. 4, three pulses P1 to P3 are input after the start time Ts1 until the specified time Tr elapses after the start time Ts1 (the count number N is 3). ) When the elapsed time Tp from the start time Ts1 to the input time of the pulse P3 is 750 ms, the
次いで、処理部12は、測定した平均周波数faを記憶部14に記憶させる。続いて、処理部12は、リセット処理を実行して経過時間Tp、処理対象時間Tiおよびカウント数Nをリセットし(ステップ62)する。以上により、1回目の平均周波数faの測定が終了する。
Next, the
ここで、規定時間Trをカウント数Nで除した値の逆数を平均周波数faとして測定する従来の構成および方法では、平均周波数faが不正確となるおそれがある。具体的には、図5,6に示すように、例えば、規定時間Trが850msに設定され、開始時点Ts1から規定時間Trが経過するまでの間に3つのパルスP1〜P3が入力したとき(カウント数Nが3のとき)における規定時間Trをカウント数Nで除した値(以下、この値を「時間Td」ともいう)が、約283msとなる。 Here, in the conventional configuration and method in which the inverse of the value obtained by dividing the specified time Tr by the count number N is measured as the average frequency fa, the average frequency fa may be inaccurate. Specifically, as shown in FIGS. 5 and 6, for example, when the prescribed time Tr is set to 850 ms and three pulses P1 to P3 are input during the time from the start time Ts1 until the prescribed time Tr elapses ( A value obtained by dividing the specified time Tr by the count number N (hereinafter, this value is also referred to as “time Td”) when the count number N is 3 is approximately 283 ms.
一方、この場合において、例えば図5に示すように、開始時点Ts1からパルスP3の入力時点までの経過時間Tpが810msのときには、パルスP1〜P3の平均周期Tcが、270msとなる。つまり、規定時間Trをカウント数Nで除した時間Td(283ms)と平均周期Tcとが異なるため、時間Tdの逆数として測定した平均周波数faと平均周期Tcの逆数である本来の平均周波数faとが異なる値となる。また、図6に示すように、開始時点Ts1からパルスP3の入力時点までの経過時間Tpが650msのときには、パルスP1〜P3の平均周期Tcが約216msとなり、時間Tdとの差がさらに大きくなるため、時間Tdの逆数として測定した平均周波数faと本来の平均周波数faとがさらに大きく異なる値となる。 On the other hand, in this case, for example, as shown in FIG. 5, when the elapsed time Tp from the start time Ts1 to the input time of the pulse P3 is 810 ms, the average period Tc of the pulses P1 to P3 is 270 ms. That is, since the time Td (283 ms) obtained by dividing the specified time Tr by the count N is different from the average period Tc, the average frequency fa measured as the reciprocal of the time Td and the original average frequency fa that is the reciprocal of the average period Tc Have different values. As shown in FIG. 6, when the elapsed time Tp from the start time Ts1 to the input time of the pulse P3 is 650 ms, the average period Tc of the pulses P1 to P3 is about 216 ms, and the difference from the time Td is further increased. Therefore, the average frequency fa measured as the reciprocal of the time Td and the original average frequency fa are different from each other.
これに対して、この測定装置1および測定方法では、上記した計時処理、カウント処理および積算処理を実行することによって処理対象時間Tiおよびカウント数Nを正確に特定することができるため、その処理対象時間Tiおよびカウント数Nに基づいて(処理対象時間Tiをカウント数Nで除した値の逆数を算出することによって)平均周期Tcの逆数である平均周波数faを正確に測定することが可能となっている。 On the other hand, in the measurement apparatus 1 and the measurement method, the processing target time Ti and the count number N can be accurately specified by executing the above-described time measurement process, count process, and integration process. Based on the time Ti and the count number N (by calculating the reciprocal of the value obtained by dividing the processing target time Ti by the count number N), the average frequency fa that is the reciprocal of the average period Tc can be accurately measured. ing.
また、この測定装置1および測定方法では、移動平均法による処理によって周波数の平均値を測定する従来の構成および方法とは異なり、パルスPを新たに入力する度に周波数を測定してそのデータを記憶部14に記憶させる必要がなく、経過時間Tpが規定時間Trに達したと判別したときに処理対象時間Tiおよびカウント数Nに基づく計算を行うことで平均周波数faを測定することができる。このため、この測定装置1および測定方法では、測定を高速に行うことが可能となっている。 Further, in this measuring apparatus 1 and measuring method, unlike the conventional configuration and method in which the average value of the frequency is measured by the processing by the moving average method, the frequency is measured each time a pulse P is newly input and the data is obtained. The average frequency fa can be measured by performing calculation based on the processing target time Ti and the count number N when it is determined that the elapsed time Tp has reached the specified time Tr without being stored in the storage unit 14. For this reason, in this measuring apparatus 1 and the measuring method, it is possible to perform measurement at high speed.
次いで、処理部12は、上記したステップ54〜62を実行して、2回目の平均周波数faの測定を行う。この場合、処理部12は、1回目の平均周波数faの測定における規定時間Tr内の最後に入力したパルスP(図4の例では、パルスP3)の入力時点を新たな開始時点Ts2(同図参照)として設定して計時処理を実行し、このパルスP3よりも後に入力するパルスPを新たなパルスPとしてカウント処理および積算処理を実行する。
Next, the
以後、処理部12は、同様にして、ステップ54〜61を繰り返して実行して平均周波数faの測定を繰り返して行う。また、処理部12は、測定した平均周波数faの変化を示すグラフを表示部15に表示させる。
Thereafter, the
このように、この測定装置1および測定方法によれば、開始時点Ts1,Ts2からの経過時間Tpを計測する計時処理と、開始時点Ts1,Ts2よりも後に入力したパルスPの数をカウントするカウント処理とを実行することにより、経過時間Tpが規定時間Trに達するまでの間において最後にカウントしたパルスPの入力時点までの経過時間Tpである処理対象時間Ti、および経過時間Tpが規定時間Trに達するまでにカウントしたパルスPのカウント数Nを正確に特定することができる。このため、この測定装置1および測定方法によれば、その処理対象時間Tiおよびカウント数Nに基づいて(例えば、処理対象時間Tiをカウント数Nで除した平均周期Tcの逆数を算出することによって)パルスPについての物理量としての周波数の平均値である平均周波数faを正確に測定することができる。また、この測定装置1および測定方法によれば、パルスPが新たに入力する度に周波数を測定してそのデータを記憶部14に記憶させる必要がなく、経過時間Tpが規定時間Trに達したときに処理対象時間Tiおよびカウント数Nに基づく計算を行うことで平均周波数faを測定することができるため、測定を高速に行うことができる。 As described above, according to the measurement apparatus 1 and the measurement method, the time counting process for measuring the elapsed time Tp from the start time points Ts1 and Ts2, and the count for counting the number of pulses P input after the start time points Ts1 and Ts2. By executing the processing, the processing target time Ti, which is the elapsed time Tp until the input time point of the last pulse P counted until the elapsed time Tp reaches the specified time Tr, and the elapsed time Tp are the specified time Tr. It is possible to accurately specify the count number N of the pulses P counted until reaching. Therefore, according to the measurement apparatus 1 and the measurement method, based on the processing target time Ti and the count number N (for example, by calculating the reciprocal number of the average period Tc obtained by dividing the processing target time Ti by the count number N). ) It is possible to accurately measure the average frequency fa, which is an average value of frequencies as physical quantities of the pulse P. Further, according to the measuring apparatus 1 and the measuring method, it is not necessary to measure the frequency each time the pulse P is newly input and store the data in the storage unit 14, and the elapsed time Tp reaches the specified time Tr. Since the average frequency fa can be measured by performing calculation based on the processing target time Ti and the count number N, the measurement can be performed at high speed.
また、この測定装置1および測定方法によれば、操作部13に対する操作によって任意の値に設定された規定時間Trに基づいて周波数測定処理50を実行することにより、例えば、平均周波数faの変化を示すグラフを表示部15に表示させる場合において、表示部15の表示領域に表示可能な時間軸の長さに応じて規定時間Trを設定することができるため、そのグラフを見やすく表示させることができる。
In addition, according to the measurement apparatus 1 and the measurement method, by executing the
なお、測定装置および測定方法は、上記の構成および方法に限定されない。例えば、パルスPについての物理量としての周期の平均値(平均周期Tc)を測定(算出)し、その平均周期TcからパルスPについての物理量としての周波数の平均値(平均周波数fa)を測定(算出)する例について上記したが、パルスPについての物理量の他の一例としてのデューティ比の平均値を測定する構成および方法を採用することもできる。また、上記の構成および方法では、平均周期Tcを測定し、その平均周期Tcの逆数を平均周波数faとして測定したが、カウント数Nを処理対象時間Tiで除して平均周波数faを測定してもよい。 Note that the measurement apparatus and the measurement method are not limited to the above configuration and method. For example, an average value (average period Tc) as a physical quantity for the pulse P is measured (calculated), and an average value (average frequency fa) as a physical quantity for the pulse P is measured (calculated) from the average period Tc. ), The configuration and method of measuring the average value of the duty ratio as another example of the physical quantity of the pulse P can also be adopted. In the above configuration and method, the average period Tc is measured and the reciprocal number of the average period Tc is measured as the average frequency fa. However, the average frequency fa is measured by dividing the count number N by the processing target time Ti. Also good.
1 測定装置
12 処理部
13 操作部
fa 平均周波数
N カウント数
P パルス
Tc 平均周期
Ti 処理対象時間
Tp 経過時間
Tr 規定時間
Ts1 開始時点
Ts2 開始時点
DESCRIPTION OF SYMBOLS 1
Claims (3)
前記処理部は、1つの前記パルスの入力時点を開始時点として当該開始時点からの経過時間を計測する計時処理と、前記開始時点よりも後に入力した前記パルスの数をカウントするカウント処理とを実行すると共に、前記経過時間が予め決められた規定時間に達するまでの間において最後にカウントした前記パルスの入力時点までの前記経過時間を処理対象時間として、前記経過時間が前記規定時間に達するまでにカウントした前記パルスのカウント数と前記処理対象時間とに基づいて当該処理対象時間における前記物理量の平均値を測定する処理を前記測定処理として実行する測定装置。 A measurement apparatus including a processing unit that executes a measurement process for measuring a physical quantity of pulses that are continuously input,
The processing unit performs a time measurement process that measures an elapsed time from the start time point with an input time point of one pulse as a start time point, and a count process that counts the number of pulses input after the start time point In addition, the elapsed time until the last pulse input time counted until the elapsed time reaches a predetermined specified time is set as the processing target time until the elapsed time reaches the specified time. A measurement apparatus that executes, as the measurement process, a process of measuring an average value of the physical quantities in the processing target time based on the counted number of pulses counted and the processing target time.
前記処理部は、前記操作部に対する操作によって設定された規定時間に基づいて前記測定処理を実行する請求項1記載の測定装置。 An operation unit capable of setting the prescribed time to an arbitrary value;
The measurement apparatus according to claim 1, wherein the processing unit performs the measurement process based on a specified time set by an operation on the operation unit.
1つの前記パルスの入力時点を開始時点として当該開始時点からの経過時間を計測する計時処理と、前記開始時点よりも後に入力した前記パルスの数をカウントするカウント処理とを実行すると共に、前記経過時間が予め決められた規定時間に達するまでの間において最後にカウントした前記パルスの入力時点までの前記経過時間を処理対象時間として、前記経過時間が前記規定時間に達するまでにカウントした前記パルスのカウント数と前記処理対象時間とに基づいて当該処理対象時間における前記物理量の平均値を測定する処理を前記測定処理として実行する測定方法。 A measurement method for executing a measurement process for measuring a physical quantity of pulses that are continuously input,
A time counting process for measuring an elapsed time from the start time point with an input time point of one of the pulses as a start time point and a count process for counting the number of pulses input after the start time point are performed. The elapsed time until the input time point of the pulse counted last until the time reaches a predetermined specified time is set as the processing target time, and the pulse counted before the elapsed time reaches the specified time. A measurement method for executing, as the measurement process, a process of measuring an average value of the physical quantities in the process target time based on a count number and the process target time.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011008484A JP2012149976A (en) | 2011-01-19 | 2011-01-19 | Measurement apparatus and measurement method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2011008484A JP2012149976A (en) | 2011-01-19 | 2011-01-19 | Measurement apparatus and measurement method |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2012149976A true JP2012149976A (en) | 2012-08-09 |
Family
ID=46792355
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2011008484A Pending JP2012149976A (en) | 2011-01-19 | 2011-01-19 | Measurement apparatus and measurement method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2012149976A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015031680A (en) * | 2013-08-07 | 2015-02-16 | 三菱電機株式会社 | Frequency detector |
-
2011
- 2011-01-19 JP JP2011008484A patent/JP2012149976A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2015031680A (en) * | 2013-08-07 | 2015-02-16 | 三菱電機株式会社 | Frequency detector |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW201303315A (en) | Method and system for measuring frequency | |
JP2013024853A (en) | Frequency counter | |
CN108051604B (en) | Blood coagulation time measuring method, device and system | |
US10234262B2 (en) | Sensor for measuring angular position, and measurement compensation method | |
Brugnano et al. | A simple and accurate algorithm for speed measurement in electric drives using incremental encoder | |
KR20120072661A (en) | Apparatus for real time clock frequency offset detection and method thereof | |
JP2012149976A (en) | Measurement apparatus and measurement method | |
TW201904200A (en) | Method and apparatus for time-to-digital conversion using time residue feedback | |
JP5914718B2 (en) | Time base with oscillator, frequency division circuit and clock pulse suppression circuit | |
JP2023009163A (en) | measuring instrument | |
JP2014002105A (en) | Physical quantity measurement device, physical quantity measurement method | |
JP5846923B2 (en) | Frequency measuring apparatus and frequency measuring method | |
JP2012154763A (en) | Measurement device and measurement method | |
US20160308667A1 (en) | Method and device for transmitting data on asynchronous paths between domains with different clock frequencies | |
JP2014085171A5 (en) | ||
JP5959293B2 (en) | Insulation resistance measuring device and insulation resistance measuring method | |
JP6500550B2 (en) | Timer correction device, timer correction method and timer correction program | |
JP2011106856A (en) | Electric characteristic measuring device and electric characteristic measuring method | |
JP2011232915A (en) | Timer | |
JP6728003B2 (en) | Measured value accumulator | |
US10488449B2 (en) | Method and apparatus for determining characteristics of an input signal | |
RU2638972C2 (en) | Method of frequency measurement | |
JP2000074962A (en) | Cycle-measuring device and method therefor, and storage medium | |
JP6265687B2 (en) | Waveform measuring instrument | |
RU110499U1 (en) | FREQUENCY METER |