JP5372581B2 - Measured value conversion device and measured value conversion method - Google Patents
Measured value conversion device and measured value conversion method Download PDFInfo
- Publication number
- JP5372581B2 JP5372581B2 JP2009099528A JP2009099528A JP5372581B2 JP 5372581 B2 JP5372581 B2 JP 5372581B2 JP 2009099528 A JP2009099528 A JP 2009099528A JP 2009099528 A JP2009099528 A JP 2009099528A JP 5372581 B2 JP5372581 B2 JP 5372581B2
- Authority
- JP
- Japan
- Prior art keywords
- conversion
- value
- data
- measurement value
- conversion table
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Recording Measured Values (AREA)
Abstract
Description
本発明は、複数の変換前測定値を指数表示形式の変換後測定値にそれぞれ変換する測定値変換装置および測定値変換方法に関するものである。 The present invention relates to a measurement value conversion apparatus and a measurement value conversion method for converting a plurality of pre-conversion measurement values into post-conversion measurement values in an exponential display format.
今日の波形記録装置では、測定部において入力信号(アナログ信号)をデジタルデータに変換して各種記憶媒体に記録する構成が採用されている。例えば、特開平8−145728号公報には、A/D変換器、ループメモリ、外部記録媒体インタフェースおよび制御部を備えて構成された信号波形記録装置(以下、「波形記録装置」ともいう)が開示されている。この波形記録装置では、A/D変換器が、アナログ信号波形(測定値)をデジタルデータに変換して出力し、ループメモリが、A/D変換器から出力されたデジタルデータを一時的に記憶する。次いで、制御部が、ループメモリに記憶されているデジタルデータを外部記録媒体インタフェースから出力して外部記録媒体に記録させる。この場合、この種の測定装置では、A/D変換器から出力されたデジタルデータをそのままの形式で外部記録媒体に記録させるのではなく、出力されたデジタルデータ(以下、「変換前データ」ともいう)を所定の表示形式(一例として、指数表示形式)の測定値のデータ(以下、「変換後データ」ともいう)に変換した状態で記録させるのが一般的となっている。 In today's waveform recording apparatuses, a configuration is adopted in which an input signal (analog signal) is converted into digital data and recorded in various storage media in a measurement unit. For example, Japanese Patent Laid-Open No. 8-145728 discloses a signal waveform recording device (hereinafter also referred to as “waveform recording device”) configured to include an A / D converter, a loop memory, an external recording medium interface, and a control unit. It is disclosed. In this waveform recording apparatus, an A / D converter converts an analog signal waveform (measured value) into digital data and outputs it, and a loop memory temporarily stores the digital data output from the A / D converter. To do. Next, the control unit outputs the digital data stored in the loop memory from the external recording medium interface and records it on the external recording medium. In this case, in this type of measuring apparatus, the digital data output from the A / D converter is not recorded in the external recording medium in the form as it is, but the output digital data (hereinafter referred to as “data before conversion”) is used. Is generally recorded in a state of being converted into measurement value data (hereinafter also referred to as “converted data”) in a predetermined display format (an index display format as an example).
具体的には、上記の波形記録装置などの測定装置では、A/D変換器が分解能に応じて生成したデジタルデータを出力するため、例えば、16bitの分解能を有するA/D変換器では、入力信号に対して、65536値の連続する値のうちのいずれかの値が出力されることとなる。したがって、A/D変換器から出力されるデジタルデータ(変換前データ)は、入力信号の値(測定値)を直接的には表現しておらず、単なる数値の羅列状態となっている。このため、この種の測定装置では、A/D変換器から出力される変換前データについて、アナログ信号波形の信号電圧値を直接的に現す変換後データ(例えば、指数表示形式の10進数の測定値)に変換する演算処理と、その演算結果を例えばASCIIコードなどの文字データに変換する演算処理とをこの順で実行して変換後データを生成し、生成した変換後データを外部記録媒体に記録させる構成が採用されている。したがって、上記の公開公報に開示されている波形記録装置には、変換後データとして記録させるすべてのデータに対して上記の各演算処理を順次実行する必要があることに起因して、複数の変換前データを対応する変換後データにそれぞれ変換する変換処理に要する時間が長くなっているという問題点がある。 Specifically, in the measurement apparatus such as the waveform recording apparatus described above, the digital data generated by the A / D converter according to the resolution is output. For example, in the A / D converter having a resolution of 16 bits, the input is performed. Any one of 65536 consecutive values is output for the signal. Accordingly, the digital data (pre-conversion data) output from the A / D converter does not directly represent the value (measured value) of the input signal, but is simply a list of numerical values. For this reason, in this type of measuring apparatus, post-conversion data that directly represents the signal voltage value of the analog signal waveform (e.g., decimal number measurement in exponential display format) for the pre-conversion data output from the A / D converter. Value) and the calculation result is converted into character data such as ASCII code in this order to generate converted data, and the generated converted data is stored in an external recording medium. A configuration for recording is adopted. Therefore, the waveform recording device disclosed in the above-mentioned publication discloses a plurality of conversions because it is necessary to sequentially execute each of the above arithmetic processes for all data to be recorded as post-conversion data. There is a problem that the time required for the conversion process for converting the previous data into the corresponding converted data is increased.
一方、上記の問題点を解決するために、変換前データの各値毎に、対応する変換後データの値を対応付けて記録した変換用テーブルを用いて変換前データを変換後データに変換する構成の測定装置も開発されている。この場合、変換用テーブルを用いて変換前データを変換後データに変換する構成の測定装置では、変換処理に際して、変換用テーブルにおいて変換前データに関連付けられている値(文字列)を特定して読み込むだけで、煩雑な演算処理を実行することなく、変換後データを生成する(変換前データを変換後データに変換する)ことが可能となっている。これにより、変換用テーブルを用いるタイプの測定装置では、データ(測定値)の変換に要する時間を短縮することが可能となっている。 On the other hand, in order to solve the above problems, the data before conversion is converted into data after conversion using a conversion table in which the value of the corresponding data after conversion is recorded in association with each value of the data before conversion. Configuration measuring devices have also been developed. In this case, in the measuring apparatus configured to convert the pre-conversion data into the post-conversion data using the conversion table, the value (character string) associated with the pre-conversion data is specified in the conversion table during the conversion process. It is possible to generate post-conversion data (convert pre-conversion data into post-conversion data) without performing complicated calculation processing simply by reading. Thereby, in the type of measuring apparatus using the conversion table, it is possible to shorten the time required for the conversion of data (measured values).
ところが、変換用テーブルを用いて変換前データを変換後データに変換する構成の測定装置には、以下の問題点が存在する。すなわち、前述したように、この種の測定装置において使用する変換用テーブルは、変換前データの各値毎に、対応する変換後データの値が対応付けて記録されている。このため、変換用テーブルのデータサイズが非常に大きくなっている。具体的には、「−32768」〜「+32767」の65536値の変換前データについて、例えば、「−32768」との変換前データについては「−3.27678E+01V」との変換後データに変換し、「+32768」との変換前データについては「+3.27672E+01V」との変換後データに変換するための変換テーブルは、レコード数が「65536」で、1レコード当りの文字数(1つの変換後データの文字数)が「13文字」であるため、合計で「65536」×「13」=「851968文字」分の情報が記録されることとなる。 However, the measurement apparatus configured to convert pre-conversion data into post-conversion data using a conversion table has the following problems. That is, as described above, in the conversion table used in this type of measurement apparatus, the value of the corresponding converted data is recorded in association with each value of the pre-conversion data. For this reason, the data size of the conversion table is very large. Specifically, for the data before conversion of 65536 values from “−32768” to “+32767”, for example, the data before conversion of “−32768” is converted into data after conversion of “−3.27678E + 01V”, The conversion table for converting the pre-conversion data with “+32768” into the post-conversion data with “+ 3.26762E + 01V” has a record number of “65536” and the number of characters per record (the number of characters in one post-conversion data) ) Is “13 characters”, so that information of “65536” × “13” = “851968 characters” is recorded in total.
この場合、この変換用テーブルを例えばASCII形式で生成したときには、「1文字=1byte」であるため、変換用テーブルのデータサイズが「65536byte=64kbyte」×「13文字」=「832kbyte」となる。しかしながら、各変換後データにおける「.(小数点)」、「E(指数記号)」および「V(単位記号)」については、いずれの変換後データにおいても共通的に使用されるデータであるため、この3文字については変換用テーブルから切り離して共有の変換用データとすることで、変換用データのデータサイズを「64kbyte」×「10文字」=「640kbyte」とすることが可能となる。これにより、「.」、「E」および「V」との符号を変換用テーブル内に含ませた一般的な変換用テーブルと比較して、「64kbyte」×「3文字」=「192kbyte」だけデータサイズを小さくすることができる。 In this case, when this conversion table is generated in, for example, the ASCII format, “1 character = 1 byte”, so the data size of the conversion table is “65536 bytes = 64 kbytes” × “13 characters” = “832 kbytes”. However, since “. (Decimal point)”, “E (exponential symbol)” and “V (unit symbol)” in each converted data are data commonly used in any converted data, By separating these three characters from the conversion table and using the common conversion data, the data size of the conversion data can be “64 kbytes” × “10 characters” = “640 kbytes”. As a result, “64 kbytes” × “3 characters” = “192 kbytes” is compared with the general conversion table in which the codes “.”, “E”, and “V” are included in the conversion table. Data size can be reduced.
一方、変換後データにおける数値部(仮数部の整数部、仮数部の小数部および指数部の各値)について、上記のASCII形式に代えてバイナリ形式で記録して変換用テーブルを生成する場合、各数値部は、「0」〜「9」の10種類の値のうちのいずれかの値であるため、「1値=4bit」で各変換後データの数値部を十分に記録することが可能となる。この場合、上記の例では、各変換後データにおける仮数部の整数部が1桁であるため、そのデータサイズは「4bit×1桁=4bit」となる。また、各変換後データにおける仮数部の小数部が5桁であるため、そのデータサイズは「4bit×5桁=20bit」となる。さらに、各変換後データにおける指数部が2桁であるため、そのデータサイズは「4bit×2桁=8bit」となる。また、仮数部や指数部の符号(「+」および「−」のいずれか)は、それぞれ「1bit」で表現することができる。したがって、変換後データの1値当りのデータサイズは、「4+20+8+1+1=34bit=4.25byte」となるため、バイナリ形式の変換用テーブルのデータサイズは、「4.25×64kbyte=272kbyte」となる。 On the other hand, in the case of generating the conversion table by recording the numerical value part (the integer part of the mantissa part, the decimal part of the mantissa part, and the value of the exponent part) in the binary format instead of the ASCII format, in the converted data, Since each numerical value part is one of 10 values from “0” to “9”, it is possible to sufficiently record the numerical value part of each converted data with “1 value = 4 bits”. It becomes. In this case, in the above example, since the integer part of the mantissa part in each converted data is 1 digit, the data size is “4 bits × 1 digit = 4 bits”. Further, since the decimal part of the mantissa part in each converted data is 5 digits, the data size is “4 bits × 5 digits = 20 bits”. Furthermore, since the exponent part in each converted data is 2 digits, the data size is “4 bits × 2 digits = 8 bits”. In addition, the sign of the mantissa part and the exponent part (either “+” or “−”) can be expressed by “1 bit”. Therefore, since the data size per value of the converted data is “4 + 20 + 8 + 1 + 1 = 34 bits = 4.25 bytes”, the data size of the binary conversion table is “4.25 × 64 kbytes = 272 kbytes”.
このように、ASCII形式に代えてバイナリ形式で変換用テーブルを生成することにより、「640−272=368kbyte」だけデータサイズを小さくすることが可能となる。しかしながら、バイナリ形式で変換用テーブルを生成したとしても、依然として、1つの変換用テーブルのデータサイズが「272kbyte」と非常に大きくなっている。この場合、例えば複数の測定チャンネル毎に互いに相違する測定処理を実行する測定装置において、変換前データを変換後データに変換して記録する場合には、データサイズが大きい上記の変換用テーブルを測定チャンネル毎に記憶しておく必要がある。このため、変換用テーブルを用いて変換前データを変換後データに変換する構成の従来の波形記録(測定値変換装置)では、バイナリ形式で変換用テーブルを生成してデータサイズを小さくしたとしても、変換用テーブルを記憶しておくために大容量のメモリが必要となり、その製造コスト低減が困難になっているという問題点がある。 Thus, by generating the conversion table in the binary format instead of the ASCII format, the data size can be reduced by “640-272 = 368 kbytes”. However, even if the conversion table is generated in the binary format, the data size of one conversion table is still very large as “272 kbytes”. In this case, for example, in a measurement apparatus that executes different measurement processes for each of a plurality of measurement channels, when converting pre-conversion data into post-conversion data and recording it, the above conversion table having a large data size is measured. It is necessary to memorize every channel. Therefore, in the conventional waveform recording (measurement value conversion device) configured to convert the pre-conversion data into the post-conversion data using the conversion table, even if the conversion table is generated in the binary format and the data size is reduced. In order to store the conversion table, a large-capacity memory is required, which makes it difficult to reduce the manufacturing cost.
本発明は、かかる問題点に鑑みてなされたものであり、測定値変換用テーブルのデータサイズを十分に小さくし得る測定値変換装置および測定値変換方法を提供することを主目的とする。 The present invention has been made in view of such problems, and a main object of the present invention is to provide a measurement value conversion apparatus and a measurement value conversion method capable of sufficiently reducing the data size of the measurement value conversion table.
上記目的を達成すべく請求項1記載の測定値変換装置は、複数の変換前測定値を指数表示形式の変換後測定値にそれぞれ変換するための測定値変換用テーブルを記憶する記憶部と、前記測定値変換用テーブルに基づいて前記各変換前測定値を前記変換後測定値にそれぞれ変換する測定値変換処理を実行する変換処理部とを備えた測定値変換装置であって、前記記憶部が、前記測定値変換用テーブルとして、前記変換後測定値における仮数部の小数部の各値を前記各変換前測定値にそれぞれ関連付けた第1の変換用テーブルと、前記変換後測定値における仮数部の整数部の各値および当該変換後測定値における指数部の各値を前記変換前測定値の範囲にそれぞれ関連付けた第2の変換用テーブルとを記憶し、前記変換処理部が、前記変換処理に際して前記変換前測定値を前記変換後測定値に変換する際に、前記第1の変換用テーブルにおいて前記変換前測定値に対応する前記仮数部の小数部の値を特定する第1の特定処理と、前記第2の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値および前記指数部の値を特定する第2の特定処理とを実行し、当該両特定処理によって特定した値に基づいて前記変換後測定値を生成する。 In order to achieve the above object, the measurement value conversion apparatus according to claim 1 stores a measurement value conversion table for converting a plurality of measurement values before conversion into converted measurement values in an exponential display format, A measurement value conversion apparatus comprising: a conversion processing unit that executes a measurement value conversion process for converting each of the measurement values before conversion into the measurement value after conversion based on the measurement value conversion table, the storage unit Is a first conversion table in which each value of the decimal part of the mantissa part in the converted measurement value is associated with the measurement value before conversion, and the mantissa in the converted measurement value as the measurement value conversion table. A second conversion table that associates each value of the integer part of the part and each value of the exponent part in the converted measurement value with the range of the measurement value before conversion, and the conversion processing unit stores the conversion To processing Then, when converting the pre-conversion measurement value to the post-conversion measurement value, the first specification that specifies the value of the decimal part of the mantissa part corresponding to the pre-conversion measurement value in the first conversion table Processing and second specifying processing for specifying the value of the integer part and the exponent part of the mantissa corresponding to the range to which the measurement value before conversion belongs in the second conversion table, The converted measurement value is generated based on the value specified by the both specifying processes.
また、請求項2記載の測定値変換装置は、請求項1記載の測定値変換装置において、前記記憶部が、前記変換後測定値における小数点、指数記号および単位記号を前記両変換用テーブルとは別個に符号データとして記憶し、前記変換処理部が、前記変換処理時において前記両特定処理によって特定した値と前記符号データとに基づいて前記変換後測定値を生成する。
The measurement value conversion device according to
さらに、請求項3記載の測定値変換装置は、請求項1または2記載の測定値変換装置において、前記記憶部が、前記第2の変換用テーブルとして、前記変換後測定値における前記仮数部の整数部の各値を前記変換前測定値の範囲にそれぞれ関連付けた第3の変換用テーブルと、前記変換後測定値における前記指数部の各値を前記変換前測定値の範囲にそれぞれ関連付けた第4の変換用テーブルとを記憶し、前記変換処理部が、前記第2の特定処理として、前記第3の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値を特定する第3の特定処理と、前記第4の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記指数部の値を特定する第4の特定処理とをそれぞれ実行する。
Furthermore, the measurement value conversion device according to
また、請求項4記載の測定値変換装置は、請求項3記載の測定値変換装置において、前記記憶部が、前記第4の変換用テーブルとして、前記変換後測定値における前記指数部の上1桁の各値を前記変換前測定値の範囲にそれぞれ関連付けた第5の変換用テーブルと、前記変換後測定値における前記指数部の前記上1桁以外の桁の各値を当該指数部の前記上1桁の各値にそれぞれ関連付けた第6の変換用テーブルとを記憶し、前記変換処理部が、前記第4の特定処理時において、前記第5の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記指数部の前記上1桁の値を特定する第5の特定処理と、前記第6の変換用テーブルにおいて前記第5の特定処理によって特定した前記上1桁の値に対応する前記上1桁以外の桁の値を特定する第6の特定処理とをそれぞれ実行する。 According to a fourth aspect of the present invention, there is provided the measured value conversion apparatus according to the third aspect, wherein the storage unit is used as the fourth conversion table as the first upper part of the exponent part in the converted measurement value. A fifth conversion table in which each value of the digit is associated with the range of the measurement value before conversion, and each value of the digit other than the first digit of the exponent part in the measurement value after conversion is the value of the exponent part A sixth conversion table associated with each value of the first digit, and the conversion processing unit stores the measurement value before conversion in the fifth conversion table during the fourth specific process. A fifth specifying process for specifying the value of the first digit of the exponent corresponding to the range to which the value belongs, and the first digit value specified by the fifth specifying process in the sixth conversion table. The corresponding digit other than the first digit Respectively perform a sixth specific process that identifies the.
さらに、請求項5記載の測定値変換装置は、請求項1から4のいずれかに記載の測定値変換装置において、前記記憶部が、前記仮数部の整数部が正の整数の前記変換後測定値に変換する前記変換前測定値の第1の範囲と、前記仮数部の整数部が負の整数の前記変換後測定値に変換する前記変換前測定値の第2範囲と、前記仮数部の整数部が0の前記変換後測定値に変換する前記変換前測定値の第3の範囲とをそれぞれ特定可能な第7の変換用テーブルを記憶すると共に、前記第2の変換用テーブルを前記第7の変換用テーブルにおける前記変換前測定値の前記各範囲に対応付けて分割して記憶し、前記変換処理部が、前記第2の特定処理時において、前記第7の変換用テーブルに基づいて前記変換前測定値が前記各範囲のいずれに属するかを特定すると共に、特定した当該範囲に対応付けられた前記第2の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値および前記指数部の値をそれぞれ特定する。
Furthermore, the measurement value conversion apparatus according to
また、請求項6記載の測定値変換方法は、複数の変換前測定値を測定値変換用テーブルに基づいて指数表示形式の変換後測定値にそれぞれ変換する測定値変換方法であって、前記測定値変換用テーブルとして、前記変換後測定値における仮数部の小数部の各値を前記各変換前測定値にそれぞれ関連付けた第1の変換用テーブルと、前記変換後測定値における仮数部の整数部の各値および当該変換後測定値における指数部の各値を前記変換前測定値の範囲にそれぞれ関連付けた第2の変換用テーブルとを用いると共に、前記変換前測定値を前記変換後測定値に変換する際に、前記第1の変換用テーブルにおいて前記変換前測定値に対応する前記仮数部の小数部の値を特定する第1の特定処理と、前記第2の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値および前記指数部の値を特定する第2の特定処理とを実行し、当該両特定処理によって特定した値に基づいて前記変換後測定値を生成する。
The measurement value conversion method according to
請求項1記載の測定値変換装置、および請求項6記載の測定値変換方法では、変換後測定値における仮数部の小数部の各値を各変換前測定値にそれぞれ関連付けた第1の変換用テーブルと、変換後測定値における仮数部の整数部の各値および変換後測定値における指数部の各値を変換前測定値の範囲にそれぞれ関連付けた第2の変換用テーブルとを測定値変換用テーブルとして用い、変換処理に際して変換前測定値を変換後測定値に変換する際に、第1の変換用テーブルにおいて変換前測定値に対応する仮数部の小数部の値を特定する第1の特定処理と、第2の変換用テーブルにおいて変換前測定値が属する範囲に対応する仮数部の整数部の値および指数部の値を特定する第2の特定処理とを実行し、両特定処理によって特定した値に基づいて変換後測定値を生成する。
In the measured value conversion apparatus according to
したがって、請求項1記載の測定値変換装置、および請求項6記載の測定値変換方法によれば、同一の値となる変換前測定値が多い仮数部の整数部および指数部の値を特定するための測定値変換用テーブルについて、その同一の値となる変換前測定値の値の範囲を記録する構成および方法を採用することで、変換前測定値の各値毎に対応する仮数部の整数部および指数部の値を個別的に記録する構成の変換用テーブルと比較して、そのデータサイズを十分に小さくすることができる。これにより、この測定値変換装置、および測定値変換方法によれば、変換前測定値を変換後測定値に変換するために必要となる測定値変換用テーブルの合計データサイズを十分に小さくすることができるため、ある程度小さな容量の記憶部(メモリ)であっても、各測定値変換用テーブルを確実に記憶させることができる。このため、過剰に大容量の記憶部を搭載する必要がなくなるため、測定値変換装置の製造コストを十分に低減することができる。
Therefore, according to the measurement value conversion apparatus according to
また、請求項2記載の測定値変換装置によれば、変換処理時において両特定処理によって特定した値と符号データとに基づいて変換後測定値を生成することにより、変換前測定値を変換後測定値に変換するための測定値変換用テーブルにおける対応する各レコードに「.」や「E」などの符号をそれぞれ記録する構成(変換方法)と比較して、いずれの変換後測定値においても使用するこれらの符号を共用データとしての符号データとして測定値変換用テーブルとは別個に設けることで、変換前測定値を変換後測定値に変換するためのデータ(測定値変換用テーブルおよび符号データ)の合計データサイズを一層小さくすることができる。
According to the measurement value conversion apparatus of
さらに、請求項3記載の測定値変換装置によれば、変換後測定値における仮数部の整数部の各値を変換前測定値の範囲にそれぞれ関連付けた第3の変換用テーブルと、変換後測定値における指数部の各値を変換前測定値の範囲にそれぞれ関連付けた第4の変換用テーブルとを第2の変換用テーブルとして用い、第2の特定処理として、第3の変換用テーブルにおいて変換前測定値が属する範囲に対応する仮数部の整数部の値を特定する第3の特定処理と、第4の変換用テーブルにおいて変換前測定値が属する範囲に対応する指数部の値を特定する第4の特定処理とをそれぞれ実行することにより、第3の変換用テーブルおよび第4の変換用テーブルをまとめた1種類の第2の変換用テーブルを用いる構成(変換方法)と比較して、少ないレコード数の第3の変換用テーブルおよび第4の変換用テーブルを数回に亘って検索するだけで、変換前測定値に対応する変換後測定値の値を特定することができるため、変換前測定値を変換後測定値に変換するのに要する時間を十分に短縮することができる。
Furthermore, according to the measurement value conversion apparatus of
また、請求項4記載の測定値変換装置によれば、変換後測定値における指数部の上1桁の各値を変換前測定値の範囲にそれぞれ関連付けた第5の変換用テーブルと、変換後測定値における指数部の上1桁以外の桁の各値を指数部の上1桁の各値にそれぞれ関連付けた第6の変換用テーブルとを第4の変換用テーブルとして用い、第4の特定処理時に、第5の変換用テーブルにおいて変換前測定値が属する範囲に対応する指数部の上1桁の値を特定する第5の特定処理と、第6の変換用テーブルにおいて第5の特定処理によって特定した上1桁の値に対応する上1桁以外の桁の値を特定する第6の特定処理とをそれぞれ実行することにより、第5の変換用テーブルおよび第6の変換用テーブルをまとめた1種類の第4の変換用テーブルと第3の変換用テーブルとを用いる構成(変換方法)と比較して、さらに少ないレコード数の各測定値変換用テーブルを数回に亘って検索するだけで、変換前測定値に対応する変換後測定値の値を特定することができるため、変換前測定値を変換後測定値に変換するのに要する時間をさらに短縮することができる。 According to the measurement value conversion apparatus of the fourth aspect, the fifth conversion table in which each first digit value of the exponent part in the converted measurement value is associated with the range of the measurement value before conversion, and the converted value A sixth conversion table in which each value of the digit other than the first digit of the exponent part in the measured value is associated with each value of the first digit of the exponent part is used as a fourth conversion table, and a fourth specification is made. At the time of processing, the fifth specifying process for specifying the first digit value of the exponent part corresponding to the range to which the measurement value before conversion belongs in the fifth conversion table, and the fifth specifying process in the sixth conversion table The fifth conversion table and the sixth conversion table are collected by executing the sixth specifying process for specifying the value of the digit other than the first digit corresponding to the value of the first digit specified by One kind of the fourth conversion table and the third Compared with the configuration using the conversion table (conversion method), it is only necessary to search each measurement value conversion table having a smaller number of records several times, and to convert the measured values after conversion corresponding to the measurement values before conversion. Since the value can be specified, the time required to convert the measurement value before conversion into the measurement value after conversion can be further shortened.
さらに、請求項5記載の測定値変換装置によれば、仮数部の整数部が正の整数の変換後測定値に変換する変換前測定値の第1の範囲と、仮数部の整数部が負の整数の変換後測定値に変換する変換前測定値の第2範囲と、仮数部の整数部が0の変換後測定値に変換する変換前測定値の第3の範囲とをそれぞれ特定可能な第7の変換用テーブルを用いると共に、第7の変換用テーブルにおける変換前測定値の各範囲に対応付けて分割した第2の変換用テーブルを用い、第2の特定処理時において、第7の変換用テーブルに基づいて変換前測定値が各範囲のいずれに属するかを特定すると共に、特定した範囲に対応付けられた第2の変換用テーブルにおいて変換前測定値が属する範囲に対応する仮数部の整数部の値および指数部の値をそれぞれ特定することにより、第7の変換用テーブルを設けることなく、1種類の第2の変換用テーブルを用いる構成(変換方法)と比較して、第2の変換用テーブルのレコード数を少なくすることができるため、第2の変換用テーブルの検索に要する時間を短縮することができる分だけ、変換前測定値を変換後測定値に変換するのに要する時間をさらに短縮することができる。
Furthermore, according to the measurement value conversion apparatus according to
以下、本発明に係る測定値変換装置および測定値変換方法の実施の形態について、添付図面を参照して説明する。 Embodiments of a measurement value conversion apparatus and a measurement value conversion method according to the present invention will be described below with reference to the accompanying drawings.
図1に示す測定装置1は、測定値変換装置の一例であって、A/D変換部2a,2b、表示部3、制御部4および記憶部5,6を備えて構成されている。A/D変換部2a,2b(以下、区別しないときには「A/D変換部2」ともいう)は、入力信号S1,S2(以下、区別しないときには「入力信号S」ともいう)をA/D変換して(電気的パラメータを測定して)変換前データD1(変換前測定値の一例)として出力する。この場合、A/D変換部2は、一例として、16bitの分解能を有し、後述するように、「−32768」〜「+32767」の65536値のうちのいずれかの値を変換前データD1として出力する。なお、A/D変換部2から出力される変換前データD1は、実際には2進数であるが、本発明についての理解を容易とするために、以下、変換前データD1の各値を10進数で表記して説明する。
A measuring
表示部3は、一例として液晶パネルで構成され、図2に示すように、制御部4の制御に従って測定結果表示画面10を表示する。この場合、この測定装置1では、上記の変換前データD1を指数表示形式の変換後データD2(変換後測定値の一例)に変換して記憶部6に記憶させ、この変換後データD2に基づいて測定結果11を測定結果表示画面10に表示させる構成が採用されている。具体的には、図3に示すように、例えば「−00006」との変換前データD1がA/D変換部2a(CH1)から出力されたときに、この変換前データD1が「−5.80000E−03V」との変換後データD2に変換されて記録され、図2に示すように、この変換後データD2に基づく測定結果11がA/D変換部2a(CH1)の測定結果として測定結果表示画面10に表示される。
The
制御部4は、測定装置1を総括的に制御する。この制御部4は、変換処理部の一例であって、後述するように、図19に示す測定値変換処理20を実行し、図4に示す変換用テーブルT1,T2,T3P,T3M,T4PP0〜T4PP2,T4PM0〜T4PM2,T4MP0〜T4MP2,T4MM0〜T4MM2,T5PP00〜T5PP29,T5PM01〜T5PM29,T5MP00〜T5MP29,T5MM01〜T5MM29(測定値変換用テーブルの一例:以下、区別しないときには「変換用テーブルT」ともいう)を生成する(各変換用テーブルT内の値を更新する)と共に、A/D変換部2から出力された変換前データD1について各変換用テーブルTを用いて変換後データD2に変換して記憶部6に記憶させる。また、制御部4は、記憶させた変換後データD2に基づく測定結果11を表示部3(測定結果表示画面10)に表示させる。
The control unit 4 comprehensively controls the measuring
この場合、変換用テーブルT1は、第1の変換テーブルの一例であって、図5に示すように、最終出力値としての「−3.27678E+01」〜「+3.27672E+01」の65536値の各変換後データD2における仮数部PMの小数部PMD(図3参照)の各値を「−32768」〜「+32767」の65536値の各変換前データD1にそれぞれ関連付けて記録可能に構成されている。なお、同図では、本発明についての理解を容易とするために、変換前データD1(入力値)と、変換後データD2(最終出力値)と、変換用テーブルT1のデータ内容(出力値)とを横並びに図示しているが、実際の変換用テーブルT1は、同図において太枠で囲んだ65536レコードの5桁の数値情報で構成され、第1レコード(同図における最上部のレコード)が「−32768」との変換前データD1に関連付けられると共に、第65536レコード(同図における最下部のレコード)が「+32767」との変換前データD1に関連付けられている。なお、この変換用テーブルT1のデータサイズは、「2×64k=128kbyte」となっている。 In this case, the conversion table T1 is an example of a first conversion table. As shown in FIG. 5, each conversion of 65536 values from “−3.27678E + 01” to “+ 3.272672E + 01” as final output values is performed. Each value of the fractional part PMD (see FIG. 3) of the mantissa part PM in the post-data D2 is configured to be able to be recorded in association with each pre-conversion data D1 of 65536 values from “−32768” to “+32767”. In this figure, in order to facilitate understanding of the present invention, data D1 before conversion (input value), data D2 after conversion (final output value), and data contents (output value) of the conversion table T1. Are shown side by side, but the actual conversion table T1 is composed of 5-digit numerical information of 65536 records surrounded by a thick frame in the figure, and the first record (the uppermost record in the figure) Is associated with the pre-conversion data D1 of “−32768” and the 65536th record (the lowest record in the figure) is associated with the pre-conversion data D1 of “+32767”. The data size of the conversion table T1 is “2 × 64k = 128 kbytes”.
また、この測定装置1では、後述するようにして測定値変換処理20の開始直後に各変換用テーブルTが初期化され、この際に、変換用テーブルT1の各レコードには、一例として「65535」との値が初期値として記録される。さらに、測定値変換処理20の実行に伴い、いずれかの値の変換前データD1について、対応する変換後データD2が演算されたときに、その変換前データD1に対応するレコードに変換後データD2における仮数部PMの小数部PMDの5桁の値が記録される。この際に、変換用テーブルT1において、変換対象の変換前データD1に関連付けられたレコードに「65535」以外の所定の値が記録されているときには、制御部4は、その変換前データD1についての変換処理を既に実行したと判別して、各変換用テーブルTから記録されている値を読み出して変換後データD2を生成する。
Further, in this
また、変換用テーブルT1において、変換対象の変換前データD1に関連付けられたレコードに「65535」との初期値が記録されているときには、制御部4は、その変換前データD1についての変換処理を実行していないと判別して、変換前データD1に対する所定の演算処理を実行して、変換後データD2を生成し、生成した変換後データD2に基づいて各変換用テーブルTの対応するレコードに変換処理用の値を記録する。このように、この測定装置1では、変換用テーブルT1の値が「65535(初期化後に記録される初期値)」であるか、それ以外の値であるかに基づいて、変換前データD1についての演算処理によって変換後データD2を生成する処理と、各変換用テーブルTにおける変換前データD1に対応する値を用いて変換後データD2を生成する処理とのいずれかを実行する構成が採用されている。なお、変換用テーブルTに対する値の記録や、各変換用テーブルTを用いた変換後データD2の生成処理等については、後に詳細に説明する。
When the initial value “65535” is recorded in the record associated with the conversion target pre-conversion data D1 in the conversion table T1, the control unit 4 performs the conversion process on the pre-conversion data D1. It is determined that the data has not been executed, predetermined arithmetic processing is performed on the pre-conversion data D1, and post-conversion data D2 is generated. Based on the generated post-conversion data D2, the corresponding record in each conversion table T is stored. Record the value for the conversion process. Thus, in this
また、変換用テーブルT2は、第7の変換テーブルの一例であって、図6に示すように、仮数部PMの整数部PMI(図3参照)が正の整数(「+」)の変換後データD2に変換すべき変換前データD1の範囲(第1の範囲)を示す上限値および下限値と、仮数部PMの整数部PMIが負の整数(「−」)の変換後データD2に変換すべき変換前データD1の範囲(第2範囲)を示す上限値および下限値と、仮数部PMのPMIが「0」の変換後データD2に変換すべき変換前データD1の範囲(第3の範囲)を示す上限値および下限値と、各範囲の上限値および下限値として記録されている値が有効であるか無効であるかを示す3つのフラグとをそれぞれ記録可能に構成されている。なお、変換用テーブルT2における各値と変換前データD1および変換後データD2との関係については後に具体的に説明する。 The conversion table T2 is an example of a seventh conversion table. As illustrated in FIG. 6, the integer part PMI (see FIG. 3) of the mantissa part PM is converted to a positive integer (“+”). The upper limit value and the lower limit value indicating the range (first range) of the pre-conversion data D1 to be converted to the data D2 and the post-conversion data D2 in which the integer part PMI of the mantissa part PM is a negative integer ("-") The upper limit value and lower limit value indicating the range (second range) of the pre-conversion data D1 to be converted, and the range of the pre-conversion data D1 to be converted to the post-conversion data D2 whose PMI of the mantissa part PM is “0” (third Range), and three flags indicating whether the values recorded as the upper limit value and the lower limit value of each range are valid or invalid. The relationship between each value in the conversion table T2, the pre-conversion data D1, and the post-conversion data D2 will be specifically described later.
また、図6では、本発明についての理解を容易とするために、「+」、「0」および「−」のいずれに変換後データD2を変換するかとの内容(出力値)と、変換前データD1(入力値)の範囲における上限値および下限値の値と、フラグの値(有効、無効)と、各範囲に対応する変換用テーブルT3の種類(備考)とを横並びに図示しているが、実際の変換用テーブルT2は、同図において太枠で囲んだ値(3つの上限値、3つの下限値、および3つのフラグ)で構成され、第1レコード(同図における上側のレコード)が「+」の変換後データD2に関連付けられ、第2レコード(同図における中央部のレコード)が「0」の変換後データD2に関連付けられ、第3レコード(同図における下側のレコード)が「−」の変換後データD2に関連付けられている。なお、この変換用テーブルT2のデータサイズは、「3×(2+2+1)=15byte」となっている。 Also, in FIG. 6, in order to facilitate understanding of the present invention, the content (output value) of whether to convert the post-conversion data D2 into “+”, “0”, or “−”, and the pre-conversion The upper limit value and the lower limit value in the range of the data D1 (input value), the flag value (valid, invalid), and the type (remarks) of the conversion table T3 corresponding to each range are shown side by side. However, the actual conversion table T2 is composed of values (three upper limit values, three lower limit values, and three flags) surrounded by a thick frame in the figure, and the first record (the upper record in the figure). Is associated with the converted data D2 of “+”, the second record (the central record in the figure) is associated with the converted data D2 of “0”, and the third record (the lower record in the figure) Is converted data D2 with "-" It is associated. The data size of the conversion table T2 is “3 × (2 + 2 + 1) = 15 bytes”.
さらに、変換用テーブルT3P,T3Mは、第2の変換テーブルの一部としての第4の変換用テーブルの一部を構成する第5の変換用テーブルに相当する。変換用テーブルT3Pは、図7に示すように、仮数部PMの整数部PMIが「+」の変換後データD2における指数部PI(図3参照)の上1桁の各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。変換用テーブルT3Mは、図8に示すように、仮数部PMの整数部PMIが「−」の変換後データD2における指数部PIの上1桁の各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。 Furthermore, the conversion tables T3P and T3M correspond to a fifth conversion table that constitutes a part of the fourth conversion table as a part of the second conversion table. As shown in FIG. 7, the conversion table T3P includes each value of the first digit of the exponent part PI (see FIG. 3) in the post-conversion data D2 in which the integer part PMI of the mantissa part PM is “+”. Are recorded so as to be associated with the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted. As shown in FIG. 8, the conversion table T3M is a conversion to convert each value of the first digit of the exponent part PI in the converted data D2 in which the integer part PMI of the mantissa part PM is “−” into each value. Recording is performed in association with the range (upper limit value and lower limit value) of the previous data D1.
この場合、この測定装置1を用いた各種測定処理時に生成される(変換される)変換後データD2では、指数部PIの値が、「+00」〜「+29」および「−01」〜「−29」の範囲内の値となる。したがって、この測定装置1では、変換後データD2における指数部PIの上1桁の値が「+2」、「+1」、「+0」、「−0」、「−1」および「−2」の6値のうちのいずれかに規定されている。このため、変換用テーブルT3P,T3M(以下、区別しないときには「変換用テーブルT3」ともいう)は、指数部PIの上1桁の値が「+2」の変換後データD2に変換すべき変換前データD1の範囲を示す上限値および下限値と、「+1」に変換すべき範囲を示す上限値および下限値と、「+0」に変換すべき範囲を示す上限値および下限値と、「−0」に変換すべき範囲を示す上限値および下限値と、「−1」に変換すべき範囲を示す上限値および下限値と、「−2」に変換すべき範囲を示す上限値および下限値と、各範囲の上限値および下限値として記録されている値が有効であるか無効であるかを示す6つのフラグとをそれぞれ記録可能に構成されている。
In this case, in the post-conversion data D2 generated (converted) during various measurement processes using the
この場合、「−32768」〜「+32767」の変換前データD1を「−3.27678E+01」〜「+3.27672E+01」の変換後データD2に変換するこの例では、変換後データD2における指数部PIの上1桁の値が「+0」および「−0」のいずれかとなる。したがって、この例では、指数部PIの上1桁の値が「+0」の変換後データD2に変換すべき変換前データD1の範囲を示す上限値および下限値が記録されたレコードと、「−0」に変換すべき範囲を示す上限値および下限値が記録されたレコードとの2つのレコードだけが使用されることとなる。なお、各変換用テーブルT3における各値と変換前データD1および変換後データD2との関係については後に具体的に説明する。 In this case, the pre-conversion data D1 of “−32768” to “+32767” is converted into post-conversion data D2 of “−3.227678E + 01” to “+ 3.27262E + 01”. In this example, the exponent part PI of the post-conversion data D2 The first digit value is either “+0” or “−0”. Therefore, in this example, the record in which the upper limit value and the lower limit value indicating the range of the pre-conversion data D1 to be converted to the post-conversion data D2 in which the first digit value of the exponent part PI is “+0” is recorded; Only two records are used, that is, a record in which an upper limit value and a lower limit value indicating a range to be converted to “0” are recorded. The relationship between each value in each conversion table T3 and the pre-conversion data D1 and post-conversion data D2 will be specifically described later.
また、図7,8では、本発明についての理解を容易とするために、変換後データD2における指数部PIの上1桁の値(出力値)と、変換前データD1(入力値)の範囲における上限値および下限値の値と、フラグの値と、最終的に変換される変換後データD2における指数部PIの上1桁の値および各範囲に対応する変換用テーブルT4の種類(備考)とを横並びに図示しているが、実際の変換用テーブルT3は、両図において太枠で囲んだ値(6つの上限値、6つの下限値、および6つのフラグ)でそれぞれ構成されている。また、実際の変換用テーブルT3では、第1レコード(図7,8における最上部のレコード)が「指数部PIの上1桁=[+2]」の変換後データD2に関連付けられ、第6レコード(両における最下部のレコード)が「指数部PIの上1桁=[−2]」の変換後データD2に関連付けられている。なお、この変換用テーブルT3の合計データサイズは、「2×6×(2+2+1)=60byte」となっている。 7 and 8, in order to facilitate understanding of the present invention, the range of the first digit value (output value) of the exponent part PI and the pre-conversion data D1 (input value) in the post-conversion data D2. Upper limit value and lower limit value, flag value, first digit value of exponent part PI in converted data D2 to be finally converted, and type of conversion table T4 corresponding to each range (remarks) Are shown side by side, but the actual conversion table T3 is composed of values (six upper limit values, six lower limit values, and six flags) surrounded by a thick frame in both figures. In the actual conversion table T3, the first record (the uppermost record in FIGS. 7 and 8) is associated with the post-conversion data D2 of “the first digit of the exponent part PI = [+ 2]”, and the sixth record (The lowest record in both) is associated with the post-conversion data D2 of “the first digit of the exponent part PI = [− 2]”. The total data size of the conversion table T3 is “2 × 6 × (2 + 2 + 1) = 60 bytes”.
また、変換用テーブルT4PP0〜T4PP2,T4PM0〜T4PM2,T4MP0〜T4MP2,T4MM0〜T4MM2(以下、区別しないときには「変換用テーブルT4」ともいう)は、第2の変換テーブルの一部としての第4の変換用テーブルの他の一部を構成する第6の変換用テーブルに相当する。この場合、図9〜11に示すように、変換用テーブルT4PP0〜T4PP2の3つの変換用テーブルT4は、仮数部PMの整数部PMIが「+」で指数部PI(図3参照)が「+」の変換後データD2における指数部PIの上1桁以外の各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。また、図12〜14に示すように、変換用テーブルT4PM0〜T4PM2の3つの変換用テーブルT4は、仮数部PMの整数部PMIが「+」で指数部PIが「−」の変換後データD2における指数部PIの上1桁以外の各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。 Also, the conversion tables T4PP0 to T4PP2, T4PM0 to T4PM2, T4MP0 to T4MP2, T4MM0 to T4MM2 (hereinafter also referred to as “conversion table T4” when not distinguished) are the fourth conversion table as a part of the second conversion table. This corresponds to a sixth conversion table constituting another part of the conversion table. In this case, as shown in FIGS. 9 to 11, in the three conversion tables T4 of the conversion tables T4PP0 to T4PP2, the integer part PMI of the mantissa part PM is “+” and the exponent part PI (see FIG. 3) is “+”. In the post-conversion data D2, each value other than the first digit of the exponent part PI is recorded in association with the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted to each value. Yes. Also, as shown in FIGS. 12 to 14, the three conversion tables T4 of the conversion tables T4PM0 to T4PM2 include post-conversion data D2 in which the integer part PMI of the mantissa part PM is “+” and the exponent part PI is “−”. Each value other than the first digit of the exponent part PI is associated with the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted into each value, and can be recorded.
さらに、変換用テーブルT4MP0〜T4MP2の3つの変換用テーブルT4(図示せず)は、仮数部PMの整数部PMIが「−」で指数部PIが「+」の変換後データD2における指数部PIの上1桁以外の各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。また、変換用テーブルT4MM0〜T4MM2の3つの変換用テーブルT4(図示せず)は、仮数部PMの整数部PMIが「−」で指数部PIが「−」の変換後データD2における指数部PIの上1桁以外の各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。 Further, the three conversion tables T4 (not shown) of the conversion tables T4MP0 to T4MP2 include an exponent part PI in the converted data D2 in which the integer part PMI of the mantissa part PM is “−” and the exponent part PI is “+”. Each value other than the first digit is associated with the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted into each value, and can be recorded. Further, three conversion tables T4 (not shown) of the conversion tables T4MM0 to T4MM2 have an exponent part PI in the converted data D2 in which the integer part PMI of the mantissa part PM is “−” and the exponent part PI is “−”. Each value other than the first digit is associated with the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted into each value, and can be recorded.
この場合、変換後データD2における指数部PIの上1桁の値が「+0」の場合には、指数部PIの上1桁以外(この例では、下1桁)の値は、「0」〜「9」」の10値のうちのいずれかとなる。したがって、図9に示すように、変換用テーブルT4PP0は、指数部PIの上1桁以外の値が「0」〜「9」の各変換後データD2に変換すべき変換前データD1の範囲をそれぞれ示す上限値および下限値と、各範囲の上限値および下限値として記録されている値が有効であるか無効であるかを示す10個のフラグとをそれぞれ記録可能に構成されている。同様にして、図10〜14に示す変換用テーブルT4PP1,T4PP2,T4PM0〜T4PM2や、図示しない変換用テーブルT4MP0〜T4MP2,T4MM0〜T4MM2についても、指数部PIの上1桁以外の値が「0」〜「9」の各変換後データD2に変換すべき変換前データD1の範囲をそれぞれ示す上限値および下限値と、各範囲の上限値および下限値として記録されている値が有効であるか無効であるかを示す10個のフラグとをそれぞれ記録可能に構成されている。なお、各変換用テーブルT4における各値と変換前データD1および変換後データD2との関係については後に具体的に説明する。 In this case, when the first digit value of the exponent part PI in the converted data D2 is “+0”, the value of the exponent part PI other than the first digit (in this example, the last one digit) is “0”. Any one of 10 values of “9”. Therefore, as shown in FIG. 9, the conversion table T4PP0 indicates the range of the pre-conversion data D1 to be converted into the post-conversion data D2 whose values other than the first digit of the exponent part PI are “0” to “9”. Each of the upper limit value and the lower limit value shown and each of ten flags indicating whether the values recorded as the upper limit value and the lower limit value of each range are valid or invalid can be recorded. Similarly, in the conversion tables T4PP1, T4PP2, T4PM0 to T4PM2 shown in FIGS. 10 to 14 and the conversion tables T4MP0 to T4MP2, T4MM0 to T4MM2 (not shown), values other than the first digit of the exponent part PI are “0”. The upper limit value and the lower limit value indicating the range of the pre-conversion data D1 to be converted to the post-conversion data D2 from “9” to “9”, and the values recorded as the upper limit value and the lower limit value of each range are valid. Each of the ten flags indicating invalidity can be recorded. The relationship between each value in each conversion table T4 and the pre-conversion data D1 and post-conversion data D2 will be specifically described later.
また、図9〜14では、本発明についての理解を容易とするために、変換後データD2における指数部PIの値(出力値)と、変換前データD1(入力値)の範囲における上限値および下限値の値と、フラグの値と、最終的に変換される変換後データD2における指数部PIの上1桁の値および各範囲に対応する変換用テーブルT5の種類(備考)とを横並びに図示しているが、実際の変換用テーブルT4は、両図において太枠で囲んだ値(10個の上限値、10個の下限値、および10個のフラグ:変換用テーブルT4PM0だけは、9個の上限値、9個の下限値、および9個のフラグ)で構成されている。また、実際の変換用テーブルT4では、第1レコード(各図における最上部のレコード)が「指数部PIの上1桁以外の値=[9]」の変換後データD2に関連付けられ、第10レコード(各図における最下部のレコード)が「指数部PIの上1桁以外の値=[0]」の変換後データD2に関連付けられている。なお、この変換用テーブルT4の合計データサイズは、「((6+6)×10−1)×(2+2+1)=595byte」となっている。 9 to 14, in order to facilitate understanding of the present invention, the value of the exponent part PI (output value) in the post-conversion data D2 and the upper limit value in the range of the pre-conversion data D1 (input value) and The lower limit value, the flag value, the first digit value of the exponent part PI in the finally converted data D2, and the type (remarks) of the conversion table T5 corresponding to each range are arranged side by side. Although shown in the figure, the actual conversion table T4 is a value surrounded by a thick frame in both figures (10 upper limit values, 10 lower limit values, and 10 flags: only the conversion table T4PM0 is 9 Number of upper limit values, nine lower limit values, and nine flags). In the actual conversion table T4, the first record (the uppermost record in each figure) is associated with the post-conversion data D2 of “value other than the first digit of the exponent part PI = [9]”. The record (the lowest record in each figure) is associated with the post-conversion data D2 of “value other than the first digit of the exponent part PI = [0]”. The total data size of the conversion table T4 is “((6 + 6) × 10−1) × (2 + 2 + 1) = 595 bytes”.
さらに、変換用テーブルT5PP29〜T5PP00,T5PM01〜T5PM29,T5MP29〜T5MP00,T5MM01〜T5MM29(以下、区別しないときには「変換用テーブルT5」ともいう)は、第2の変換テーブルの他の一部を構成する第3の変換用テーブルに相当する。この場合、各変換用テーブルT5は、変換後データD2における仮数部PMの整数部PMIの各値を変換前データD1の範囲にそれぞれ関連付けて記録可能に構成されている。具体的には、一例として、図15に示す変換用テーブルT5PM01は、指数部PIが「−01」の変換後データD2における仮数部PMの整数部PMIの各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成されている。この場合、仮数部PMの整数部PMIは、「+1」〜「+9」および「−1」〜「−9」のいずれかであるため、この変換用テーブルT5PM01では、指数部PIが「−01」の変換後データD2における仮数部PMの整数部PMIが「+1」〜「+9」の変換後データD2に変換すべき変換前データD1の範囲を記録可能に構成されている。 Furthermore, the conversion tables T5PP29 to T5PP00, T5PM01 to T5PM29, T5MP29 to T5MP00, and T5MM01 to T5MM29 (hereinafter also referred to as “conversion table T5” when not distinguished) constitute another part of the second conversion table. This corresponds to the third conversion table. In this case, each conversion table T5 is configured to be able to record each value of the integer part PMI of the mantissa part PM in the converted data D2 in association with the range of the pre-conversion data D1. Specifically, as an example, the conversion table T5PM01 shown in FIG. 15 converts each value of the integer part PMI of the mantissa part PM in the post-conversion data D2 whose exponent part PI is “−01” into the respective values. It is configured to be recordable in association with the range (upper limit value and lower limit value) of power pre-conversion data D1. In this case, since the integer part PMI of the mantissa part PM is any one of “+1” to “+9” and “−1” to “−9”, the exponent part PI is “−01” in this conversion table T5PM01. The range of the pre-conversion data D1 to be converted to the post-conversion data D2 in which the integer part PMI of the mantissa part PM in the post-conversion data D2 is “+1” to “+9” is recordable.
また、この測定装置1で用いる変換用テーブルT5では、変換前データD1を変換後データD2に変換する際の制御部4による演算処理をスムーズに行うために、仮数部PMの小数部PMDを「00000」〜「49999」の範囲内の値で管理可能に変換用テーブルT1が構成されると共に、「50000」〜「99999」の値については、変換用テーブルT1において「00000」〜「49999」の範囲内の値として管理した小数部PMDをこの変換用テーブルT5によって「50000」〜「99999」の範囲内の値に変換するように変換用テーブルT5が構成されている。したがって、変換用テーブルT5PM01では、仮数部PMにおける小数部PMDが「00000」〜「49999」までの範囲内であって、仮数部PMの整数部PMIが「+1」〜「+9」の変換後データD2に変換すべき変換前データD1の範囲(上限値および下限値)を記録するレコード(例えば、「出力値」が「+9.0」、「+8.0」等のレコード)と、仮数部PMにおける小数部PMDが「50000」〜「99999」までの範囲内であって、仮数部PMの整数部PMIが「+1」〜「+9」の変換後データD2に変換すべき変換前データD1の範囲(上限値および下限値)を記録するレコード(例えば、「出力値」が「+9.5」、「+8.5」等のレコード)とを備えて構成されている。
Further, in the conversion table T5 used in the measuring
なお、指数部PIが「−02」の変換後データD2における仮数部PMの整数部PMIの各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成された変換用テーブルT5PM02(図16参照)、指数部PIが「−03」の変換後データD2における仮数部PMの整数部PMIの各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成された変換用テーブルT5PM03(図17参照)、および指数部PIが「−04」の変換後データD2における仮数部PMの整数部PMIの各値を、その各値に変換すべき変換前データD1の範囲(上限値および下限値)にそれぞれ関連付けて記録可能に構成された変換用テーブルT5PM04(図18参照)についても、上記の変換用テーブルT5PM01と同様に構成されている。また、実際には、上記の変換用テーブルT5PM01〜T5PM04以外に114個の変換用テーブルT5を使用するが、合計118個の変換用テーブルT5のうちの変換用テーブルT5PM01〜T5PM04の4つだけを図15〜18に図示すると共に、他の変換用テーブルT5についての図示を省略する。この場合、各変換用テーブルT5の合計データサイズは、「(30+29+29+30)×18×(2+2+1)=10620byte」となっている。 Each value of the integer part PMI of the mantissa part PM in the post-conversion data D2 with the exponent part PI of “−02” is respectively in the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted to each value. Each value of the integer part PMI of the mantissa part PM in the post-conversion data D2 having the conversion part T5PM02 (see FIG. 16) and the exponent part PI of “−03” configured to be associated and recordable is converted to each value. The conversion table T5PM03 (see FIG. 17) configured to be recordable in association with the range (upper limit value and lower limit value) of the pre-conversion data D1, and the mantissa in the post-conversion data D2 whose exponent part PI is “−04” The conversion table configured to be able to record each value of the integer part PMI of the part PM in association with the range (upper limit value and lower limit value) of the pre-conversion data D1 to be converted into each value. T5PM04 (see FIG. 18) for also configured similarly to the above conversion table T5PM01. Actually, 114 conversion tables T5 are used in addition to the conversion tables T5PM01 to T5PM04, but only four of the conversion tables T5PM01 to T5PM04 out of a total of 118 conversion tables T5 are used. While illustration in FIGS. 15-18, illustration about the other conversion table T5 is abbreviate | omitted. In this case, the total data size of each conversion table T5 is “(30 + 29 + 29 + 30) × 18 × (2 + 2 + 1) = 10620 bytes”.
この場合、図5に示すように、「−32768」〜「+32767」の変換前データD1(同図における「入力値」)と、その変換前データD1を変換した変換後データD2(同図における「最終出力値」)との関係を見ると、例えば指数部PIが「−01」との値に変換されるべき変換前データD1が「−01000」〜「−00101」や「+00100」〜「+00999」のように複数存在することがわかる。同様にして、例えば指数部PIが「−02」との値に変換されるべき変換前データD1が「−00100」〜「−00011」や「+00010」〜「+00099」のように複数存在することがわかる。したがって、この測定装置1では、指数部PIの上1桁を確定するための変換用テーブルT3において、指数部PIの上1桁が「−0」の変換後データD2に変換すべき複数の変換前データD1を個別的に記録するのではなく、指数部PIの上1桁が「−0」の変換後データD2に変換すべき複数の変換前データD1をその値の範囲を特定可能に記録することで変換用テーブルT3のデータサイズを小さくしている。
In this case, as shown in FIG. 5, the pre-conversion data D1 (“input value” in the figure) of “−32768” to “+32767” and the post-conversion data D2 obtained by converting the pre-conversion data D1 (in the figure) Looking at the relationship with the “final output value”), for example, the pre-conversion data D1 to be converted into a value with the exponent part PI being “−01” is “−01000” to “−00101” or “+00100” to “ It can be seen that there are a plurality of such as “+00999”. Similarly, for example, there are a plurality of pre-conversion data D1 to be converted into a value of “−02” in the exponent part PI, such as “−00100” to “−00011” and “+00010” to “+00099”. I understand. Therefore, in the measuring
具体的には、一例として、[「−01000」との値の変換前データD1を変換後データD2に変換する場合、その指数部PIの上1桁は「−0」である]とのレコード、[「−00999」との値の変換前データD1を変換後データD2に変換する場合、その指数部PIの上1桁は「−0」である]とのレコード、[「−00998」との値の変換前データD1を変換後データD2に変換する場合、その指数部PIの上1桁は「−0」である]とのレコード、[「−00997」との値の変換前データD1を変換後データD2に変換する場合、その指数部PIの上1桁は「−0」である]とのレコード、および[「−00996」との値の変換前データD1を変換後データD2に変換する場合、その指数部PIの上1桁は「−0」である]とのレコードを別個に記録して変換用テーブルを構成した場合、結果的には指数部PIの上1桁は「−0」であるとの事項を特定するために5つのレコードを要するため、その変換用テーブルのデータサイズが非常に大きくなる。 Specifically, as an example, a record of [when the pre-conversion data D1 of the value “−01000” is converted into post-conversion data D2, the first digit of the exponent PI is “−0”]. , [When the pre-conversion data D1 of the value “−00999” is converted into the post-conversion data D2, the first digit of the exponent part PI is “−0”], and the record “[−00998” When converting the pre-conversion data D1 of the value to the post-conversion data D2, the first digit of the exponent part PI is “−0”], and the pre-conversion data D1 of the value “−00997” Is converted to post-conversion data D2, the record with the first digit of the exponent PI is “−0”, and the pre-conversion data D1 with the value of “−00996” are converted into post-conversion data D2. When converting, the first digit of the exponent PI is “−0”] When the conversion table is configured by separately recording these records, as a result, it takes five records to specify that the first digit of the exponent part PI is “−0”. The data size of the conversion table becomes very large.
これに対して、上記の変換用テーブルT3のように、例えば、[指数部PIの上1桁が「−0」の変換後データD2に変換すべき変換前データD1は「−01000」〜「−00996」である]と記録して変換用テーブルTを構成することで、指数部PIの上1桁は「−0」であるとの事項を特定するために1つのレコードを用意するだけで済む。このため、変換用テーブルのデータサイズを十分に小さくすることが可能となっている。同様にして、この測定装置1では、指数部PIの上1桁以外の値(この例では、指数部PIの下1桁の値)を確定するための変換用テーブルT4において、指数部PIが「−01」の変換後データD2に変換すべき複数の変換前データD1を個別的に記録するのではなく、指数部PIが「−01」の変換後データD2に変換すべき複数の変換前データD1の値の範囲を特定可能に記録することで変換用テーブルT4のデータサイズが十分に小さくなっている。また、仮数部PMの整数部PMIを確定するための変換用テーブルT5についても、「+2」、「+1」等の値に変換すべき複数の変換前データD1を個別的に記録するのではなく、例えば整数部PMIが「+02」の変換後データD2に変換すべき複数の変換前データD1の値の範囲を特定可能に記録することで変換用テーブルT5のデータサイズが十分に小さくなっている。
On the other hand, as in the conversion table T3, for example, [the pre-conversion data D1 to be converted into the post-conversion data D2 in which the first digit of the exponent part PI is “−0” is “−1000” to “−1000”. -00996 "] and forming the conversion table T, it is only necessary to prepare one record in order to specify that the first digit of the exponent part PI is" -0 ". That's it. For this reason, it is possible to sufficiently reduce the data size of the conversion table. Similarly, in this
記憶部5は、上記の各変換用テーブルTの変換テーブルデータDtや、変換後データD2における「.」、「E」および「V」等の符号の符号データDsを記憶する。この場合、上記したように、変換用テーブルT1のデータサイズが128kbyteで、変換用テーブルT2のデータサイズが15byteで、各変換用テーブルT3の合計データサイズが60byteで、各変換用テーブルT4の合計データサイズが595byteで、各変換用テーブルT5の合計データサイズが10620byteであるため、各変換用テーブルTの合計データサイズは、約139kbyteとなっている。したがって、A/D変換部2a,2b用の2組の変換用テーブルTと符号データDsとを記憶するためには、278kbyte程度の小さな記憶容量を容易するだけで各変換前データD1を対応する変換後データD2にそれぞれ変換することができる。
The
この場合、前述したように、従来の変換方法で使用する変換用テーブルをバイナリ形式で記録した場合には、その変換用テーブルのデータサイズは、272kbyteとなる。これに対して、この測定装置1で使用する各変換用テーブルTの合計データサイズは、上記したように139kbyteであるため、従来の変換用テーブルTと比較して133kbyteも小さくなっている。記憶部6は、制御部4によって変換された(生成された)変換後データD2を記憶する。この場合、変換後データD2を記憶するための記憶媒体は、測定装置1(測定値変換装置)に内蔵の記憶部6に限定されず、外部装置としての各種記憶媒体(ハードディスクドライブや光記録ディスク等)に変換後データD2を記憶させる構成を採用することもできる。
In this case, as described above, when the conversion table used in the conventional conversion method is recorded in the binary format, the data size of the conversion table is 272 kbytes. On the other hand, since the total data size of each conversion table T used in this
次に、測定装置1による測定値の変換処理について、添付図面を参照して説明する。
Next, measurement value conversion processing by the
上記の各変換用テーブルTを用いて変換前データD1を変換後データD2に変換する際には、変換処理に先立って、変換内容に応じて各変換用テーブルTを予め生成して記憶部5に記憶させておく構成(変換方法)を採用することもできる。しかしながら、各種の測定条件(すなわち、変換前データD1を変換後データD2に変換するための条件)の設定が完了した後でなければ、各変換用テーブルTを生成することができず、しかも、各変換用テーブルTの生成にはある程度の時間を要することから、変換処理に先立って各変換用テーブルTを生成する構成(変換方法)を採用した場合には、測定条件の設定が完了した後に変換処理(測定処理)を開始するまでに長い時間を要する結果、直ちに変換処理を開始するのが困難となるおそれがある。
When the pre-conversion data D1 is converted into the post-conversion data D2 using each of the conversion tables T, each conversion table T is generated in advance according to the conversion contents and stored in the
一方、この測定装置1では、変換前データD1を変換後データD2に変換する必要が生じたとき(具体的には、測定条件の設定が完了してから、その測定条件下で生成される変換前データD1を変換後データD2に変換する処理を実行するとき)に、変換用テーブルTを使用することなく、演算処理によって変換前データD1を変換後データD2に変換する処理と、その演算結果に基づいて変換用テーブルT2を生成する処理とを順次実行し、演算処理によって変換後データD2に変換した変換前データD1(すなわち、対応する値が変換用テーブルTに記録された変換前データD1)については、演算処理を実行することなく、変換用テーブルTを用いて変換後データD2に変換する構成が採用されている。
On the other hand, in the measuring
具体的には、測定条件の設定が完了し、測定処理の開始を指示されたときに、制御部4は、A/D変換部2a,2bを制御して入力信号S1,S2についての測定処理(変換前データD1の生成処理)を開始させる。これに応じてA/D変換部2a,2bが所定のサンプリングレートで入力信号S1,S2についての測定処理を実行して、対応する変換前データD1を順次出力する。また、制御部4は、図19に示す測定値変換処理20を開始する。この測定値変換処理20では、まず、制御部4が各変換用テーブルTを初期化する(ステップ21)。この際に、制御部4は、変換用テーブルT1については、すべてのレコードの値を「65535」との値で上書きすると共に、変換用テーブルT2〜T5については、一例として、すべてのレコードの「上限値」および「下限値」を「+00000」とし、かつ、フラグを「無効」とする。次いで、制御部4は、A/D変換部2から出力された変換前データD1を変換後データD2に変換する処理を開始する。
Specifically, when setting of the measurement conditions is completed and the start of the measurement process is instructed, the control unit 4 controls the A /
具体的には、制御部4は、A/D変換部2から順次出力される変換前データD1のうち、変換後データD2に変換する処理が完了していない変換前データD1(未変換の変換前データD1)が存在する(この例では、変換前データD1の変換処理を実行していない)と判別し(ステップ22)、未変換の変換前データD1を変換後データD2に変換する処理を開始する。この処理では、制御部4は、まず、A/D変換部2から出力された変換前データD1について、既に変換後データD2に変換したことがあるか否か(すなわち、対応する値が各変換用テーブルTに記録されているか否か)を判別する(ステップ23)。具体的には、変換対象の変換前データD1の値に対応する変換用テーブルT1のレコードが「65535」との初期値であるときには、制御部4は、その変換前データD1に対する変換処理を実行したことがない(変換用テーブルTに該当データが存在しない)と判別し、変換対象の変換前データD1の値に対応する変換用テーブルT1のレコードが「65535」との初期値以外の値であるときには、制御部4は、その変換前データD1に対する変換処理を事項したことがある(変換用テーブルTに該当データが存在する)と判別する。
Specifically, the control unit 4 includes the pre-conversion data D1 (unconverted conversion) that has not been completely converted to the post-conversion data D2 among the pre-conversion data D1 sequentially output from the A /
この際に、一例として、A/D変換部2から「+00020」との値の変換前データD1が出力されたときには、制御部4は、変換用テーブルT1における「+00020」に対応するレコードを参照する。この際には、参照したレコードが初期値(「65535」)であるため、その値の変換前データD1に対する変換処理を実行したことがない(変換用テーブルTにおける「+00020」に対応するレコードに、有効な値が記録されていない:該当データが存在しない)と判別し、演算処理によって「+2.02000E−02V」との値を変換後データD2として算出する(文字列の演算(生成):ステップ24)。次いで、制御部4は、演算結果(この例では、「+2.02000E−02V」)に基づき、変換用テーブルT1における「+00020」に対応するレコードの値を、「65535」との初期値から、上記の演算結果における仮数部PMの小数部PMDの値(この例では、「02000」との値)に変更する(変換用テーブルT1の更新:ステップ25)。
At this time, as an example, when the pre-conversion data D1 having the value “+00020” is output from the A /
続いて、演算結果における仮数部PMの整数部PMIが正の整数(「+」)であったため、制御部4は、変換用テーブルT2における「+(正)」のレコードのフラグが「無効」であるため、その「上限値」および「下限値」を「+00000」との初期値から「+00020」との値に変更すると共に、そのレコードのフラグを「有効」に変更する(変換用テーブルT2の更新:ステップ26)。次いで、演算結果における指数部PIの上1桁が「−0」であったため、制御部4は、変換用テーブルT3Pにおける「−0」に対応するレコードのフラグが「無効」であるため、その「上限値」および「下限値」を「+00000」との初期値から「+00020」との値に変更すると共に、そのレコードのフラグを「有効」に変更する(変換用テーブルT3の更新:ステップ27)。続いて、演算結果における指数部PIの上1桁以外の値(下1桁の値)が「2」であったため、制御部4は、変換用テーブルT4PM0における「−02」に対応するレコードのフラグが「無効」であるため、その「上限値」および「下限値」を「+00000」との初期値から「+00020」との値に変更すると共に、そのレコードのフラグを「有効」に変更する(変換用テーブルT4の更新:ステップ28)。 Subsequently, since the integer part PMI of the mantissa part PM in the calculation result is a positive integer (“+”), the control unit 4 sets the flag of the record “+ (positive)” in the conversion table T2 to “invalid”. Therefore, the “upper limit value” and the “lower limit value” are changed from the initial value “+00000” to the value “+00020”, and the flag of the record is changed to “valid” (conversion table T2 Update: Step 26). Next, since the first digit of the exponent part PI in the calculation result is “−0”, the control unit 4 determines that the flag of the record corresponding to “−0” in the conversion table T3P is “invalid”. The “upper limit value” and the “lower limit value” are changed from the initial value “+00000” to the value “+00020”, and the flag of the record is changed to “valid” (update of the conversion table T3: Step 27) ). Subsequently, since the value other than the first digit (value of the last digit) of the exponent part PI in the calculation result is “2”, the control unit 4 stores the record corresponding to “−02” in the conversion table T4PM0. Since the flag is “invalid”, the “upper limit value” and “lower limit value” are changed from the initial value “+00000” to the value “+00020”, and the flag of the record is changed to “valid”. (Update of conversion table T4: Step 28).
次いで、演算結果における仮数部PMにおける整数部PMIが「+2」であったため、制御部4は、変換用テーブルT5PM02における「+2.0」に対応するレコードのフラグが「無効」であるため、その「上限値」および「下限値」を「+00000」との初期値から「+00020」との値に変更すると共に、そのレコードのフラグを「有効」に変更する(変換用テーブルT5の更新:ステップ29)。これにより、「+00020」との値の変換前データD1を「+2.02000E−02V」との値の変換後データD2に変換可能に各変換用テーブルTが更新される。続いて、制御部4は、演算結果(文字列データ:この例では、「+2.02000E−02V」)を変換後データD2として記憶部6に記憶させる(ステップ30)。これにより、「+00020」との値の変換前データD1の変換後データD2への変換処理が完了する。次いで、制御部4は、未変換の変換前データD1が存在するか否かを判別し(ステップ22)、存在するときには、その変換前データD1を変換後データD2に変換する処理を実行する。
Next, since the integer part PMI in the mantissa part PM in the calculation result is “+2”, the control unit 4 determines that the flag of the record corresponding to “+2.0” in the conversion table T5PM02 is “invalid”. The “upper limit value” and the “lower limit value” are changed from the initial value “+00000” to the value “+00020”, and the flag of the record is changed to “valid” (update of the conversion table T5: Step 29) ). As a result, each conversion table T is updated so that the pre-conversion data D1 having a value of “+00020” can be converted into post-conversion data D2 having a value of “+ 2.02000E-02V”. Subsequently, the control unit 4 stores the calculation result (character string data: “+ 2.02000E-02V” in this example) in the
この際に、演算処理によって変換後データD2に変換したことがある変換前データD1、すなわち、対応する値が各変換用テーブルTに存在する変換前データD1(この例では、「+00020」との値の変換前データD1)については、制御部4は、上記の演算処理による変換後データD2の生成処理に代えて、各変換用テーブルTを用いて変換前データD1を変換後データD2に変換する処理を実行する。具体的には、未変換の変換前データD1が存在し(ステップ22)、その変換前データD1が「+00020」との値であったときに、制御部4は、変換用テーブルT1において変換対象の変換前データD1に対応するレコードの値が「65535」との初期値以外の値(この例では、「02000」)であるため、その変換対象の変換前データD1に対応する値が各変換用テーブルTに存在すると判別する(ステップ23)。 At this time, the pre-conversion data D1 that has been converted to the post-conversion data D2 by the arithmetic processing, that is, the pre-conversion data D1 in which the corresponding value exists in each conversion table T (in this example, “+00020” For the pre-conversion data D1), the control unit 4 converts the pre-conversion data D1 into the post-conversion data D2 using each conversion table T instead of the generation processing of the post-conversion data D2 by the above arithmetic processing. Execute the process. Specifically, when there is unconverted pre-conversion data D1 (step 22) and the pre-conversion data D1 has a value of “+00020”, the control unit 4 converts the conversion target in the conversion table T1. Since the value of the record corresponding to the pre-conversion data D1 is a value other than the initial value “65535” (in this example, “02000”), the value corresponding to the pre-conversion data D1 to be converted is converted into each conversion value. It is determined that it exists in the work table T (step 23).
次いで、制御部4は、変換用テーブルT1に記録されている該当データ(この例では、「02000」との値)を仮数部PMの小数部PMDの値として確定すると共に、変換用テーブルT2において「+00020」がいずれのレコードの範囲に属するかを検索する(ステップ31)。この際には、「上限値」が「+00020」で、下限値が「+00020」で、フラグが「有効」となっている「+(正)」のレコードが該当するため、制御部4は、仮数部PMの整数部PMIが「+(正)」であると確定する。続いて、制御部4は、変換用テーブルT2における「+(正)」のレコードに関連付けられている変換用テーブルT3Pにおいて、「+00020」がいずれのレコードの範囲に属するかを検索する(ステップ32)。この際には、「上限値」が「+00020」で、下限値が「+00020」で、フラグが「有効」となっている「−0」のレコードが該当するため、制御部4は、指数部PIの上1桁が「−0」であると確定する。 Next, the control unit 4 determines the corresponding data (in this example, the value “02000”) recorded in the conversion table T1 as the value of the fractional part PMD of the mantissa part PM, and in the conversion table T2 It is searched which record range “+00020” belongs to (step 31). At this time, since the “upper limit value” is “+00020”, the lower limit value is “+00020”, and the flag is “valid”, the record of “+ (positive)” is applicable. It is determined that the integer part PMI of the mantissa part PM is “+ (positive)”. Subsequently, the control unit 4 searches in which range of records “+00020” belongs in the conversion table T3P associated with the record “+ (positive)” in the conversion table T2 (step 32). ). In this case, since the “upper limit value” is “+00020”, the lower limit value is “+00020”, and the flag is “−0”, the record is “−0”. It is determined that the first digit of PI is “−0”.
次いで、制御部4は、変換用テーブルT3Pにおける「−0」のレコードに関連付けられている変換用テーブルT4PM0において、「+00020」がいずれのレコードの範囲に属するかを検索する(ステップ33)。この際には、「上限値」が「+00020」で、下限値が「+00020」で、フラグが「有効」となっている「−02」のレコードが該当するため、制御部4は、指数部PIの上1桁以外の桁が「2」であり、結果として、指数部PIが「−02」であると確定する。続いて、制御部4は、変換用テーブルT4PM0における「−02」のレコードに関連付けられている変換用テーブルT5PM02において、「+00020」がいずれのレコードの範囲に属するかを検索する(ステップ34)。この際には、「上限値」が「+00020」で、下限値が「+00020」で、フラグが「有効」となっている「+2.0」のレコードが該当するため、制御部4は、仮数部PMの整数部PMIが「+2」であると確定する。 Next, the control unit 4 searches for which record range “+00020” belongs to in the conversion table T4PM0 associated with the record “−0” in the conversion table T3P (step 33). In this case, since the “upper limit value” is “+00020”, the lower limit value is “+00020”, and the flag is “valid”, the record “−02” is applicable. The digit other than the first digit of PI is “2”, and as a result, the exponent part PI is determined to be “−02”. Subsequently, the control unit 4 searches for which record range “+00020” belongs to in the conversion table T5PM02 associated with the record “−02” in the conversion table T4PM0 (step 34). At this time, since the “upper limit value” is “+00020”, the lower limit value is “+00020”, and the flag is “valid”, the record of “+2.0” is applicable. It is determined that the integer part PMI of the part PM is “+2”.
次いで、制御部4は、各変換用テーブルTに対する検索の結果特定した文字列と、符号データDsとに基づいて(特定結果と、符号データDsに記録されている符号とを合成して)、その結果(文字列:この例では、「+2.02000E−02V」)を変換後データD2として生成し(ステップ35)、生成した変換後データD2を記憶部6に記憶させる(ステップ30)。これにより、「+00020」との値の変換前データD1の変換用テーブルTを用いた変換後データD2への変換処理が完了する。 Next, the control unit 4 is based on the character string identified as a result of the search for each conversion table T and the code data Ds (by combining the identification result and the code recorded in the code data Ds), The result (character string: “+ 2.02000E-02V” in this example) is generated as converted data D2 (step 35), and the generated converted data D2 is stored in the storage unit 6 (step 30). Thereby, the conversion processing of the value “+00020” into the post-conversion data D2 using the conversion table T of the pre-conversion data D1 is completed.
一方、一例としてA/D変換部2から「+00999」との値の変換前データD1が出力されたときには、制御部4は、未変換の変換前データD1が存在し(ステップ22)、その変換前データD1についてのデータ(値)が変換用テーブルT1に存在しないと判別して(ステップ23)、前述した演算処理による変換後データD2への変換処理を実行する。具体的には、「+00999」との値についての変換後データD1に対する演算処理を実行して「+9.99200E−01V」との値を変換後データD2として算出する(文字列の演算(生成):ステップ24)。次いで、制御部4は、変換用テーブルT1における「+00999」に対応するレコードの値を演算結果(この例では、「+9.99200E−01V」)に応じて更新する(ステップ25)。この際に、この測定装置1では、前述したように、変換用テーブルT1を「00000」〜「49999」の範囲内の値で管理する構成が採用されている。したがって、仮数部PMの小数部PMDが「50000」〜「99999」の範囲内(「00000」〜「49999」の範囲外)である「99200」となるこの例では、制御部4は、「99920」から「50000」を減じた「49200」との値で変換用テーブルT1における「+00999」に対応するレコードを更新する(この例では、「65535」との初期値を「49200」との値で上書きする)。
On the other hand, as an example, when the pre-conversion data D1 having a value of “+00999” is output from the A /
続いて、演算結果における仮数部PMの整数部PMIが正の整数(「+」)であったため、制御部4は、変換用テーブルT2における「+(正)」のレコードのフラグが「有効」であるため、その「上限値」を上記の「+00020」に対応して更新した「+00020」との値から「+00999」との値に更新する(変換用テーブルT2の更新:ステップ26)。次いで、演算結果における指数部PIの上1桁が「−0」であったため、制御部4は、変換用テーブルT3Pにおける「−0」に対応するレコードのフラグが「有効」であるため、その「上限値」を「+00020」との値から「+00999」との値に更新する(変換用テーブルT3の更新:ステップ27)。続いて、演算結果における指数部PIの上1桁以外の値(下1桁の値)が「1」であったため、制御部4は、変換用テーブルT4PM0における「−01」に対応するレコードのフラグが「無効」であるため、その「上限値」および下限値を「+00000」との初期値から「+00999」との値に変更すると共に、そのレコードのフラグを「有効」に変更する(変換用テーブルT4の更新:ステップ28)。 Subsequently, since the integer part PMI of the mantissa part PM in the calculation result is a positive integer (“+”), the control unit 4 sets the flag of the record “+ (positive)” in the conversion table T2 to “valid”. Therefore, the “upper limit value” is updated from the value “+00020” updated corresponding to the above “+00020” to the value “+00999” (update of the conversion table T2: step 26). Next, since the first digit of the exponent part PI in the calculation result is “−0”, the control unit 4 determines that the flag of the record corresponding to “−0” in the conversion table T3P is “valid”. The “upper limit value” is updated from the value “+00020” to the value “+00999” (update of the conversion table T3: step 27). Subsequently, since the value other than the first digit (lower one digit value) of the exponent part PI in the calculation result is “1”, the control unit 4 stores the record corresponding to “−01” in the conversion table T4PM0. Since the flag is “invalid”, the “upper limit value” and the lower limit value are changed from the initial value “+00000” to the value “+00999”, and the flag of the record is changed to “valid” (conversion) Update table T4: Step 28).
次いで、演算結果における仮数部PMにおける整数部PMIが「+9」であり、かつ、仮数部PMの小数部PMDが「50000」〜「99999」の範囲内の値(この例では、「99200」)であったため、制御部4は、変換用テーブルT5PM01における「+9.5」に対応するレコードのフラグが「無効」であるため、その「上限値」および下限値を「+00000」との初期値から「+00999」との値に変更すると共に、そのレコードのフラグを「有効」に変更する(変換用テーブルT5の更新:ステップ29)。これにより、「+00999」との値の変換前データD1を「+9.99200E−01V」との値の変換後データD2に変換可能に各変換用テーブルTが更新される。続いて、制御部4は、演算結果(文字列データ:この例では、「+9.99200E−01V」)を変換後データD2として記憶部6に記憶させる(ステップ30)。これにより、これにより、「+00999」との値の変換前データD1の変換後データD2への変換処理が完了する。次いで、制御部4は、未変換の変換前データD1が存在するか否かを判別し、存在するときには、その変換前データD1を変換後データD2に変換する処理を実行する。
Next, the integer part PMI in the mantissa part PM in the calculation result is “+9”, and the decimal part PMD of the mantissa part PM is a value within the range of “50000” to “99999” (in this example, “99200”). Therefore, since the flag of the record corresponding to “+9.5” in the conversion table T5PM01 is “invalid”, the control unit 4 changes the “upper limit value” and lower limit value from the initial value “+00000”. The value is changed to “+00999” and the flag of the record is changed to “valid” (update of conversion table T5: step 29). Thus, each conversion table T is updated so that the pre-conversion data D1 having a value of “+00999” can be converted into post-conversion data D2 having a value of “+ 9.99200E-01V”. Subsequently, the control unit 4 stores the calculation result (character string data: “+ 9.9900E-01V” in this example) in the
この際に、「+00999」との値の変換前データD1がA/D変換部2から出力されたときには、制御部4は、上記の演算処理による変換後データD2の生成処理に代えて、各変換用テーブルTを用いて変換前データD1を変換後データD2に変換する処理を実行する。具体的には、未変換の変換前データD1が存在し(ステップ22)、その変換前データD1が「+00999」との値であったときに、制御部4は、変換用テーブルT1において変換対象の変換前データD1に対応するレコードの値が「65535」との初期値以外の値(この例では、「49200」)であるため、その変換対象の変換前データD1に対応する値が各変換用テーブルTに存在すると判別する(ステップ23)。
At this time, when the pre-conversion data D1 having a value of “+00999” is output from the A /
次いで、制御部4は、変換用テーブルT1に記録されている該当データ(この例では、「49200」との値)を仮数部PMの小数部PMDの値として仮に確定すると共に、変換用テーブルT2において「+00999」がいずれのレコードの範囲に属するかを検索する(ステップ31)。この際には、「上限値」が「+00999」で、下限値が「+00020」で、フラグが「有効」となっている「+(正)」のレコードが該当するため、制御部4は、仮数部PMの整数部PMIが「+(正)」であると確定する。続いて、制御部4は、変換用テーブルT2における「+(正)」のレコードに関連付けられている変換用テーブルT3Pにおいて、「+00999」がいずれのレコードの範囲に属するかを検索する(ステップ32)。この際には、「上限値」が「+00999」で、下限値が「+00020」で、フラグが「有効」となっている「−0」のレコードが該当するため、制御部4は、指数部PIの上1桁が「−0」であると確定する。 Next, the control unit 4 temporarily determines the corresponding data recorded in the conversion table T1 (in this example, the value “49200”) as the value of the fractional part PMD of the mantissa part PM, and also converts the conversion table T2. Then, it is searched which record range “+00999” belongs to (step 31). At this time, since the “upper limit value” is “+00999”, the lower limit value is “+00020”, and the flag is “valid”, the record of “+ (positive)” is applicable. It is determined that the integer part PMI of the mantissa part PM is “+ (positive)”. Subsequently, the control unit 4 searches for which record range “+00999” belongs to in the conversion table T3P associated with the record “+ (correct)” in the conversion table T2 (step 32). ). At this time, since the “upper limit value” is “+00999”, the lower limit value is “+00020”, and the flag is “valid”, the record of “−0” is applicable. It is determined that the first digit of PI is “−0”.
次いで、制御部4は、変換用テーブルT3Pにおける「−0」のレコードに関連付けられている変換用テーブルT4PM0において、「+00999」がいずれのレコードの範囲に属するかを検索する(ステップ33)。この際には、「上限値」が「+00999」で、下限値が「+00999」で、フラグが「有効」となっている「−01」のレコードが該当するため、制御部4は、指数部PIの上1桁以外の桁が「1」であり、結果として、指数部PIが「−01」であると確定する。続いて、制御部4は、変換用テーブルT4PM0における「−01」のレコードに関連付けられている変換用テーブルT5PM01において、「+00999」がいずれのレコードの範囲に属するかを検索する(ステップ34)。この際には、「上限値」が「+00999」で、下限値が「+00999」で、フラグが「有効」となっている「+9.5」のレコードが該当するため、制御部4は、仮数部PMの整数部PMIが「+9」であると確定する。 Next, the control unit 4 searches for which record range “+00999” belongs to in the conversion table T4PM0 associated with the record “−0” in the conversion table T3P (step 33). In this case, since the “upper limit value” is “+00999”, the lower limit value is “+00999”, and the flag is “valid”, the record of “−01” is applicable. It is determined that the digits other than the first digit of PI are “1”, and as a result, the exponent part PI is “−01”. Subsequently, the control unit 4 searches for which record range “+00999” belongs to in the conversion table T5PM01 associated with the record “−01” in the conversion table T4PM0 (step 34). In this case, since the “upper limit value” is “+00999”, the lower limit value is “+00999”, and the flag is “valid”, the record of “+9.5” is applicable, and therefore the control unit 4 has the mantissa. It is determined that the integer part PMI of the part PM is “+9”.
次いで、制御部4は、各変換用テーブルTに対する検索の結果特定した文字列と、符号データDsとに基づいて(特定結果と、符号データDsに記録されている符号とを合成して)変換後データD2を生成する(ステップ35)。この際に、仮数部PMの小数部PMDについては、変換用テーブルT1の検索時に仮に確定した「49200」との値と、変換用テーブルT5PM01の検索時に特定した「+9.5」のうちの「0.5」、すなわち、小数部PMDに換算した場合の「50000」との値とに基づき、「49200」+「50000」=「99200」との値を最終的な値として確定して用いる。これにより、「+9.99200E−01V」)との値が「+00999」との値の変換前データD1に対応する変換後データD2として生成され(ステップ35)、生成された変換後データD2が記憶部6に記憶される(ステップ30)。 Next, the control unit 4 performs conversion based on the character string specified as a result of the search for each conversion table T and the code data Ds (by combining the specific result and the code recorded in the code data Ds). Post data D2 is generated (step 35). At this time, for the decimal part PMD of the mantissa part PM, the value “49200” provisionally determined when the conversion table T1 is searched and “+9.5” of “+9.5” specified when the conversion table T5PM01 is searched. Based on the value of “0.5”, that is, “50000” when converted to the decimal part PMD, the value “49200” + “50000” = “99200” is determined and used as the final value. As a result, the value “+ 9.9999E-01V”) is generated as post-conversion data D2 corresponding to the pre-conversion data D1 having the value “+00999” (step 35), and the generated post-conversion data D2 is stored. Stored in the unit 6 (step 30).
この後、制御部4は、A/D変換部2から新たな変換前データD1が出力される都度(未変換の変換前データD1が存在するとき)、測定値変換処理20の開始後に変換後データD2を生成したことがある(変換用テーブルT1に該当データが存在する)変換前データD1については、各変換用テーブルTを用いた上記の変換処理を実行し、変換後データD2を生成したことがない(変換用テーブルT1に該当データが存在しない)変換前データD1については、演算処理によって変換後データD2を生成すると共に各変換用テーブルTの該当レコードのデータ(値)を更新する。この結果、変換後データD2を生成したことがある変換前データD1については、各変換用テーブルTを用いた上記の変換処理によって比較的短時間で変換前データD1が変換後データD2に変換され、変換後データD2を生成したことがない変換前データD1については、その後に同じ変換前データD1が出力されたときに変換処理を短時間で実行可能に変換用テーブルTが更新される。この後、A/D変換部2からの変換前データD1の出力が終了し、ステップ22において、すべての変換前データD1の変換が完了したとき(未変換の変換前データD1が存在しない状態となったとき)に、制御部4は、この測定値変換処理20を終了する。
Thereafter, each time new pre-conversion data D1 is output from the A / D conversion unit 2 (when there is unconverted pre-conversion data D1), the control unit 4 performs post-conversion after the measurement
上記したように、この測定装置1では、変換後データD2を生成したことがある変換前データD1については、変換対象の変換前データD1の値について、各変換用テーブルT1〜T5を順に検索することにより、仮数部PMの小数部PMD、指数部PI、および仮数部PMの整数部PMIの各値を順に特定して変換後データD2に変換する構成(変換方法)を採用している。この場合、例えば、上記の変換用テーブルT2〜T5をまとめた1種類の変換用テーブル(以下、「変換用テーブルTx」ともいう)と、変換用テーブルT1とによって変換前データD1を変換後データD2に変換する構成(変換方法)を採用した場合には、変換用テーブルTxのレコード数が非常に多くなることに起因して、指数部PI、および仮数部PMの整数部PMIの各値を特定する際の検索に要する時間が長くなるおそれがある。このため、各変換前データD1を変換後データD2に変換するのに要する時間が長くなり、最悪の場合には、A/D変換部2から出力される各変換前データD1をリアルタイムで変換後データD2に変換するのが困難となるおそれがある。
As described above, in the
これに対して、仮数部PMの整数部PMIの符号を特定するための変換用テーブルT2、指数部PIの上1桁の値を特定するための変換用テーブルT3、指数部PIの上1桁以外の値を特定するための変換用テーブルT4、および仮数部PMの整数部PMIを特定するための変換用テーブルT5を別個に設けて各値をそれぞれ特定する構成(変換方法)の測定装置1では、変換用テーブルT2〜T5のそれぞれのレコード数が非常に少なくなっている。したがって、上記の変換用テーブルT1,Txを用いて変換前データD1を変換後データD2に変換する構成(変換方法)と比較して、指数部PI、および仮数部PMの整数部PMIの各値を特定する際の検索に要する時間が非常に短くなっている。 On the other hand, a conversion table T2 for specifying the sign of the integer part PMI of the mantissa part PM, a conversion table T3 for specifying the first digit value of the exponent part PI, and the first digit of the exponent part PI A conversion table T4 for specifying a value other than 1 and a conversion table T5 for specifying the integer part PMI of the mantissa part PM are separately provided to specify each value (conversion method). Then, the number of records in each of the conversion tables T2 to T5 is very small. Therefore, each value of the exponent part PI and the integer part PMI of the mantissa part PM is compared with the structure (conversion method) for converting the pre-conversion data D1 to the post-conversion data D2 using the conversion tables T1 and Tx. The time required for the search for specifying is very short.
このように、この測定装置1、および測定装置1による測定値変換方法では、変換後データD2における仮数部PMの小数部PMDの各値を各変換前データD1にそれぞれ関連付けた変換用テーブルT1(第1の変換用テーブル)と、変換後データD2における仮数部PMの整数部PMIの各値および変換後データD2における指数部PIの各値を変換前データD1の範囲にそれぞれ関連付けた変換用テーブルT2〜T5(第2の変換用テーブル)とを測定値変換用テーブルとして用い、変換処理に際して変換前データD1を変換後データD2に変換する際に、変換用テーブルT1において変換前データD1に対応する仮数部PMの小数部PMDの値を特定する第1の特定処理(測定値変換処理20におけるステップ23)と、変換用テーブルT2〜T5において変換前データD1が属する範囲に対応する仮数部PMの整数部PMIの値および指数部PIの値を特定する第2の特定処理(測定値変換処理20におけるステップ31〜34)とを実行し、両特定処理によって特定した値に基づいて変換後データD2を生成する(測定値変換処理20におけるステップ35)。
As described above, in this
したがって、この測定装置1、および測定装置1による測定値変換方法によれば、同一の値となる変換前データD1が多い仮数部PMの整数部PMIおよび指数部PIの値を特定するための変換用テーブルT2〜T5について、その同一の値となる変換前データD1の値の範囲(「上限値」および「下限値」)を記録する構成を採用することで、変換前データD1の各値毎に対応する仮数部PMの整数部PMIおよび指数部PIの値を個別的に記録する構成の変換用テーブルと比較して、そのデータサイズを十分に小さくすることができる。これにより、この測定装置1、および測定装置1による測定値変換方法によれば、変換前データD1を変換後データD2に変換するために必要となる変換用テーブルT1〜T5の合計データサイズを十分に小さくすることができるため、ある程度小さな容量の記憶部5であっても、各変換用テーブルT1〜T5を確実に記憶させることができる。このため、過剰に大容量の記憶部を搭載する必要がなくなるため、測定装置1の製造コストを十分に低減することができる。
Therefore, according to the
また、この測定装置1、および測定装置1による測定値変換方法によれば、変換処理時において上記の両特定処理によって特定した値と符号データDsとに基づいて変換後データD2を生成することにより、変換前データD1を変換後データD2に変換するための変換用テーブルTにおける対応する各レコードに「.」、「E」および「V」等の符号をそれぞれ記録する構成(変換方法)と比較して、いずれの変換後データD2においても使用するこれらの符号を共用データとしての符号データDsとして変換用テーブルTとは別個に設けることで、変換前データD1を変換後データD2に変換するためのデータ(変換用テーブルTおよび符号データDs)の合計データサイズを一層小さくすることができる。
Further, according to the
さらに、この測定装置1、および測定装置1による測定値変換方法によれば、変換後データD2における仮数部PMの整数部PMIの各値を変換前データD1の範囲にそれぞれ関連付けた変換用テーブルT5(第3の変換用テーブル)と、変換後データD2における指数部PIの各値を変換前データD1の範囲にそれぞれ関連付けた変換用テーブルT3,T4(第4の変換用テーブル)とを上記の第2の変換用テーブルとして用い、上記の第2の特定処理として、変換用テーブルT5において変換前データD1が属する範囲に対応する仮数部PMの整数部PMIの値を特定する第3の特定処理と、変換用テーブルT3,T4において変換前データD1が属する範囲に対応する指数部PIの値を特定する第4の特定処理とをそれぞれ実行することにより、変換用テーブルT3〜T5をまとめた1種類の変換用テーブルを用いる構成(変換方法)と比較して、少ないレコード数の各変換用テーブルTを数回に亘って検索するだけで、変換前データD1に対応する変換後データD2の値を特定することができるため、変換前データD1を変換後データD2に変換するのに要する時間を十分に短縮することができる。
Furthermore, according to the measurement value conversion method by the
また、この測定装置1、および測定装置1による測定値変換方法によれば、変換後データD2における指数部PIの上1桁の各値を変換前データD1の範囲にそれぞれ関連付けた変換用テーブルT3(第5の変換用テーブル)と、変換後データD2における指数部PIの上1桁以外の桁の各値を指数部PIの上1桁の各値にそれぞれ関連付けた変換用テーブルT4(第6の変換用テーブル)とを上記の第4の変換用テーブルとして用い、上記の第4の特定処理時に、変換用テーブルT3において変換前データD1が属する範囲に対応する指数部PIの上1桁の値を特定する第5の特定処理と、変換用テーブルT4において上記の第5の特定処理によって特定した上1桁の値に対応する上1桁以外の桁の値を特定する第6の特定処理とをそれぞれ実行することにより、変換用テーブルT3,T4をまとめた1種類の変換用テーブルと変換用テーブルT5とを用いる構成(変換方法)と比較して、さらに少ないレコード数の各変換用テーブルTを数回に亘って検索するだけで、変換前データD1に対応する変換後データD2の値を特定することができるため、変換前データD1を変換後データD2に変換するのに要する時間をさらに短縮することができる。
Further, according to the
さらに、この測定装置1、および測定装置1による測定値変換方法によれば、仮数部PMの整数部PMIが正の整数の変換後データD2に変換する変換前データD1の第1の範囲と、仮数部PMの整数部PMIが負の整数の変換後データD2に変換する変換前データD1の第2範囲と、仮数部PMの整数部PMIが0の変換後データD2に変換する変換前データD1の第3の範囲とをそれぞれ特定可能な変換用テーブルT2(第7の変換用テーブル)を用いると共に、変換用テーブルT2における変換前データD1の各範囲に対応付けて分割した変換用テーブルT3〜T5を用い、上記の第2の特定処理時において、変換用テーブルT2に基づいて変換前データD1が各範囲のいずれに属するかを特定すると共に、特定した範囲に対応付けられた変換用テーブルT3〜T5において変換前データD1が属する範囲に対応する仮数部PMの整数部PMIの値および指数部PIの値をそれぞれ特定することにより、変換用テーブルT2を設けることなく、変換用テーブルT3P,T3Mをまとめた1種類の変換用テーブルTを用いる構成(変換方法)と比較して、変換用テーブルT3のレコード数を少なくすることができるため、変換用テーブルT3の検索に要する時間を短縮することができる分だけ、変換前データD1を変換後データD2に変換するのに要する時間をさらに短縮することができる。
Further, according to the measurement value conversion method by the
なお、本発明は、上記の構成に限定されない。例えば、上記の測定装置1、および測定装置1による測定値の変換方法では、変換用テーブルT3〜T5の複数の変換用テーブルTを第2の変換用テーブルとして用いることにより、各変換用テーブルTを用いて変換前データD1を変換後データD2に変換する際の検索時間を短縮しているが、第2の変換用テーブルを構成する変換用テーブルTの数はこれに限定されない。
In addition, this invention is not limited to said structure. For example, in the
具体的には、一例として、指数部PIの上1桁の各値を変換前データD1の範囲に関連付けた上記の各変換用テーブルT3と、指数部PIの上1桁以外の桁の各値を変換前データD1の範囲に関連付けた上記の各変換用テーブルT4とをまとめた1種類の変換用テーブルT(第4の変換用テーブル:図示せず)を設けて、変換用テーブルT3,T4に代えてこの第4の変換用テーブルを用いて変換前データD1を変換後データD2に変換する構成を採用することができる。このような構成を採用することにより、上記の変換用テーブルT1〜T5を用いた構成と比較して、変換用テーブルTを用いた変換後データD2への変換処理時の検索に要する時間が僅かに長くなるものの、すべての変換用テーブルTの合計データサイズをさらに小さくすることができる。 Specifically, as an example, each conversion table T3 in which each first digit value of the exponent part PI is associated with the range of the pre-conversion data D1, and each digit value other than the first digit of the exponent part PI. Is provided with one type of conversion table T (fourth conversion table: not shown) in which the above conversion tables T4 associated with the range of the pre-conversion data D1 are associated with each other, and conversion tables T3, T4 Instead, it is possible to employ a configuration in which the pre-conversion data D1 is converted into post-conversion data D2 using the fourth conversion table. By adopting such a configuration, compared with the configuration using the conversion tables T1 to T5, the time required for the search during the conversion process to the converted data D2 using the conversion table T is little. However, the total data size of all the conversion tables T can be further reduced.
また、変換用テーブルT3〜T5をまとめた1種類の変換用テーブルT(第2の変換用テーブル:図示せず)を設けて、変換用テーブルT3〜T5に代えてこの第2の変換用テーブルを用いて変換前データD1を変換後データD2に変換する構成を採用することもできる。このような構成を採用することにより、上記の変換用テーブルT1〜T5を用いた構成と比較して、変換用テーブルTを用いた変換後データD2への変換処理時の検索に要する時間が長くなるものの、すべての変換用テーブルTの合計データサイズを一層小さくすることができる。 Also, one type of conversion table T (second conversion table: not shown) in which the conversion tables T3 to T5 are collected is provided, and this second conversion table is used instead of the conversion tables T3 to T5. It is also possible to adopt a configuration in which the pre-conversion data D1 is converted into post-conversion data D2 by using. By adopting such a configuration, the time required for the search during the conversion process to the converted data D2 using the conversion table T is longer than that in the configuration using the conversion tables T1 to T5. However, the total data size of all the conversion tables T can be further reduced.
さらに、上記の測定装置1では、入力信号S1,S2についての測定処理の開始後に(変換前データD1を変換後データD2に変換する必要が生じたときに)、変換後データD2に変換したことがない値の変換前データD1については、演算処理によって変換後データD2を求め、その演算結果に基づいて各変換用テーブルTの対応するレコードを更新する構成を採用しているが、入力信号S1,S2についての測定処理の開始に先立ってすべての変換用テーブルTを予め生成し、変換前データD1を変換後データD2に変換する際には、演算処理を実行することなく、変換用テーブルTを用いて対応する変換後データD2を生成する構成を採用することができる。
Further, in the
このような構成、およびその変換用テーブルTを用いた測定値変換方法においても、同一の値となる変換前データD1が多い仮数部PMの整数部PMIおよび指数部PIの値を特定するための変換用テーブルT3〜T5について、その同一の値となる変換前データD1の値の範囲(「上限値」および「下限値」)を記録する構成を採用することで、変換前データD1の各値毎に対応する仮数部PMの整数部PMIおよび指数部PIの値を個別的に記録する構成の変換用テーブルと比較して、そのデータサイズを十分に小さくすることができる。これにより、変換前データD1を変換後データD2に変換するために必要となる変換用テーブルT1〜T5の合計データサイズを十分に小さくすることができるため、ある程度小さな容量の記憶部5であっても、各変換用テーブルT1〜T5を確実に記憶させることができる。このため、過剰に大容量の記憶部を搭載する必要がなくなるため、測定装置の製造コストを十分に低減することができる。 Even in such a configuration and the measurement value conversion method using the conversion table T, the values for the integer part PMI and the exponent part PI of the mantissa part PM having many pre-conversion data D1 having the same value are specified. For each of the conversion tables T3 to T5, each value of the pre-conversion data D1 is recorded by adopting a configuration in which the range of values (“upper limit value” and “lower limit value”) of the pre-conversion data D1 that is the same value is recorded The data size can be made sufficiently small as compared with the conversion table configured to individually record the integer part PMI and the exponent part PI of the mantissa part PM corresponding to each. As a result, the total data size of the conversion tables T1 to T5 necessary for converting the pre-conversion data D1 into the post-conversion data D2 can be made sufficiently small. In addition, the conversion tables T1 to T5 can be reliably stored. For this reason, since it is not necessary to mount an excessively large capacity storage unit, the manufacturing cost of the measuring apparatus can be sufficiently reduced.
1 測定装置
2a,2b A/D変換部
3 表示部
4 制御部
5,6 記憶部
20 測定値変換処理
D1 変換前データ
D2 変換後データ
Ds 符号データ
Dt 変換用テーブルデータ
PI 指数部
PM 仮数部
PMD 小数部
PMI 整数部
PS1〜PS3 符号部
S1,S2 入力信号
T1,T2,T3P,T3M,T4PP0〜T4PP2,T4PM0〜T4PM2,T4MP0〜T4MP2,T4MM0〜T4MM2,T5PP00〜T5PP29,T5PM01〜T5PM29,T5MP00〜T5MP29,T5MM01〜T5MM29 変換用テーブル
DESCRIPTION OF
Claims (6)
前記記憶部は、前記測定値変換用テーブルとして、前記変換後測定値における仮数部の小数部の各値を前記各変換前測定値にそれぞれ関連付けた第1の変換用テーブルと、前記変換後測定値における仮数部の整数部の各値および当該変換後測定値における指数部の各値を前記変換前測定値の範囲にそれぞれ関連付けた第2の変換用テーブルとを記憶し、
前記変換処理部は、前記変換処理に際して前記変換前測定値を前記変換後測定値に変換する際に、前記第1の変換用テーブルにおいて前記変換前測定値に対応する前記仮数部の小数部の値を特定する第1の特定処理と、前記第2の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値および前記指数部の値を特定する第2の特定処理とを実行し、当該両特定処理によって特定した値に基づいて前記変換後測定値を生成する測定値変換装置。 A storage unit that stores a measurement value conversion table for converting a plurality of measurement values before conversion into converted measurement values in an exponential display format, and each of the measurement values before conversion based on the measurement value conversion table. A measurement value conversion device comprising a conversion processing unit for executing a measurement value conversion process for converting into converted measurement values,
The storage unit includes, as the measurement value conversion table, a first conversion table in which each value of the mantissa part of the converted measurement value is associated with the measurement value before conversion, and the measurement after conversion. A second conversion table that associates each value of the integer part of the mantissa part in the value and each value of the exponent part in the converted measurement value with the range of the measurement value before conversion, and
When the conversion processing unit converts the pre-conversion measurement value into the post-conversion measurement value during the conversion processing, the conversion processing unit includes a decimal part of the mantissa part corresponding to the measurement value before conversion in the first conversion table. A first specifying process for specifying a value, and a second specifying the integer part value and the exponent part value of the mantissa part corresponding to the range to which the measurement value before conversion belongs in the second conversion table. The measurement value conversion apparatus which performs the specific process and generates the post-conversion measurement value based on the value specified by the two specific processes.
前記変換処理部は、前記変換処理時において前記両特定処理によって特定した値と前記符号データとに基づいて前記変換後測定値を生成する請求項1記載の測定値変換装置。 The storage unit stores the decimal point, the exponent symbol, and the unit symbol in the measurement value after conversion as code data separately from the two conversion tables,
The measurement value conversion apparatus according to claim 1, wherein the conversion processing unit generates the post-conversion measurement value based on the value specified by the both specifying processes and the code data during the conversion process.
前記変換処理部は、前記第2の特定処理として、前記第3の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値を特定する第3の特定処理と、前記第4の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記指数部の値を特定する第4の特定処理とをそれぞれ実行する請求項1または2記載の測定値変換装置。 The storage unit, as the second conversion table, a third conversion table in which each value of the integer part of the mantissa part in the converted measurement value is associated with the range of the measurement value before conversion, Storing a fourth conversion table in which each value of the exponent part in the measured value after conversion is associated with the range of the measured value before conversion;
In the third conversion table, the conversion processing unit specifies a value of an integer part of the mantissa part corresponding to the range to which the measurement value before conversion belongs in the third conversion table. And a fourth specifying process for specifying a value of the exponent corresponding to the range to which the measurement value before conversion belongs in the fourth conversion table, respectively. apparatus.
前記変換処理部は、前記第4の特定処理時において、前記第5の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記指数部の前記上1桁の値を特定する第5の特定処理と、前記第6の変換用テーブルにおいて前記第5の特定処理によって特定した前記上1桁の値に対応する前記上1桁以外の桁の値を特定する第6の特定処理とをそれぞれ実行する請求項3記載の測定値変換装置。 The storage unit, as the fourth conversion table, a fifth conversion table in which each first digit value of the exponent part in the converted measurement value is associated with the range of the measurement value before conversion; A sixth conversion table that associates each value of the digit other than the first digit of the exponent part in the measurement value after conversion with each value of the first digit of the exponent part;
In the fourth specifying process, the conversion processing unit specifies the first digit value of the exponent part corresponding to the range to which the pre-conversion measurement value belongs in the fifth conversion table. And a sixth specifying process for specifying a digit value other than the first digit corresponding to the first digit value specified by the fifth specifying process in the sixth conversion table. The measured value conversion apparatus according to claim 3, which is executed respectively.
前記変換処理部は、前記第2の特定処理時において、前記第7の変換用テーブルに基づいて前記変換前測定値が前記各範囲のいずれに属するかを特定すると共に、特定した当該範囲に対応付けられた前記第2の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値および前記指数部の値をそれぞれ特定する請求項1から4のいずれかに記載の測定値変換装置。 The storage unit includes a first range of the pre-conversion measurement value in which the integer part of the mantissa part is converted to the post-conversion measurement value of a positive integer, and the post-conversion of the integer part of the mantissa part being a negative integer. A second range of the measurement value before conversion to be converted into a measurement value and a third range of the measurement value before conversion to be converted into the measurement value after conversion in which the integer part of the mantissa is 0 can be specified. 7 conversion tables, the second conversion table is divided and stored in association with the respective ranges of the pre-conversion measurement values in the seventh conversion table,
In the second specifying process, the conversion processing unit specifies to which of the ranges the measurement value before conversion belongs based on the seventh conversion table and corresponds to the specified range. 5. The integer part value and the exponent part value of the mantissa part corresponding to the range to which the pre-conversion measurement value belongs are respectively specified in the attached second conversion table. 5. The measured value conversion device described.
前記測定値変換用テーブルとして、前記変換後測定値における仮数部の小数部の各値を前記各変換前測定値にそれぞれ関連付けた第1の変換用テーブルと、前記変換後測定値における仮数部の整数部の各値および当該変換後測定値における指数部の各値を前記変換前測定値の範囲にそれぞれ関連付けた第2の変換用テーブルとを用いると共に、前記変換前測定値を前記変換後測定値に変換する際に、前記第1の変換用テーブルにおいて前記変換前測定値に対応する前記仮数部の小数部の値を特定する第1の特定処理と、前記第2の変換用テーブルにおいて前記変換前測定値が属する前記範囲に対応する前記仮数部の整数部の値および前記指数部の値を特定する第2の特定処理とを実行し、当該両特定処理によって特定した値に基づいて前記変換後測定値を生成する測定値変換方法。 A measurement value conversion method for converting a plurality of pre-conversion measurement values into post-conversion measurement values in an exponential display format based on a measurement value conversion table,
As the measurement value conversion table, a first conversion table in which each value of the decimal part of the mantissa part in the converted measurement value is associated with the measurement value before conversion, and a mantissa part in the measurement value after conversion A second conversion table in which each value of the integer part and each value of the exponent part in the converted measurement value are associated with the range of the measurement value before conversion is used, and the measurement value before conversion is measured after the conversion. A first specifying process for specifying a value of a fractional part of the mantissa part corresponding to the measurement value before conversion in the first conversion table, and in the second conversion table, A second specifying process for specifying the value of the integer part of the mantissa part and the value of the exponent part corresponding to the range to which the measurement value before conversion belongs, and based on the values specified by the two specifying processes, Strange Measured value conversion method of generating a rear measurements.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009099528A JP5372581B2 (en) | 2009-04-16 | 2009-04-16 | Measured value conversion device and measured value conversion method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2009099528A JP5372581B2 (en) | 2009-04-16 | 2009-04-16 | Measured value conversion device and measured value conversion method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2010249663A JP2010249663A (en) | 2010-11-04 |
JP5372581B2 true JP5372581B2 (en) | 2013-12-18 |
Family
ID=43312166
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2009099528A Expired - Fee Related JP5372581B2 (en) | 2009-04-16 | 2009-04-16 | Measured value conversion device and measured value conversion method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5372581B2 (en) |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0234037A (en) * | 1988-07-25 | 1990-02-05 | Hitachi Ltd | Numerical data conversion system |
JPH02110320A (en) * | 1988-10-19 | 1990-04-23 | Mitsubishi Electric Corp | Data accumulation of data logger |
JP2005157651A (en) * | 2003-11-25 | 2005-06-16 | Chino Corp | Measuring device |
JP2006065633A (en) * | 2004-08-27 | 2006-03-09 | Sony Computer Entertainment Inc | Arithmetic method and device |
-
2009
- 2009-04-16 JP JP2009099528A patent/JP5372581B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2010249663A (en) | 2010-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2021182410A (en) | Testing method for automated driving system, testing apparatus for automated driving system, electronic device, storage medium, and program | |
JP2009135854A (en) | Memory access control device, control method, and program | |
JP5372581B2 (en) | Measured value conversion device and measured value conversion method | |
JP2008011025A (en) | Remainder calculation apparatus for cyclic redundancy check | |
WO2017096516A1 (en) | Calibration of interpolating string digital-to-analog converters | |
TW538372B (en) | Zero digital sum value control device and method | |
WO2021013047A1 (en) | File management method and apparatus | |
TW201633168A (en) | A/D conversion device, D/A conversion device and PLC | |
JP2009081726A5 (en) | ||
US20120319875A1 (en) | Method for storing node information of huffman tree and corresponding decoding method | |
CN116028062A (en) | Target code generation method, NPU instruction display method and device | |
US7518535B1 (en) | Generating a Gray code sequence for any even length using an intermediate binary sequence | |
JP5274414B2 (en) | How to create pulse waveform data | |
JP2005090970A (en) | Waveform measuring device | |
JPS642970B2 (en) | ||
JP5362257B2 (en) | Waveform recorder | |
JP2007072985A (en) | Data conversion device and data conversion program | |
JP2006090907A (en) | Data conversion device and waveform measuring device | |
CN111787403A (en) | EDID data updating method and device, smart television and readable storage medium | |
WO2011099104A1 (en) | File name management method and file name management device | |
JP2009281872A (en) | Measuring system and recorder | |
JP5849823B2 (en) | AV signal processing reduction apparatus, AV signal processing reduction method, and AV signal processing reduction program | |
JP5399286B2 (en) | Measuring equipment | |
JP5849822B2 (en) | AV signal processing reduction apparatus, AV signal processing reduction method, and AV signal processing reduction program | |
JP3245617B2 (en) | Waveform generator |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120322 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130830 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130917 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130918 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
LAPS | Cancellation because of no payment of annual fees |