[go: up one dir, main page]

JPH0979870A - Measured data memory device - Google Patents

Measured data memory device

Info

Publication number
JPH0979870A
JPH0979870A JP23396095A JP23396095A JPH0979870A JP H0979870 A JPH0979870 A JP H0979870A JP 23396095 A JP23396095 A JP 23396095A JP 23396095 A JP23396095 A JP 23396095A JP H0979870 A JPH0979870 A JP H0979870A
Authority
JP
Japan
Prior art keywords
value
bits
section
compression
measurement data
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.)
Granted
Application number
JP23396095A
Other languages
Japanese (ja)
Other versions
JP3132544B2 (en
Inventor
Noriko Kazama
紀子 風間
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP07233960A priority Critical patent/JP3132544B2/en
Publication of JPH0979870A publication Critical patent/JPH0979870A/en
Application granted granted Critical
Publication of JP3132544B2 publication Critical patent/JP3132544B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Recording Measured Values (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PROBLEM TO BE SOLVED: To accurately store abrupt changes and store measured data for a long period in a small-capacity memory by data-compressing micro-values, storing differential values, and preserving the differential values for large amplitudes. SOLUTION: An initial data absolute value memory section 10 stores the measured data of the initial prescribed bit number N as they are, and a difference calculation section 20 calculates the difference between the previous measured data and the present measured data. A compression dictionary section 30 data-compresses micro-values and stores differential values. When the calculated differential value is within the micro-value range of the compression dictionary section 30, a micro-value compression section 40 converts it into a compression bit train in reference to the dictionary section 30. When the calculated differential value is a large value outside the micro-value range of the dictionary section 30, a large-amplitude description section 50 expresses the differential value with the effective bit number within the prescribed bit number and applies a code to it to represent the nonrequirement for the reference to the dictionary section 30. A differential value time series memory section 60 stores the differential values expressed by the compression section 40 and the description section 50 in time series.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、時系列データを記憶す
る記録する測定データ記憶装置に掛り、特に急激な変化
の起こる頻度が少ないデータを効率良く圧縮する改良に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an improved measurement data storage device for storing time-series data, and more particularly, to an improvement for efficiently compressing data that rarely changes abruptly.

【0002】[0002]

【従来の技術】時系列データを圧縮してメモリ容量を節
約する技術は、例えば本出願人の提案にかかる特開平4
−236326号公報に開示されているように、時系列
データの差分を記憶するものが知られている。
2. Description of the Related Art A technique for compressing time-series data to save memory capacity is disclosed in, for example, Japanese Patent Laid-Open No. Hei 4
As disclosed in Japanese Patent Laid-Open No. 236326, there is known one that stores a difference between time series data.

【0003】ところで、電器炉の温度制御のような用途
の測定データを記憶する用途を考えると、測定された温
度の変化は緩慢であるから、大部分のデータの差分は±
1〜2[度]程度の絶対値の小さな値になっている。他
方、レコーダであるから突然の変化に記録が正確に追従
することも、後の動作解析等で重要である。
By the way, considering an application for storing measurement data for applications such as temperature control of an electric furnace, the measured temperature changes slowly, so most of the data differences are ±.
It has a small absolute value of about 1 to 2 [degrees]. On the other hand, since the recorder is a recorder, it is important for the recording to accurately follow abrupt changes in later operation analysis and the like.

【0004】[0004]

【発明が解決しようとする課題】しかし、従来の表示形
式では、突然の変化を正確に再現するために1測定デー
タ当たりのビット数が大きく、そのため緩慢な温度変化
を記憶する場合には長時間データを記録するには多くの
メモリ容量が必要になるという課題があった。本発明は
このような課題を解決したもので、突然の変化も正確に
記録すると共に、長時間の測定データを比較的小容量の
メモリで記憶する測定データ記憶装置を提供することを
目的とする。
However, in the conventional display format, the number of bits per measurement data is large in order to accurately reproduce a sudden change, and therefore, when storing a slow temperature change, it takes a long time. There is a problem that a large memory capacity is required to record data. The present invention solves such a problem, and an object of the present invention is to provide a measurement data storage device capable of accurately recording a sudden change and storing long-time measurement data in a memory having a relatively small capacity. .

【0005】[0005]

【課題を解決するための手段】上記の目的を達成する本
発明は、初回の所定ビット数(N)の測定データをその
まま記憶する手段10と、直近の測定データと今回の測
定データの差分を演算する手段20と、所定の微小値と
前記所定ビット数よりも短く定められた圧縮ビット列と
の変換関係を記述した圧縮辞書部30と、この差分演算
手段で演算した今回の差分値が圧縮辞書部により定まる
微小値であるときは、当該圧縮辞書部を参照して対応す
る圧縮ビット列に変換する微小値用圧縮部40と、この
差分演算手段で演算した今回の差分値が圧縮辞書部によ
り定まる微小値に含まれないときは、当該圧縮辞書部の
参照不要を表す符号と共に、当該差分値を当該所定ビッ
ト数のうち有効なビット数で表現する大振幅用記述部5
0と、これら微小値用圧縮部並びに大振幅用記述部で表
現された差分値を時系列で記憶する手段60とを有する
ことを特徴としている。
Means for Solving the Problems The present invention that achieves the above-mentioned object is to provide a means 10 for storing the measurement data of a predetermined number of bits (N) for the first time as it is, and a difference between the latest measurement data and the current measurement data. A means 20 for calculating, a compression dictionary unit 30 describing a conversion relationship between a predetermined minute value and a compressed bit string defined to be shorter than the predetermined number of bits, and a current difference value calculated by the difference calculating means is a compression dictionary. When the value is a minute value determined by a unit, the minute value compression unit 40 that refers to the compression dictionary unit and converts it into a corresponding compressed bit string, and the current difference value calculated by the difference calculation means are determined by the compression dictionary unit. When it is not included in the minute value, the large-amplitude description unit 5 that expresses the difference value as an effective number of bits out of the predetermined number of bits together with a code indicating that the compression dictionary unit does not require reference
It is characterized by having 0 and means 60 for storing the difference values expressed by the minute value compression section and the large amplitude description section in time series.

【0006】[0006]

【作用】本発明の構成によれば、初回の測定値について
は、初回データ絶対値記憶部10により測定データをそ
のまま記憶して、差分値の基準となる値を定める。差分
演算部20は直近と今回の測定データの差を求める。圧
縮辞書部30では、温度等のように変化の緩慢な場合に
頻繁に現れる微小値については、圧縮ビット列に置き換
えて、測定データをその有効ビット数全体を記憶する場
合に比較して、データ圧縮の効果を得る。微小値用圧縮
部40は、今回の差分値について圧縮辞書部を参照し
て、具体的な圧縮ビット列に変換する。大振幅用記述部
50は、圧縮辞書部に含まれないような大きな変化につ
いては、測定データをその有効ビット数若しくは全ての
ビット数で表現すると共に、微小値と区別するための符
号を付す。差分値時系列記憶部60は、微小値用圧縮部
並びに大振幅用記述部で表現された差分値を時系列で記
憶する。
According to the structure of the present invention, for the first measurement value, the measurement data is stored as it is in the first data absolute value storage unit 10 and the reference value of the difference value is determined. The difference calculation unit 20 obtains the difference between the latest measurement data and the current measurement data. The compression dictionary unit 30 compresses a minute value that frequently appears when the change is slow, such as temperature, by replacing it with a compressed bit string and storing the entire measurement data in the effective bit number. Get the effect of. The small value compression unit 40 converts the current difference value into a specific compressed bit string by referring to the compression dictionary unit. The large-amplitude description unit 50 expresses the measurement data with the number of effective bits or all the number of bits for a large change that is not included in the compression dictionary unit, and attaches a code for distinguishing it from a small value. The difference value time series storage unit 60 stores the difference values expressed by the compression unit for minute values and the description unit for large amplitude in time series.

【0007】[0007]

【実施例】以下図面を用いて、本発明を説明する。図1
は本発明の一実施例を示す構成ブロック図である。図に
おいて、初回データ絶対値記憶部10は、初回の所定ビ
ット数(N;例えば16ビット)の測定データをそのま
ま記憶する。差分演算部20は、直近の測定データと今
回の測定データの差分を演算する。圧縮辞書部30は、
所定の微小値(例えば−5〜+5の範囲内)と所定ビッ
ト数よりも短く定められた圧縮ビット列(例えば4ビッ
ト)との変換関係を記述している。微小値用圧縮部40
は、差分演算部20で演算した今回の差分値が圧縮辞書
部30に記述された微小値の範囲内であるときは、圧縮
辞書部30を参照して対応する圧縮ビット列に変換す
る。
DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be described below with reference to the drawings. FIG.
FIG. 3 is a configuration block diagram showing an embodiment of the present invention. In the figure, the initial data absolute value storage unit 10 stores the first predetermined number of bits (N; for example, 16 bits) of measurement data as it is. The difference calculator 20 calculates the difference between the latest measurement data and the current measurement data. The compression dictionary unit 30
It describes the conversion relationship between a predetermined minute value (for example, within the range of -5 to +5) and a compressed bit string (for example, 4 bits) defined to be shorter than the predetermined number of bits. Small value compression unit 40
When the difference value of this time calculated by the difference calculation unit 20 is within the range of the minute value described in the compression dictionary unit 30, the compression dictionary unit 30 is referred to and converted into a corresponding compressed bit string.

【0008】大振幅用記述部50は、差分演算部20で
演算した今回の差分値が圧縮辞書部30に記述された微
小値の範囲外の大きな値であるときは、この差分値を所
定ビット数のうち有効なビット数で表現すると共に、圧
縮ビット列と区別するための符号を付して圧縮辞書部3
0の参照不要を表す。例えば、有効ビット列として8ビ
ット幅と16ビット幅の2種類を用意する。そして、符
号付きで8ビットで表されるデータについては、8ビッ
トデータ符号+8ビットデータで表す。具体的には、正
符号の場合は00〜7F(127)、負符号の場合はF
F〜80(−128)迄の範囲で、圧縮辞書部30で定
義されるものを控除した範囲が対象となる。符号付きで
8ビットで表現できないデータについては、16ビット
データ符号+16ビットデータで表す。具体的には、正
符号の場合は0080〜7FFF(32767)、負符
号の場合はFF7F〜7FFF(−32768)迄の範
囲が対象となる。差分値時系列記憶部60は、微小値用
圧縮部40並びに大振幅用記述部50で表現された差分
値を時系列で記憶する。
When the difference value of this time calculated by the difference calculation section 20 is a large value outside the range of the minute value described in the compression dictionary section 30, the large amplitude description section 50 sets this difference value to a predetermined bit. The compression dictionary unit 3 is represented by a valid bit number of the number and is given a code for distinguishing it from the compressed bit string.
0 indicates that reference is unnecessary. For example, two types of 8-bit width and 16-bit width are prepared as effective bit strings. Then, the data represented by 8 bits with a sign is represented by 8 bit data code + 8 bit data. Specifically, in the case of a plus sign, 00 to 7F (127), and in the case of a minus sign, F
In the range from F to 80 (-128), the range defined by the compression dictionary unit 30 is excluded. Data that is signed and cannot be represented in 8 bits is represented by 16-bit data code + 16-bit data. Specifically, the range from 0080 to 7FFF (32767) for the positive code and the range from FF7F to 7FFF (-32768) for the negative code is targeted. The difference value time series storage unit 60 stores the difference values expressed by the small value compression unit 40 and the large amplitude description unit 50 in time series.

【0009】図2は圧縮辞書部30の一例を示す図で、
(A)は有効ビット列が8ビットと16ビットを示す符
号、(B)は4ビットの圧縮ビット列、(C)は6ビッ
トの圧縮ビット列、(D)は5ビットの圧縮ビット列を
示している。なお、例えば{0xb,4,0xc}等の
表示において、“0x“はC言語における16表示を示
す表示であり、第一欄の”0xb”は変換前の値、第二
欄の”4”は変換後のビット数、第三欄の”0xc”は
変換後の値を表している。
FIG. 2 is a diagram showing an example of the compression dictionary unit 30.
(A) is a code indicating that the effective bit string is 8 bits and 16 bits, (B) is a 4-bit compressed bit string, (C) is a 6-bit compressed bit string, and (D) is a 5-bit compressed bit string. In addition, for example, in the display of {0xb, 4, 0xc}, etc., "0x" is a display showing 16 displays in C language, "0xb" in the first column is the value before conversion, and "4" in the second column. Indicates the number of bits after conversion, and “0xc” in the third column indicates the value after conversion.

【0010】図2(A)において、”0xb”は有効ビ
ット列が8ビットを示す符号、”0xc”は有効ビット
列が16ビットを示す符号である。図2(B)では、+
5から−5迄の11個の数字について、4ビットの圧縮
ビット列が一対一に定められている。尚、圧縮語の4ビ
ットの符号として表中の13個以外に次の三個がある
が、次の理由で4ビットの圧縮ビット列としては使用さ
れていない。 ”0xf”は、変換後の各データの切れ目を明らかに
して、逆変換を可能にすめため、禁止語としている。 ”0x0”は、6ビットの圧縮ビットとして使用され
ているため、4ビットの圧縮ビットとして使用すると、
区別がつかなくなる。そこで、変換後の各データの切れ
目を明らかにして、逆変換を可能にすめため、4ビット
の圧縮ビット列としては禁止語としている。 ”0x1”も、と同様の理由で4ビットの圧縮ビッ
ト列としては禁止語としている。
In FIG. 2A, "0xb" is a code indicating that the effective bit string is 8 bits, and "0xc" is a code indicating that the effective bit string is 16 bits. In FIG. 2B, +
For 11 numbers from 5 to -5, a 4-bit compressed bit string is defined on a one-to-one basis. Incidentally, there are the following three as the 4-bit code of the compressed word in addition to the 13 in the table, but they are not used as the 4-bit compressed bit string for the following reason. "0xf" is a prohibited word in order to clarify the break of each data after conversion and to enable the reverse conversion. Since "0x0" is used as a 6-bit compressed bit, if it is used as a 4-bit compressed bit,
It becomes indistinguishable. Therefore, in order to clarify the break of each data after conversion and enable the reverse conversion, the word is prohibited as a 4-bit compressed bit string. "0x1" is also a prohibited word as a 4-bit compressed bit string for the same reason as above.

【0011】図2(C)では、+10から+6迄と、−6
から−8迄の8個の数字について、6ビットの圧縮ビッ
ト列が一対一に定められている。図2(D)では、−10
と−9の2個の数字について、5ビットの圧縮ビット列
が一対一に定められている。この場合、2個だけ5ビッ
トの圧縮ビット列を用いているのは、6ビットの圧縮ビ
ット列を用いる場合に比較してデータ圧縮の効果が高い
からである。
In FIG. 2C, +10 to +6 and -6
A compressed bit string of 6 bits is defined on a one-to-one basis for eight numbers from -8 to -8. In FIG. 2D, -10
A compressed bit string of 5 bits is defined on a one-to-one basis for the two numbers, and -9. In this case, the reason why only two compressed bit strings of 5 bits are used is that the effect of data compression is higher than that when a compressed bit string of 6 bits is used.

【0012】このように構成された装置の動作を具体的
に説明する。図3は6個の測定データに対して、差分値
と圧縮ビット列又は有効ビット列がどのように定められ
るかを説明する図である。初回の測定データ”123”
(007B)に対しては、第2欄で初回値として測定値
がそのまま記憶される。この初回値は8ビットで表現可
能なので、8ビット表示用の符号”0xc”に続いて数
値”7B”がビット列形式で記憶される。第2回の測定
データ”125”(007D)に対しては、第2欄で差
分値として”2”が演算され、微小値用圧縮部40が圧
縮辞書部30を参照して対応する“0xe“が記憶され
る。
The operation of the apparatus thus configured will be specifically described. FIG. 3 is a diagram for explaining how the difference value and the compressed bit string or effective bit string are determined for the six measurement data. First measurement data "123"
For (007B), the measured value is stored as it is as the initial value in the second column. Since this initial value can be represented by 8 bits, the numerical value "7B" is stored in the bit string format following the code "0xc" for 8-bit display. For the second measurement data “125” (007D), “2” is calculated as the difference value in the second column, and the minute value compression unit 40 refers to the compression dictionary unit 30 and corresponds to “0xe”. "Is remembered.

【0013】第3回の測定データ”100”(006
4)に対しては、第2欄で差分値として”−25”(F
FE7)が演算され、大振幅用記述部50ではこの値が
8ビットで表現可能なので、8ビット表示用の符号”0
xc”に続いて数値”E7”がビット列形式で記憶され
る。第4回の測定データ”−30”(FFE2)に対し
ては、第2欄で差分値として”−130”(FF7E)
が演算され、大振幅用記述部50ではこの値が16ビッ
トで表現すべき値なので、16ビット表示用の符号”0
x2”に続いて数値”FF7E”がビット列形式で記憶
される。第5回の測定データ”−33”(FFDF)に
対しては、第2欄で差分値として”−3”(FFFD)
が演算され、微小値用圧縮部40が圧縮辞書部30を参
照して”fd”に対応する“0x8“が記憶される。第
6回の測定データ”174”(00AE)に対しては、
第2欄で差分値として”+207”(00CF)が演算
され、大振幅用記述部50ではこの値が16ビットで表
現すべき値なので、16ビット表示用の符号”0x2”
に続いて数値”00CF”がビット列形式で記憶され
る。以下、読み込まれる測定データについて逐次同様の
計算が行われる。
Third measurement data "100" (006
4), "-25" (F
FE7) is calculated, and this value can be represented by 8 bits in the large amplitude description section 50.
The numerical value "E7" is stored in a bit string format following "xc". For the fourth measurement data "-30" (FFE2), the difference value is "-130" (FF7E) in the second column.
Is calculated, and in the large-amplitude description unit 50, since this value is a value to be expressed in 16 bits, the code "0 for 16-bit display"
The numerical value "FF7E" is stored in the bit string format following x2 ". For the fifth measurement data" -33 "(FFDF), the difference value is" -3 "(FFFD) in the second column.
Is calculated, and the minute value compression unit 40 refers to the compression dictionary unit 30 and stores “0x8” corresponding to “fd”. For the sixth measurement data "174" (00AE),
In the second column, "+207" (00CF) is calculated as the difference value, and in the large-amplitude description unit 50, this value is a value that should be expressed in 16 bits, so the code for displaying 16 bits is "0x2".
Then, the numerical value "00CF" is stored in the bit string format. Hereinafter, the same calculation is sequentially performed on the read measurement data.

【0014】図4は圧縮辞書部30の類型を説明する図
で、上欄は10進表示と16進表示を一組で表示したも
のであり、(イ)〜(ニ)に微小値用圧縮部40と大振
幅用記述部50の分担区分を表している。(イ)は図2
の圧縮辞書部に対応するもので、微小値用圧縮部40は
0から±10迄の範囲、大振幅用記述部50は±11以上を
担当としている。大振幅用記述部50の内部を詳細に述
べると、±11から+127/−128迄については8ビット
幅の有効ビット列、+128/−129以上については16ビ
ット幅の有効ビット列を用いている。
FIG. 4 is a diagram for explaining the type of the compression dictionary unit 30. The upper column shows a set of decimal display and hexadecimal display. The compression for small values is shown in (a) to (d). The division of the part 40 and the large amplitude description part 50 is shown. (A) is shown in Figure 2.
Corresponding to the compression dictionary section of, the minute value compression section 40 is in charge of the range from 0 to ± 10, and the large amplitude description section 50 is in charge of ± 11 or more. To describe the details of the inside of the large amplitude description section 50, an effective bit string of 8 bit width is used for ± 11 to + 127 / −128, and an effective bit string of 16 bit width is used for + 128 / −129 or more. .

【0015】(ロ)は図2の圧縮辞書部を若干変更した
もので、5ビットの圧縮ビット列を用いている−10と−
9の2個の数字についても、6ビットの圧縮ビット列を
用いたものである。変換前の数値と変換後の圧縮ビット
列には一対一の対応関係があれば足りるから、圧縮辞書
部30の内容を4ビットと6ビットのみにして、理念的
に簡便な構造としている。(ハ)は図2の圧縮辞書部の
うち、4ビットの圧縮ビット列についてのみ圧縮辞書部
30に残し、5ビット及び6ビットの圧縮ビット列につ
いては、大振幅用記述部50の8ビット幅の有効ビット
列に担当させたものである。これにより、圧縮辞書部3
0の内容が簡便になるので、変換や逆変換が高速に行え
るようになるから、高速の記憶動作や読出動作に適して
いる。(ニ)は、大振幅用記述部50の構造を単純化し
たもので、8ビット幅の有効ビット列に担当させていた
範囲も16ビット幅の有効ビット列に担当させるもので
ある。このようにすると、測定データの記憶類型が2種
類だけになるから、高速の記憶動作や読出動作に適して
いる。
(B) is a slightly modified version of the compression dictionary section of FIG. 2, and uses a 5-bit compressed bit string −10 and −.
For the two numbers 9 as well, a 6-bit compressed bit string is used. Since it is sufficient for the numerical value before conversion and the compressed bit string after conversion to have a one-to-one correspondence, the contents of the compression dictionary unit 30 are only 4 bits and 6 bits, which is an ideally simple structure. In (c), only the 4-bit compressed bit string in the compression dictionary part of FIG. 2 is left in the compression dictionary part 30, and for the 5-bit and 6-bit compressed bit strings, the 8-bit width of the large amplitude description part 50 is effective. It is a bit string. As a result, the compression dictionary unit 3
Since the contents of 0 are simple and the conversion and the inverse conversion can be performed at high speed, it is suitable for high speed storage operation and read operation. In (d), the structure of the large-amplitude description part 50 is simplified, and the effective bit string having an 8-bit width is also in charge of the effective bit string having a 16-bit width. In this way, since there are only two types of storage of measurement data, it is suitable for high-speed storage operation and read operation.

【0016】図5は本発明の他の実施例を説明する構成
ブロック図である。図1の構造のみでは、温度測定のよ
うに緩慢な変化をする測定データを比較的頻繁に測定し
て、隣接する測定データ間の差分値が小さくなる場合に
はデータ圧縮の効果が得られる。しかし、ノイズの重畳
して頻繁な変化をする測定データや、緩慢な変化をする
測定データであっても測定間隔を極端に長くしたような
場合には、隣接する測定データ間の差分値が大きくな
り、大振幅用記述部50では有効ビット列の幅を表示す
る符号を付していることから、却って総記憶ビット数が
増大する場合が存在する。すると、データ圧縮という初
期の目的が達成できなくなるという課題があった。
FIG. 5 is a block diagram showing the configuration of another embodiment of the present invention. With the structure of FIG. 1 alone, the measurement data having a slow change such as the temperature measurement is measured relatively frequently, and when the difference value between the adjacent measurement data becomes small, the data compression effect can be obtained. However, if the measurement interval is extremely long even for measurement data that changes frequently due to noise superposition or measurement data that changes slowly, the difference value between adjacent measurement data is large. In the large-amplitude description unit 50, the code for displaying the width of the effective bit string is added, so that the total number of stored bits may increase. Then, there was a problem that the initial purpose of data compression could not be achieved.

【0017】図5では、図1の装置に通常記憶部10
0、記憶ビット数演算部70,80並びに圧縮判定部9
0を付設したものである。通常記憶部100は、入力さ
れる所定ビット数の測定データをそのまま記憶する。記
憶ビット数演算部70は、差分値時系列記憶部60で記
憶される総ビット数を演算するが、この際初回データ絶
対値記憶部10に記憶されるビット数も考慮する。記憶
ビット数演算部80は、通常記憶部100で記憶される
総ビット数を演算する。圧縮判定部90は、この両者の
記憶ビット数演算部70,80の総ビット数を比較し
て、差分値時系列記憶部60で記憶される総ビット数が
大きくなるときは、差分値時系列記憶部60段の記憶を
無効とする共に、通常記憶部100の記憶を有効とす
る。これにより、記憶に必要とされる総ビット数が徒に
増大することが防止されると共に、測定データを復元す
る際にも圧縮辞書部30を参照して復元する作業が不要
になるので、復元が簡便に行える。
In FIG. 5, the normal storage unit 10 is added to the apparatus of FIG.
0, memory bit number operation units 70 and 80, and compression determination unit 9
0 is attached. The normal storage unit 100 stores the input measurement data of a predetermined number of bits as it is. The storage bit number calculation unit 70 calculates the total number of bits stored in the difference value time series storage unit 60. At this time, the number of bits stored in the initial data absolute value storage unit 10 is also taken into consideration. The storage bit number calculation unit 80 calculates the total number of bits stored in the normal storage unit 100. The compression determination unit 90 compares the total bit numbers of the storage bit number calculation units 70 and 80 of both of them, and when the total bit number stored in the difference value time series storage unit 60 becomes large, the difference value time series is calculated. The storage in the 60th storage unit is disabled, and the storage in the normal storage unit 100 is enabled. This prevents the total number of bits required for storage from unnecessarily increasing, and also eliminates the work of restoring the measurement data by referring to the compression dictionary unit 30 when restoring the measurement data. Can be done easily.

【0018】図6は図1の装置でデータ圧縮されたデー
タを復元する装置の構成ブロック図である。データ圧縮
された測定データは、初回データ絶対値記憶部部10と
差分値時系列記憶部60に記憶されている。また圧縮辞
書部30にデータ圧縮の変換形式が存在しているので、
この変換形式から逆変換する変換形式が復元辞書部12
0に記述されている。個別相対値識別部110は、差分
値時系列記憶部60に記憶されたビット列を読みだし
て、各データの識別をし、このデータの値が微小値であ
るか大振幅であるかを判別する。微小値用復元部130
は、復元辞書部120を参照して、4〜6ビットの圧縮
ビット列から16ビットの差分値を復元する。
FIG. 6 is a block diagram showing the configuration of an apparatus for restoring the data compressed by the apparatus of FIG. The data-compressed measurement data is stored in the initial data absolute value storage unit 10 and the difference value time series storage unit 60. Also, since the compression dictionary unit 30 has a data compression conversion format,
The conversion format for performing reverse conversion from this conversion format is the restoration dictionary unit 12
It is described in 0. The individual relative value identification unit 110 reads out the bit string stored in the difference value time series storage unit 60, identifies each data, and determines whether the value of this data is a minute value or a large amplitude. . Small value restoration unit 130
Refers to the decompression dictionary unit 120 and decompresses a 16-bit difference value from a compressed bit string of 4 to 6 bits.

【0019】大振幅用復元部140は、有効ビット列が
8ビットか16ビットであるかを表示する符号と8/1
6ビットデータから、16ビットの差分値を復元する。
個別絶対値復元部150は、初回データ絶対値記憶部部
10の記憶する初回値と、直近の差分値時系列記憶部6
0の逆変換された差分値から直近の測定データが求めら
れているので、これに今回の差分値時系列記憶部60の
逆変換された差分値を加えて今回の測定データを復元す
る。この復元された測定データは、時系列データ表示部
160に送られ、CRT表示等がなされる。
The large-amplitude restoration unit 140 has a code indicating whether the effective bit string is 8 bits or 16 bits and 8/1.
A 16-bit difference value is restored from the 6-bit data.
The individual absolute value restoration unit 150 includes the initial value stored in the initial data absolute value storage unit 10 and the latest difference value time series storage unit 6.
Since the latest measurement data is obtained from the inversely converted difference value of 0, the inversely converted difference value of the current difference value time series storage unit 60 is added to this to restore the current measurement data. The restored measurement data is sent to the time-series data display unit 160, and CRT display or the like is performed.

【0020】尚、上記実施例においては、測定データと
して16ビットの場合を列に説明したが、本発明はこれ
に限定されるものではなく、測定データのビット幅は8
ビット、32ビット等の各種のビット幅が用いられる。
また、圧縮辞書部30における圧縮ビット列としては4
〜6ビットの場合を示したが、3ビットのように要する
に測定データのビット幅に比較して短いビット幅であれ
ばよい。大振幅用記述部50についても、8ビット/1
6ビットの併用形を示したが、測定データのビット幅を
そのまま用いたものでもよく、また12ビット等の他の
中間的なビット幅の有効ビット列の幅を設けてもよい。
In the above embodiment, the case where the measurement data has 16 bits has been described as a column, but the present invention is not limited to this, and the bit width of the measurement data is 8 bits.
Various bit widths such as bits and 32 bits are used.
The compression bit string in the compression dictionary unit 30 is 4
Although the case of up to 6 bits is shown, the bit width may be as short as 3 bits, that is, shorter than the bit width of the measurement data. 8 bits / 1 for the large amplitude description section 50
Although the combination of 6 bits is shown, the bit width of the measurement data may be used as it is, or the width of the effective bit string having another intermediate bit width such as 12 bits may be provided.

【0021】[0021]

【発明の効果】以上説明したように、本発明によれば、
圧縮辞書部30を設けて微小値についてはデータ圧縮し
て差分値を記憶するようにしたので、温度測定のように
緩慢な変化を記録する場合の記憶容量が少なくて済むと
いう効果がある。また、微小値とは認められない大振幅
についてはその差分値を保存する形式で記憶するので、
測定データの変化波形が正確に記録されるという効果も
ある。さらに、図5の実施例のように記憶される総ビッ
ト数があまりに大きくなる場合には、通常の測定データ
をそのまま記憶する形式を保存用に用いることで、徒に
記憶されるデータのメモリが増大するのを防止できると
いう効果がある。
As described above, according to the present invention,
Since the compression dictionary unit 30 is provided and the minute value is data-compressed and the difference value is stored, there is an effect that the storage capacity is small when recording a slow change such as temperature measurement. Also, for large amplitudes that are not recognized as small values, the difference value is stored in a format that saves it.
There is also an effect that the change waveform of the measurement data is accurately recorded. Further, when the total number of bits stored becomes too large as in the embodiment of FIG. 5, the format for storing normal measurement data as it is is used for storage, so that the memory of the data stored in memory is reduced. The effect is that it can be prevented from increasing.

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

【図1】本発明の一実施例を示す構成ブロック図であ
る。
FIG. 1 is a configuration block diagram showing an embodiment of the present invention.

【図2】圧縮辞書部30の一例を示す図である。FIG. 2 is a diagram showing an example of a compression dictionary unit 30.

【図3】6個の測定データに対して、差分値と圧縮ビッ
ト列又は有効ビット列がどのように定められるかを説明
する図である。
FIG. 3 is a diagram illustrating how a difference value and a compressed bit string or effective bit string are determined for six pieces of measurement data.

【図4】圧縮辞書部30の類型を説明する図である。FIG. 4 is a diagram illustrating types of a compression dictionary unit 30.

【図5】本発明の他の実施例を説明する構成ブロック図
である。
FIG. 5 is a configuration block diagram illustrating another embodiment of the present invention.

【図6】図1の装置でデータ圧縮されたデータを復元す
る装置の構成ブロック図である。
6 is a configuration block diagram of an apparatus for decompressing data compressed by the apparatus of FIG.

【符号の説明】 10 初回データ絶対値記憶部 20 差分演算部 30 圧縮辞書部 40 微小値用圧縮部 50 大振幅用記述部 60 差分値時系列記憶部 70,80 記憶ビット数演算部 90 圧縮判定部 100 通常記憶部[Explanation of Codes] 10 initial data absolute value storage unit 20 difference calculation unit 30 compression dictionary unit 40 small value compression unit 50 large amplitude description unit 60 difference value time series storage unit 70, 80 storage bit number calculation unit 90 compression determination Part 100 Normal storage part

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】初回の所定ビット数(N)の測定データを
そのまま記憶する手段(10)と、 直近の測定データと今回の測定データの差分を演算する
手段(20)と、 所定の微小値と前記所定ビット数よりも短く定められた
圧縮ビット列との変換関係を記述した圧縮辞書部(3
0)と、 この差分演算手段で演算した今回の差分値が圧縮辞書部
により定まる微小値であるときは、当該圧縮辞書部を参
照して対応する圧縮ビット列に変換する微小値用圧縮部
(40)と、 この差分演算手段で演算した今回の差分値が圧縮辞書部
により定まる微小値に含まれないときは、当該圧縮辞書
部の参照不要を表す符号と共に、当該差分値を当該所定
ビット数のうち有効なビット数で表現する大振幅用記述
部(50)と、 これら微小値用圧縮部並びに大振幅用記述部で表現され
た差分値を時系列で記憶する手段(60)と、 を具備することを特徴とする測定データ記憶装置。
1. A means (10) for storing the measurement data of a predetermined number of bits (N) for the first time as it is, a means (20) for calculating a difference between the latest measurement data and the current measurement data, and a predetermined minute value. And a compression dictionary section (3) describing a conversion relationship between a compressed bit string defined to be shorter than the predetermined number of bits.
0) and the difference value of this time calculated by this difference calculating means is a minute value determined by the compression dictionary section, the minute value compression section (40) for converting to the corresponding compressed bit string by referring to the compression dictionary section. ) And the difference value of this time calculated by the difference calculating means is not included in the minute value determined by the compression dictionary unit, the difference value is referred to as a predetermined number of bits together with a code indicating that the compression dictionary unit does not need to be referenced. A large-amplitude description part (50) of which the number of valid bits is expressed, and means (60) for storing the difference values expressed by the minute-value compression part and the large-amplitude description part in time series. A measurement data storage device characterized by:
【請求項2】請求項1記載の差分値時系列記憶手段で記
憶される総ビット数を演算する手段(70)と、 入力される所定ビット数の測定データをそのまま記憶す
る通常記憶部(100)の総ビット数を演算する手段
(80)と、 この両者の総ビット数を比較して、差分値時系列記憶手
段で記憶される総ビット数が大きくなるときは、当該差
分値時系列記憶手段の記憶を無効とする共に、前記通常
記憶部の記憶を有効とする圧縮判定部(90)と、 を有することを特徴とする請求項1記載の測定データ記
憶装置。
2. A means (70) for calculating the total number of bits stored in the difference value time series storage means according to claim 1, and a normal storage section (100) for directly storing the input measurement data of a predetermined number of bits. (80) for calculating the total number of bits of the difference value) and the total number of bits of the two are compared, and when the total number of bits stored in the difference value time series storage means becomes large, the difference value time series storage is performed. The measurement data storage device according to claim 1, further comprising: a compression determination unit (90) that invalidates the storage of the means and validates the storage of the normal storage unit.
JP07233960A 1995-09-12 1995-09-12 Measurement data storage device Expired - Fee Related JP3132544B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07233960A JP3132544B2 (en) 1995-09-12 1995-09-12 Measurement data storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07233960A JP3132544B2 (en) 1995-09-12 1995-09-12 Measurement data storage device

Publications (2)

Publication Number Publication Date
JPH0979870A true JPH0979870A (en) 1997-03-28
JP3132544B2 JP3132544B2 (en) 2001-02-05

Family

ID=16963332

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07233960A Expired - Fee Related JP3132544B2 (en) 1995-09-12 1995-09-12 Measurement data storage device

Country Status (1)

Country Link
JP (1) JP3132544B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007157137A (en) * 2005-12-02 2007-06-21 Internatl Business Mach Corp <Ibm> Method, system and computer program for compressing servo control logging entry
JP2007178141A (en) * 2005-12-27 2007-07-12 Hioki Ee Corp Recording apparatus
JP2007221280A (en) * 2006-02-15 2007-08-30 Hitachi Zosen Corp Data compression method and decompression method, and state change detection method in plant equipment
EP2163865A1 (en) * 2007-05-28 2010-03-17 Panasonic Corporation Physical amount change history recording method, its program, flow rate measuring device, and fluid supply system
CN102425002A (en) * 2011-12-29 2012-04-25 广州杰赛科技股份有限公司 System for recycling silver plating solution by adopting reduced pressure distillation technology and recycling method thereof

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007157137A (en) * 2005-12-02 2007-06-21 Internatl Business Mach Corp <Ibm> Method, system and computer program for compressing servo control logging entry
JP2007178141A (en) * 2005-12-27 2007-07-12 Hioki Ee Corp Recording apparatus
JP2007221280A (en) * 2006-02-15 2007-08-30 Hitachi Zosen Corp Data compression method and decompression method, and state change detection method in plant equipment
EP2163865A1 (en) * 2007-05-28 2010-03-17 Panasonic Corporation Physical amount change history recording method, its program, flow rate measuring device, and fluid supply system
JPWO2008146484A1 (en) * 2007-05-28 2010-08-19 パナソニック株式会社 PHYSICAL QUANTITY CHANGE HISTORY RECORDING METHOD, ITS PROGRAM, FLOW MEASURING DEVICE AND FLUID SUPPLY SYSTEM
EP2163865A4 (en) * 2007-05-28 2012-05-23 Panasonic Corp PHYSICAL QUANTITY CHANGE HISTORY RECORDING METHOD, PROGRAM THEREOF, FLOW MEASURING DEVICE, AND FLUID SUPPLY SYSTEM
JP5177903B2 (en) * 2007-05-28 2013-04-10 パナソニック株式会社 PHYSICAL QUANTITY CHANGE HISTORY RECORDING METHOD, ITS PROGRAM, FLOW MEASURING DEVICE AND FLUID SUPPLY SYSTEM
US10323968B2 (en) 2007-05-28 2019-06-18 Panasonic Intellectual Property Management Co., Ltd. Method of recording physical quantity change history, program thereof, flow rate measurement apparatus and fluid supplying system
CN102425002A (en) * 2011-12-29 2012-04-25 广州杰赛科技股份有限公司 System for recycling silver plating solution by adopting reduced pressure distillation technology and recycling method thereof

Also Published As

Publication number Publication date
JP3132544B2 (en) 2001-02-05

Similar Documents

Publication Publication Date Title
US5696791A (en) Apparatus and method for decoding a sequence of digitally encoded data
JPH08190468A (en) Visual display system with low-energy data storage subsystemwith data compression function and its operating method
JPS5875068A (en) Wave-form storage display device
EP1037192A3 (en) Gray scale driving for a display device with an active matrix
JPS58165443A (en) Encoded storage device of signal
KR100224815B1 (en) Data compression and expansion method
US5654990A (en) Real-time digital audio compression/decompression system
JPH0979870A (en) Measured data memory device
JPH1091393A (en) Data buffering device
JPS6060694A (en) Waveform memory
JP3889738B2 (en) Inverse quantization apparatus, audio decoding apparatus, image decoding apparatus, inverse quantization method, and inverse quantization program
JP3192795B2 (en) Data compression circuit
JP3192801B2 (en) Data compression circuit
US4272721A (en) Analog-to-digital converter alignment circuit
JP3229052B2 (en) Data compression circuit
JPS59215117A (en) Run length coding data decoder
JP4266257B2 (en) Encoder
Silitonga et al. Compression and Decompression of Audio Files Using the Arithmetic Coding Method
EP1444569A1 (en) Method and systeme for converting varying-radix numbers
JP2702126B2 (en) Data output circuit
JPH0414529B2 (en)
JP3524806B2 (en) Code error correction method
JPH0536213A (en) Code conversion system
JP2561512B2 (en) Digital data storage / reproduction device
JPH0353728A (en) Information recording transmission method

Legal Events

Date Code Title Description
FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20071124

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Year of fee payment: 8

Free format text: PAYMENT UNTIL: 20081124

LAPS Cancellation because of no payment of annual fees