JP2006309315A - Data recorder, inspection device equipped with data recorder, and controller - Google Patents

Data recorder, inspection device equipped with data recorder, and controller Download PDF

Info

Publication number
JP2006309315A
JP2006309315A JP2005127793A JP2005127793A JP2006309315A JP 2006309315 A JP2006309315 A JP 2006309315A JP 2005127793 A JP2005127793 A JP 2005127793A JP 2005127793 A JP2005127793 A JP 2005127793A JP 2006309315 A JP2006309315 A JP 2006309315A
Authority
JP
Japan
Prior art keywords
data
data recording
buffer area
sampling
recording
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005127793A
Other languages
Japanese (ja)
Inventor
Kan Nakai
勘 仲井
Hideaki Minamide
英明 南出
Yasuyuki Maeda
康之 前田
Takashi Tsuboi
隆 坪井
Keisuke Sugano
敬祐 菅野
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi 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 Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP2005127793A priority Critical patent/JP2006309315A/en
Priority to TW094119013A priority patent/TWI277856B/en
Priority to KR1020050051242A priority patent/KR100692782B1/en
Priority to CNB2005100916945A priority patent/CN100461138C/en
Publication of JP2006309315A publication Critical patent/JP2006309315A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/1062Data buffering arrangements, e.g. recording or playback buffers
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B2220/00Record carriers by type
    • G11B2220/20Disc-shaped record carriers
    • G11B2220/25Disc-shaped record carriers characterised in that the disc is based on a specific recording technology
    • G11B2220/2508Magnetic discs
    • G11B2220/2516Hard disks

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Recording Measured Values (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data recorder capable of reducing writing processing into a data recording means and increasing a writing-in data volume per one time to reduce writing-in overhead, and capable of securing sampling data with a large scale of record numbers by high speed sampling. <P>SOLUTION: This data recorder is provided with a data input means 1 for bringing in measured data, a data bus means 2 for transferring the measured data, the data recording means 4 for recording the measured data transferred via the data bus means 2, a data control means 3 for controlling data recording for recording the measured data into the data recording means 4, and a data buffering storage means including a buffer area 6 for accumulating temporarily the measured data. The data control means 3 accumulates temporarily the measured data in the buffer area 6 to be recorded finally into the data recording means 4. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

この発明は、検査または計測の対象となる計測データを転送して記録するためのデータ記録装置に関し、特に、データ入力手段からの計測データを、データバス手段を介してデータ記録手段に転送して記録するためのデータ制御手段を備えたデータ記録装置に関するものである。
また、この発明は、上記のようなデータ記録装置を備えた検査装置(インテリジェント検査ユニット)および制御装置(シーケンサ、モーションコントローラ、数値制御装置、ロボットなどのFA機器)に関するものである。
The present invention relates to a data recording apparatus for transferring and recording measurement data to be inspected or measured, and in particular, transfers measurement data from a data input means to a data recording means via a data bus means. The present invention relates to a data recording apparatus provided with a data control means for recording.
The present invention also relates to an inspection device (intelligent inspection unit) and a control device (FA devices such as a sequencer, motion controller, numerical control device, and robot) provided with the data recording device as described above.

従来から、検査計測対象となる信号を計測データとして時系列的に記録するデータ記録装置はよく知られている。
この種の従来装置において、検査計測対象となるアナログ電気信号は、データバスを介して取り込まれ、データ入力部によりAD変換されてデジタルデータとなり、データ入力部からデータ記録部に転送され、データ記録部に記録されるようになっている。
2. Description of the Related Art Conventionally, a data recording apparatus that records a signal to be inspected and measured as measurement data in time series is well known.
In this type of conventional apparatus, an analog electrical signal to be inspected / measured is taken in via a data bus, AD-converted by a data input unit into digital data, transferred from the data input unit to the data recording unit, and recorded as data. It is to be recorded in the department.

第1の従来装置として、インテリジェント検査ユニットにおけるデータ記録装置は、ADボード、cPCIバス(compact PCIバス)およびメモリを備え、ADボードからcPCIバスを介してADデータを取得し、メモリに格納するように構成されている(たとえば、非特許文献1参照)。   As a first conventional apparatus, a data recording apparatus in an intelligent inspection unit includes an AD board, a cPCI bus (compact PCI bus), and a memory, acquires AD data from the AD board via the cPCI bus, and stores the AD data in the memory. (For example, refer nonpatent literature 1).

上記非特許文献1に記載の第1の従来装置では、プログラムの制御下で、ADボードが保持している現在データ値を、cPCIバスを介して取得してメモリに格納しており、たとえば、Get New Data[V]FBでADボードから1点のデータを取得し、Dデバイスに浮動小数点型で格納するようになっている。
したがって、メモリの許す範囲内のデータ数を取得することができるが、サンプリング周期(計測周期)は、プログラムのスピードに依存しており、データのチャネル(CH)数が多くなると、サンプリング周期が大きくなる。
In the first conventional apparatus described in Non-Patent Document 1, the current data value held by the AD board is acquired through the cPCI bus and stored in the memory under the control of the program. One point of data is acquired from the AD board with Get New Data [V] FB, and stored in the D device in a floating-point type.
Therefore, the number of data within the range allowed by the memory can be obtained, but the sampling period (measurement period) depends on the speed of the program, and the sampling period increases as the number of data channels (CH) increases. Become.

また、上記非特許文献1に記載された第2の従来装置として、高性能なADボードを用いて、ADボード上でデータを所定サンプル数分だけ保存し、集録が完了後に、cPCIバス経由でメモリに格納するものも提案されている。
この場合、High−SpeedのDAQ FBを用いて、1MHzで100サンプル集録後、集録データをDBLデバイスに格納しており、最大で1MHzの集録を実現することができるが、1秒しかサンプリングすることができない。
In addition, as a second conventional apparatus described in Non-Patent Document 1, a high-performance AD board is used to store data for a predetermined number of samples on the AD board, and after the acquisition is completed, via the cPCI bus Some have been proposed for storage in memory.
In this case, using the High-Speed DAQ FB, after acquiring 100 samples at 1 MHz, the acquired data is stored in the DBL device, and a maximum acquisition of 1 MHz can be realized. I can't.

上記のように、第1および第2の従来装置は、いずれの場合も、大容量のサンプリングを高速で実現するという要望に応えることができない。
たとえば、第1の従来装置に大容量の記憶媒体(HDD)を付加して、メモリの代わりにHDDに集録データを格納しようとした場合、HDDへの1回当たりの書き込み時間が長いので、ADボードが保持している現在値を取得してメモリに格納する場合と比べて、ADボードが保持している現在値を取得してHDDに格納するまでに長い時間を要し、結果的に、所望のサンプリング周期に間に合わないことになる。
ここで、1回当たりN個のデータをHDDに書き込むのに要する時間t(N)は、以下の式(1)で表すことができる。
As described above, the first and second conventional devices cannot meet the demand for realizing high-capacity sampling at high speed in any case.
For example, when a large-capacity storage medium (HDD) is added to the first conventional apparatus and acquisition data is stored in the HDD instead of the memory, the write time per HDD is long, so AD Compared to the case where the current value held by the board is acquired and stored in the memory, it takes a longer time to acquire the current value held by the AD board and store it in the HDD. As a result, The desired sampling period will not be in time.
Here, the time t (N) required to write N data to the HDD once can be expressed by the following equation (1).

t(N)=δ×N+κ ・・・(1)   t (N) = δ × N + κ (1)

ただし、式(1)において、δは1個のデータをHDDに書き込むのに要する時間、κは(データ個数に関わらず)1回当たりにHDDに書き込むのに要する時間(オーバーヘッド)である。
一方、1回当たり1個のデータをHDDに書き込む、という処理を繰り返すのならば、n回の書き込み時間の総和Tは、以下の式(2)で表される。
In equation (1), δ is the time required to write one piece of data to the HDD, and κ is the time required to write to the HDD once (regardless of the number of data) (overhead).
On the other hand, if the process of writing one piece of data to the HDD at a time is repeated, the total T of n writing times is expressed by the following equation (2).

T=n×(δ×1+κ) ・・・(2)   T = n × (δ × 1 + κ) (2)

式(2)の場合、オーバーヘッドκがボトルネックとなる。   In the case of Expression (2), the overhead κ becomes a bottleneck.

同様に、第2の従来装置に大容量の記憶媒体(HDD)を付加して、HDDに集録データを格納しようとした場合には、ボード上で所定サンプル数分のデータ集録が完了後に、cPCIバス経由でHDDに格納した後、引き続きボード上で所定サンプル数分の次のデータ集録が完了後に、またcPCIバス経由でHDDに格納し、・・・の処理を繰り返せばよいが、前回のボード上での所定サンプル数データと、今回のボード上での所定サンプル数データと、次回のボード上での所定サンプル数データと、・・・と繰り返される各所定サンプル数データのそれぞれの間が、欠落することなく、所望のサンプリング周期で連続的につながっている保証はない。   Similarly, when a large-capacity storage medium (HDD) is added to the second conventional apparatus and acquisition data is to be stored in the HDD, cPCI is performed after data acquisition for a predetermined number of samples is completed on the board. After the next data acquisition for a predetermined number of samples is completed on the board after being stored in the HDD via the bus, the data may be stored in the HDD via the cPCI bus. Between the predetermined sample number data above, the predetermined sample number data on the current board, the predetermined sample number data on the next board, and each of the predetermined sample number data to be repeated, There is no guarantee that it is continuously connected at a desired sampling period without missing.

三菱インテリジェント検査ユニットIU2シリーズ「プログラミング事例集」(2004年1月作成)第175頁、第147頁Mitsubishi Intelligent Inspection Unit IU2 Series “Programming Examples” (created in January 2004), pages 175, 147

従来のデータ記録装置では、たとえば上記第1の従来装置の場合、第2の従来装置と比べて、集録可能なデータ総数は多いものの、第2の従来装置のようにサンプリング周期の短い高速サンプリングを行うことができないという課題があった。
また、メモリの許す範囲内のデータ数しか取得することができないので、サンプリング周期を短くすると集録時間が短くなってしまい、長い集録時間を確保するためにはサンプリング周期を遅くしなければならず、特に集録CH数が増えた場合には、さらに高速サンプリングが困難になるという課題があった。
In the conventional data recording apparatus, for example, in the case of the first conventional apparatus, although the total number of data that can be acquired is larger than that in the second conventional apparatus, high-speed sampling with a short sampling period is performed as in the second conventional apparatus. There was a problem that it could not be done.
In addition, since only the number of data within the range allowed by the memory can be acquired, if the sampling period is shortened, the acquisition time is shortened, and in order to ensure a long acquisition time, the sampling period must be delayed, In particular, when the number of acquisition channels is increased, there is a problem that high-speed sampling becomes more difficult.

また、上記第2の従来装置の場合には、第1の従来装置と比べて、高速サンプリングを行うことができるものの、第1の従来装置のように多数のデータを集録することができないという課題があった。
また、サンプリング終了後のデータ転送中においては、実質的にデータ集録が不可能になるという課題があった。
Further, in the case of the second conventional apparatus, the high-speed sampling can be performed as compared with the first conventional apparatus, but a large number of data cannot be acquired unlike the first conventional apparatus. was there.
Further, there is a problem that data acquisition is substantially impossible during data transfer after the end of sampling.

この発明は、上記のような課題を解決するためになされたものであり、1回当たりのデータ書き込み時間が長い大容量記憶媒体(HDD)を用いた場合でも、高速サンプリング周期で、集録点数の大規模な(つまり、長時間の)サンプリングデータが、欠落することなく連続的につながっていることが保証されたサンプリングを行うことのできるデータ記録装置を得ることを目的とする。   The present invention has been made to solve the above-described problems. Even when a large-capacity storage medium (HDD) having a long data writing time is used, the number of acquisition points can be increased with a high-speed sampling cycle. An object of the present invention is to obtain a data recording apparatus capable of performing sampling in which large-scale (that is, long-term) sampling data is guaranteed to be continuously connected without being lost.

この発明によるデータ記録装置は、検査または測定の対象となる信号を計測データとして取り込むデータ入力手段と、計測データを転送するデータバス手段と、データバス手段を介して転送された計測データを記録するデータ記録手段と、計測データをデータ記録手段に記録するためのデータ記録制御を行うデータ制御手段とを備えたデータ記録装置において、計測データを一時的に蓄えるためのバッファ領域を含むデータ緩衝記憶手段をさらに備え、データ制御手段は、データ入力手段からデータバス手段を介して取得した計測データを、バッファ領域に一時的に蓄えてから、最終的にデータ記録手段に記録するようにデータ記録制御を行うものである。   A data recording apparatus according to the present invention records a data input means for taking a signal to be inspected or measured as measurement data, a data bus means for transferring measurement data, and measurement data transferred via the data bus means. Data buffer storage means including a buffer area for temporarily storing measurement data in a data recording apparatus comprising data recording means and data control means for performing data recording control for recording measurement data in the data recording means And the data control means performs data recording control so that the measurement data acquired from the data input means via the data bus means is temporarily stored in the buffer area, and finally recorded in the data recording means. Is what you do.

この発明によれば、1回当たりのデータ書き込み時間が長い大容量記憶媒体(HDD)への書き込み処理自体を少なくして1回当たりの書き込みデータ量を増やし、相対的に書き込みオーバーヘッドを少なくすることにより、HDDを用いた場合でも、高速サンプリング周期で、集録点数の大規模なサンプリングデータが欠落することなく、連続的につながっていることが保証されたサンプリングを行うことができる。   According to the present invention, it is possible to increase the amount of data to be written per time by reducing the write processing itself to the large-capacity storage medium (HDD) having a long data write time, and relatively reduce the write overhead. Thus, even when an HDD is used, it is possible to perform sampling that is guaranteed to be continuously connected without missing large-scale sampling data having a large number of acquisition points at a high-speed sampling cycle.

実施の形態1.
図1はこの発明の実施の形態1に係るデータ記録装置を示すブロック図である。
図1において、データ記録装置は、データ入力手段1と、データバス手段2と、データバス手段2を介してデータ入力手段1に接続されたデータ制御手段3と、データ制御手段3に接続されたデータ記録手段4およびデータ緩衝記憶手段5とを備えている。
Embodiment 1 FIG.
1 is a block diagram showing a data recording apparatus according to Embodiment 1 of the present invention.
In FIG. 1, the data recording apparatus is connected to the data input means 1, the data bus means 2, the data control means 3 connected to the data input means 1 via the data bus means 2, and the data control means 3. Data recording means 4 and data buffer storage means 5 are provided.

データ入力手段1は、検査または測定の対象となる信号を計測データとして取り込み、必要に応じてデータバス手段2に送出する。具体的には、データ入力手段1は、A/Dボードなどからなり、測定対象となる物理データを取り込んでデジタルデータに変換する。   The data input means 1 takes in a signal to be inspected or measured as measurement data and sends it to the data bus means 2 as necessary. Specifically, the data input means 1 is composed of an A / D board or the like, and takes in physical data to be measured and converts it into digital data.

データバス手段2は、データ入力手段1を介して取り込まれた計測データを、データ制御手段3に転送する。具体的には、データバス手段は、デジタルデータが通過するcPCIバスなどからなり、データ入力手段1(たとえば、A/Dボード)とデータ制御手段3との間でのデータ授受の際に機能する。   The data bus means 2 transfers the measurement data taken in via the data input means 1 to the data control means 3. Specifically, the data bus means includes a cPCI bus through which digital data passes, and functions when data is exchanged between the data input means 1 (for example, an A / D board) and the data control means 3. .

データ制御手段3は、CPU(MPU)からなり、計測データをデータ記録手段4に記録するためのデータ記録制御を行う。具体的には、データ制御手段3は、CPU(MPU)上で動作するプログラム(F/W:ファームウエア)からなり、データ入力手段1(A/Dボード)に対してデータ取得の指示を行うとともに、データ記録手段4へのデータ記録を指示するための制御を行う。   The data control means 3 is composed of a CPU (MPU) and performs data recording control for recording measurement data in the data recording means 4. Specifically, the data control means 3 is composed of a program (F / W: firmware) that runs on the CPU (MPU), and instructs the data input means 1 (A / D board) to acquire data. At the same time, control for instructing data recording to the data recording means 4 is performed.

データ記録手段4は、データ制御手段3の制御下で、データバス手段2を介して転送された計測データを記録する。具体的には、データ記録手段4は、大容量のデジタルデータを記録する媒体からなり、たとえば、HDDや大容量メモリカードなどによって構成される。   The data recording unit 4 records measurement data transferred via the data bus unit 2 under the control of the data control unit 3. Specifically, the data recording means 4 is composed of a medium for recording a large amount of digital data, and is constituted by, for example, an HDD or a large capacity memory card.

データ緩衝記憶装置5は、計測データを一時的に蓄えるためのバッファ領域6を含む。具体的には、データ緩衝記憶手段5内のバッファ領域6は、データ制御手段3(CPU)が使用するメモリ領域(RAM)からなり、CPUのプログラム実行時にデータを保持する際などに使用される。   The data buffer storage device 5 includes a buffer area 6 for temporarily storing measurement data. Specifically, the buffer area 6 in the data buffer storage means 5 is composed of a memory area (RAM) used by the data control means 3 (CPU), and is used for holding data when the CPU executes a program. .

データ制御手段3は、データ入力手段1からデータバス手段2を介して取得した計測データを、バッファ領域6に一時的に蓄えてから、最終的にデータ記録手段4に記録するようにデータ記録制御を実行するようになっている。   The data control means 3 stores the measurement data acquired from the data input means 1 via the data bus means 2 temporarily in the buffer area 6 and then records the data in the data recording means 4 so that it is finally recorded. Is supposed to run.

図2は図1に示したデータ記録装置の動作を示すブロック図であり、破線矢印はデータの流れを示している。
図2において、データ制御手段3は、データ取得制御手段31と、データ記録制御手段32との2つの動作機能に分けることができる。
FIG. 2 is a block diagram showing the operation of the data recording apparatus shown in FIG. 1, and broken-line arrows indicate the flow of data.
In FIG. 2, the data control unit 3 can be divided into two operation functions of a data acquisition control unit 31 and a data recording control unit 32.

データ取得制御手段31は、データ入力手段1からデータバス手段2を介してデータを取得し、データ緩衝記憶手段5のバッファ領域6に一時的に記憶させる。
データ記録制御手段32は、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されているデータを読み出して、データ記録手段4に記録させるとともに、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されているデータを消去する。
The data acquisition control unit 31 acquires data from the data input unit 1 via the data bus unit 2 and temporarily stores it in the buffer area 6 of the data buffer storage unit 5.
The data recording control means 32 reads the data temporarily stored in the buffer area 6 of the data buffer storage means 5 and records the data in the data recording means 4 and temporarily stores it in the buffer area 6 of the data buffer storage means 5. Delete the data stored in.

図3はこの発明の実施の形態1による計測データのサンプリング動作を示すフローチャートであり、図4は図3の動作フローをタイミングチャートで示す説明図である。
以下、図2〜図4を参照しながら、図1に示したこの発明の実施の形態1によるデータ制御手段3の動作について説明する。
FIG. 3 is a flowchart showing the measurement data sampling operation according to Embodiment 1 of the present invention, and FIG. 4 is an explanatory diagram showing the operation flow of FIG. 3 in a timing chart.
The operation of the data control means 3 according to the first embodiment of the present invention shown in FIG. 1 will be described below with reference to FIGS.

図3において、まず、サンプリング条件を指定し、サンプリング条件に応じて、1回当たりの処理データ数Nを設定する(ステップS1)。
なお、1回当たりN個のデータをデータ記録手段4(たとえば、HDD)に書き込むのに要する時間t(N)(後述するステップS6の処理時間)は、前述と同様に、以下の式(1)で表すことができる。
In FIG. 3, first, sampling conditions are designated, and the number N of processing data per time is set according to the sampling conditions (step S1).
Note that the time t (N) (processing time of step S6 to be described later) required to write N data per time to the data recording means 4 (for example, HDD) is the following formula (1 ).

t(N)=δ×N+κ ・・・(1)   t (N) = δ × N + κ (1)

また、式(1)において、δは1個のデータをデータ記録手段4(HDD)に書き込むのに要する時間、κは(データ個数に関わらず)1回当たりにデータ記録手段4(HDD)に書き込むのに要する時間(オーバーヘッド)である。
ここで、サンプリング周期をτとし、一時記憶処理(後述するステップS4)に要する時間をεとすると、1回当たりの処理データ数Nは、以下の式(3)を満たすように決定されればよいことになる。
In equation (1), δ is the time required to write one piece of data to the data recording means 4 (HDD), and κ is the data recording means 4 (HDD) per time (regardless of the number of data). Time required for writing (overhead).
Here, if the sampling period is τ and the time required for the temporary storage process (step S4 to be described later) is ε, the number N of processing data per time is determined so as to satisfy the following expression (3). It will be good.

τ−ε>δ×N+κ ・・・(3)   τ−ε> δ × N + κ (3)

ただし、サンプリング周期τの限界を考慮する必要があり、全ての場合に、処理データ数Nが求まるというのではなく、そもそも、サンプリング周期τが以下の式(4)または式(5)のいずれかの条件を満たす場合には、1回当たりの処理データ数Nを設定することはできない。   However, it is necessary to consider the limit of the sampling period τ. In all cases, the number N of processed data is not obtained, but in the first place, the sampling period τ is one of the following formulas (4) and (5): If the above condition is satisfied, the number N of processing data per time cannot be set.

τ<δ ・・・(4)
τ<κ ・・・(5)
τ <δ (4)
τ <κ (5)

また、いかなる処理データ数Nをもってしても、上記式(3)を満たさないようなサンプリング周期τにおいては、サンプリングが不可能であり、式(3)を満たす処理データ数Nが存在するようなサンプリング周期τが、サンプリング可能な限界値でもある。   Further, sampling is impossible in any sampling period τ that does not satisfy the above equation (3) with any number of processed data N, and there exists a number N of processed data that satisfies equation (3). The sampling period τ is also a limit value that can be sampled.

図3に戻り、データ制御手段3は、サンプリング条件の指定および処理データ数Nの設定(ステップS1)に続いて、サンプリングを開始し(ステップS2)、計測データの数が最終的な集録点数に達したか否かを判定する(ステップS3)。
ステップS3において、集録点数に達していない(すなわち、NO)と判定されれば、データ制御手段3内のデータ取得制御手段31は、サンプリング周期τごとにデータ入力手段1からデータバス手段2を介して計測データを取得し、取得した計測データをデータ緩衝記憶手段5のバッファ領域6に一時的に記憶させる(ステップS4)。
Returning to FIG. 3, the data control means 3 starts sampling (step S <b> 2) following the designation of the sampling condition and the setting of the processing data number N (step S <b> 1), and the number of measurement data reaches the final number of acquisition points. It is determined whether or not it has been reached (step S3).
If it is determined in step S3 that the number of acquisition points has not been reached (that is, NO), the data acquisition control means 31 in the data control means 3 passes the data bus means 2 from the data input means 1 every sampling period τ. Measurement data is acquired, and the acquired measurement data is temporarily stored in the buffer area 6 of the data buffer storage means 5 (step S4).

続いて、初期設定時に0クリアされ且つステップS4の実行直前にインクリメントされる計数カウンタ(図示せず)を参照して、ステップS4の処理をN回実行した(計数カウンタ値=N)か否かを判定し(ステップS5)、N回実行していない(すなわち、NO)と判定されれば、計数カウンタをインクリメントするとともに、ステップS4を再度実行する。   Subsequently, with reference to a count counter (not shown) that is cleared to 0 at the initial setting and incremented immediately before execution of step S4, whether or not the process of step S4 has been executed N times (count counter value = N). (Step S5), and if it is determined not to be executed N times (that is, NO), the counter is incremented and step S4 is executed again.

一方、ステップS5において、ステップS4をN回実行した(すなわち、YES)と判定されれば、データ制御手段3内のデータ記録制御手段32は、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されているN個の計測データを読み出してデータ記録手段4に記録させるとともに、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されているN個の計測データを消去し(ステップS6)、ステップS3に戻る。   On the other hand, if it is determined in step S5 that step S4 has been executed N times (that is, YES), the data recording control means 32 in the data control means 3 temporarily enters the buffer area 6 of the data buffer storage means 5. The stored N pieces of measurement data are read and recorded in the data recording unit 4, and the N pieces of measurement data temporarily stored in the buffer area 6 of the data buffer storage unit 5 are erased (step S6). Return to step S3.

このとき、図4に示すように、バッファ領域6への一時記憶処理(ステップS4)が終了するごとに、サンプリング周期τ内で他の処理が実行される。
同様に、バッファ領域6への一時記憶処理(ステップS4)およびデータ記録手段4へのNデータ記録処理(ステップS6)の終了後に、サンプリング周期τ内で他の処理が実行される。
At this time, as shown in FIG. 4, every time the temporary storage process (step S4) in the buffer area 6 ends, another process is executed within the sampling period τ.
Similarly, after the temporary storage process to the buffer area 6 (step S4) and the N data recording process to the data recording unit 4 (step S6), other processes are executed within the sampling period τ.

ステップS4〜S6の繰り返し実行により、ステップS3において、計測データ数が最終的な集録点数に達した(すなわち、YES)と判定されれば、データ制御手段3内のデータ記録制御手段32は、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されている全ての計測データを読み出してデータ記録手段4に記録させ、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されている全ての計測データを消去し(ステップS7)、図3のサンプリング処理ルーチンを終了する(ステップS8)。   If it is determined in step S3 that the number of measurement data has reached the final number of acquisition points (that is, YES) by repeating execution of steps S4 to S6, the data recording control means 32 in the data control means 3 All measurement data temporarily stored in the buffer area 6 of the buffer storage means 5 are read out and recorded in the data recording means 4, and all the measurement data temporarily stored in the buffer area 6 of the data buffer storage means 5 are recorded. The measurement data is deleted (step S7), and the sampling processing routine of FIG. 3 is terminated (step S8).

上記処理により、データ記録手段4(HDD)への書き込み処理自体を少なくして、1回当たりにデータ記録手段4に書き込むデータ量を増やすことができ、相対的にデータ記録手段4への書き込みオーバーヘッドを少なくすることができる。
この結果、データ記録手段4として、1回当たりのデータ書き込み時間が長い大容量記憶媒体(HDD)を用いた場合でも、高速なサンプリング周期で且つ集録点数の大規模な(つまり、長時間の)サンプリングデータが、欠落することなく連続的につながっていることが保証されたサンプリングを実現することができる。
By the above processing, the writing process to the data recording unit 4 (HDD) itself can be reduced, and the amount of data to be written to the data recording unit 4 can be increased at one time. Can be reduced.
As a result, even when a large-capacity storage medium (HDD) having a long data writing time is used as the data recording means 4, the sampling rate is high and the number of acquisition points is large (that is, for a long time). Sampling in which sampling data is guaranteed to be continuously connected without missing can be realized.

また、上記データ集録を実行している最中でも、他の処理への影響を最小限に抑制することができる。
また、上記処理に係る高価な専用設備を特に必要としないので、データ記録装置を安価に実現することができる。
In addition, the influence on other processes can be minimized while the data acquisition is being executed.
In addition, since no expensive dedicated equipment for the above processing is required, the data recording apparatus can be realized at low cost.

なお、図2においては、データ記録制御手段32の機能をデータ制御手段3内に設けたが、たとえば図5のように、データ記録制御手段32をデータ記録手段4内に設けてもよく、この場合も、前述と同等の作用効果を奏する。   In FIG. 2, the function of the data recording control means 32 is provided in the data control means 3, but the data recording control means 32 may be provided in the data recording means 4 as shown in FIG. In this case, the same effects as described above can be obtained.

実施の形態2.
なお、上記実施の形態1(図1、図2参照)では、データ緩衝記憶手段5内に1つのバッファ領域6を設けたが、複数のバッファ領域を設けてもよい。
たとえば、上記実施の形態1においては、データ記録処理がサンプリング処理と比べてかなり高速な場合を想定しており、バッファ領域6をダブルバッファ構成にする必要がないが、上記よりもサンプリング処理が高速の場合には、データ記録時間がサンプリング間隔に追いつかないので、前述(図1、図2)の構成では実現不可能となる。
Embodiment 2. FIG.
In the first embodiment (see FIGS. 1 and 2), one buffer area 6 is provided in the data buffer storage means 5, but a plurality of buffer areas may be provided.
For example, in the first embodiment, it is assumed that the data recording process is considerably faster than the sampling process, and the buffer area 6 does not need to be configured as a double buffer, but the sampling process is faster than the above. In this case, since the data recording time cannot keep up with the sampling interval, it cannot be realized with the configuration described above (FIGS. 1 and 2).

したがって、高速サンプリングの場合には、たとえばダブルバッファ方式を採用し、一方のバッファ領域にデータ緩衝(一時記憶)している間に、他方のバッファ領域内の計測データを記録処理することにより、高速サンプリングデータの確実な記録を可能にすることが望ましい。
なお、ダブルバッファの用途は様々であり、ロギングにおいては、データを一括して貯めた後に、データ記録手段にまとめて書き込む方式が一般的である。
Therefore, in the case of high-speed sampling, for example, a double buffer method is adopted, and while data buffering (temporary storage) is performed in one buffer area, the measurement data in the other buffer area is recorded and processed. It is desirable to enable reliable recording of sampling data.
Note that the use of the double buffer is various, and in logging, a method is generally used in which data is collectively stored and then written to the data recording means.

図6は複数のバッファ領域6a、6bを設けたこの発明の実施の形態2に係るデータ記録装置を示すブロック図である。
また、図7は図6に示したデータ記録装置の動作を示すブロック図であり、破線矢印は初期設定されたデータの流れを示している。なお、図7内の1点鎖線矢印は、次回処理時(使用バッファ領域を逆設定時)のデータの流れを示している。
図6、図7において、前述(図1、図2参照)と同様のものについては、前述と同一符号を付して、または符号の後に「A」を付して詳述を省略する。
FIG. 6 is a block diagram showing a data recording apparatus according to Embodiment 2 of the present invention in which a plurality of buffer areas 6a and 6b are provided.
FIG. 7 is a block diagram showing the operation of the data recording apparatus shown in FIG. 6, and the broken-line arrows indicate the flow of data set initially. 7 indicates a data flow at the time of the next processing (when the used buffer area is reversely set).
6 and 7, the same parts as those described above (see FIGS. 1 and 2) are denoted by the same reference numerals as those described above, or “A” after the reference numerals, and detailed description thereof is omitted.

図6および図7に示すように、データ緩衝記憶手段5Aは、複数のバッファ領域6a、6bを有している。
なお、複数のバッファ領域6a、6bは、バッファ領域6のデータ領域の構造が2重化されたダブルバッファ(外部から見れば単一のバッファ領域)によって実現されてもよく、外観的に複数個のバッファ領域によって実現されてもよい。
As shown in FIGS. 6 and 7, the data buffer storage means 5A has a plurality of buffer areas 6a and 6b.
The plurality of buffer areas 6a and 6b may be realized by a double buffer (single buffer area as viewed from the outside) in which the structure of the data area of the buffer area 6 is doubled. The buffer area may be realized.

また、データ制御手段3は、データ入力手段1からデータバス手段2を介して取得した今回の計測データを、複数のバッファ領域6a、6bのうちの一方のバッファ領域(たとえば破線矢印で示すように、バッファ領域6a)に一時的に蓄えると同時に、複数のバッファ領域6a、6bのうちの他方のバッファ領域(たとえば破線矢印で示すように、バッファ領域6b)に既に蓄えられている前回の計測データをデータ記録手段4に記録するようにデータ記録制御を行う。   Further, the data control means 3 obtains the current measurement data acquired from the data input means 1 via the data bus means 2 as one of the buffer areas 6a and 6b (for example, as indicated by a dashed arrow). The previous measurement data already stored in the other buffer area of the plurality of buffer areas 6a and 6b (for example, the buffer area 6b as indicated by the broken line arrow) at the same time as the temporary storage in the buffer area 6a) Is recorded in the data recording means 4.

図8はこの発明の実施の形態2による計測データのサンプリング動作を示すフローチャートであり、図9は図8の動作フローをタイミングチャートで示す説明図である。
図8、図9において、前述(図3、図4参照)と同様の処理については、前述と同一符号を付して、または符号の後に「A」を付して詳述を省略する。
FIG. 8 is a flowchart showing a sampling operation of measurement data according to Embodiment 2 of the present invention, and FIG. 9 is an explanatory diagram showing the operation flow of FIG. 8 in a timing chart.
8 and 9, the same processes as those described above (see FIGS. 3 and 4) are denoted by the same reference numerals as those described above, or “A” after the reference numerals, and detailed description thereof is omitted.

以下、図7〜図9を参照しながら、図8に示したこの発明の実施の形態2によるデータ制御手段3の動作について説明する。
図8において、まず、サンプリング条件を指定し、1回当たりの処理データ数Nを設定する(ステップS1)。
ここで、1回当たりN個のデータをデータ記録手段4に書き込むのに要する時間t(N)(後述するステップS6Aの処理時間)は、前述と同様に、以下の式(1)で表すことができる。
The operation of the data control means 3 according to the second embodiment of the present invention shown in FIG. 8 will be described below with reference to FIGS.
In FIG. 8, first, sampling conditions are designated, and the number N of processing data per time is set (step S1).
Here, the time t (N) required to write N data per time to the data recording means 4 (processing time in step S6A described later) is expressed by the following equation (1), as described above. Can do.

t(N)=δ×N+κ ・・・(1)   t (N) = δ × N + κ (1)

また、サンプリング周期をτ、一時記憶処理(ステップS4A)に要する時間をεとすると、1回当たりの処理データ数Nは、以下の式(6)を満たすように決定されればよいことになる。   If the sampling period is τ and the time required for the temporary storage process (step S4A) is ε, the number N of processing data per time may be determined so as to satisfy the following expression (6). .

(τ−ε)×N>δ×N+κ ・・・(6)   (Τ−ε) × N> δ × N + κ (6)

ただし、前述のように、サンプリング周期τが式(4)または式(5)のいずれかの条件を満たす場合には、処理データ数Nの設定は不可能である。
この場合、前述の実施の形態1に比べて、条件的に余裕があるが、前述と同様に、上記式(6)を満たさないようなサンプリング周期τにおいては、サンプリングが不可能であり、式(6)を満たす処理データ数Nが存在するようなサンプリング周期τが、サンプリング可能な限界値でもある。
However, as described above, when the sampling period τ satisfies either the expression (4) or the expression (5), it is impossible to set the processing data number N.
In this case, although there is a margin in terms of condition compared to the first embodiment, sampling is impossible in the sampling period τ that does not satisfy the above equation (6), as in the above case. The sampling period τ in which there is a processing data number N that satisfies (6) is also the limit value that can be sampled.

図8に戻り、ステップS1に続いて、サンプリングを開始する(ステップS2A)。
このとき、データ制御手段3内のデータ取得制御手段31は、「バッファ領域6aを使用する」と初期設定する。
次に、集録点数に達したか否かを判定し(ステップS3)、集録点数に達していなければ、データ取得制御手段31は、サンプリング周期τごとに、データ入力手段1からデータバス手段2を介して計測データを取得し、バッファ領域6a、6bの設定されている方(初期設定時には、バッファ領域6a)に一時的に記憶させる(ステップS4A)。
Returning to FIG. 8, following step S1, sampling is started (step S2A).
At this time, the data acquisition control means 31 in the data control means 3 initializes “use buffer area 6a”.
Next, it is determined whether or not the number of acquisition points has been reached (step S3). If the number of acquisition points has not been reached, the data acquisition control means 31 changes the data bus means 2 from the data input means 1 every sampling period τ. The measurement data is acquired via the buffer area 6a and temporarily stored in the buffer area 6a, 6b (the buffer area 6a at the time of initial setting) (step S4A).

続いて、ステップS4Aの処理をN回実行したか否かを判定し(ステップS5)、N回実行していなければステップS4Aを再度実行する。
一方、ステップS4Aの処理をN回実行していれば、データ取得制御手段31が使用するバッファ領域を逆(たとえば、6a→6b)に設定した後、データ記録制御手段32は、前回使用したバッファ領域(たとえば、6b)に対して読み出し処理を行い、一時的に記憶されているN個の計測データを読み出してデータ記録手段4に記録させ、前回使用したバッファ領域(たとえば、6b)に一時的に記憶されているN個の計測データを消去し(ステップS6A)、ステップS3に戻る。
Subsequently, it is determined whether or not the process of step S4A has been executed N times (step S5), and if it has not been executed N times, step S4A is executed again.
On the other hand, if the process of step S4A has been executed N times, after setting the buffer area used by the data acquisition control means 31 to the reverse (for example, 6a → 6b), the data recording control means 32 uses the previously used buffer. A read process is performed on the area (for example, 6b), N pieces of measurement data temporarily stored are read and recorded in the data recording means 4, and temporarily stored in the previously used buffer area (for example, 6b). Are deleted (step S6A), and the process returns to step S3.

このとき、図9に示すように、バッファ領域6aまたは6bへの一時記憶処理(ステップS4A)が終了するごとに、サンプリング周期τ内で他の処理が実行される。
また、一時記憶処理の実行対象が逆設定(6a→6b)された後、ステップS6Aの続きの処理が実行され、ステップS6Aの終了後に、サンプリング周期τ内で他の処理が実行される。
At this time, as shown in FIG. 9, every time the temporary storage process (step S4A) in the buffer area 6a or 6b is completed, another process is executed within the sampling period τ.
In addition, after the execution target of the temporary storage process is reversed (6a → 6b), the process subsequent to step S6A is executed, and after the end of step S6A, another process is executed within the sampling period τ.

その後、ステップS3において、集録点数に達した(すなわち、YES)と判定されれば、データ取得制御手段31が使用するバッファ領域を逆(たとえば、6a→6b)に設定した後、データ記録制御手段32は、前回使用したバッファ領域(たとえば、6b)に対して読み出し処理を行い、一時的に記憶されている全ての計測データを読み出してデータ記録手段4に記録させ、前回使用したバッファ領域(たとえば、6b)に一時的に記憶されている全ての計測データを消去し(ステップS7A)、サンプリングを終了する(ステップS8)。   Thereafter, if it is determined in step S3 that the number of acquisition points has been reached (that is, YES), the buffer area used by the data acquisition control means 31 is set to the reverse (for example, 6a → 6b), and then the data recording control means 32 performs a reading process on the previously used buffer area (for example, 6b), reads all the temporarily stored measurement data, records it in the data recording means 4, and uses the previously used buffer area (for example, 6b). 6b) deletes all the measurement data temporarily stored (step S7A) and ends the sampling (step S8).

前述の実施の形態1(図3参照)では、サンプリングデータが欠落することなく連続的につながっていることを保証するためには、次回の一時記憶処理(ステップS4)が開始されるまでに、N回実行の判定処理(ステップS5)が必ず完了する必要があり、ステップS5が1回当たりの処理データ数Nを、設定されたサンプリング周期τに応じて厳密に調整する必要があった。   In the above-described first embodiment (see FIG. 3), in order to ensure that the sampling data is continuously connected without missing, until the next temporary storage process (step S4) is started, The determination process (step S5) executed N times must be completed, and step S5 needs to strictly adjust the number N of processing data per one time according to the set sampling period τ.

しかし、この発明の実施の形態2(図8参照)によれば、N回実行判定後のNデータ記録処理(ステップS6A)が、複数回の一時記憶処理(ステップS4A)にわたって干渉して実行されても、サンプリングデータが欠落することなく連続的につながっていることを保証することができる。
したがって、ステップS6Aが一度に処理するデータ個数Nを、設定されたサンプリング周期τに応じて厳密に調整する必要のない、ロバストなサンプリングを行うことができる。
However, according to the second embodiment (see FIG. 8) of the present invention, the N data recording process (step S6A) after the N times execution determination is executed by interfering with a plurality of times of temporary storage processes (step S4A). However, it can be ensured that the sampling data are continuously connected without being lost.
Therefore, it is possible to perform robust sampling without having to strictly adjust the number N of data to be processed at a time in step S6A according to the set sampling period τ.

具体的には、前述の実施の形態1では、サンプリング周期τが短くなってサンプリングが高速化されれば、N個をどのように調整しても、今回のステップS4Aと次回のステップS4Aとの間にステップS6Aが完了しない場合が起こり得るが、この発明の実施の形態2では、ステップS6Aが複数のステップS4Aにまたがって実行されてもよいので、サンプリング周期τが短く(サンプリング高速化)になっても対応することができる。   Specifically, in the first embodiment described above, if the sampling period τ is shortened and the sampling speed is increased, no matter how N are adjusted, the current step S4A and the next step S4A are performed. Although step S6A may not be completed in the meantime, in the second embodiment of the present invention, step S6A may be executed over a plurality of steps S4A, so that the sampling period τ is shortened (sampling speed is increased). It can cope even if it becomes.

また、この発明の実施の形態2においても、サンプリングデータが欠落することなく連続的につながっていることを保証するためには、データ個数Nの調整は必要であり、ステップS4AがN回実行される間にステップS6Aが完了するように、データ個数Nを調整すればよい。
さらに、前述と同様に、上記処理に係る高価な専用設備を必要としないので、データ記録装置を安価に実現することができる。
Also in the second embodiment of the present invention, in order to ensure that sampling data are continuously connected without missing, adjustment of the number of data N is necessary, and step S4A is executed N times. The number of data N may be adjusted so that step S6A is completed during this period.
Further, as described above, since an expensive dedicated facility for the above processing is not required, the data recording apparatus can be realized at a low cost.

実施の形態3.
なお、上記実施の形態1、2では、バッファ領域のアロケート(確保)について言及しなかったが、データ制御手段3は、バッファ領域6(6a、6b)を動的にアロケートしてもよい。
図10はこの発明の実施の形態3に係るデータ記録装置の動作を部分的に示すフローチャートであり、バッファ領域を動的にアロケートする場合を示している。
Embodiment 3 FIG.
In the first and second embodiments, the buffer area allocation (reservation) is not mentioned, but the data control means 3 may dynamically allocate the buffer area 6 (6a, 6b).
FIG. 10 is a flowchart partially showing the operation of the data recording apparatus according to the third embodiment of the present invention, and shows a case where the buffer area is dynamically allocated.

図10において、前述(図3、図8参照)と同様の処理については、前述と同一符号を付して、または図示を省略して、詳述を省略する。
また、この発明の実施の形態3によるデータ記録装置の構成としては、図1、図2、図5〜図7のいずれかに示したものが適用可能である。
In FIG. 10, the same processes as those described above (see FIGS. 3 and 8) are denoted by the same reference numerals as those described above, or omitted from illustration and detailed description thereof is omitted.
Further, as the configuration of the data recording apparatus according to the third embodiment of the present invention, one shown in any of FIGS. 1, 2, and 5 to 7 can be applied.

まず、データ制御手段3は、サンプリング条件を指定し、サンプリング条件に応じてNを設定した後(ステップS1)、Nに応じてバッファ領域を動的にアロケートする(ステップS10)。
以下、前述と同様に、サンプリングを開始する(ステップS2、S2A)。
First, the data control means 3 designates a sampling condition, sets N according to the sampling condition (step S1), and dynamically allocates a buffer area according to N (step S10).
Thereafter, sampling is started in the same manner as described above (steps S2 and S2A).

たとえば、前述の実施の形態1、2では、サンプリングデータが欠落することなく連続的につながっていることを保証するためには、データ個数Nの調整が必要であり、一時記憶処理(ステップS4、S4A)がN回実行される間に、N回実行判定後のNデータ記録処理(ステップS6A)が完了するように、データ個数Nを調整する必要がある。   For example, in the first and second embodiments described above, in order to ensure that sampling data are continuously connected without being lost, adjustment of the number of data N is necessary, and temporary storage processing (step S4, While S4A) is executed N times, it is necessary to adjust the data number N so that the N data recording process (step S6A) after the N times execution determination is completed.

このとき、データ個数Nの調整を左右する要素として、サンプリング周期、サンプリングCH数、データ記録手段4への1回当たりのアクセス処理時間のオーバーヘッドなどが存在するので、これらの要素を加味したデータ個数Nを設定する必要がある。
つまり、サンプリング条件に応じてデータ個数Nが調整されるが、バッファ領域6(6a、6b)は、N個の計測データを格納できるようなサイズに確保しておく必要がある。
At this time, the factors affecting the adjustment of the number of data N include the sampling period, the number of sampling channels, the overhead of the access processing time per time for the data recording means 4, and the like. N must be set.
That is, the number of data N is adjusted according to the sampling condition, but the buffer area 6 (6a, 6b) needs to be secured to a size that can store N pieces of measurement data.

したがって、前述の実施の形態1、2では、サンプリングデータが欠落することなく連続的につながっていることを保証するためには、いかなるサンプリング条件の設定においてもN個のデータが入るようなサイズ(起こり得る最大個数Nのデータが入るようなサイズ)を確保する必要がある。
このことは、非効率(無駄)であり、場合によっては、システムとして、より大きなメモリを搭載する必要がある、という課題があった。
Therefore, in the first and second embodiments described above, in order to ensure that the sampling data is continuously connected without being lost, a size that allows N pieces of data to be entered in any sampling condition setting ( It is necessary to ensure a size that can contain the maximum number N of data that can occur.
This is inefficient (useless), and in some cases, there is a problem that a larger memory needs to be mounted as a system.

これに対し、この発明の実施の形態3では、サンプリング条件に応じて設定される1回当たりの処理データ数Nに応じて、動的にバッファを確保(アロケート)することにより、上述の無駄をなくし、結果として、システム全体で限られたメモリを効率的に使用することができる。   On the other hand, in the third embodiment of the present invention, the above-mentioned waste is eliminated by dynamically securing (allocating) a buffer according to the number N of processing data per time set according to the sampling condition. As a result, the limited memory can be efficiently used in the entire system.

すなわち、データ制御手段3は、計測データのサンプリング周期に応じたサイズで、または、計測データのチャネル数に応じたサイズで、または、データ記録手段4へのアクセス処理時間に応じたサイズで、バッファ領域6(6a、6b)を動的にアロケートすることにより、メモリを効率的に使用することができる。
また、上記処理に係る高価な専用設備を必要としないので、データ記録装置を安価に実現することができる。
In other words, the data control means 3 has a buffer size with a size corresponding to the sampling period of the measurement data, a size according to the number of channels of the measurement data, or a size according to the access processing time to the data recording means 4. By dynamically allocating the area 6 (6a, 6b), the memory can be used efficiently.
Moreover, since an expensive dedicated facility for the above processing is not required, the data recording apparatus can be realized at a low cost.

実施の形態4.
なお、上記実施の形態3では、処理データ数Nを決定する際に用いられるHDD書込時間δやオーバーヘッド時間κの値として、あらかじめ指定される固定値を用いることを想定して説明したが、データ制御手段3は、データ記録手段4がデータ記録動作に要するアクセス処理時間を実測し、実測時間に応じたサイズで、バッファ領域6(6a、6b)を動的にアロケートしてもよい。
Embodiment 4 FIG.
In Embodiment 3 described above, it is assumed that fixed values specified in advance are used as the values of the HDD writing time δ and the overhead time κ used when determining the number N of processing data. The data control means 3 may measure the access processing time required for the data recording operation by the data recording means 4 and dynamically allocate the buffer area 6 (6a, 6b) with a size corresponding to the actually measured time.

たとえば、固定値のδ、κを用いた場合、実際のシステムの値とはかけ離れてしまい、より正確な処理データ数Nを決定することができなくなり、データ記録処理において動作不具合を起こす可能性がある。したがって、動的なアロケートにより、データ記録処理の動作不具合を回避することが望ましい。
図11はこの発明の実施の形態4に係るデータ記録装置の動作を示すフローチャートであり、実測時間に応じたサイズで、バッファ領域6(6a、6b)を動的にアロケートする場合を示している。
For example, when fixed values δ and κ are used, they are far from the actual system values, and it becomes impossible to determine the more accurate processing data number N, which may cause an operation failure in the data recording process. is there. Therefore, it is desirable to avoid a malfunction of the data recording process by dynamic allocation.
FIG. 11 is a flowchart showing the operation of the data recording apparatus according to the fourth embodiment of the present invention, and shows a case where the buffer area 6 (6a, 6b) is dynamically allocated with a size corresponding to the actually measured time. .

図11において、前述(図3、図8、図10参照)と同様の処理については、前述と同一符号を付して、または図示を省略して、詳述を省略する。
また、この発明の実施の形態4によるデータ記録装置の構成としては、図1、図2、図5〜図7のいずれかに示したものが適用可能である。
この場合、データ制御手段3は、データ記録手段4がデータ記録動作に要する時間に応じたサイズで、バッファ領域6(6a、6b)を動的にアロケートする。
In FIG. 11, processes similar to those described above (see FIGS. 3, 8, and 10) are denoted by the same reference numerals as those described above, or omitted from illustration and detailed description thereof is omitted.
As the configuration of the data recording apparatus according to the fourth embodiment of the present invention, one shown in any of FIGS. 1, 2, and 5 to 7 can be applied.
In this case, the data control unit 3 dynamically allocates the buffer area 6 (6a, 6b) with a size corresponding to the time required for the data recording unit 4 to perform the data recording operation.

まず、データ制御手段3は、サンプリング条件を指定し(ステップS1A)、設定されたデータ記録手段4に対してダミーの書き込みを行い、処理時間を計測することにより、1回当たりのアクセス処理時間のオーバーヘッドを実測する(ステップS1B)。
続いて、設定されたサンプリング条件および実測されたオーバーヘッドの実測時間に応じたデータ個数Nを設定し(ステップS1C)、データ個数Nに応じてバッファ領域6(6a、6b)を動的にアロケートする(ステップS10)。
以下、前述と同様に、サンプリングを開始する(ステップS2、S2A)。
First, the data control means 3 designates the sampling conditions (step S1A), performs dummy writing to the set data recording means 4, and measures the processing time, thereby determining the access processing time per time. The overhead is actually measured (step S1B).
Subsequently, the data number N corresponding to the set sampling condition and the actually measured overhead time is set (step S1C), and the buffer area 6 (6a, 6b) is dynamically allocated according to the data number N. (Step S10).
Thereafter, sampling is started in the same manner as described above (steps S2 and S2A).

なお、1回当たりのアクセス処理時間のオーバーヘッド実測処理(ステップS1B)は、具体的には、以下のステップS11〜S13により実行される。
まず、比較的少ないデータ量の書き込みに要する時間T1を実測し(ステップS11)、続いて、比較的多いデータ量の書き込みに要する時間T2を実測する(ステップS12)。
最後に、実測時間T2、T1の時間差(T2−T1)を用いてオーバーヘッドの実測時間を算出する(ステップS13)。
具体的には、前述の式(1)に基づく以下の連立方程式(1a)、(1b)を解くことにより、式(7)、式(8)のように書込時間δおよびオーバーヘッド時間κを求める。
Note that the overhead measurement processing (step S1B) for the access processing time per time is specifically executed by the following steps S11 to S13.
First, the time T1 required for writing a relatively small amount of data is measured (step S11), and then the time T2 required for writing a relatively large amount of data is measured (step S12).
Finally, the overhead measurement time is calculated using the time difference (T2−T1) between the measurement times T2 and T1 (step S13).
Specifically, by solving the following simultaneous equations (1a) and (1b) based on the above-described equation (1), the writing time δ and the overhead time κ are expressed as in equations (7) and (8). Ask.

T1=t(N1)=δ×N1+κ ・・・(1a)
T2=t(N2)=δ×N2+κ ・・・(1b)
δ=(T1−T2)/(N1−N2) ・・・(7)
κ=T1−N1(T1−T2)/(N1−N2)・・・(8)
T1 = t (N1) = δ × N1 + κ (1a)
T2 = t (N2) = δ × N2 + κ (1b)
δ = (T1-T2) / (N1-N2) (7)
κ = T1-N1 (T1-T2) / (N1-N2) (8)

たとえば、前述の実施の形態3では、サンプリング条件に応じて設定されるデータ個数Nに応じて、動的にバッファを確保(アロケート)していたが(ステップS10)、このとき、サンプリング条件に応じてデータ個数Nを設定する際の要素として加味される「データ記録手段4への1回当たりのアクセス処理時間のオーバーヘッド」は、データ記録手段4の種類によって異なる。   For example, in the above-described third embodiment, the buffer is dynamically secured (allocated) according to the number of data N set according to the sampling condition (step S10). At this time, according to the sampling condition. The “overhead of the access processing time per time for the data recording means 4” added as an element when setting the number of data N varies depending on the type of the data recording means 4.

したがって、実際には、データ記録手段4として想定されるものの最大のオーバーヘッドによってデータ個数Nを設定する必要がある。つまり、動的に確保するバッファ領域6(6a、6b)のサイズも、最大のオーバーヘッドに応じて大きめにアロケートされることになり、非効率(無駄)である、という課題があった。   Therefore, actually, it is necessary to set the number of data N with the maximum overhead of what is assumed as the data recording means 4. That is, the size of the buffer area 6 (6a, 6b) to be dynamically secured is also allocated to a large size according to the maximum overhead, and there is a problem that it is inefficient (wasted).

これに対し、この発明の実施の形態4では、サンプリング条件で設定されたデータ記録手段4に対して、1回当たりのアクセス処理時間のオーバーヘッドを実測し、実測時間を用いて1回当たりの処理データ数Nを設定し、設定されたデータ個数Nに応じてアロケートするバッファ領域6(6a、6b)のサイズを設定するので、上述のような無駄をなくし、結果としてシステム全体で限られたメモリを効率的に使用することができる。
また、上記処理に係る高価な専用設備を必要としないので、データ記録装置を安価に実現することができる。
On the other hand, in Embodiment 4 of the present invention, the overhead of access processing time per time is actually measured for the data recording means 4 set under the sampling condition, and the processing per time is performed using the actually measured time. Since the number of data N is set and the size of the buffer area 6 (6a, 6b) to be allocated is set according to the set number of data N, the above-mentioned waste is eliminated, and as a result, the memory limited in the entire system Can be used efficiently.
Moreover, since an expensive dedicated facility for the above processing is not required, the data recording apparatus can be realized at a low cost.

実施の形態5.
なお、上記実施の形態1〜4では、1つのデータ記録手段4を用いたが、複数のデータ記録手段を設けてもよい。
図12は複数のデータ記録手段4a、4bを設けたこの発明の実施の形態5に係るデータ記録装置を示すブロック図である。
Embodiment 5. FIG.
In the first to fourth embodiments, one data recording unit 4 is used. However, a plurality of data recording units may be provided.
FIG. 12 is a block diagram showing a data recording apparatus according to Embodiment 5 of the present invention in which a plurality of data recording means 4a and 4b are provided.

図12において、前述(図1参照)と同様のものについては、前述と同一符号を付して詳述を省略する。また、データ制御手段3は、たとえば図2に示すように、データ取得制御手段31およびデータ記録制御手段32を含むものとする。
この場合、データ制御手段3は、データ入力手段1からデータバス手段2を介して取得した計測データを、データ緩衝記憶手段5のバッファ領域6に一時的に蓄えてから、最終的に複数のデータ記録手段4a、4bに記録するようにデータ記録制御を実行するようになっている。
In FIG. 12, the same components as those described above (see FIG. 1) are denoted by the same reference numerals as those described above, and detailed description thereof is omitted. The data control means 3 includes a data acquisition control means 31 and a data recording control means 32 as shown in FIG.
In this case, the data control unit 3 temporarily stores the measurement data acquired from the data input unit 1 via the data bus unit 2 in the buffer area 6 of the data buffer storage unit 5 and then finally stores a plurality of data. Data recording control is executed so as to record in the recording means 4a, 4b.

また、データ制御手段3は、複数のデータ記録手段4a、4bのそれぞれのデータ記録動作に要する時間またはその実測時間について、各時間または各実測時間を加味して、大きい方のオーバーヘッド(時間差分値)に応じたサイズまたは加算時間値に応じたサイズで、バッファ領域6を動的にアロケートする。   Further, the data control means 3 takes the time required for the data recording operation of each of the plurality of data recording means 4a, 4b or the actual measurement time into consideration with each time or each actual measurement time, and adds a larger overhead (time difference value). The buffer area 6 is dynamically allocated with a size according to () or a size according to the addition time value.

次に、図13のフローチャートを参照しながら、図12に示したこの発明の実施の形態5によるサンプリング処理動作について説明する。
図13において、前述(図3参照)と同様の処理については、前述と同一符号を付して、詳述を省略する。
Next, the sampling processing operation according to the fifth embodiment of the present invention shown in FIG. 12 will be described with reference to the flowchart of FIG.
In FIG. 13, the same processes as those described above (see FIG. 3) are denoted by the same reference numerals as those described above, and detailed description thereof is omitted.

まず、データ制御手段3は、サンプリング条件を指定し、データ記録手段4a、4bへのオーバーヘッドの大きい方に応じてデータ個数Nを設定する(ステップS1D)。
以下、サンプリングを開始して(ステップS2)、ステップS3〜S5を実行し、ステップS4をN回実行した時点で、一時記憶処理(ステップS6D)を実行する。
First, the data control means 3 designates a sampling condition, and sets the number of data N according to the larger overhead to the data recording means 4a and 4b (step S1D).
Thereafter, sampling is started (step S2), steps S3 to S5 are executed, and when step S4 is executed N times, a temporary storage process (step S6D) is executed.

このとき、ステップS6Dにおいて、データ制御手段3内のデータ記録制御手段32は、データ緩衝記憶手段5のバッファ領域6に一時的に記憶されているN個の計測データを読み出してデータ記録手段4a、4bに記録させ、バッファ領域6に一時的に記憶されているN個の計測データを消去する。
以下、ステップS3において、集録点数に達した(すなわち、YES)と判定されれば、ステップS7およびS8を実行して、図13のサンプリング処理ルーチンを終了する。
At this time, in step S6D, the data recording control means 32 in the data control means 3 reads N pieces of measurement data temporarily stored in the buffer area 6 of the data buffer storage means 5 to read the data recording means 4a, The N pieces of measurement data recorded in 4b and temporarily stored in the buffer area 6 are deleted.
Thereafter, if it is determined in step S3 that the number of acquired points has been reached (that is, YES), steps S7 and S8 are executed, and the sampling processing routine of FIG. 13 is terminated.

なお、図12においては、2つのデータ記録手段4a、4bを設けた場合を示したが、3つ以上のデータ記録手段を設けてもよい。
この発明の実施の形態5によれば、複数のデータ記録手段4a、4b(HDD記録媒体)に対してサンプリングデータを記録することができるので、冗長性による信頼性を確保することができる。
Although FIG. 12 shows the case where two data recording means 4a and 4b are provided, three or more data recording means may be provided.
According to the fifth embodiment of the present invention, sampling data can be recorded on a plurality of data recording means 4a, 4b (HDD recording media), so that reliability due to redundancy can be ensured.

すなわち、複数のデータ記録手段4a、4bのうちの一方の記録媒体になんらかのトラブル(たとえば、データ制御手段3とデータ記録手段4a、4bとの間の通信線のトラブル、または、データ記録手段4a、4bの動作自体のトラブル)が発生した場合でも、他方の記録媒体に記録されている計測データを使用することができ、安全2重化のデータロギングシステムを構築することができる。
また、上記処理に係る高価な専用設備を必要としないので、データ記録装置を安価に実現することができる。
さらに、この場合も、複数のデータ記録手段4a、4bへのアクセス処理時間に応じたサイズで、バッファ領域6を動的にアロケートすることにより、メモリを効率的に使用することができる。
That is, there is some trouble (for example, a trouble in the communication line between the data control means 3 and the data recording means 4a, 4b, or the data recording means 4a, Even when the trouble of the operation itself of 4b occurs), the measurement data recorded on the other recording medium can be used, and a safe dual data logging system can be constructed.
Moreover, since an expensive dedicated facility for the above processing is not required, the data recording apparatus can be realized at a low cost.
Furthermore, also in this case, the memory can be efficiently used by dynamically allocating the buffer area 6 with a size corresponding to the access processing time for the plurality of data recording means 4a and 4b.

実施の形態6.
なお、上記実施の形態1〜5では、1つのデータ制御手段3を設けたが、複数のデータ制御手段を設けてもよい。
図14は複数のデータ制御手段3a、3bを設けたこの発明の実施の形態6に係るデータ記録装置を示すブロック図である。
Embodiment 6 FIG.
In the first to fifth embodiments, one data control unit 3 is provided, but a plurality of data control units may be provided.
FIG. 14 is a block diagram showing a data recording apparatus according to Embodiment 6 of the present invention in which a plurality of data control means 3a and 3b are provided.

図14において、並列に設置されたデータ制御手段3a、3bは、それぞれのデータ緩衝記憶手段5a、5bを備えており、各データ緩衝記憶手段5a、5bは、個別のバッファ領域6a、6bを有している。つまり、この場合、外観的にも、複数個のバッファ領域6a、6bを備えていてもよい。
また、データ記録手段4Eは、各データ制御手段3a、3bに個別に対応したデータ記録領域7a、7bを有している。データ記録領域7a、7bは、具体的には、データ記録ファイルからなる。
In FIG. 14, the data control means 3a and 3b installed in parallel are provided with respective data buffer storage means 5a and 5b, and each data buffer storage means 5a and 5b has individual buffer areas 6a and 6b. is doing. In other words, in this case, a plurality of buffer areas 6a and 6b may be provided in appearance.
The data recording means 4E has data recording areas 7a and 7b individually corresponding to the data control means 3a and 3b. Specifically, the data recording areas 7a and 7b are composed of data recording files.

この場合、データ制御手段3a、3bは、データ記録手段4E内のデータ記録領域7a、7bにおけるデータ記録処理の種類の数に対応している。
つまり、データ制御手段3a、3bは、データ記録手段4Eにおけるデータ記録処理の種類の数に対応するように、データ記録手段4Eに対するデータ記録制御を行う。
In this case, the data control means 3a and 3b correspond to the number of types of data recording processes in the data recording areas 7a and 7b in the data recording means 4E.
That is, the data control means 3a and 3b perform data recording control on the data recording means 4E so as to correspond to the number of types of data recording processing in the data recording means 4E.

図15は図14に示す装置の動作を一部タイミングチャートで示す説明図である。
図15において、点線よりも下段側は時間の流れ(タイミングチャート)を示し、点線よりも上段側はデータの流れを示し、破線枠はデータ記録制御処理を示している。
また、ステップS4a、S4bは、前述のステップS4(S4A)と同様の処理であり、それぞれ、図14内のデータ制御手段3a、3bの動作に対応している。
同様に、ステップS6a、S6bは、前述のステップS6(S6A、S6D)と同様の処理であり、それぞれ、図14内のデータ制御手段3a、3bの動作に対応している。
また、各データ制御手段3a、3bのサンプリング条件として、サンプリングa(CH1)の周波数f1は、1kHz、サンプリングb(CH2)の周波数f2は、2kHzとする。
FIG. 15 is an explanatory diagram partially showing a timing chart of the operation of the apparatus shown in FIG.
In FIG. 15, the lower side of the dotted line shows the flow of time (timing chart), the upper side of the dotted line shows the flow of data, and the broken line frame shows the data recording control process.
Steps S4a and S4b are the same processing as step S4 (S4A) described above, and correspond to the operations of the data control means 3a and 3b in FIG. 14, respectively.
Similarly, steps S6a and S6b are the same processing as step S6 (S6A and S6D) described above, and correspond to the operations of the data control means 3a and 3b in FIG. 14, respectively.
As sampling conditions for the data control means 3a and 3b, the frequency f1 of sampling a (CH1) is 1 kHz, and the frequency f2 of sampling b (CH2) is 2 kHz.

この場合、まず、ステップS4bにおいて、サンプリングb(2kHz)の条件下でCH2の「値1」がバッファ領域6bに一時記憶され、他の処理に続いて、次のステップS4bにおいて、サンプリングb(2kHz)の条件下でCH2の「値2」がバッファ領域6bに一時記憶される。   In this case, first, in step S4b, “value 1” of CH2 is temporarily stored in the buffer area 6b under the condition of sampling b (2 kHz), and following the other processing, in the next step S4b, sampling b (2 kHz ) “Value 2” of CH2 is temporarily stored in the buffer area 6b.

次に、他の処理に続くステップS4aにおいて、サンプリングa(1kHz)の条件下でCH1の「値3」がバッファ領域6aに一時記憶され、他の処理に続くステップS4bにおいて、サンプリングb(2kHz)の条件下でCH2の「値4」がバッファ領域6bに一時記憶される。   Next, in step S4a following the other process, “value 3” of CH1 is temporarily stored in the buffer area 6a under the condition of sampling a (1 kHz), and in step S4b following the other process, sampling b (2 kHz) Under the conditions, “value 4” of CH2 is temporarily stored in the buffer area 6b.

続いて、CH2の「値4」の一時記憶処理(ステップS4b)の直後のステップS6bにおいて、バッファ領域6b内の計測データ「値1、値2、値4」は、データ記録手段7E内のデータ記録領域7bに転送される。   Subsequently, in step S6b immediately after the temporary storage process (step S4b) of “value 4” for CH2, the measurement data “value 1, value 2, value 4” in the buffer area 6b is stored in the data recording means 7E. It is transferred to the recording area 7b.

データ記録領域7bへのデータ転送処理(ステップS6b)に続いて、他の処理の実行後のステップS4bにおいては、必要に応じてCH2のデータ値がバッファ領域6bに一時記憶される。
次に、他の処理に続くステップS4aにおいて、サンプリングa(1kHz)の条件下でCH1の「値6」がバッファ領域6aに一時記憶される。
Following the data transfer process (step S6b) to the data recording area 7b, in step S4b after execution of other processes, the data value of CH2 is temporarily stored in the buffer area 6b as necessary.
Next, in step S4a following other processing, “value 6” of CH1 is temporarily stored in the buffer area 6a under the condition of sampling a (1 kHz).

続いて、CH1の「値6」の一時記憶処理(ステップS4a)の直後のステップS6aにおいて、バッファ領域6a内の計測データ「値3、値6」は、データ記録手段7E内のデータ記録領域7aに転送される。
以下、データ制御手段3a、3bは、最終的な集録点数に達するまで上記処理を繰り返し実行する。
Subsequently, in step S6a immediately after the temporary storage process (step S4a) of “value 6” for CH1, the measurement data “value 3, value 6” in the buffer area 6a is stored in the data recording area 7a in the data recording means 7E. Forwarded to
Thereafter, the data control means 3a and 3b repeatedly execute the above processing until the final number of acquisition points is reached.

この発明の実施の形態6によれば、異なる条件のサンプリングが複数あった場合でも、それぞれ独立したタスク(処理)によるサンプリング処理が実行可能なので、異なる条件のサンプリングを同時に実行することができ、異なるサンプリングの複数のロギングを同時に実行することができる。   According to the sixth embodiment of the present invention, even when there are a plurality of samplings with different conditions, the sampling processes with independent tasks (processes) can be executed, so the samplings with different conditions can be executed at the same time. Multiple logging of sampling can be performed simultaneously.

また、この発明の実施の形態6の場合、上記処理中のステップS4a、S4bおよびステップS6a、S6bに要する処理内容が、前述の実施の形態5に比べて簡単なので、全体としての処理に要する負荷が軽減され、結果として、システム全体で処理を高速に実行することができる。
また、上記処理に係る高価な専用設備を必要としないので、データ記録装置を安価に実現することができる。
Further, in the case of the sixth embodiment of the present invention, the processing contents required for steps S4a and S4b and steps S6a and S6b during the above processing are simpler than those of the above-described fifth embodiment. As a result, the entire system can be processed at high speed.
Moreover, since an expensive dedicated facility for the above processing is not required, the data recording apparatus can be realized at a low cost.

ただし、図15から明らかなように、サンプリングa、bは、互いに独立に動作しており、データ記録領域7aとデータ記録領域7bとの間での時間軸は一致しない(同じ時間軸でロギングを実行していない)ので、データ記録領域7a、7bを同じグラフで表示しても意味がない。つまり、サンプリングa、bは、異なるサンプリング周波数f1、f2でロギングを実行しているので、サンプリングa、bの各計測データの差分を取るなどの処理を実行しても全く意味がない。   However, as apparent from FIG. 15, the samplings a and b operate independently of each other, and the time axes between the data recording area 7a and the data recording area 7b do not match (logging is performed with the same time axis). It is meaningless to display the data recording areas 7a and 7b in the same graph. In other words, since sampling a and b are executed at different sampling frequencies f1 and f2, it is completely meaningless to execute processing such as taking a difference between the measurement data of samplings a and b.

実施の形態7.
なお、上記実施の形態6(図14参照)では、2つのデータ制御手段3a、3b(2つのタスク)を用いて、それぞれのバッファ領域6a、6bに対して個別のCH処理を実行したが、1つのデータ制御手段3(1つのタスク)を用いて、ダブルバッファ構成の1つのバッファ領域6に対して複数CHの処理を実行してもよい。
図16はこの発明の実施の形態7に係るデータ記録装置を示すブロック図であり、1つのデータ制御手段3を用いてデータ記録領域7a、7bへのデータ記録を制御する場合を示している。
Embodiment 7 FIG.
In the sixth embodiment (see FIG. 14), the individual CH processing is executed for each of the buffer areas 6a and 6b using the two data control units 3a and 3b (two tasks). A single data control means 3 (one task) may be used to execute a process for a plurality of channels for one buffer area 6 having a double buffer configuration.
FIG. 16 is a block diagram showing a data recording apparatus according to Embodiment 7 of the present invention, and shows a case where data recording in the data recording areas 7a and 7b is controlled by using one data control means 3. In FIG.

なお、図16において、データ緩衝記憶手段5のバッファ領域6をダブルバッファ構成にしてもよく、前述(図6参照)のようにバッファ領域6を複数個設定してもよい。
また、上記を組み合わせて、バッファ領域6を複数個設定するとともに、それぞれをダブルバッファ構成にしてもよい。
In FIG. 16, the buffer area 6 of the data buffer storage means 5 may have a double buffer configuration, or a plurality of buffer areas 6 may be set as described above (see FIG. 6).
Further, by combining the above, a plurality of buffer areas 6 may be set and each may be configured as a double buffer.

図17は図16に示した装置の動作を示すフローチャートであり、前述(図3参照)と同様の処理については、前述と同一符号を付して詳述を省略する。
図18は図16の動作フローを一部タイミングチャートで示す説明図であり、前述(図15参照)と同様に、サンプリング条件として、サンプリングa(CH1)の周波数f1は、1kHz、サンプリングb(CH2)の周波数f2は、2kHzとする。
また、図18はサンプリングa、bの両方を、共通のバッファ領域6にロギングした場合を示している。
FIG. 17 is a flowchart showing the operation of the apparatus shown in FIG. 16, and the same processes as those described above (see FIG. 3) are denoted by the same reference numerals and detailed description thereof is omitted.
FIG. 18 is an explanatory diagram partially showing the operation flow of FIG. 16 in a timing chart. Similarly to the above (see FIG. 15), the frequency f1 of the sampling a (CH1) is 1 kHz and the sampling b (CH2) as the sampling condition. ) Is 2 kHz.
FIG. 18 shows a case where both samplings a and b are logged in the common buffer area 6.

この場合、CH1およびCH2の各サンプリング周波数f1、f2の最小公倍数に対応したサンプリング周期で、ステップS4Eの処理が実行される。
つまり、この場合は、結果的に、CH1のサンプリング周波数f1(=1kHz)の2倍からなるCH2のサンプリング周波数f2(=2kHz)に対応したサンプリング周期τ2(=1/f2)となる。
In this case, the process of step S4E is executed at a sampling period corresponding to the least common multiple of the sampling frequencies f1 and f2 of CH1 and CH2.
That is, in this case, as a result, the sampling period τ2 (= 1 / f2) corresponding to the sampling frequency f2 (= 2 kHz) of CH2, which is twice the sampling frequency f1 (= 1 kHz) of CH1, is obtained.

すなわち、図18においては、CH2のサンプリング周期τ2で、取得すべきCHの計測データのみを取得するようになっている。
なお、取得すべきCHのデータが存在しない場合には、ステップS4Eにおいて、何も処理が実行されない。
That is, in FIG. 18, only the measurement data of CH to be acquired is acquired at the sampling period τ2 of CH2.
If there is no CH data to be acquired, no processing is executed in step S4E.

次に、図17および図18を参照しながら、図16に示したこの発明の実施の形態7による動作について説明する。
図17において、まず、複数のサンプリング条件を指定し(ステップS1E)、サンプリングを開始する(ステップS2)。
続いて、集録点数に達していなければ、データ取得制御手段31は、サンプリング周期τ(=τ2)ごとに、データ入力手段1からデータバス手段2を介して計測データを取得し、バッファ領域6に一時的に記憶させる(ステップS4E)。
Next, the operation according to the seventh embodiment of the present invention shown in FIG. 16 will be described with reference to FIGS.
In FIG. 17, first, a plurality of sampling conditions are specified (step S1E), and sampling is started (step S2).
Subsequently, if the number of acquisition points has not been reached, the data acquisition control means 31 acquires measurement data from the data input means 1 via the data bus means 2 at each sampling period τ (= τ2), and stores it in the buffer area 6. Temporary storage is performed (step S4E).

ステップS4Eを繰り返し、ステップS4EがN回実行された時点で、データ記録制御手段32は、バッファ領域6に一時的に記憶されている計測データを読み出し、サンプリング条件に応じて、データ記録手段4Eのデータ記録領域7aまたは7bに記録させ、バッファ領域6に一時的に記憶されている計測データを消去する(ステップS6E)。
以下、最終的な集録点数に達した時点で、ステップS7およびS8を実行し、図17のサンプリング処理ルーチンを終了する。
When step S4E is repeated and step S4E is executed N times, the data recording control means 32 reads out the measurement data temporarily stored in the buffer area 6, and the data recording means 4E The measurement data recorded in the data recording area 7a or 7b and temporarily stored in the buffer area 6 is erased (step S6E).
Thereafter, when the final number of acquisition points is reached, steps S7 and S8 are executed, and the sampling processing routine of FIG. 17 is terminated.

具体的には、たとえば図18のように、まず、ステップS4Eにおいて、CH2の「値1」がバッファ領域6に一時記憶され、続くステップS4Eにおいて、CH2の「値2」およびCH1の「値3」がバッファ領域6に一時記憶される。
また、次のステップS4Eにおいて、CH2の「値4」がバッファ領域6に一時記憶され、続くステップS4Eにおいて、CH2の「値5」およびCH1の「値6」がバッファ領域6に一時記憶される。
Specifically, for example, as shown in FIG. 18, first, “value 1” of CH2 is temporarily stored in the buffer area 6 in step S4E, and “value 2” of CH2 and “value 3” of CH1 are subsequently stored in step S4E. Is temporarily stored in the buffer area 6.
In the next step S4E, “value 4” of CH2 is temporarily stored in the buffer area 6, and “value 5” of CH2 and “value 6” of CH1 are temporarily stored in the buffer area 6 in subsequent step S4E. .

次に、ステップS6Eにおいて、バッファ領域6内のCH2の「値1、値2、値4、値5」がデータ記録手段4Eのデータ記録領域7bに転送され、バッファ領域6内のCH1の「値3、値6」がデータ記録手段4Eのデータ記録領域7aに転送される。
以下、上記処理が繰り返し実行される。
Next, in step S6E, “value 1, value 2, value 4, value 5” of CH2 in the buffer area 6 is transferred to the data recording area 7b of the data recording means 4E, and “value” of CH1 in the buffer area 6 is transferred. 3, 6 ”is transferred to the data recording area 7a of the data recording means 4E.
Thereafter, the above process is repeatedly executed.

この発明の実施の形態7によれば、異なる条件のサンプリングを同時に実行することができる。
また、データ記録領域7aとデータ記録領域7bとの間での時間軸が一致するので、データ記録領域7a、7bを同じグラフで表示しても意味があり、異なる条件のサンプリング処理を同時に実行した場合に、後で結果を合わせて解析することができる。
また、複数ファイル間の時間軸が一致していることにより、たとえば温度変化のような遅いデータ変化と、流量のような速いデータ変化とのロギングを、データ量が爆発的に増えることなく効率的に実行することができ、且つ、後で精査する際に時間軸の一致した正しい解析を行うことができる。
According to the seventh embodiment of the present invention, sampling under different conditions can be executed simultaneously.
In addition, since the time axes of the data recording area 7a and the data recording area 7b coincide with each other, it is meaningful to display the data recording areas 7a and 7b in the same graph, and sampling processes under different conditions were executed simultaneously. In some cases, the results can be analyzed later together.
In addition, by matching the time axis between multiple files, logging of slow data changes, such as temperature changes, and fast data changes, such as flow rates, can be performed efficiently without exploding data volume. And a correct analysis with the same time axis can be performed at a later examination.

なお、図18においては、CH1、CH2に対して1つのバッファ領域6を共通に用いた場合を示したが、図19のように、たとえばダブルバッファ構成を適用して分割された複数のバッファ領域6a、6bを用いてもよい。
図19はサンプリングa、bをそれぞれ個別のバッファ領域6a、6bにロギングした場合を示している。この場合、サンプリングごとに複数のバッファ領域6a、6b(ダブルバッファ)が設けられている。
18 shows a case where one buffer area 6 is used in common for CH1 and CH2, but a plurality of buffer areas divided by applying a double buffer configuration, for example, as shown in FIG. 6a and 6b may be used.
FIG. 19 shows the case where the samplings a and b are logged in the individual buffer areas 6a and 6b, respectively. In this case, a plurality of buffer areas 6a and 6b (double buffers) are provided for each sampling.

図19において、ステップS4Eごとに、一方のバッファ領域6aには、CH1の「値3、値6」が順次に一時記憶され、他方のバッファ領域6bには、CH2の「値1、値2、値4、値5」が順次に一時記憶される。
以下、ステップS6Eにおいて、各バッファ領域6a、6b内のデータ値が、それぞれ、データ記録手段4Eの内のデータ記録領域7a、7bに転送される。
図19に示したダブルバッファ構成の場合、前述(図18参照)での効果に加えて、前述(図6〜図9参照)の実施の形態2における効果も得られる。
In FIG. 19, for each step S4E, “value 3, value 6” of CH1 is temporarily stored sequentially in one buffer area 6a, and “value 1, value 2, value 2” of CH2 is temporarily stored in the other buffer area 6b. Value 4, value 5 "are temporarily stored in sequence.
Thereafter, in step S6E, the data values in the buffer areas 6a and 6b are transferred to the data recording areas 7a and 7b in the data recording means 4E, respectively.
In the case of the double buffer configuration shown in FIG. 19, in addition to the effects described above (see FIG. 18), the effects in the second embodiment described above (see FIGS. 6 to 9) can also be obtained.

さらに、図20のように、前述とは異なるサンプリング条件(CH4、CH5)に対しても、図19の場合と同様の構成を適用することができる。
図20の構成および処理は、基本的に図19の場合と同一であり、サンプリングa、bを、それぞれ個別のバッファ領域6a、6bにロギングした場合を示している。
Further, as shown in FIG. 20, the same configuration as in FIG. 19 can be applied to sampling conditions (CH4, CH5) different from those described above.
The configuration and processing in FIG. 20 are basically the same as those in FIG. 19, and the sampling a and b are logged in the individual buffer areas 6a and 6b, respectively.

ただし、図20において、サンプリング条件として、サンプリングa(CH4)の周波数f4は、2kHzであり、サンプリングb(CH5)の周波数f5は、3kHzである。
したがって、CH4およびCH5の各サンプリング周波数f4、f5の最小公倍数は、6kHz(=2×3[kHz])となり、サンプリング周波数6kHzに対応したサンプリング周期で一時記憶処理(ステップS4E)が実行されることになる。
However, in FIG. 20, as sampling conditions, the frequency f4 of sampling a (CH4) is 2 kHz, and the frequency f5 of sampling b (CH5) is 3 kHz.
Therefore, the least common multiple of the sampling frequencies f4 and f5 of CH4 and CH5 is 6 kHz (= 2 × 3 [kHz]), and the temporary storage process (step S4E) is executed at the sampling period corresponding to the sampling frequency 6 kHz. become.

つまり、図20においては、CH4およびCH5の各サンプリング周波数の最小公倍数に対応した周期でステップS4Eの処理が実行され、取得すべきCHの計測データのみが取得される。
なお、図20において、バッファ領域6aへのCH4の「値5」の一時記憶処理(ステップS4E)に続くステップS4Eのように、取得すべきCHの計測データが存在しない場合には、ステップS4Eにおいて、何も処理が実行されない。
That is, in FIG. 20, the process of step S4E is executed at a period corresponding to the least common multiple of the sampling frequencies of CH4 and CH5, and only the measurement data of CH to be acquired is acquired.
In FIG. 20, when there is no CH measurement data to be acquired, as in step S4E following the temporary storage process (step S4E) of “value 5” of CH4 in the buffer area 6a, in step S4E. No processing is performed.

図20に示したデータ記録処理においては、2つのサンプリングa、b(CH4、CH5)の関係が、一方のサンプリング周波数が他方のサンプリング周波数の整数倍ではないので、各サンプリング周波数の最小公倍数に対応した周期でサンプリング処理(ステップS4E)が実行される。
また、各サンプリング処理(ステップS4E)においては、該当する計測データが存在するサンプリングCHのみをサンプリングし、それ以外のCHに対しては何もサンプリング処理が実行されないので、図20のように、一方のサンプリング周期が他方のサンプリング周期の整数倍の関係でない場合であっても、上記作用効果が得られる。
In the data recording process shown in FIG. 20, the relationship between the two samplings a and b (CH4 and CH5) corresponds to the least common multiple of each sampling frequency because one sampling frequency is not an integer multiple of the other sampling frequency. Sampling processing (step S4E) is executed at the cycle described above.
Further, in each sampling process (step S4E), only the sampling CH in which the corresponding measurement data exists is sampled, and no sampling process is performed for the other CHs. Even when the sampling period is not an integer multiple of the other sampling period, the above-described effects can be obtained.

また、データ制御手段3(図16参照)は、計測データのサンプリング周期に応じたサイズで、バッファ領域6を動的にアロケートするとともに、計測データのチャネル数に応じたサイズで、バッファ領域6を動的にアロケートする。
これにより、無駄がなくなり、システム全体で限られたメモリを効率的に使用することができる。
Further, the data control means 3 (see FIG. 16) dynamically allocates the buffer area 6 with a size corresponding to the measurement data sampling period, and also sets the buffer area 6 with a size corresponding to the number of channels of the measurement data. Allocate dynamically.
Thereby, there is no waste and the limited memory can be used efficiently in the entire system.

また、図21のように、特に異なるサンプリング条件の間で共通にログされるCHが存在する場合には、複数回集録される必要はなく、前述(図19参照)と同様のダブルバッファ構成に対して、1回の集録で複数先に書き込まれることになる。
ここで、図21におけるサンプリング条件として、サンプリングa(CH1およびCH2)の周波数f12を1kHz(CH1、CH2の両方を1kHzで集録)とし、サンプリングb(CH2)の周波数f2を2kHzとする。
この場合、最初の一時記憶処理(ステップS4E)において、CH2の「値1」がバッファ領域6bに書き込まれ、続くステップS4Eにおいて、CH2の「値2」がバッファ領域6a、6bに書き込まれるとともに、CH1の「値3」がバッファ領域6aに書き込まれる。
Also, as shown in FIG. 21, when there is a CH that is commonly logged between different sampling conditions, it is not necessary to acquire a plurality of times, and a double buffer configuration similar to that described above (see FIG. 19) is used. On the other hand, a plurality of destinations are written in one acquisition.
Here, as sampling conditions in FIG. 21, the frequency f12 of sampling a (CH1 and CH2) is 1 kHz (both CH1 and CH2 are acquired at 1 kHz), and the frequency f2 of sampling b (CH2) is 2 kHz.
In this case, in the first temporary storage process (step S4E), “value 1” of CH2 is written to the buffer area 6b, and in step S4E, “value 2” of CH2 is written to the buffer areas 6a and 6b. “Value 3” of CH1 is written in the buffer area 6a.

以下、同様に、次のステップS4Eにおいて、CH2の「値4」がバッファ領域6bに書き込まれ、続くステップS4Eにおいて、CH2の「値5」がバッファ領域6a、6bに書き込まれるとともに、CH1の「値6」がバッファ領域6aに書き込まれる。
その後、ステップS6Eにおいて、各バッファ領域6a、6b内のデータ値が、それぞれ、データ記録手段4Eの内のデータ記録領域7a、7bに転送される。
図21に示したデータ記録処理の場合も、上記作用効果を奏する。
Similarly, in the next step S4E, “value 4” of CH2 is written in the buffer area 6b. In subsequent step S4E, “value 5” of CH2 is written in the buffer areas 6a and 6b and “ Value 6 "is written to the buffer area 6a.
Thereafter, in step S6E, the data values in the buffer areas 6a and 6b are transferred to the data recording areas 7a and 7b in the data recording means 4E, respectively.
In the case of the data recording process shown in FIG.

特に、複数ファイル間で共通にロギングされるCHは、複数回にわたって集録される必要はなく、1回の集録で、複数先に書き込まれるのみなので、全体としてロギングに要する負荷は軽減される。
つまり、データ入力手段1(ADボード)のCHからのデータ取得処理が6回に対して、データ記録手段4Eへのデータ書き込み処理を8回実行することになるので、ADボードのCHからのデータ取得に関する処理の冗長性がなく、その分だけ、ADボードのCHからのデータ取得に関する処理を高速化することができる。
また、上記処理に係る高価な専用設備を必要としないので、データ記録装置を安価に実現することができる。
In particular, CHs logged in common among a plurality of files do not need to be acquired a plurality of times, and are only written to a plurality of destinations in a single acquisition, thereby reducing the load required for logging as a whole.
That is, since the data acquisition process from the CH of the data input means 1 (AD board) is performed 6 times, the data writing process to the data recording means 4E is executed 8 times. There is no redundancy in the processing related to acquisition, and the processing related to data acquisition from the CH of the AD board can be accelerated accordingly.
Moreover, since an expensive dedicated facility for the above processing is not required, the data recording apparatus can be realized at a low cost.

実施の形態8.
なお、上記実施の形態1〜7では、特に言及しなかったが、いずれかのデータ記録装置を備えた検査装置を構成しても同等の効果を奏する。
この場合、インテリジェント検査ユニットからなる検査装置において、データ記録装置に記録された計測データを用いて検査処理を実行することにより、安価な検査装置を実現することができる。
Embodiment 8 FIG.
Although not particularly mentioned in the first to seventh embodiments, the same effect can be obtained even if an inspection apparatus including any one of the data recording apparatuses is configured.
In this case, an inexpensive inspection device can be realized by performing inspection processing using measurement data recorded in the data recording device in an inspection device including an intelligent inspection unit.

実施の形態9.
また、上記実施の形態1〜7のいずれかのデータ記録装置を備えた制御装置を構成しても同等の効果を奏する。
この場合、シーケンサ、モーションコントローラ、数値制御装置、ロボットなどのFA機器からなる制御装置において、データ記録装置に記録された計測データを用いて、シーケンス制御処理またはモーション制御処理を実行することにより、安価な制御装置を実現することができる。
Embodiment 9 FIG.
Moreover, even if it comprises the control apparatus provided with the data recording device in any one of the said Embodiments 1-7, there exists an equivalent effect.
In this case, in a control device composed of FA equipment such as a sequencer, motion controller, numerical control device, robot, etc., it is inexpensive by executing sequence control processing or motion control processing using measurement data recorded in the data recording device. A simple control device can be realized.

この発明の実施の形態1に係るデータ記録装置を示すブロック図である。1 is a block diagram showing a data recording apparatus according to Embodiment 1 of the present invention. この発明の実施の形態1に係るデータ記録装置の動作を示すブロック図である。It is a block diagram which shows operation | movement of the data recording device which concerns on Embodiment 1 of this invention. この発明の実施の形態1に係るデータ記録装置のサンプリング動作を示すフローチャートである。It is a flowchart which shows the sampling operation | movement of the data recording device concerning Embodiment 1 of this invention. この発明の実施の形態1に係るデータ記録装置のサンプリング動作をタイミングチャートで示す説明図である。It is explanatory drawing which shows the sampling operation | movement of the data recording device which concerns on Embodiment 1 of this invention with a timing chart. この発明の実施の形態1に係るデータ記録装置の他の動作例を示すブロック図である。It is a block diagram which shows the other operation example of the data recording device which concerns on Embodiment 1 of this invention. この発明の実施の形態2に係るデータ記録装置を示すブロック図である。It is a block diagram which shows the data recording device which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るデータ記録装置の動作を示すブロック図である。It is a block diagram which shows operation | movement of the data recording device which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るデータ記録装置のサンプリング動作を示すフローチャートである。It is a flowchart which shows the sampling operation | movement of the data recording device which concerns on Embodiment 2 of this invention. この発明の実施の形態2に係るデータ記録装置のサンプリング動作をタイミングチャートで示す説明図である。It is explanatory drawing which shows the sampling operation | movement of the data recording device which concerns on Embodiment 2 of this invention with a timing chart. この発明の実施の形態3に係るデータ記録装置の動作を部分的に示すフローチャートである。It is a flowchart which shows a part of operation | movement of the data recording device based on Embodiment 3 of this invention. この発明の実施の形態4に係るデータ記録装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the data recording device based on Embodiment 4 of this invention. この発明の実施の形態5に係るデータ記録装置を示すブロック図である。It is a block diagram which shows the data recording device based on Embodiment 5 of this invention. この発明の実施の形態5に係るデータ記録装置のサンプリング動作を示すフローチャートである。It is a flowchart which shows the sampling operation | movement of the data recording device based on Embodiment 5 of this invention. この発明の実施の形態6に係るデータ記録装置を示すブロック図である。It is a block diagram which shows the data recording device based on Embodiment 6 of this invention. この発明の実施の形態6に係るデータ記録装置のサンプリング動作をタイミングチャートで示す説明図である。It is explanatory drawing which shows the sampling operation | movement of the data recording device which concerns on Embodiment 6 of this invention with a timing chart. この発明の実施の形態7に係るデータ記録装置を示すブロック図である。It is a block diagram which shows the data recording device based on Embodiment 7 of this invention. この発明の実施の形態7に係るデータ記録装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the data recording device based on Embodiment 7 of this invention. この発明の実施の形態7に係るデータ記録装置の第1のサンプリング動作を一部タイミングチャートで示す説明図である。It is explanatory drawing which shows in part a timing chart the 1st sampling operation | movement of the data recording device which concerns on Embodiment 7 of this invention. この発明の実施の形態7に係るデータ記録装置の第2のサンプリング動作を一部タイミングチャートで示す説明図である。It is explanatory drawing which shows the 2nd sampling operation | movement of the data recording device based on Embodiment 7 of this invention with a partial timing chart. この発明の実施の形態7に係るデータ記録装置の第3のサンプリング動作を一部タイミングチャートで示す説明図である。It is explanatory drawing which shows in part a timing chart the 3rd sampling operation | movement of the data recording device which concerns on Embodiment 7 of this invention. この発明の実施の形態7に係るデータ記録装置の第4のサンプリング動作を一部タイミングチャートで示す説明図である。It is explanatory drawing which shows a 4th sampling operation | movement of the data recording device based on Embodiment 7 of this invention with a partial timing chart.

符号の説明Explanation of symbols

1 データ入力手段、2 データバス手段、3、3a、3b データ制御手段、4、4a、4b、4E データ記録手段、5、5A、5a、5b データ緩衝記憶手段、6、6a、6b バッファ領域、τ、τ2 サンプリング周期。   1 data input means, 2 data bus means, 3, 3a, 3b data control means, 4, 4a, 4b, 4E data recording means, 5, 5A, 5a, 5b data buffer storage means, 6, 6a, 6b buffer area, τ, τ2 Sampling period.

Claims (13)

検査または測定の対象となる信号を計測データとして取り込むデータ入力手段と、
前記計測データを転送するデータバス手段と、
前記データバス手段を介して転送された計測データを記録するデータ記録手段と、
前記計測データを前記データ記録手段に記録するためのデータ記録制御を行うデータ制御手段と
を備えたデータ記録装置において、
前記計測データを一時的に蓄えるためのバッファ領域を含むデータ緩衝記憶手段をさらに備え、
前記データ制御手段は、前記データ入力手段から前記データバス手段を介して取得した計測データを、前記バッファ領域に一時的に蓄えてから、最終的に前記データ記録手段に記録するようにデータ記録制御を行うことを特徴とするデータ記録装置。
A data input means for capturing a signal to be inspected or measured as measurement data;
Data bus means for transferring the measurement data;
Data recording means for recording measurement data transferred via the data bus means;
In a data recording apparatus comprising: data control means for performing data recording control for recording the measurement data in the data recording means;
Data buffer storage means including a buffer area for temporarily storing the measurement data;
The data control means stores the measurement data acquired from the data input means via the data bus means temporarily in the buffer area, and finally records the data in the data recording means. A data recording device characterized in that
前記データ緩衝記憶手段は、前記バッファ領域として複数のバッファ領域を含み、
前記データ制御手段は、前記データ入力手段から前記データバス手段を介して取得した今回の計測データを、前記複数のバッファ領域のうちの一方のバッファ領域に一時的に蓄えると同時に、前記複数のバッファ領域のうちの他方のバッファ領域に既に蓄えられている前回の計測データを前記データ記録手段に記録するようにデータ記録制御を行うことを特徴とする請求項1に記載のデータ記録装置。
The data buffer storage means includes a plurality of buffer areas as the buffer area,
The data control means temporarily stores the current measurement data acquired from the data input means via the data bus means in one of the plurality of buffer areas, and at the same time, the plurality of buffers 2. The data recording apparatus according to claim 1, wherein data recording control is performed so as to record the previous measurement data already stored in the other buffer area of the area in the data recording means.
前記データ制御手段は、前記バッファ領域を動的にアロケートすることを特徴とする請求項1または請求項2に記載のデータ記録装置。   3. The data recording apparatus according to claim 1, wherein the data control unit dynamically allocates the buffer area. 前記データ制御手段は、前記計測データのサンプリング周期に応じたサイズで、前記バッファ領域を動的にアロケートすることを特徴とする請求項3に記載のデータ記録装置。   4. The data recording apparatus according to claim 3, wherein the data control unit dynamically allocates the buffer area with a size corresponding to a sampling period of the measurement data. 前記データ制御手段は、前記計測データのチャネル数に応じたサイズで、前記バッファ領域を動的にアロケートすることを特徴とする請求項3に記載のデータ記録装置。   4. The data recording apparatus according to claim 3, wherein the data control unit dynamically allocates the buffer area with a size corresponding to the number of channels of the measurement data. 前記データ制御手段は、前記データ記録手段がデータ記録動作に要する時間に応じたサイズで、前記バッファ領域を動的にアロケートすることを特徴とする請求項3に記載のデータ記録装置。   4. The data recording apparatus according to claim 3, wherein the data control unit dynamically allocates the buffer area with a size corresponding to a time required for the data recording operation of the data recording unit. 前記データ制御手段は、前記データ記録手段がデータ記録動作に要する時間を実測し、実測時間に応じたサイズで、前記バッファ領域を動的にアロケートすることを特徴とする請求項6に記載のデータ記録装置。   7. The data according to claim 6, wherein the data control unit actually measures a time required for the data recording operation by the data recording unit and dynamically allocates the buffer area with a size corresponding to the actually measured time. Recording device. 前記データ記録手段は複数のデータ記録手段を含み、
前記データ制御手段は、前記データ入力手段から前記データバス手段を介して取得した計測データを、前記バッファ領域に一時的に蓄えてから、最終的に前記複数のデータ記録手段に記録するようにデータ記録制御を行うことを特徴とする請求項1から請求項7までのいずれか1項に記載のデータ記録装置。
The data recording means includes a plurality of data recording means,
The data control means stores the measurement data acquired from the data input means via the data bus means temporarily in the buffer area, and finally records the data in the plurality of data recording means. 8. A data recording apparatus according to claim 1, wherein recording control is performed.
前記データ制御手段は、前記複数のデータ記録手段のそれぞれのデータ記録動作に要する時間またはその実測時間について、各時間または各実測時間を加味して、大きい方の時間値に応じたサイズまたは加算時間値に応じたサイズで、前記バッファ領域を動的にアロケートすることを特徴とする請求項8に記載のデータ記録装置。   The data control means is a size or addition time corresponding to the larger time value with respect to the time required for the data recording operation of each of the plurality of data recording means or the actual measurement time in consideration of each time or each actual measurement time. 9. The data recording apparatus according to claim 8, wherein the buffer area is dynamically allocated with a size corresponding to the value. 前記データ制御手段は、前記データ記録手段におけるデータ記録処理の種類の数に対応するように、複数のデータ制御手段を含むことを特徴とする請求項1から請求項9までのいずれか1項に記載のデータ記録装置。   10. The data control unit according to any one of claims 1 to 9, wherein the data control unit includes a plurality of data control units so as to correspond to the number of types of data recording processes in the data recording unit. The data recording device described. 前記データ制御手段は、前記データ記録手段におけるデータ記録処理の種類の数に対応するように、前記データ記録手段に対するデータ記録制御を行うことを特徴とする請求項1から請求項9までのいずれか1項に記載のデータ記録装置。   10. The data control unit according to claim 1, wherein the data control unit performs data recording control on the data recording unit so as to correspond to the number of types of data recording processing in the data recording unit. The data recording apparatus according to item 1. 前記データ記録装置に記録された計測データを用いて、検査処理を実行することを特徴とする請求項1から請求項11までのいずれか1項に記載のデータ記録装置を備えた検査装置。   The inspection apparatus having the data recording apparatus according to any one of claims 1 to 11, wherein an inspection process is executed using measurement data recorded in the data recording apparatus. 前記データ記録装置に記録された計測データを用いて、シーケンス制御処理またはモーション制御処理を実行することを特徴とする請求項1から請求項11までのいずれか1項に記載のデータ記録装置を備えた制御装置。   12. The data recording apparatus according to claim 1, wherein a sequence control process or a motion control process is executed using measurement data recorded in the data recording apparatus. Control device.
JP2005127793A 2005-04-26 2005-04-26 Data recorder, inspection device equipped with data recorder, and controller Pending JP2006309315A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2005127793A JP2006309315A (en) 2005-04-26 2005-04-26 Data recorder, inspection device equipped with data recorder, and controller
TW094119013A TWI277856B (en) 2005-04-26 2005-06-09 Data recording apparatus and examination apparatus and control apparatus having data recording apparatus
KR1020050051242A KR100692782B1 (en) 2005-04-26 2005-06-15 Data recording apparatus, and examination apparatus and control apparatus having the data recording apparatus
CNB2005100916945A CN100461138C (en) 2005-04-26 2005-08-05 Data recording device and check device and control device including same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005127793A JP2006309315A (en) 2005-04-26 2005-04-26 Data recorder, inspection device equipped with data recorder, and controller

Publications (1)

Publication Number Publication Date
JP2006309315A true JP2006309315A (en) 2006-11-09

Family

ID=37195259

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005127793A Pending JP2006309315A (en) 2005-04-26 2005-04-26 Data recorder, inspection device equipped with data recorder, and controller

Country Status (4)

Country Link
JP (1) JP2006309315A (en)
KR (1) KR100692782B1 (en)
CN (1) CN100461138C (en)
TW (1) TWI277856B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020153816A (en) * 2019-03-20 2020-09-24 株式会社リコー Magnetic field measuring device and magnetic field measuring method
CN113179335A (en) * 2021-06-30 2021-07-27 智联万维科技有限公司 Data processing method and system, electronic device and computer readable storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200928793A (en) * 2007-12-26 2009-07-01 Ruei-Jau Chen Algorithm method capable of enhancing accuracy and computation speed of the computation of corrected sums of products (CSP) of computing hardware
CN102261929B (en) * 2010-07-02 2013-06-05 北京信息科技大学 Task scheduling method of small multi-channel data recorder
JP6016605B2 (en) * 2012-12-12 2016-10-26 三菱電機株式会社 Electronic instrument
KR20180080301A (en) * 2016-05-23 2018-07-11 미쓰비시덴키 가부시키가이샤 Programmable Logic Controller

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3181398B2 (en) * 1992-10-06 2001-07-03 三菱電機株式会社 Array type recording device
DE69433086T2 (en) * 1993-12-24 2004-08-05 Sony Corp. INFORMATION DATA RECORDING AND PLAYBACK DEVICE AND INFORMATION DATA PROCESSING SYSTEM
JPH10214454A (en) * 1996-11-27 1998-08-11 Sony Corp Data transfer device and method therefor
JP3851723B2 (en) * 1998-04-30 2006-11-29 株式会社東芝 Disk storage device and segment cache control method in the same device
JP2001067786A (en) * 1999-08-30 2001-03-16 Matsushita Electric Ind Co Ltd Recording and reproducing device
JP2001320658A (en) * 2000-05-11 2001-11-16 Matsushita Electric Ind Co Ltd Data recording and reproducing device and method
JP2003309797A (en) * 2002-04-17 2003-10-31 Sharp Corp Hard disk video camera provided with low power consumption mode
JP2004220638A (en) * 2003-01-09 2004-08-05 Funai Electric Co Ltd Video recording reproducing apparatus
US7356648B2 (en) * 2003-10-02 2008-04-08 International Business Machines Corporation Shared buffer having hardware controlled buffer regions

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020153816A (en) * 2019-03-20 2020-09-24 株式会社リコー Magnetic field measuring device and magnetic field measuring method
JP7306003B2 (en) 2019-03-20 2023-07-11 株式会社リコー Magnetic field measurement device and magnetic field measurement method
CN113179335A (en) * 2021-06-30 2021-07-27 智联万维科技有限公司 Data processing method and system, electronic device and computer readable storage medium
CN113179335B (en) * 2021-06-30 2021-09-24 智联万维科技有限公司 Data processing method and system, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN1855076A (en) 2006-11-01
KR20060112168A (en) 2006-10-31
TW200638169A (en) 2006-11-01
CN100461138C (en) 2009-02-11
KR100692782B1 (en) 2007-03-12
TWI277856B (en) 2007-04-01

Similar Documents

Publication Publication Date Title
JP2006309315A (en) Data recorder, inspection device equipped with data recorder, and controller
CN108733344B (en) Data reading and writing method and device and annular queue
US10656182B2 (en) Method and device for accessing data acquired by digital oscilloscope, and digital oscilloscope
US9400603B2 (en) Implementing enhanced performance flash memory devices
CN105389126B (en) A kind of block storage system of video monitoring data
JP2020134984A (en) Programmable logic controller and log data store method therefor
US20040199823A1 (en) Method and apparatus for performing imprecise bus tracing in a data processing system having a distributed memory
US8478554B1 (en) Reducing eye monitor data samplers in a receiver
CN108632552A (en) Recording device, control method and storage medium
US7302616B2 (en) Method and apparatus for performing bus tracing with scalable bandwidth in a data processing system having a distributed memory
AU2018253514B1 (en) Downhole vibration and impact data recording method
CN102663145B (en) Variable-frequency test data sampling and storage method
US10282244B2 (en) Method for saving fault wave data
CN105306865B (en) A kind of video monitoring data system
CN107491009B (en) A kind of angular transducer signal synchronous collection method
US8942300B1 (en) Integrated digitizer system with streaming interface
US20040199722A1 (en) Method and apparatus for performing bus tracing in a data processing system having a distributed memory
CN107040784B (en) Video buffering processing method, system and device
JP7067260B2 (en) Control device and data recording method
CN107656859B (en) Stability test method for high fault tolerance of cloud system
CN105357463B (en) A kind of storage method of video monitoring data
CN117368571B (en) Real-time spectrum analyzer and data processing method thereof
US10341746B2 (en) Sensor system with a sensor data buffer
JP6308122B2 (en) Data collection device
CN104422804B (en) A kind of mixing oscillograph with noise suppressing function

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070808

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071016

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20080507