JPH0460204B2 - - Google Patents

Info

Publication number
JPH0460204B2
JPH0460204B2 JP59278535A JP27853584A JPH0460204B2 JP H0460204 B2 JPH0460204 B2 JP H0460204B2 JP 59278535 A JP59278535 A JP 59278535A JP 27853584 A JP27853584 A JP 27853584A JP H0460204 B2 JPH0460204 B2 JP H0460204B2
Authority
JP
Japan
Prior art keywords
data
block
bytes
memory
stored
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP59278535A
Other languages
Japanese (ja)
Other versions
JPS61151426A (en
Inventor
Itaru Kamisaka
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.)
Shimadzu Corp
Original Assignee
Shimadzu 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 Shimadzu Corp filed Critical Shimadzu Corp
Priority to JP27853584A priority Critical patent/JPS61151426A/en
Publication of JPS61151426A publication Critical patent/JPS61151426A/en
Publication of JPH0460204B2 publication Critical patent/JPH0460204B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Recording Measured Values (AREA)

Description

【発明の詳細な説明】 イ 産業上の利用分野 本発明はクロマトグラフ等の分析装置の出力波
形等をデイジタル的に記憶し、またそれを再生す
るための記憶方式に関する。
DETAILED DESCRIPTION OF THE INVENTION A. Field of Industrial Application The present invention relates to a storage method for digitally storing and reproducing output waveforms of an analyzer such as a chromatograph.

ロ 従来の技術 クロマトグラフの出力波形は第3図に示すよう
な波形で、従来このようなベースライン上に所々
にピークが現われる波形をデイジタル記憶する場
合、一定時間間隔で得られるデータを全部同じバ
イト数を使つて記憶していた。クロマトグラフの
場合、出力のダイナミツクレンジが広いため一デ
ータに例えば4バイトを要し、従つて大容量のメ
モリが必要であつた。しかしこの方法は一データ
に固定長を使つているのでデータをランダムに読
出せる利点がある。
B. Prior art The output waveform of a chromatograph is the waveform shown in Figure 3. Conventionally, when digitally storing a waveform such as this in which peaks appear here and there on the baseline, all data obtained at fixed time intervals are stored in the same manner. It was memorized using the number of bytes. In the case of a chromatograph, since the output dynamic range is wide, one data requires, for example, 4 bytes, and therefore a large capacity memory is required. However, since this method uses a fixed length for one piece of data, it has the advantage of being able to read data randomly.

ハ 発明が解決しようとする問題点 本発明はデータをデイジタル的に記憶するに当
つてメモリの使用量を圧縮し、しかもランダムな
データの読出しを可能にしようとするものであ
る。
C. Problems to be Solved by the Invention The present invention aims to compress the amount of memory used when storing data digitally, and also to enable random data reading.

ニ 問題点を解決するための手段 データの大小に応じて語長を変え、データ毎に
その使用バイト数を添えて記憶させ、一定個数の
データを一ブロツクとして、メモリ上で各ブロツ
クの前後にそのブロツクに含まれる総バイト数を
メモリしておくようにした。
D. Measures to solve the problem Change the word length depending on the size of the data, store each data with the number of bytes used, and store a certain number of data as one block before and after each block in memory. The total number of bytes included in that block is stored in memory.

ホ 作用 第1図に本発明方式におけるメモリの構成を示
す。第1ブロツク、第2ブロツク等と記入した範
囲が上述したデータブロツクで、一ブロツク中に
は一定個数例えば1000個のデータが格納され、各
ブロツクの前後両端にそのブロツク内の総バイト
数が記入してある。第1データ、第2データ等と
記した範囲が個々のデータの記録構成で、そのデ
ータを構成するバイト数n1,n2等とデータその
もので構成されている。メモリの始めに第1ブロ
ツクの総バイト数が記入してあるので、メモリ上
で第1ブロツクの長さが直ちに判明し、従つて第
2ブロツクのデータを読出そうとするときは、第
1ブロツクの長さに相当するビツト数だけ数えて
行けばすぐに第2ブロツクの先頭に到達できる。
同様にして任意のブロツクにもすぐに到達でき
る。各ブロツクは前後にそのブロツクの総バイト
数が記入してあるので、今或るブロツクのデータ
を読出しており、次に他のブロツクに移るとき、
一々第1ブロツクの先頭に戻らなくて、今読出し
ているブロツクからより若い番号のブロツクへも
上述した所と同様にして到達できるのである。一
つのブロツク内での個々のデータはデータ毎にバ
イト数が添記されているから、バイト数を積算し
て行くことで指定のデータに到達できる。
E. Operation FIG. 1 shows the configuration of a memory in the system of the present invention. The ranges marked as 1st block, 2nd block, etc. are the data blocks mentioned above. A certain number of data, for example 1000, are stored in one block, and the total number of bytes in that block is written at both the front and back ends of each block. It has been done. The range marked as first data, second data, etc. is the recording structure of each piece of data, and is composed of the number of bytes n1, n2, etc. that make up the data and the data itself. Since the total number of bytes of the first block is written at the beginning of the memory, the length of the first block is immediately known in the memory. By counting the number of bits corresponding to the length of , you can quickly reach the beginning of the second block.
In the same way, you can quickly reach any block. Each block has the total number of bytes written before and after it, so if you are currently reading data from a certain block and then move on to another block,
Instead of returning to the beginning of the first block one by one, it is possible to reach blocks with lower numbers from the block currently being read in the same manner as described above. Since the number of bytes is appended to each piece of data in one block, the specified data can be reached by adding up the number of bytes.

ヘ 実施例 こゝに述べる実施例はクロマトグラフの出力波
形を記憶するものである。クロマトグラフ出力を
サンプリングしA/D変換して一定時間ずつ積算
する。従来はこの積算されたデータを一定バイト
数を使つて記憶させていた。この実施例では上記
データを直接メモリせず、前後のデータの差分を
取つて、これをメモリする。メモリは差分の大小
に応じて1〜4バイトを用いる。クロマトグラフ
出力に変化がなければ差分は0であるが、0に対
しても1バイトを用いる。差分データはそのバイ
ト数を添えてメモリに格納する。バイト数は1〜
4バイトであるからその記憶のために2ビツトを
用いる。1000個のデータ(差分)を一ブロツクと
し、メモリ上で各ブロツクの前後にそのブロツク
内の総バイト数を格納しておく。バイト数は最低
約1000から最大4000余バイトまでゞあり、2バイ
トを用いて記憶せられる。
F. Embodiment The embodiment described here is for storing the output waveform of a chromatograph. The chromatographic output is sampled, A/D converted, and integrated over a certain period of time. Conventionally, this accumulated data was stored using a fixed number of bytes. In this embodiment, the above data is not directly stored in memory, but the difference between the previous and subsequent data is taken and stored. The memory uses 1 to 4 bytes depending on the size of the difference. If there is no change in the chromatographic output, the difference is 0, but 1 byte is used even for 0. The differential data is stored in memory along with the number of bytes. Number of bytes is 1~
Since it is 4 bytes, 2 bits are used to store it. One block consists of 1000 pieces of data (differences), and the total number of bytes in that block is stored before and after each block in memory. The number of bytes ranges from a minimum of about 1000 to a maximum of over 4000 bytes, and is stored using 2 bytes.

このようにしてメモリに格納されたデータは次
のようにして読出される。バツフアメモリが用意
され、バツフアメモリには任意のブロツクの内容
が読込まれている。このブロツクは例えば前回読
出したデータの所属ブロツクである。バツフアメ
モリ内では各データ(この場合差分データ)は差
分データを積算して正規のデータに復原され、全
部4バイトで格納され、もちろん各データ毎のバ
イト数を表わすデータは不要である。バツフアメ
モリでは各データのバイト数が同一にしてあるの
で、バツフアメモリに読込まれたブロツク内のデ
ータなら何番目のデータであれ直ちにアクセスす
ることができる。バツフア内に格納されているブ
ロツクが指定されたブロツクでない場合には指定
されたブロツクをアクセスしてバツフアに読込め
ばよい。こゝで各ブロツクには前後にそのブロツ
ク内のデータのバイト数が記憶させてあるから、
作用の項で述べたように、メモリを何れの方向か
ら見て行つてもメモリ上の各ブロツクの長さが分
り、或るブロツクから指定されたブロツクを直ち
に探すことができる。
The data stored in the memory in this way is read out as follows. A buffer memory is prepared, and the contents of an arbitrary block are read into the buffer memory. This block is, for example, the block to which the previously read data belongs. In the buffer memory, each data (in this case, differential data) is restored to normal data by integrating the differential data, and is stored in 4 bytes in total, and of course, data representing the number of bytes for each data is unnecessary. Since each piece of data in the buffer memory has the same number of bytes, any data in a block read into the buffer memory can be accessed immediately regardless of the number of data. If the block stored in the buffer is not the specified block, the specified block can be accessed and read into the buffer. Since each block stores the number of bytes of data in that block before and after it,
As described in the section on operation, the length of each block in the memory can be determined no matter which direction the memory is viewed from, and a specified block can be immediately searched for from a certain block.

第2図は上述実施例におけるCPUの動作のフ
ローチヤートである。
FIG. 2 is a flowchart of the operation of the CPU in the above embodiment.

第2図Aはデータ書込み動作で、分析中(ブロ
ツクイで表わされる)はロ,ハ,ニのブロツクで
示される動作が繰返される(ブロツク右辺の2本
線は或る動作が繰返されていることを示す)。即
ち、データを取込む動作を1000データ分繰返し
ロ、各データは前述したように圧縮されているの
で、1000データの前後に1000データのバイト数を
付加して一ブロツクのデータとしハ、次のブロツ
クに移るニ。以上の動作を一単位として分析完了
まで繰返される。ブロツクロの動作内容はホ,ヘ
のブロツクで示される。ホのブロツクではサンプ
リングされたデータを一定時間積算している。積
算されたデータは前のデータとの差分を取り、差
分に応じて1〜4バイトを用いてメモリに書込む
ヘ。ホ,ヘの動作が1000個分行われるロ。ホの動
作は内容はト,チのブロツクで示される。データ
をサンプリングトし、これを一定時間積算チす
る。
Figure 2A shows a data write operation, and during analysis (represented by blocks), the operations shown by blocks B, C, and D are repeated (the two lines on the right side of the block indicate that a certain operation is being repeated). show). In other words, the operation of importing data is repeated for 1000 data. Since each data is compressed as mentioned above, the number of bytes of 1000 data is added before and after the 1000 data to form one block of data, and then the next Moving on to the block. The above operations are repeated as one unit until the analysis is completed. The operation details of the block are shown in blocks E and F. In the block (h), sampled data is integrated over a certain period of time. The difference between the accumulated data and the previous data is taken and written into memory using 1 to 4 bytes depending on the difference. 1000 movements of E and F are performed. The contents of the operation (e) are shown in blocks (g) and (h). Data is sampled and integrated over a certain period of time.

第2図Bはメモリに格納されたデータの読出し
の動作を示す。矢羽根の形のブロツクは条件動作
を示す。まずバツフアメモリが空か否かをチエツ
クするイ。空でない(NO)の場合はロの動作に
移つて指定されたデータがバツフア内にあるか否
かチエツクするロ。イの動作で判定がYESの場
合、動作はイからハに移る。ハにおいてはメモリ
から第1ブロツクのデータを正規化してバツフア
にストアする。正規化と云うのは、差分データを
順次加算してもとのデータに復元し、各データと
も一定バイト数(実施例では4バイト)のデータ
としてバツフアにストアすることである。ハの動
作を終れば動作はロに移る。ロの動作で指定され
たデータがバツフア内にあればニの動作に移つて
データの取出しが行われ、動作は終る。ロの動作
でバツフア内に指定されたデータがなければ
(NO)、相当するブロツクはバツフア内にストア
されているブロツクの前か後かをチエツクホす
る。前のときはメモリを前方向にブロツクサーチ
するヘ。後のときはメモリを後方にブロツクサー
チトする。所定のブロツクがサーチされたら、そ
のブロツクのデータを正規してバツフアにストア
チし、ブロツクロ,ニを経て動作は終る。
FIG. 2B shows the operation of reading data stored in memory. A feather-shaped block indicates a conditioned action. First, check whether the buffer memory is empty. If it is not empty (NO), move on to operation 2 and check whether the specified data is in the buffer. If the judgment is YES in action A, the action moves from A to C. In step C, the data of the first block is normalized from the memory and stored in the buffer. Normalization means to restore the original data by sequentially adding the difference data, and to store each data in a buffer as a fixed number of bytes (4 bytes in this embodiment). After completing the movement C, the movement moves to B. If the data specified in operation (b) is in the buffer, the process moves to operation (2), where the data is extracted, and the operation ends. If the specified data does not exist in the buffer (NO), check whether the corresponding block is before or after the block stored in the buffer. If it is before, perform a block search in the memory in the forward direction. If it is later, perform a block search backwards in memory. When a predetermined block is searched, the data of that block is normalized and stored in a buffer, and the operation ends after block 2 and 2.

ト 効果 本発明は上述したように、データをその大きさ
に応じてバイト数を変えて記憶させるのでメモリ
の必要容量を減らすことができ、一データ当りの
バイト数が不定であつても、一定個数のデータを
一ブロツクにして、そのブロツク内の総バイト数
を示してあるので、データの読出しはブロツク単
位で読出しデータの所属ブロツクをサーチし、そ
のブロツク内で指定データをサーチすればよいか
ら、メモリの先頭から一つずつデータを見て行く
必要がなく、高速でデータの読出しができる。
G. Effects As described above, the present invention stores data in different numbers of bytes depending on its size, so the required memory capacity can be reduced, and even if the number of bytes per piece of data is undefined, Since the number of data is set as one block and the total number of bytes in that block is shown, data can be read by searching for the block to which the read data belongs in block units, and then searching for specified data within that block. , there is no need to read data one by one from the beginning of the memory, and data can be read out at high speed.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明方式におけるメモリの内部構成
を示す図、第2図は本発明方式を実行するCPU
の動作のフローチヤート、第3図は記憶させよう
とする波形を例示するグラフである。
Figure 1 shows the internal structure of the memory in the method of the present invention, and Figure 2 shows the CPU that executes the method of the present invention.
FIG. 3 is a graph illustrating a waveform to be stored.

Claims (1)

【特許請求の範囲】[Claims] 1 データをその大小に応じて語長を変え、その
バイト数と共に順次メモリに格納すると共に、上
記データの一定個数分を一ブロツクとしてメモリ
上で上記ブロツク毎にそのブロツク内の総バイト
数を同ブロツクの前後に記入するようにし、デー
タの読出しは指定したデータが属するブロツクを
索出し、同ブロツク内で指定データを索出するよ
うにして行うデータ記憶方式。
1 The word length of the data is changed according to its size, and it is stored in memory sequentially along with the number of bytes, and the total number of bytes in the block is equalized for each block in the memory, with a certain number of data as one block. A data storage method in which data is written before and after a block, and data is read by searching for the block to which the specified data belongs, and then searching for the specified data within the same block.
JP27853584A 1984-12-25 1984-12-25 Data memory system Granted JPS61151426A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27853584A JPS61151426A (en) 1984-12-25 1984-12-25 Data memory system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27853584A JPS61151426A (en) 1984-12-25 1984-12-25 Data memory system

Publications (2)

Publication Number Publication Date
JPS61151426A JPS61151426A (en) 1986-07-10
JPH0460204B2 true JPH0460204B2 (en) 1992-09-25

Family

ID=17598619

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27853584A Granted JPS61151426A (en) 1984-12-25 1984-12-25 Data memory system

Country Status (1)

Country Link
JP (1) JPS61151426A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04150237A (en) * 1990-10-09 1992-05-22 Fujitsu Ten Ltd Data transmission method
JP2008058006A (en) * 2006-08-29 2008-03-13 Ricoh Elemex Corp Data memory device and program of gas meter

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5752939A (en) * 1980-09-11 1982-03-29 Fujitsu Ltd Data compression system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5752939A (en) * 1980-09-11 1982-03-29 Fujitsu Ltd Data compression system

Also Published As

Publication number Publication date
JPS61151426A (en) 1986-07-10

Similar Documents

Publication Publication Date Title
US5117495A (en) Method of sorting data records
CN105511802A (en) Buffer memory writing method and apparatus and synchronizing method and apparatus for disk cache region
WO1994019746B1 (en) Flash solid state drive emulating a disk drive to processing elements
CN109581502B (en) Seismic exploration data compression method and device and compression storage structure
US5890206A (en) Method of writing sequential data to a disc memory system having a fixed block architecture
JPH0460204B2 (en)
JPS6132695B2 (en)
JPS6155687B2 (en)
JP2822869B2 (en) Library file management device
JPS5745658A (en) Data storage system
EP0777392A3 (en) Information storage control method
SU567174A1 (en) Datacompressor
JP3439364B2 (en) Storage and retrieval methods for undefined length data
JPH05120064A (en) Trace acquisition system
JPH03280136A (en) Record positioning system for sequentially programmed file
SU1163359A1 (en) Buffer storage
JPH048816B2 (en)
CN117850682A (en) Disk management method based on bitmap under additional writing scene
SU1471216A1 (en) Multitrack magnetic digital recording playback device
JPH06282475A (en) Filing system for time-series data
JPH05210558A (en) High-speed file saving process system
JPS63187335A (en) Data selecting method
JPH0452560B2 (en)
JPH03260870A (en) Projection system for data base assist
JPH0397026A (en) Data sorter

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees