JP2008116351A - Data recorder - Google Patents

Data recorder Download PDF

Info

Publication number
JP2008116351A
JP2008116351A JP2006300410A JP2006300410A JP2008116351A JP 2008116351 A JP2008116351 A JP 2008116351A JP 2006300410 A JP2006300410 A JP 2006300410A JP 2006300410 A JP2006300410 A JP 2006300410A JP 2008116351 A JP2008116351 A JP 2008116351A
Authority
JP
Japan
Prior art keywords
data
measurement data
storage device
data recording
primary storage
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.)
Withdrawn
Application number
JP2006300410A
Other languages
Japanese (ja)
Inventor
Shinichi Fukada
晋一 深田
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2006300410A priority Critical patent/JP2008116351A/en
Publication of JP2008116351A publication Critical patent/JP2008116351A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Recording Measured Values (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data recorder capable of recording required data and utilizing a memory of small capacity. <P>SOLUTION: The data recorder comprises a primary storage device 10 for reading data by a destructive read method, a write-in control section 30 for performing the processing of writing a plurality of measuring data that is received in time series into the primary storage device, a secondary storage device 20 for holding the measuring data, and a determining section 40 for deciding whether the value of the measuring data has established a predetermined condition. The data recorder also comprises a data transfer processing section 50 for performing the processing of transferring, over a plurality number of times to the secondary storage device, one or a plurality of measuring data D2 acquired immediately near given measuring data of the measuring data that is acquired before the given measuring data and written in the primary storage device, when the value of the given measuring data D1 establishes the predetermined condition. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、データ記録装置に関する。   The present invention relates to a data recording apparatus.

温度や、振動、明るさ、音、画像などのデータを連続的に取得して記録するデータ記録装置(データログ装置)が知られており、例えば食品の温度管理や、ドライブレコーダやフライトレコーダ、ボイスレコーダ、地震計などに利用されている。   Data recording devices (data log devices) that continuously acquire and record data such as temperature, vibration, brightness, sound, and images are known. For example, food temperature management, drive recorders, flight recorders, Used for voice recorders, seismometers, etc.

これらのデータ記録装置では、測定されたデータの値が所定の範囲を超えた場合、測定対象に対して何らかのイベントが発生したと判断することができる。そして、当該データ以降に取得されたデータを解析処理すれば、測定対象の、イベント発生後の様子を知ることができる。また、当該データよりも前の一定期間内に取得されたデータを解析処理すれば、測定対象の、イベント発生前の様子を知ることができる。
特開2005−259041号公報
In these data recording devices, when the value of the measured data exceeds a predetermined range, it can be determined that some event has occurred for the measurement target. And if the data acquired after the said data are analyzed, the state after the event occurrence of the measurement object can be known. In addition, if the data acquired within a certain period before the data is analyzed, the state of the measurement target before the occurrence of the event can be known.
JP 2005-259041 A

これらのデータ記録装置において、データを測定(記録)する時間間隔を短くすれば、データの変化を正確に記録することができる。しかし、データの測定時間間隔が短くなればデータの数が増えるため、これを記録するためには容量の大きなメモリが必要になる。   In these data recording apparatuses, if the time interval for measuring (recording) data is shortened, the change in data can be recorded accurately. However, since the number of data increases if the data measurement time interval is shortened, a large-capacity memory is required to record the data.

これに対して、データを測定する時間間隔を長くすれば、データの数が減るため、容量の小さいメモリを利用することができる。しかし、データの測定間隔が長くなれば、細かいデータの変化を記録することが難しくなる。   On the other hand, if the time interval for measuring data is lengthened, the number of data decreases, so that a memory with a small capacity can be used. However, if the data measurement interval becomes long, it becomes difficult to record fine data changes.

また、イベント発生の様子を知るためには、イベント発生の前後のデータの変化を解析することが好ましいが、イベント発生の前後の測定データを記録するためには、容量の大きなメモリが必要になる。   In order to know the state of event occurrence, it is preferable to analyze changes in data before and after the event occurrence, but in order to record measurement data before and after the event occurrence, a large-capacity memory is required. .

本発明の目的は、必要なデータを記録することができ、かつ、容量の小さいメモリを利用することが可能なデータ記録装置を提供することにある。   An object of the present invention is to provide a data recording apparatus capable of recording necessary data and using a memory having a small capacity.

(1)本発明に係るデータ記録装置は、
破壊読出し方式でデータの読み出しが行われる一次記憶装置と、
時系列に受け取った複数の測定データを前記一次記憶装置に書き込む処理を行う書き込み制御部と、
前記測定データを保存するための二次記憶装置と、
前記測定データの値が所定の条件を満たしているか否かを判断する判断部と、
所与の測定データの値が前記所定の条件を満たしている場合に、前記所与の測定データよりも前に取得されて前記一次記憶装置に書き込まれている測定データのうち前記所与の測定データの直近に取得された1個又は複数個の測定データを、2回以上に分けて前記二次記憶装置に転送する処理を行うデータ転送処理部と、
を含む。
(1) A data recording apparatus according to the present invention comprises:
A primary storage device from which data is read in a destructive read mode;
A write controller that performs a process of writing a plurality of measurement data received in time series into the primary storage device;
A secondary storage device for storing the measurement data;
A determination unit for determining whether the value of the measurement data satisfies a predetermined condition;
If the value of the given measurement data satisfies the predetermined condition, the given measurement among the measurement data acquired and written to the primary storage device before the given measurement data A data transfer processing unit for performing a process of transferring one or a plurality of measurement data acquired most recently to data to the secondary storage device in two or more times;
including.

本発明によると、測定データの値が所定の条件を満たしているか否かを判断し、所定の条件を満たしている場合には、当該データの前に取得された測定データを、一次記憶装置から二次記憶装置に転送する処理を行う。ここで、所定の条件を満たすデータとは、測定対象に異常が発生していることを示すデータである。すなわち、本発明によると、測定対象に異常が発生していることを示すデータが取得されると、当該データの前に取得された測定データを、一次記憶装置から二次記憶装置に転送して保存する。そのため、本発明によると、測定対象に発生した異常の予兆を知らせるデータを保存することができる。   According to the present invention, it is determined whether or not the value of the measurement data satisfies a predetermined condition, and when the predetermined condition is satisfied, the measurement data acquired before the data is read from the primary storage device. A process of transferring to the secondary storage device is performed. Here, the data satisfying the predetermined condition is data indicating that an abnormality has occurred in the measurement target. That is, according to the present invention, when data indicating that an abnormality has occurred in the measurement target is acquired, the measurement data acquired before the data is transferred from the primary storage device to the secondary storage device. save. Therefore, according to the present invention, it is possible to store data that informs a sign of an abnormality that has occurred in a measurement target.

また、本発明では、一次記憶装置(書き込み用のメモリとしての破壊読出しメモリ)と、二次記憶装置(保存用のメモリとしての不揮発性メモリ)を利用することから、特に一次記憶装置として容量の小さいメモリを利用した場合でも、必要なデータを保存することが可能になる。   In the present invention, since a primary storage device (destructive read memory as a memory for writing) and a secondary storage device (nonvolatile memory as a memory for storage) are used, the capacity of the primary storage device is particularly large. Even when a small memory is used, necessary data can be stored.

また、本発明では、データ転送処理部は、一次記憶装置に書き込まれている1個又は複数個の測定データを、2回以上に分けて転送する。データ転送処理部は、例えば、M個(Mは2以上の整数)の測定データを、1データずつM回に分けて転送してもよい。これによると、データ転送時に不具合が発生した場合でも、損傷するデータを最小限にすることができる。なお、このデータ記録装置で1データずつデータを転送する場合、新しいデータの書き込みタイミングに合わせて転送処理を行ってもよい。   In the present invention, the data transfer processing unit transfers one or a plurality of measurement data written in the primary storage device in two or more times. For example, the data transfer processing unit may transfer M pieces of measurement data (M is an integer of 2 or more) by dividing each piece of data M times. According to this, even if a failure occurs during data transfer, the damaged data can be minimized. When data is transferred one by one in this data recording apparatus, the transfer process may be performed in accordance with the new data write timing.

あるいは、データ転送処理部は、一次記憶装置に書き込まれている1つの測定データのみを、二次記憶装置に転送してもよい。このとき、当該1つの測定データは、当該測定データよりも小さいデータ単位に分割されて、複数回の転送処理によって転送される。   Alternatively, the data transfer processing unit may transfer only one measurement data written in the primary storage device to the secondary storage device. At this time, the one measurement data is divided into data units smaller than the measurement data and transferred by a plurality of transfer processes.

(2)このデータ記録装置において、
前記データ転送処理部は、
所与の測定データの値が前記所定の条件を満たしている場合に、前記所与の測定データよりも後に測定されて前記一次記憶装置に書き込まれた測定データのうち前記所与の測定データの直近に取得された1個又は複数個の測定データを前記二次記憶装置に転送してもよい。
(2) In this data recording apparatus,
The data transfer processing unit
If the value of the given measurement data satisfies the predetermined condition, the measurement data of the given measurement data out of the measurement data measured after the given measurement data and written to the primary storage device One or more measurement data acquired most recently may be transferred to the secondary storage device.

これにより、イベント発生後の測定データを保存することが可能になる。   Thereby, it becomes possible to save the measurement data after the event occurrence.

なお、この発明では、データ転送処理部は、N個(Nは2以上の整数)の測定データを、複数回(例えばN回)に分けて転送してもよい。あるいは、1個の測定データを、複数回に分けて転送してもよい。   In the present invention, the data transfer processing unit may transfer N pieces of measurement data (N is an integer of 2 or more) divided into a plurality of times (for example, N times). Alternatively, one piece of measurement data may be transferred in a plurality of times.

(3)このデータ記録装置において、
前記書き込み制御部は、
所与の測定データの値が前記所定の条件を満たしている場合に、前記所与の測定データよりも後に受け取った所定個数の測定データ、又は、前記所与の測定データの取得後の所定期間内に受け取った1個又は複数個の測定データを、前記二次記憶装置に書き込んでもよい。
(3) In this data recording apparatus,
The write control unit
When a value of given measurement data satisfies the predetermined condition, a predetermined number of measurement data received after the given measurement data, or a predetermined period after acquisition of the given measurement data One or a plurality of measurement data received therein may be written in the secondary storage device.

これにより、イベント発生後の測定データを保存することが可能になる。   Thereby, it becomes possible to save the measurement data after the event occurrence.

(4)このデータ記録装置において、
前記判断部は、
前記所定の条件として予め設定されている条件を用いて判断を行ってもよい。
(4) In this data recording apparatus,
The determination unit
The determination may be made using a condition set in advance as the predetermined condition.

(5)このデータ記録装置において、
前記判断部は、
前記測定データに基づいて前記所定の条件を設定し、判断を行ってもよい。
(5) In this data recording apparatus,
The determination unit
The predetermined condition may be set based on the measurement data to make a determination.

(6)このデータ記録装置において、
前記所定の条件を満たす測定データが連続して取得されたことを検出し、検出された場合に、その旨を通知する通知信号を生成する処理を行う通知部をさらに含んでもよい。
(6) In this data recording apparatus,
The information processing apparatus may further include a notification unit that detects that measurement data satisfying the predetermined condition has been continuously acquired, and generates a notification signal that notifies the measurement data when it is detected.

なお、通知信号とは、ユーザとって知覚可能なアラームを発生させるアラーム発生装置を制御する信号であってもよい。これによると、ユーザは、アラーム発生装置からのアラームに基づいて、データ記録装置の異常を知覚することができる。ここで、アラーム発生装置とは、スピーカなどのアラーム音を発生させる装置であってもよい。あるいは、アラーム発生装置は、LEDなどの光を発生させる装置(素子)であってもよい。あるいは、アラーム発生装置は、アラーム画像を表示させるディスプレーであってもよい。   The notification signal may be a signal for controlling an alarm generation device that generates an alarm that can be perceived by the user. According to this, the user can perceive abnormality of the data recording device based on the alarm from the alarm generation device. Here, the alarm generation device may be a device that generates an alarm sound such as a speaker. Alternatively, the alarm generation device may be a device (element) that generates light such as an LED. Alternatively, the alarm generation device may be a display that displays an alarm image.

(7)このデータ記録装置において、
前記書き込み制御部は、
前記測定データが所定の書き込み停止条件を満たしているか否か判断し、前記所与の書き込み停止条件を満たしている場合に、前記一次記憶装置へのデータの書き込みを停止させる制御を行う書き込み停止処理部を含んでもよい。
(7) In this data recording apparatus,
The write control unit
Write stop processing for determining whether or not the measurement data satisfies a predetermined write stop condition, and performing control to stop data writing to the primary storage device when the given write stop condition is satisfied Part may be included.

これにより、データの上書きや、誤動作を防ぐことができるため、既に保存されているデータの消失を防止することができる。   As a result, overwriting of data and malfunction can be prevented, so that loss of already stored data can be prevented.

(8)このデータ記録装置において、
前記データ転送処理部は、
所与の測定データが所定の取得条件を満たしているか否か判定し、満たしている場合には、前記所与の測定データよりも前に取得されて前記一次記憶装置に書き込まれている測定データのうち前記所与の測定データの直近に取得された1個又は複数個の測定データを、2回以上に分けて前記二次記憶装置に転送してもよい。
(8) In this data recording apparatus,
The data transfer processing unit
It is determined whether or not the given measurement data satisfies a predetermined acquisition condition. If the measurement data is satisfied, the measurement data acquired before the given measurement data and written in the primary storage device Among them, one or a plurality of measurement data acquired in the immediate vicinity of the given measurement data may be divided into two or more times and transferred to the secondary storage device.

ここで、所定の取得条件とは、測定データの値とは無関係な、測定データの取得タイミングなどによって規定される条件である。本発明では、例えば、K個(KはMよりも大きい整数)の測定データが取得される度に、M個の測定データを一次記憶装置から二次記憶装置に転送してもよい。なお、本発明の変形例として、所定の取得条件を満たす測定データの後に取得される1個又は複数個の測定データを、二次記憶装置に保存してもよい。   Here, the predetermined acquisition condition is a condition defined by measurement data acquisition timing or the like that is unrelated to the measurement data value. In the present invention, for example, every time K pieces of measurement data (K is an integer larger than M) are acquired, M pieces of measurement data may be transferred from the primary storage device to the secondary storage device. As a modification of the present invention, one or a plurality of measurement data acquired after measurement data satisfying a predetermined acquisition condition may be stored in the secondary storage device.

(9)このデータ記録装置において、
前記一次記憶装置及び前記二次記憶装置の少なくとも一方から前記測定データを読み出すデータ読み出し部をさらに含んでもよい。
(9) In this data recording apparatus,
You may further include the data reading part which reads the said measurement data from at least one of the said primary storage device and the said secondary storage device.

(10)このデータ記録装置において、
前記一次記憶装置は、強誘電体メモリであってもよい。
(10) In this data recording apparatus,
The primary storage device may be a ferroelectric memory.

強誘電体メモリは、一般的に、書き換え可能な回数が多く、かつ、書き換えに要する時間が短いことが知られている。そのため、第一次の記憶装置(破壊読出しメモリ)として強誘電体メモリを利用することで、書き換え回数の制限、及び、データの取得時間間隔の制限が小さいデータ記録装置を提供することができる。   It is known that a ferroelectric memory generally has a large number of rewritable times and a short time required for rewriting. Therefore, by using a ferroelectric memory as the primary storage device (destructive read memory), it is possible to provide a data recording device in which the number of rewrites and the data acquisition time interval are small.

(11)このデータ記録装置において、
前記二次記憶装置は、不揮発性メモリであってもよい。
(11) In this data recording apparatus,
The secondary storage device may be a nonvolatile memory.

これによると、記憶装置への電力の供給が停止した場合でも、既に保存されているデータの消失を防止することができる。   According to this, even when the supply of power to the storage device is stopped, it is possible to prevent the loss of already stored data.

以下、本発明を適用した実施の形態について図面を参照して説明する。ただし、本発明は以下の実施の形態に限定されるものではない。また、本発明は、以下の内容を自由に組み合わせたものを含むものとする。   Embodiments to which the present invention is applied will be described below with reference to the drawings. However, the present invention is not limited to the following embodiments. Moreover, this invention shall include what combined the following content freely.

図1(A)〜図5は、本発明を適用した実施の形態に係るデータ記録装置(データログ装置)について説明するための図である。なお、本実施の形態では、データ記録装置1は、時系列に取得された複数の測定データをメモリに書き込む装置として機能する。   FIG. 1A to FIG. 5 are diagrams for explaining a data recording apparatus (data log apparatus) according to an embodiment to which the present invention is applied. In the present embodiment, the data recording device 1 functions as a device that writes a plurality of measurement data acquired in time series into a memory.

(1)データ記録装置の構成
以下、図1(A)及び図1(B)を参照して、本発明を適用した実施の形態に係るデータ記録装置1について説明する。ここで、図1(A)はデータ記録装置1のブロック図であり、図1(B)は一次記憶装置10からデータが転送される様子を説明するための模式図である。
(1) Configuration of Data Recording Device Hereinafter, a data recording device 1 according to an embodiment to which the present invention is applied will be described with reference to FIGS. 1 (A) and 1 (B). Here, FIG. 1A is a block diagram of the data recording apparatus 1, and FIG. 1B is a schematic diagram for explaining how data is transferred from the primary storage device 10.

本実施の形態に係るデータ記録装置1は、一次記憶装置10を含む。一次記憶装置10は、破壊読出し方式でデータの読み出しが行われるメモリである。すなわち、データ記録装置1によると、一次記憶装置10からデータを読み出す処理が行われると、読み出されたデータを一次記憶装置10から再度読み出すことができなくなる。一次記憶装置10は、例えば、強誘電体メモリ(FeRAM)であってもよい。ここで、強誘電体メモリとは、記憶素子に強誘電体物質を含んだメモリである。強誘電体メモリは、強誘電体物質を有するキャパシタ(強誘電体キャパシタ)を含む構造をなしていてもよい。なお、強誘電体キャパシタは、対向電極と、当該対向電極の間に設けられた強誘電体物質とを含む構造をなしていてもよい。本発明に適用可能な強誘電体物質は特に限定されるものではないが、例えばPb、Zr、Tiを構成元素として含む酸化物からなるPZT系強誘電体材料であってもよい。あるいは、強誘電体物質として、SBT系、BST系、BIT系、BLT系などのいずれかの材料を適用してもよい。   The data recording device 1 according to the present embodiment includes a primary storage device 10. The primary storage device 10 is a memory from which data is read by a destructive read method. That is, according to the data recording device 1, when the process of reading data from the primary storage device 10 is performed, the read data cannot be read from the primary storage device 10 again. The primary storage device 10 may be a ferroelectric memory (FeRAM), for example. Here, the ferroelectric memory is a memory in which a storage element contains a ferroelectric substance. The ferroelectric memory may have a structure including a capacitor (ferroelectric capacitor) having a ferroelectric material. The ferroelectric capacitor may have a structure including a counter electrode and a ferroelectric substance provided between the counter electrodes. The ferroelectric substance applicable to the present invention is not particularly limited, but may be a PZT ferroelectric material made of an oxide containing Pb, Zr, Ti as a constituent element, for example. Alternatively, any material such as SBT, BST, BIT, or BLT may be applied as the ferroelectric substance.

本実施の形態に係るデータ記録装置1は、二次記憶装置20を含む。二次記憶装置20は、測定データを保存するためのメモリである。二次記憶装置20は、不揮発性メモリであってもよい。なお、不揮発性メモリとは、電源を切っても記憶した情報が消失しない記憶装置、すなわち、情報を保持するためのエネルギーを外部から供給する必要のない記憶装置である。不揮発性メモリを利用すれば、電源の供給がストップした場合でも、取得した情報を保持することができる。例えば、磁気ヒステリシスを応用したメモリなどが、不揮発性メモリに相当する。なお、強誘電体メモリも、その特性から、不揮発性メモリの一種ととらえることができる。   The data recording apparatus 1 according to the present embodiment includes a secondary storage device 20. The secondary storage device 20 is a memory for storing measurement data. The secondary storage device 20 may be a nonvolatile memory. Note that the nonvolatile memory is a storage device in which stored information is not lost even when the power is turned off, that is, a storage device that does not need to supply energy for holding information from the outside. If the nonvolatile memory is used, the acquired information can be retained even when the supply of power is stopped. For example, a memory using magnetic hysteresis corresponds to a nonvolatile memory. A ferroelectric memory can also be regarded as a kind of nonvolatile memory because of its characteristics.

本実施の形態では、一次記憶装置10と二次記憶装置20とをあわせて、記憶部と称してもよい。あるいは、本実施の形態では、一次記憶装置10及び二次記憶装置20、並びに、後述する判断部40、データ転送処理部50をあわせて、データ記憶装置と称してもよい。   In the present embodiment, the primary storage device 10 and the secondary storage device 20 may be collectively referred to as a storage unit. Alternatively, in the present embodiment, the primary storage device 10 and the secondary storage device 20, and the determination unit 40 and the data transfer processing unit 50 described later may be collectively referred to as a data storage device.

本実施の形態に係るデータ記録装置1は、書き込み制御部30を含む。書き込み制御部30は、測定データを記憶部へ書き込む動作を制御する。書き込み制御部30は、一次記憶装置10にデータを書き込む動作を行う。書き込み制御部30は、二次記憶装置20にデータを書き込む動作を行うように構成されていてもよい。   The data recording apparatus 1 according to the present embodiment includes a write control unit 30. The write control unit 30 controls the operation of writing measurement data to the storage unit. The write control unit 30 performs an operation of writing data to the primary storage device 10. The write control unit 30 may be configured to perform an operation of writing data to the secondary storage device 20.

書き込み制御部30は、アドレス指定部32を含む。アドレス指定部32は、記憶部のアドレスを指定する。そして、書き込み制御部30は、アドレス指定部32が指定するアドレスにデータを書き込む。アドレス指定部32は、測定データの書き込み先として、一次記憶装置10のアドレスのみを指定するように構成されていてもよい。あるいは、アドレス指定部32は、測定データの書き込み先として、二次記憶装置20のアドレスを指定することが可能な構成をなしていてもよい。   The write control unit 30 includes an address specifying unit 32. The address specifying unit 32 specifies an address of the storage unit. Then, the write control unit 30 writes data to the address specified by the address specifying unit 32. The address specifying unit 32 may be configured to specify only the address of the primary storage device 10 as the measurement data write destination. Alternatively, the address specifying unit 32 may be configured to be able to specify the address of the secondary storage device 20 as the measurement data write destination.

書き込み制御部30(アドレス指定部32)は、一次記憶装置10のアドレスを特定し、特定されたアドレスに測定データを書き込み、次いで、当該アドレスに例えば測定データのデータサイズを加えて(インクリメントして)新しいアドレスを生成し、当該新しいアドレスに新しく取得された測定データを書き込んでもよい。これらの動作を繰り返すことで、一次記憶装置10に測定データを書き込むことができる。   The write control unit 30 (address specifying unit 32) specifies the address of the primary storage device 10, writes measurement data to the specified address, and then adds (increments) the data size of the measurement data to the address. It is also possible to generate a new address and write the newly acquired measurement data to the new address. By repeating these operations, measurement data can be written in the primary storage device 10.

書き込み制御部30は、書き込み停止処理部34を含んでいてもよい。書き込み停止処理部34は、記憶部(一次記憶装置10及び二次記憶装置20)への測定データの書き込みを停止させる。書き込み停止処理部34は、測定データが所定の書き込み停止条件を満たしているか否かを判断し、当該書き込み停止条件を満たしている場合に、記憶部へのデータの書き込みを停止させる。書き込み停止処理部34は、書き込み停止条件を満たしているデータの取得後、直ちに書き込み動作を停止してもよい。あるいは、書き込み停止処理部34は、書き込み停止条件を満たしているデータの取得後、所定の時間が経過した後に、データの書き込みを停止してもよい。   The write control unit 30 may include a write stop processing unit 34. The write stop processing unit 34 stops writing measurement data to the storage units (the primary storage device 10 and the secondary storage device 20). The write stop processing unit 34 determines whether the measurement data satisfies a predetermined write stop condition, and stops writing data to the storage unit when the write stop condition is satisfied. The write stop processing unit 34 may stop the write operation immediately after obtaining data that satisfies the write stop condition. Alternatively, the write stop processing unit 34 may stop writing data after a predetermined time has elapsed after acquiring data that satisfies the write stop condition.

なお、書き込み制御部30は、測定データの値が所定の条件を満たしているか否かを判定する機能を有していてもよい。ここで、「所定の条件」とは、測定データがイベントの発生を示すデータであるか否かを判断するための上限値及び下限値の少なくとも一方を規定する閾値である。本実施の形態では、測定データの値が所定の条件を満たす場合に、測定対象に異常(イベント)が発生していると判断する。逆に、測定データの値が所定の条件を満たさない場合に、測定対象が正常であると判断する。この、「所定の条件」は、例えば、測定対象に基づいて予め定められている値であってもよい。あるいは、「所定の条件」は、測定データに基づいて設定される値であってもよい。例えば、直前に測定されたデータとの対比において、測定データが所定の条件を満たしているか否かを判断してもよい。   Note that the write control unit 30 may have a function of determining whether the value of measurement data satisfies a predetermined condition. Here, the “predetermined condition” is a threshold value that defines at least one of an upper limit value and a lower limit value for determining whether or not the measurement data is data indicating the occurrence of an event. In the present embodiment, it is determined that an abnormality (event) has occurred in the measurement target when the value of the measurement data satisfies a predetermined condition. Conversely, when the value of the measurement data does not satisfy a predetermined condition, it is determined that the measurement target is normal. This “predetermined condition” may be, for example, a value determined in advance based on the measurement target. Alternatively, the “predetermined condition” may be a value set based on measurement data. For example, it may be determined whether the measurement data satisfies a predetermined condition in comparison with the data measured immediately before.

また、書き込み制御部30は、測定データの値が所定の条件を満たしているか否かの判定結果を示す判定フラグを生成する機能を有していてもよい。   Further, the writing control unit 30 may have a function of generating a determination flag indicating a determination result as to whether or not the value of the measurement data satisfies a predetermined condition.

そして、書き込み制御部30は、判定フラグをデータ記憶装置に書き込む制御を行ってもよい。書き込み制御部30は、判定フラグを、測定データとあわせて一次記憶装置10に書き込んでもよい。あるいは、書き込み制御部30は、判定フラグを一次記憶装置10に書き込まず、判断部40に送るように構成されていてもよい。   Then, the write control unit 30 may perform control to write the determination flag in the data storage device. The writing control unit 30 may write the determination flag together with the measurement data in the primary storage device 10. Alternatively, the write control unit 30 may be configured to send the determination flag to the determination unit 40 without writing the determination flag to the primary storage device 10.

本実施の形態に係るデータ記録装置は、測定データの値が所定の条件を満たしているか否かを判断する判断部40を含む。判断部40は、書き込み制御部30で生成された判定フラグに基づいて、測定データの値が所定の条件を満たしているか否かを判断してもよい。ただし、判断部40は、測定データを直接受け付けて、当該測定データが所定の条件を満たすか否かを判断してもよい。そして、判断部40は、後述するデータ転送処理部50の動作を制御する制御信号を生成してもよい。   The data recording apparatus according to the present embodiment includes a determination unit 40 that determines whether the value of measurement data satisfies a predetermined condition. The determination unit 40 may determine whether the value of the measurement data satisfies a predetermined condition based on the determination flag generated by the write control unit 30. However, the determination unit 40 may directly receive measurement data and determine whether the measurement data satisfies a predetermined condition. And the determination part 40 may produce | generate the control signal which controls operation | movement of the data transfer process part 50 mentioned later.

本実施の形態に係るデータ記録装置は、データ転送処理部50を含む。データ転送処理部50は、図1(B)に示すように、一次記憶装置10に書き込まれた1個又は複数個の測定データを、二次記憶装置20に転送する処理を行う。データ転送処理部50は、データ記憶装置を制御して、一次記憶装置10に書き込まれた測定データを二次記憶装置20に転送させる処理を行ってもよい。データ転送処理部50は、所与の測定データの値が所定の条件を満たしている場合に(所定の条件を満たす測定データD1が取得された場合に)、当該所与の測定データよりも前に取得されて一次記憶装置10に書き込まれている測定データのうち、所与の測定データの直近(直前)に取得された1個又は複数個の測定データD2を、二次記憶装置20に転送する(図1(B)参照)。なお、測定データD2は、所定の条件を満たす測定データD1の取得前(直前)の所定の期間内に測定されたデータととらえることができる。すなわち、このデータ記録装置によると、測定対象の異常の発生を示す測定データ(測定データD1)が取得されると、異常発生の前の所定の期間に取得された測定データD2が、一次記憶装置10から二次記憶装置20に転送され、二次記憶装置20で保存される。   The data recording apparatus according to the present embodiment includes a data transfer processing unit 50. As shown in FIG. 1B, the data transfer processing unit 50 performs a process of transferring one or a plurality of measurement data written in the primary storage device 10 to the secondary storage device 20. The data transfer processing unit 50 may control the data storage device to perform processing for transferring the measurement data written in the primary storage device 10 to the secondary storage device 20. When the value of the given measurement data satisfies a predetermined condition (when the measurement data D1 satisfying the predetermined condition is acquired), the data transfer processing unit 50 precedes the given measurement data. Among the measurement data acquired and written in the primary storage device 10, one or a plurality of measurement data D <b> 2 acquired immediately (immediately before) the given measurement data is transferred to the secondary storage device 20. (See FIG. 1B). The measurement data D2 can be regarded as data measured within a predetermined period before (immediately before) acquisition of the measurement data D1 that satisfies a predetermined condition. That is, according to this data recording device, when the measurement data (measurement data D1) indicating the occurrence of the abnormality of the measurement target is acquired, the measurement data D2 acquired in the predetermined period before the occurrence of the abnormality is the primary storage device. 10 is transferred to the secondary storage device 20 and stored in the secondary storage device 20.

データ転送処理部50は、1個又は複数個の測定データD2を、複数回(2回以上)に分けて転送する。データ転送処理部50は、例えば、M個(Mは2以上の整数)の測定データD2を、1データずつM回に分けて転送してもよい。このとき、データ転送処理部50は、一次記憶装置10に新しいデータが書き込まれるタイミングにあわせて、1データずつ転送する処理を行ってもよい。ただし、データ転送処理部50は、一次記憶装置10にデータが書き込まれるタイミングと無関係に、データを転送する処理を行ってもよい。あるいは、データ転送処理部50は、M個の測定データD2を、Mよりも少ない複数のデータ毎に転送してもよい。あるいは、データ転送処理部50は、1個又はM個の測定データD2を、1つの測定データよりも小さいデータ単位で転送してもよい。   The data transfer processing unit 50 transfers one or a plurality of measurement data D2 in a plurality of times (two times or more). For example, the data transfer processing unit 50 may transfer M pieces of measurement data D2 (M is an integer of 2 or more) by dividing each piece of data M times. At this time, the data transfer processing unit 50 may perform a process of transferring data one by one in accordance with the timing at which new data is written to the primary storage device 10. However, the data transfer processing unit 50 may perform a process of transferring data regardless of the timing at which the data is written to the primary storage device 10. Alternatively, the data transfer processing unit 50 may transfer M pieces of measurement data D2 for each of a plurality of pieces of data smaller than M. Alternatively, the data transfer processing unit 50 may transfer one or M pieces of measurement data D2 in a data unit smaller than one measurement data.

なお、データ転送処理部50は、所定の条件を満たす測定データD1の後に取得されて一次記憶装置10に書き込まれている測定データを二次記憶装置20に転送するように構成されていてもよい。ここで、データ転送処理部50は、所定の条件を満たす測定データD1よりも後に測定されて一次記憶装置10に書き込まれた測定データのうち、所定の条件を満たす測定データD1の直近(直後)の1個又は複数個のデータを転送するように構成されていてもよい。すなわち、このデータ記録装置は、測定対象の異常の発生を示す測定データが取得されると、異常発生の後(直後)の所定の期間に取得されたデータを、一次記憶装置10から二次記憶装置20に転送するように構成されていてもよい。データ転送処理部50は、異常発生の後(直後)に取得されたN個(Nは2以上の整数)の測定データを、1データずつN回に分けて転送してもよい。   The data transfer processing unit 50 may be configured to transfer the measurement data acquired after the measurement data D1 that satisfies a predetermined condition and written in the primary storage device 10 to the secondary storage device 20. . Here, the data transfer processing unit 50 immediately (immediately after) the measurement data D1 satisfying the predetermined condition among the measurement data measured after the measurement data D1 satisfying the predetermined condition and written in the primary storage device 10. One or a plurality of data may be transferred. That is, when the measurement data indicating the occurrence of the abnormality of the measurement target is acquired, the data recording device stores the data acquired in a predetermined period after the occurrence of the abnormality (immediately) from the primary storage device 10 into the secondary storage. It may be configured to forward to the device 20. The data transfer processing unit 50 may transfer N pieces of measurement data (N is an integer equal to or greater than 2) acquired after (immediately after) occurrence of an abnormality in N pieces of data.

また、データ転送処理部50は、所定の条件を満たす測定データD1(測定対象の異常の発生を示すデータ)を、二次記憶装置20に転送してもよい。   Further, the data transfer processing unit 50 may transfer measurement data D1 that satisfies a predetermined condition (data indicating the occurrence of abnormality of the measurement target) to the secondary storage device 20.

データ転送処理部50は、一次記憶装置のアドレスのうち二次記憶装置に転送される測定データD2が格納されたアドレス(転送データ格納アドレス)を指定し、二次記憶装置のアドレスのうち転送データが書き込まれるアドレス(転送先アドレス)を指定し、転送データ格納アドレスに格納された情報を、転送先アドレスに転送する処理を行ってもよい。   The data transfer processing unit 50 designates an address (transfer data storage address) in which measurement data D2 to be transferred to the secondary storage device is stored among the addresses of the primary storage device, and transfer data among the addresses of the secondary storage device The address (transfer destination address) to be written may be designated and information stored in the transfer data storage address may be transferred to the transfer destination address.

データ転送処理部50は、判断部40からの信号(制御信号)に基づいて、データ転送処理を行ってもよい。あるいは、データ転送処理部50は、書き込み制御部30で生成された判定フラグを直接受け取って、データ転送処理を行うか否かを判定し、データ転送処理を制御してもよい。この場合、データ転送処理部50は、判断部を含んで構成されているととらえてもよい。   The data transfer processing unit 50 may perform data transfer processing based on a signal (control signal) from the determination unit 40. Alternatively, the data transfer processing unit 50 may directly receive the determination flag generated by the write control unit 30, determine whether to perform the data transfer process, and control the data transfer process. In this case, the data transfer processing unit 50 may be regarded as including a determination unit.

本実施の形態に係るデータ記録装置1は、所定の条件を満たす測定データD1が連続して取得されたことを検出し、検出された場合にその旨を通知する通知信号を生成する処理を行う通知部をさらに含んでもよい。通知部は、例えば、所定の条件を満たす測定データD1が所定の個数連続して取得されたときに、通知信号を生成するように構成されていてもよい。あるいは、通知部は、所定の条件を満たす測定データD1が所定の期間連続して取得されたときに、通知信号を生成するように構成されていてもよい。ただし、通知部は、所定の条件を満たす測定データD1(測定対象の異常の発生を示す測定データ)が一つでも取得された場合に、通知信号を生成する処理を行う装置であってもよい。   The data recording apparatus 1 according to the present embodiment detects that measurement data D1 satisfying a predetermined condition has been continuously acquired, and performs processing to generate a notification signal that notifies that when it has been detected. A notification unit may be further included. The notification unit may be configured to generate a notification signal when, for example, a predetermined number of pieces of measurement data D1 satisfying a predetermined condition are acquired. Alternatively, the notification unit may be configured to generate a notification signal when measurement data D1 that satisfies a predetermined condition is acquired continuously for a predetermined period. However, the notification unit may be a device that performs a process of generating a notification signal when at least one piece of measurement data D1 (measurement data indicating the occurrence of abnormality of the measurement target) that satisfies a predetermined condition is acquired. .

そして、データ記録装置1は、ユーザが知覚可能なアラームを発生させるアラーム発生装置をさらに含んでいてもよい。アラーム発生装置は、通知信号に基づいて、アラームを発生させる装置であってもよい。アラーム発生装置は、スピーカなどのアラーム音を発生させる装置であってもよい。あるいは、アラーム発生装置は、LEDなどの光を発生させる装置(素子)であってもよい。あるいは、アラーム発生装置は、アラーム画像を表示させるディスプレーであってもよい。   The data recording device 1 may further include an alarm generation device that generates an alarm that can be perceived by the user. The alarm generation device may be a device that generates an alarm based on a notification signal. The alarm generation device may be a device that generates an alarm sound such as a speaker. Alternatively, the alarm generation device may be a device (element) that generates light such as an LED. Alternatively, the alarm generation device may be a display that displays an alarm image.

また、本実施の形態に係るデータ記録装置1は、記憶部からデータを読み出すデータ読み出し部を含んでいてもよい。データ読み出し部は、一次記憶装置10及び二次記憶装置20の少なくとも一方に書き込まれたデータを読み出すことができるように構成されていてもよい。   In addition, the data recording apparatus 1 according to the present embodiment may include a data reading unit that reads data from the storage unit. The data reading unit may be configured to read data written in at least one of the primary storage device 10 and the secondary storage device 20.

次に、本実施の形態に係るデータ記録装置1の具体的な装置構成について説明する。図2は、データ記録装置1の具体的な装置構成の一例を示すブロック図である。   Next, a specific apparatus configuration of the data recording apparatus 1 according to the present embodiment will be described. FIG. 2 is a block diagram showing an example of a specific device configuration of the data recording device 1.

データ記録装置1は、CPU100を有する。CPU100は、データ記録装置1の動作を制御する。   The data recording apparatus 1 has a CPU 100. The CPU 100 controls the operation of the data recording device 1.

CPU100は、例えば、メモリの測定データの書き込みアドレスを決定し、当該書き込みアドレスを生成させ、生成された書き込みアドレスに測定データを書き込ませる制御を行う。なお、CPU100は、測定データの書き込みアドレスとして、FeRAM110(一次記憶装置10の一例としての強誘電体メモリ)のアドレスを生成させるように構成されていてもよい。CPU100は、測定データの書き込みアドレスとして、不揮発性メモリ120(二次記憶装置20の一例)のアドレスを生成させるように構成されていてもよい。   For example, the CPU 100 determines the write address of the measurement data in the memory, generates the write address, and performs control to write the measurement data to the generated write address. The CPU 100 may be configured to generate an address of the FeRAM 110 (a ferroelectric memory as an example of the primary storage device 10) as a measurement data write address. The CPU 100 may be configured to generate an address of the nonvolatile memory 120 (an example of the secondary storage device 20) as a measurement data write address.

CPU100は、また、測定データの値が所定の条件を満たすか否かを判断する処理を行ってもよい。CPU100は、例えば、取得された測定データを設定値と比較することによって、当該測定データの値が所定の条件を満たすか否かを判断してもよい。なお、ここで言う設定値とは予め設定されている値であってもよく、既に取得されている測定データの値に基づいて設定される値であってもよい。   The CPU 100 may also perform processing for determining whether the value of the measurement data satisfies a predetermined condition. The CPU 100 may determine whether or not the value of the measurement data satisfies a predetermined condition by comparing the acquired measurement data with a set value, for example. The set value referred to here may be a value set in advance or a value set based on the value of measurement data already acquired.

CPU100は、また、一次記憶装置10に書き込まれた測定データを、二次記憶装置20に転送する処理を行ってもよい。CPU100は、例えば、一次記憶装置10のアドレスを決定し、二次記憶装置20のアドレスを決定し、一次記憶装置10に書き込まれたデータを二次記憶装置20に転送させるための制御を行う。   The CPU 100 may also perform processing for transferring the measurement data written in the primary storage device 10 to the secondary storage device 20. For example, the CPU 100 determines an address of the primary storage device 10, determines an address of the secondary storage device 20, and performs control for transferring data written in the primary storage device 10 to the secondary storage device 20.

すなわち、CPU100は、書き込み制御部30、及び、判断部40、データ転送制御部50として機能してもよい。   That is, the CPU 100 may function as the write control unit 30, the determination unit 40, and the data transfer control unit 50.

CPU100は、ROM130から読み込んだ制御プログラムに基づいて、データ記録装置1の動作を制御してもよい。CPU100は、また、RAM140に保存された測定パラメータに基づいて、データ記録装置1の動作を制御してもよい。ここで、測定パラメータは、例えばキー入力されてRAM140に保存されている情報であってもよい。RAM140の機能は、EEPROM等の書き換え可能なROMや、FeRAM110によって実現してもよい。   The CPU 100 may control the operation of the data recording device 1 based on a control program read from the ROM 130. The CPU 100 may also control the operation of the data recording apparatus 1 based on the measurement parameters stored in the RAM 140. Here, the measurement parameter may be, for example, information input by key entry and stored in the RAM 140. The function of the RAM 140 may be realized by a rewritable ROM such as an EEPROM or the FeRAM 110.

CPU100は、また、計測機器の動作を制御して、データの測定間隔(測定データの取得間隔)を設定してもよい。   The CPU 100 may also set the data measurement interval (measurement data acquisition interval) by controlling the operation of the measuring device.

データ記録装置1では、CPU100、FeRAM110、ROM130、RAM140及びI/Fは、1つの集積回路装置(例えば半導体チップ)として構成されていてもよい。そして、データ記録装置1は、当該集積回路装置で、計測機器を制御し、ディスプレーに画像を表示させるための表示画像データを生成する制御を行ってもよい。   In the data recording device 1, the CPU 100, the FeRAM 110, the ROM 130, the RAM 140, and the I / F may be configured as one integrated circuit device (for example, a semiconductor chip). Then, the data recording apparatus 1 may perform control for controlling the measuring device and generating display image data for displaying an image on the display by the integrated circuit device.

(2)データ記録装置1の動作
以下、本実施の形態に係るデータ記録装置1の動作について説明する。図3は、データ記録装置1の動作を説明するためのフローチャート図である。
(2) Operation of Data Recording Device 1 Hereinafter, the operation of the data recording device 1 according to the present embodiment will be described. FIG. 3 is a flowchart for explaining the operation of the data recording apparatus 1.

はじめに、初期値を設定する(ステップS10)。ここで、初期値とは、例えば、データを測定する間隔(測定データの取得間隔)や、測定データを正常と判断する範囲(上限及び下限値)や、データ転送処理部50で転送されるデータの数であるM・Nの値や、データ転送単位、初期アドレス等が挙げられる。これらの初期値は、測定対象に合わせて設定してもよい。これらの初期値は、また、RAM130に記憶させてもよい。   First, an initial value is set (step S10). Here, the initial value is, for example, an interval at which data is measured (measurement data acquisition interval), a range in which the measurement data is determined to be normal (upper and lower limit values), or data transferred by the data transfer processing unit 50 Value of M · N, the data transfer unit, the initial address, and the like. These initial values may be set according to the measurement object. These initial values may also be stored in the RAM 130.

そして、測定データを取得し(ステップS12)、一次記憶装置10に書き込む(ステップS14)。詳しくは、一次記憶装置10のアドレスを指定し、指定されたアドレスに測定データを書き込む処理を行う。そして、書き込み動作の後には、新しい測定データを取得し(ステップS12)、一次記憶装置10に書き込む動作(ステップS14)を繰り返す。   And measurement data is acquired (step S12) and written in the primary storage device 10 (step S14). Specifically, an address of the primary storage device 10 is designated, and measurement data is written to the designated address. Then, after the writing operation, new measurement data is acquired (step S12), and the operation of writing to the primary storage device 10 (step S14) is repeated.

本実施の形態に係るデータ記録装置は、測定データの値が所定の条件を満たしている場合に、一次記憶装置10に書き込まれた測定データを二次記憶装置20に転送する処理を行う。以下、図4を参照して、一次記憶装置10に書き込まれた測定データを二次記憶装置20に転送する手順について説明する。なお、図4は、この手順を説明するためのフローチャート図である。   The data recording device according to the present embodiment performs a process of transferring the measurement data written in the primary storage device 10 to the secondary storage device 20 when the value of the measurement data satisfies a predetermined condition. Hereinafter, the procedure for transferring the measurement data written in the primary storage device 10 to the secondary storage device 20 will be described with reference to FIG. FIG. 4 is a flowchart for explaining this procedure.

はじめに、測定データを取得し(ステップS12)、取得された測定データの値が所定の条件を満たしているか否かについて判断する(ステップS20)。   First, measurement data is acquired (step S12), and it is determined whether or not the value of the acquired measurement data satisfies a predetermined condition (step S20).

取得された測定データの値が所定の条件を満たさない場合(ステップS20におけるNoの場合)、データ記録装置は次のデータを取得する(ステップS12)。   When the value of the acquired measurement data does not satisfy the predetermined condition (No in step S20), the data recording device acquires the next data (step S12).

取得された測定データの値が所定の条件を満たす場合(ステップS20におけるYesの場合)、一次記憶装置10に書き込まれている所定の測定データを二次記憶装置20に転送する(ステップS22)。本ステップでは、所定の条件を満たしたデータD1の直近(直前)に取得されたM個のデータD2を、複数回に分けて(例えば1データずつ)転送してもよい。あるいは、本ステップでは、所定の条件を満たしたデータD1よりもM個前に取得された1つのデータのみを転送してもよい。   If the value of the acquired measurement data satisfies the predetermined condition (Yes in step S20), the predetermined measurement data written in the primary storage device 10 is transferred to the secondary storage device 20 (step S22). In this step, the M pieces of data D2 acquired immediately before (immediately before) the data D1 that satisfies the predetermined condition may be transferred in a plurality of times (for example, one data at a time). Alternatively, in this step, only one piece of data acquired before M pieces of data D1 that satisfies a predetermined condition may be transferred.

また、一次記憶装置10に書き込まれているデータを二次記憶装置20に転送する手順では、所定の条件を満たすデータD1の後に取得された測定データを二次記憶装置20に転送してもよい。   Further, in the procedure of transferring the data written in the primary storage device 10 to the secondary storage device 20, the measurement data acquired after the data D1 satisfying a predetermined condition may be transferred to the secondary storage device 20. .

また、本発明では、取得された測定データが所定の条件(取得条件)を満たす場合、このデータの直前に取得されて一次記憶装置10に書き込まれている1個又は複数個のデータを、二次記憶装置20に転送してもよい。これによれば、測定対象にイベントが発生しなかった場合でも、測定データが保存されるため、このデータ記録装置が正常に動作していることを確認することができる。測定データの取得条件として、例えば、K個(KはMよりも大きい整数)の測定データが取得される度に、測定データの値にかかわらず、測定データを保存するように構成してもよい。   Further, in the present invention, when the acquired measurement data satisfies a predetermined condition (acquisition condition), one or a plurality of data acquired immediately before this data and written in the primary storage device 10 are stored. It may be transferred to the next storage device 20. According to this, even when an event does not occur in the measurement target, since the measurement data is stored, it can be confirmed that the data recording apparatus is operating normally. As the measurement data acquisition condition, for example, every time K pieces (K is an integer larger than M) of measurement data are acquired, the measurement data may be stored regardless of the value of the measurement data. .

次に、このデータ記録装置を実現するためのアルゴリズムについて、図5を参照して説明する。   Next, an algorithm for realizing this data recording apparatus will be described with reference to FIG.

はじめに、初期値を設定する(ステップS32〜ステップS38)。   First, initial values are set (steps S32 to S38).

そして、M個の測定データを取得するまで、データを蓄積する(ステップS40〜ステップS56)。これらのステップでは、測定データを取得し(ステップS40)、測定データの値(測定値)が所定の条件を満たすか否かを判断し(ステップS42)、測定データにフラグを設定し(ステップS44〜ステップS48)、設定されたフラグ及び測定データを一次記憶装置10に書き込む(ステップS50)。その後、待ち時間Tintの経過を待って(ステップS52)、iの値をインクリメントし(ステップS54)、一次記憶装置10にM個のデータが書き込まれるまで(iの値がMを超えるまで)これらの手順を繰り返す(ステップS56)。   Data is accumulated until M pieces of measurement data are acquired (steps S40 to S56). In these steps, measurement data is acquired (step S40), it is determined whether the value of the measurement data (measurement value) satisfies a predetermined condition (step S42), and a flag is set in the measurement data (step S44). To Step S48), the set flag and measurement data are written in the primary storage device 10 (Step S50). Thereafter, after the waiting time Tint has elapsed (step S52), the value of i is incremented (step S54), and until M data is written in the primary storage device 10 (until the value of i exceeds M). The above procedure is repeated (step S56).

そして、M個の測定データが取得された後は、さらにデータを書き込む動作を行い、必要に応じてデータを転送する(ステップS60〜ステップS78)。これらのステップでは、測定データを取得し(ステップS60)、測定データの値(測定値)が所定の条件を満たすか否かを判断し(ステップS62)、測定データにフラグを設定し(ステップS64〜ステップS68)、設定されたフラグ及び測定データを一次記憶装置10に書き込む(ステップS70)。そして、一次記憶装置10に書き込まれたFLG3の情報に基づいて、データの転送処理を行うか否かを判断し(ステップS72)、必要に応じて転送処理を行う(ステップS72)。具体的には、FLG3の値を判定し(ステップS72)、FLG3(i-L)>0の場合に、V(i-L)を二次記憶装置20に転送する(ステップS74)。逆に、FLG3(i-L)=0の場合には、V(i-L)を二次記憶装置20に転送する処理を行わない。そして、待ち時間Tintの経過を待って、iの値をインクリメントし(ステップS78)、測定データを取得する手順(ステップS60)以下の手順を繰り返す。   Then, after M pieces of measurement data have been acquired, an operation of further writing data is performed, and the data is transferred as necessary (steps S60 to S78). In these steps, measurement data is acquired (step S60), it is determined whether the value of the measurement data (measurement value) satisfies a predetermined condition (step S62), and a flag is set in the measurement data (step S64). To Step S68), the set flag and measurement data are written in the primary storage device 10 (Step S70). Then, based on the FLG3 information written in the primary storage device 10, it is determined whether or not to perform data transfer processing (step S72), and transfer processing is performed as necessary (step S72). Specifically, the value of FLG3 is determined (step S72), and when FLG3 (i-L)> 0, V (i-L) is transferred to the secondary storage device 20 (step S74). Conversely, when FLG3 (i−L) = 0, the process of transferring V (i−L) to the secondary storage device 20 is not performed. Then, after the waiting time Tint elapses, the value of i is incremented (step S78), and the procedure after the procedure of acquiring measurement data (step S60) is repeated.

本実施の形態では、上述したようにフラグの設定により転送データの判別を行ってもよい。これによれば、サイズの小さなデータの授受により書き込みアドレスの設定が可能になるため、データ処理の負担が小さく、かつ、回路規模の小さなデータ記録装置を提供することができる。特に、一次記憶装置10を、i=L+N+2で、i=0に戻るリングバッファとすることで、容量の小さなメモリ(一次記憶装置)を利用することが可能になる。   In the present embodiment, as described above, transfer data may be determined by setting a flag. According to this, since it becomes possible to set the write address by exchanging data with a small size, it is possible to provide a data recording apparatus with a small data processing load and a small circuit scale. In particular, by making the primary storage device 10 a ring buffer that returns i = 0 when i = L + N + 2, a memory (primary storage device) with a small capacity can be used.

なお、ここで示した手順によると、1つのデータを取得するたびに、1つのデータを転送する処理を行う。ただし、本発明はこれに限られるものではない。すなわち、本発明では、データの取得タイミングにあわせることなくデータの転送処理を行ってもよい。また、本発明では、1データ単位でデータの転送を行わずに、複数データ単位で、あるいは、1データよりも小さいデータを転送単位として、データの転送処理を行ってもよい。   In addition, according to the procedure shown here, whenever one data is acquired, the process which transfers one data is performed. However, the present invention is not limited to this. That is, in the present invention, the data transfer process may be performed without matching the data acquisition timing. In the present invention, the data transfer process may be performed in units of a plurality of data or in units of data smaller than one data without transferring data in units of one data.

(3)効果
本実施の形態に係るデータ記録装置は、以上のように構成されている。このデータ記録装置によると、必要なデータを記録することができ、記憶領域を効率よく利用することが可能なデータ記録装置を提供することができる。以下、その効果について説明する。
(3) Effect The data recording apparatus according to the present embodiment is configured as described above. According to this data recording apparatus, it is possible to provide a data recording apparatus that can record necessary data and can efficiently use a storage area. Hereinafter, the effect will be described.

先に説明したように、本実施の形態によると、測定対象の異常(イベントの発生)を知らせるデータ(所定の条件を満たす測定データD1)が取得された場合に、当該データよりも前(当該データの直前)に取得された1個又は複数個(M個)の測定データD2を、二次記憶装置20に転送して保存する。そのため、本実施の形態によると、イベントの発生の予兆を示すデータを保存することが可能になる。   As described above, according to the present embodiment, when data (measurement data D1 that satisfies a predetermined condition) notifying abnormality (event occurrence) of a measurement target is acquired, One or a plurality (M pieces) of measurement data D2 acquired immediately before the data are transferred to the secondary storage device 20 and stored. Therefore, according to the present embodiment, it is possible to store data indicating a sign that an event has occurred.

そして、本実施の形態によると、書き込み用のメモリ(一次記憶装置10)と、保存用のメモリ(二次記憶装置20)とを利用するため、保存用のメモリに必要なデータのみを書き込むことができる。そのため、書き込み用のメモリの容量を小さくすることができ、かつ、保存用のメモリを効率よく利用することが可能になる。   According to the present embodiment, since only the write memory (primary storage device 10) and the storage memory (secondary storage device 20) are used, only necessary data is written to the storage memory. Can do. Therefore, the capacity of the memory for writing can be reduced, and the memory for storage can be used efficiently.

また、本発明では、測定データを一時的に記憶するメモリ(一次記憶装置10)として強誘電体メモリ(FeRAM)を利用してもよい。強誘電体メモリは、一般的に、書き換え可能な回数が多く、かつ、書き換えに要する時間が短いことが知られている。そのため、一次記憶装置10として強誘電体メモリを利用することで、一次記憶装置の容量が小さく、かつ、書き換え回数の制限、及び、データの取得時間間隔の制限が小さいデータ記録装置を提供することができる。また、一次記憶装置10を循環使用すれば(一次記憶装置10をいわゆるリングバッファとして使用することで)、さらに容量の小さいメモリを利用することができる。   In the present invention, a ferroelectric memory (FeRAM) may be used as a memory (primary storage device 10) for temporarily storing measurement data. It is known that a ferroelectric memory generally has a large number of rewritable times and a short time required for rewriting. Therefore, by using a ferroelectric memory as the primary storage device 10, it is possible to provide a data recording device in which the capacity of the primary storage device is small, the number of rewrites is limited, and the data acquisition time interval is small. Can do. Further, if the primary storage device 10 is used in a circulating manner (using the primary storage device 10 as a so-called ring buffer), a memory having a smaller capacity can be used.

また、本実施の形態によると、一次記憶装置10に書き込まれた1個又は複数個の測定データを、複数回に分けて転送する。例えば、一次記憶装置10に書き込まれた複数個の測定データを、1データずつ転送する。これによると、データ転送処理に不具合が発生した場合であっても、損傷するデータを少なくすることができる。例えば、M個の測定データを一括して転送処理する場合、転送処理に不具合が起これば、M個の測定データが損傷する危険がある。そして、本発明では一次記憶装置10として破壊読出しメモリを利用するため、損傷を受けたデータを復旧できない事態が発生し得る。しかし、本実施の形態では、M個の測定データを複数回に分けて(例えば1データずつ)転送するため、転送処理に不具合があったとしても、損傷するデータ数を少なくすることができる。   Further, according to the present embodiment, one or a plurality of measurement data written in the primary storage device 10 is transferred in a plurality of times. For example, a plurality of measurement data written in the primary storage device 10 is transferred one by one. According to this, even if a failure occurs in the data transfer process, the damaged data can be reduced. For example, when M measurement data is transferred in a batch, there is a risk that the M measurement data may be damaged if a failure occurs in the transfer processing. In the present invention, since the destructive read memory is used as the primary storage device 10, a situation in which damaged data cannot be recovered may occur. However, in this embodiment, since M pieces of measurement data are transferred in multiple times (for example, one data at a time), the number of damaged data can be reduced even if there is a problem in the transfer process.

なお、本発明は、上述の実施の形態に限定されるものではなく、種々の変形が可能である。本発明は、実施の形態で説明した構成と実質的に同一の構成(例えば、機能、方法及び結果が同一の構成、あるいは目的及び効果が同一の構成)を含む。また、本発明は、実施の形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施の形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施の形態で説明した構成に公知技術を付加した構成を含む。   In addition, this invention is not limited to the above-mentioned embodiment, A various deformation | transformation is possible. The present invention includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same functions, methods, and results, or configurations that have the same objects and effects). In addition, the invention includes a configuration in which a non-essential part of the configuration described in the embodiment is replaced. In addition, the present invention includes a configuration that exhibits the same operational effects as the configuration described in the embodiment or a configuration that can achieve the same object. Further, the invention includes a configuration in which a known technique is added to the configuration described in the embodiment.

例えば本発明では、書き込み制御部30は、測定データの値が所定の条件を満たしている場合、この測定データD1の後に取得されるN個の測定データを、一次記憶装置10に書き込むことなく、二次記憶装置20に直接書き込むように構成されていてもよい。例えば、アドレス指定部32(書き込み制御部30)を制御することで、測定データの書き込み先を規定することができる。   For example, in the present invention, when the value of the measurement data satisfies a predetermined condition, the write control unit 30 does not write N pieces of measurement data acquired after the measurement data D1 in the primary storage device 10, It may be configured to write directly to the secondary storage device 20. For example, the write destination of the measurement data can be defined by controlling the address specifying unit 32 (write control unit 30).

これによっても、必要なデータを効率よく保存することが可能なデータ記録装置を提供することができる。   This also makes it possible to provide a data recording device that can efficiently store necessary data.

あるいは、本発明では、データ転送処理部50は、所定の条件を満たす測定データD1より前(直前)に取得された1個の測定データのみを転送するように構成されていてもよい。また、本発明では、データ転送処理部で、所定の条件を満たす測定データD1よりも後に取得された測定データのうち、測定データD1の直近に取得された1個の測定データのみを転送してもよい。このとき、データ転送処理部は、1個の測定データを複数回に分けて転送してもよい。すなわち、データ転送処理部のデータ転送単位は、測定データよりも小さくてもよい。   Alternatively, in the present invention, the data transfer processing unit 50 may be configured to transfer only one piece of measurement data acquired before (immediately before) the measurement data D1 that satisfies a predetermined condition. In the present invention, the data transfer processing unit transfers only one piece of measurement data acquired immediately after the measurement data D1 among the measurement data acquired after the measurement data D1 that satisfies the predetermined condition. Also good. At this time, the data transfer processing unit may transfer one measurement data in a plurality of times. That is, the data transfer unit of the data transfer processing unit may be smaller than the measurement data.

データ記録装置の構成を説明するための図。The figure for demonstrating the structure of a data recording device. データ記録装置の構成を説明するための図。The figure for demonstrating the structure of a data recording device. データ記録装置の動作を説明するためのフローチャート図。The flowchart for demonstrating operation | movement of a data recording device. データ記録装置の動作を説明するためのフローチャート図。The flowchart for demonstrating operation | movement of a data recording device. データ記録装置の動作を説明するためのフローチャート図。The flowchart for demonstrating operation | movement of a data recording device.

符号の説明Explanation of symbols

1…データ記録装置、 10…一次記憶装置、 20…二次記憶装置、 30…制御部、 32…アドレス指定部、 34…停止処理部、 40…判断部、 50…データ転送処理部、 100…CPU、 110…FeRAM、 120…不揮発性メモリ、 130…ROM、 140…RAM   DESCRIPTION OF SYMBOLS 1 ... Data recording device, 10 ... Primary storage device, 20 ... Secondary storage device, 30 ... Control part, 32 ... Address designation part, 34 ... Stop process part, 40 ... Judgment part, 50 ... Data transfer process part, 100 ... CPU, 110 ... FeRAM, 120 ... nonvolatile memory, 130 ... ROM, 140 ... RAM

Claims (11)

破壊読出し方式でデータの読み出しが行われる一次記憶装置と、
時系列に受け取った複数の測定データを前記一次記憶装置に書き込む処理を行う書き込み制御部と、
前記測定データを保存するための二次記憶装置と、
前記測定データの値が所定の条件を満たしているか否かを判断する判断部と、
所与の測定データの値が前記所定の条件を満たしている場合に、前記所与の測定データよりも前に取得されて前記一次記憶装置に書き込まれている測定データのうち前記所与の測定データの直近に取得された1個又は複数個の測定データを、2回以上に分けて前記二次記憶装置に転送する処理を行うデータ転送処理部と、
を含むデータ記録装置。
A primary storage device from which data is read in a destructive read mode;
A write controller that performs a process of writing a plurality of measurement data received in time series into the primary storage device;
A secondary storage device for storing the measurement data;
A determination unit for determining whether the value of the measurement data satisfies a predetermined condition;
If the value of the given measurement data satisfies the predetermined condition, the given measurement among the measurement data acquired and written to the primary storage device before the given measurement data A data transfer processing unit for performing a process of transferring one or a plurality of measurement data acquired most recently to data to the secondary storage device in two or more times;
A data recording device including:
請求項1記載のデータ記録装置において、
前記データ転送処理部は、
所与の測定データの値が前記所定の条件を満たしている場合に、前記所与の測定データよりも後に測定されて前記一次記憶装置に書き込まれた測定データのうち前記所与の測定データの直近に取得された1個又は複数個の測定データを前記二次記憶装置に転送するデータ記録装置。
The data recording apparatus according to claim 1, wherein
The data transfer processing unit
If the value of the given measurement data satisfies the predetermined condition, the measurement data of the given measurement data out of the measurement data measured after the given measurement data and written to the primary storage device A data recording device for transferring one or more measurement data acquired most recently to the secondary storage device.
請求項1記載のデータ記録装置において、
前記書き込み制御部は、
所与の測定データの値が前記所定の条件を満たしている場合に、前記所与の測定データよりも後に受け取った所定個数の測定データ、又は、前記所与の測定データの取得後の所定期間内に受け取った1個又は複数個の測定データを、前記二次記憶装置に書き込むデータ記録装置。
The data recording apparatus according to claim 1, wherein
The write control unit
When a value of given measurement data satisfies the predetermined condition, a predetermined number of measurement data received after the given measurement data, or a predetermined period after acquisition of the given measurement data A data recording device for writing one or a plurality of measurement data received in the secondary storage device.
請求項1から請求項3のいずれかに記載のデータ記録装置において、
前記判断部は、
前記所定の条件として予め設定されている条件を用いて判断を行うデータ記録装置。
In the data recording device according to any one of claims 1 to 3,
The determination unit
A data recording apparatus for performing determination using a condition set in advance as the predetermined condition.
請求項1から請求項3のいずれかに記載のデータ記録装置において、
前記判断部は、
前記測定データに基づいて前記所定の条件を設定し、判断を行うデータ記録装置。
In the data recording device according to any one of claims 1 to 3,
The determination unit
A data recording device for setting and determining the predetermined condition based on the measurement data.
請求項1から請求項5のいずれかに記載のデータ記録装置において、
前記所定の条件を満たす測定データが連続して取得されたことを検出し、検出された場合に、その旨を通知する通知信号を生成する処理を行う通知部をさらに含むデータ記録装置。
In the data recording device according to any one of claims 1 to 5,
A data recording apparatus further comprising: a notification unit that detects that measurement data satisfying the predetermined condition has been continuously acquired, and generates a notification signal that notifies the measurement data when it is detected.
請求項1から請求項6のいずれかに記載のデータ記録装置において、
前記書き込み制御部は、
前記測定データが所定の書き込み停止条件を満たしているか否か判断し、前記所与の書き込み停止条件を満たしている場合に、前記一次記憶装置へのデータの書き込みを停止させる制御を行う書き込み停止処理部を含むデータ記録装置。
The data recording apparatus according to any one of claims 1 to 6,
The write control unit
Write stop processing for determining whether or not the measurement data satisfies a predetermined write stop condition, and performing control to stop data writing to the primary storage device when the given write stop condition is satisfied Data recording device including a section.
請求項1から請求項7のいずれかに記載のデータ記録装置において、
前記データ転送処理部は、
所与の測定データが所定の取得条件を満たしているか否か判定し、満たしている場合には、前記所与の測定データよりも前に取得されて前記一次記憶装置に書き込まれている測定データのうち前記所与の測定データの直近に取得された1個又は複数個の測定データを、2回以上に分けて前記二次記憶装置に転送するデータ記録装置。
The data recording device according to any one of claims 1 to 7,
The data transfer processing unit
It is determined whether or not the given measurement data satisfies a predetermined acquisition condition. If the measurement data is satisfied, the measurement data acquired before the given measurement data and written in the primary storage device A data recording device that transfers one or more pieces of measurement data most recently acquired from the given measurement data to the secondary storage device in two or more steps.
請求項1から請求項8のいずれかに記載のデータ記録装置において、
前記一次記憶装置及び前記二次記憶装置の少なくとも一方から前記測定データを読み出すデータ読み出し部をさらに含むデータ記録装置。
The data recording apparatus according to any one of claims 1 to 8,
A data recording device further comprising a data reading unit for reading the measurement data from at least one of the primary storage device and the secondary storage device.
請求項1から請求項9のいずれかに記載のデータ記録装置において、
前記一次記憶装置は、強誘電体メモリであるデータ記録装置。
In the data recording device according to any one of claims 1 to 9,
The primary storage device is a data recording device which is a ferroelectric memory.
請求項1から請求項10のいずれかに記載のデータ記録装置において、
前記二次記憶装置は、不揮発性メモリであるデータ記録装置。
The data recording apparatus according to any one of claims 1 to 10,
The secondary storage device is a data recording device which is a nonvolatile memory.
JP2006300410A 2006-11-06 2006-11-06 Data recorder Withdrawn JP2008116351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006300410A JP2008116351A (en) 2006-11-06 2006-11-06 Data recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006300410A JP2008116351A (en) 2006-11-06 2006-11-06 Data recorder

Publications (1)

Publication Number Publication Date
JP2008116351A true JP2008116351A (en) 2008-05-22

Family

ID=39502394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006300410A Withdrawn JP2008116351A (en) 2006-11-06 2006-11-06 Data recorder

Country Status (1)

Country Link
JP (1) JP2008116351A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016032142A (en) * 2014-07-28 2016-03-07 日置電機株式会社 Mobile terminal device, measurement system, and program for measurement system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016032142A (en) * 2014-07-28 2016-03-07 日置電機株式会社 Mobile terminal device, measurement system, and program for measurement system

Similar Documents

Publication Publication Date Title
CN104350546B (en) row hammering refresh command
KR101079502B1 (en) Memory system
US7979636B2 (en) Method of controlling semiconductor memory card system
JP2008071440A (en) Ferroelectric memory device and its control method
JP2014089734A (en) Reducing write, and estimating and displaying residual life of nonvolatile memory
JP2007193865A (en) Information recording device and its control method
JP2015118423A (en) Refresh device and electronic apparatus
US20130235690A1 (en) Device and Method for Protecting Data in Non-Volatile Memory
JP2010157276A (en) Device and method for detecting lifetime of memory
JP2020042890A (en) Memory system and controlling method of memory system
US9818494B2 (en) Operation recording circuit and operation method thereof
JP2008116351A (en) Data recorder
JP2008097107A (en) Data recording device and its control method
JP2005267761A (en) Method for monitoring degradation of flash memory
KR20130136341A (en) Semiconductor device and operating method thereof
JP2019215947A (en) Storage device and operation method thereof
JP2009205216A (en) Electronic apparatus and standby voltage control method for volatile memory
US9916103B2 (en) Memory control device, memory device, and memory control method
JP4375572B2 (en) Semiconductor memory device, data recording device, and method for controlling semiconductor memory device
JP2008276647A (en) Data recording device
KR20180039802A (en) Data storage device and operating method thereof
JP5535113B2 (en) Memory system
JP2016151922A (en) Memory control device and memory control method
JP7288375B2 (en) ELECTRONIC DEVICE, CALCULATION METHOD AND PROGRAM
JPWO2016046940A1 (en) Microcomputer with built-in flash memory, method for writing data to flash memory built into the microcomputer, and program for writing data to flash memory

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080701

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20100202