JPH09170937A - Method and device for sampling data - Google Patents

Method and device for sampling data

Info

Publication number
JPH09170937A
JPH09170937A JP33378095A JP33378095A JPH09170937A JP H09170937 A JPH09170937 A JP H09170937A JP 33378095 A JP33378095 A JP 33378095A JP 33378095 A JP33378095 A JP 33378095A JP H09170937 A JPH09170937 A JP H09170937A
Authority
JP
Japan
Prior art keywords
data
sampling
value
time interval
counter
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
JP33378095A
Other languages
Japanese (ja)
Inventor
Hiroyuki Fujisawa
宏行 藤澤
Yukinobu Ochiai
志信 落合
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.)
DENSHI GIKEN KK
Honda Motor Co Ltd
Original Assignee
DENSHI GIKEN KK
Honda Motor Co Ltd
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 DENSHI GIKEN KK, Honda Motor Co Ltd filed Critical DENSHI GIKEN KK
Priority to JP33378095A priority Critical patent/JPH09170937A/en
Publication of JPH09170937A publication Critical patent/JPH09170937A/en
Pending legal-status Critical Current

Links

Landscapes

  • Recording Measured Values (AREA)

Abstract

PROBLEM TO BE SOLVED: To easily control a plurality of kinds of sampling times and sampling data. SOLUTION: When a power supply is turned on, a first down-counter, second downcounter and third counter are allowed to hold count values of 20, 6000 and 30000, respectively. When a CPU 50 interrupts the counters every 10ms, the respective counter decrements the holding values. Then the downcounter wherein the holding value becomes zero informs the main CPU 50 of the fact. The CPU 50 identifies which downcounter informs it, and it aquires the kind of data to be sampled from a main RAM 52 at the sampling time when the downcounter counts. Then the obtained data is stored in a 40MB memory part 5.

Description

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

【0001】[0001]

【発明の属する技術分野】この発明は、複数種類のデー
タを、複数の異なる時間間隔のいずれかでサンプリング
するデータサンプリング方法および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data sampling method and apparatus for sampling a plurality of types of data at any of a plurality of different time intervals.

【0002】[0002]

【従来の技術】従来、複数種類のデータを、複数の異な
る時間間隔のいずれかでサンプリングする場合、各デー
タ毎に、該データのサンプリングタイムを生成するタイ
ミング生成手段を用意し、これらのタイミング生成手段
を個別に動作させて、サンプリングを行っていた。特
に、自動車の各種データを記録するには、従来、個々の
データに対応する測定機材を個別に用意していたため、
当然のことながら、これらデータのサンプリングは非同
期に行われ、また、収録されたデータの管理も測定機材
毎に個別に行われていた。
2. Description of the Related Art Conventionally, when a plurality of types of data are sampled at any of a plurality of different time intervals, timing generation means for generating a sampling time of the data is prepared for each data, and these timing generations are performed. The means were operated individually to perform sampling. In particular, in order to record various data of automobiles, conventionally, since measuring equipment corresponding to each data was individually prepared,
As a matter of course, these data were sampled asynchronously, and the recorded data were managed individually for each measuring device.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した従
来のデータサンプリング方法においては、各データのサ
ンプリングは全く独立して行われるので、基準となるタ
イミングの発生手段およびサンプリング手段が各データ
毎に必要であり、全体のコストが高くなる、という欠点
があった。また、測定すべきチャンネル数が多い場合に
は、各チャンネルと該チャンネルにおけるサンプリング
タイムとの対応の管理が複雑となり、操作ミス等が生じ
易い、という欠点があった。また、サンプリングによっ
て得られたデータのフォーマットが多様であるため、該
データをサンプリングタイム毎に分類することができな
い、という欠点があった。
By the way, in the above-mentioned conventional data sampling method, since the sampling of each data is performed completely independently, the generation means and the sampling means of the reference timing are required for each data. However, there is a drawback that the overall cost becomes high. Further, when the number of channels to be measured is large, there is a drawback that management of correspondence between each channel and the sampling time in the channel becomes complicated, and an operation error or the like is likely to occur. In addition, there is a drawback in that the data obtained by sampling has various formats, so that the data cannot be classified for each sampling time.

【0004】この発明は、このような背景の下になされ
たもので、複数種類のサンプリングタイムおよびサンプ
リングデータを容易に管理することができるデータサン
プリング方法および装置を提供することを目的とする。
The present invention has been made under such a background, and an object thereof is to provide a data sampling method and apparatus capable of easily managing a plurality of types of sampling times and sampling data.

【0005】[0005]

【課題を解決するための手段】請求項1記載の発明は、
複数種類のデータを、N種類(Nは2以上の整数)の異
なる時間間隔のいずれかでサンプリングするデータサン
プリング方法において、サンプリング開始前に、前記N
種類の時間間隔と、各時間間隔にてサンプリングすべき
データの種類との対応を、記憶手段に記憶しておき、サ
ンプリングが開始されると、前記N種類の時間間隔のそ
れぞれを所定の基準時間間隔で除算した値を、それぞれ
異なるダウンカウンタに対応つけて保持させ、計時手段
は、各ダウンカウンタに、前記基準時間間隔毎に、同じ
タイミングで基準信号を供給し、各ダウンカウンタは、
前記基準信号を受信する度に、それぞれの保持値を所定
値だけ減ずることでダウンカウントし、各ダウンカウン
タの内、その保持値が予め決められた値以下になったダ
ウンカウンタは、データ取り込み指示をサンプリング手
段に送出した後、その保持値を再びダウンカウント開始
前の値に戻し、取り込み手段は、いずれかのダウンカウ
ンタより、前記データ取り込み指示を受けると、該ダウ
ンカウンタに対応する時間間隔にてサンプリングすべき
データの種類を前記記憶手段より読み出し、該データの
取り込みを行うことを特徴とする。
According to the first aspect of the present invention,
In a data sampling method of sampling a plurality of types of data at any of N types (N is an integer of 2 or more) of different time intervals, before the start of sampling, the N
Correspondence between the time intervals of the types and the types of data to be sampled at each time interval is stored in the storage means, and when sampling is started, each of the N time intervals is set to a predetermined reference time. The values divided by the intervals are held in association with different down counters, and the time counting means supplies the down counters with a reference signal at the same timing at each of the reference time intervals, and each down counter has
Each time the reference signal is received, each holding value is reduced by a predetermined value to down-count, and the down-counter whose holding value is equal to or less than a predetermined value is a data fetching instruction. To the sampling means, the held value is returned to the value before the start of the down-counting, and when the fetching means receives the data fetching instruction from any of the down-counters, the fetching interval is changed to the time interval corresponding to the down-counter. The type of data to be sampled is read from the storage means and the data is fetched.

【0006】請求項2記載の発明は、請求項1記載のデ
ータサンプリング方法において、前記取り込み手段は、
取り込んだデータに対して、該データを取り込んだ時間
間隔を示す識別データを付加し、サンプリング終了後、
付加された前記識別データに基づいて、各データを取り
込んだ時間間隔毎に分類することを特徴とする。
According to a second aspect of the invention, in the data sampling method according to the first aspect, the fetching means is
Identification data indicating the time interval for capturing the data is added to the captured data, and after sampling is completed,
On the basis of the added identification data, each data is classified for each time interval taken in.

【0007】請求項3記載の発明は、複数種類のデータ
を、N種類(Nは2以上の整数)の異なる時間間隔のい
ずれかでサンプリングするデータサンプリング装置にお
いて、前記N種類の時間間隔と、各時間間隔にてサンプ
リングすべきデータの種類との対応を記憶する記憶手段
と、所定の基準時間間隔毎に、基準信号を出力する計時
手段と、前記N種類の時間間隔のそれぞれを、前記基準
時間間隔で除算した除算値のうちから、それぞれ互いに
異なる1つの除算値を保持した後、前記計時手段より、
前記基準信号を受信する度に、その保持値を所定値だけ
減ずることでダウンカウントし、該保持値が予め決めら
れた値以下になると、データ取り込み指示を送出した
後、その保持値を再びダウンカウント開始前の値に戻す
N個のダウンカウンタと、いずれかのダウンカウンタよ
り、データ取り込み指示を受けると、該ダウンカウンタ
に対応する時間間隔にてサンプリングすべきデータの種
類を前記記憶手段より読み出し、該データの取り込みを
行う取り込み手段とを具備することを特徴とする。
According to a third aspect of the present invention, in a data sampling apparatus for sampling a plurality of types of data at any one of N types (N is an integer of 2 or more) of different time intervals, the N types of time intervals and Storage means for storing the correspondence with the type of data to be sampled at each time interval, timing means for outputting a reference signal at each predetermined reference time interval, and each of the N kinds of time intervals as the reference From the divided values divided by the time interval, after holding one divided value different from each other, from the time measuring means,
Each time the reference signal is received, the holding value is decremented by a predetermined value to down-count, and when the holding value becomes less than or equal to a predetermined value, a data fetching instruction is sent and then the holding value is down again. Upon receiving a data fetching instruction from any of the N down counters that return the value to the value before the start of counting and any of the down counters, the type of data to be sampled is read from the storage means at a time interval corresponding to the down counter. And a capturing means for capturing the data.

【0008】請求項4記載の発明は、請求項3記載のデ
ータサンプリング装置において、前記取り込み手段は、
取り込んだデータに対して、該データを取り込んだ時間
間隔を示す識別データを付加し、サンプリング終了後、
付加された前記識別データに基づいて、各データを取り
込んだ時間間隔毎に分類する分類手段を具備することを
特徴とする。
According to a fourth aspect of the invention, in the data sampling apparatus according to the third aspect, the fetching means is
Identification data indicating the time interval for capturing the data is added to the captured data, and after sampling is completed,
It is characterized by further comprising a classifying means for classifying each data on the basis of the added identification data for each time interval in which each data is taken in.

【0009】[0009]

【発明の実施の形態】以下、図面を参照して、この発明
の実施形態について説明する。図1は、この発明の一実
施形態によるデータサンプリング方法を実行する自動車
のデータ収録装置(以下、データロガーと称する)の構
成例を示すブロック図である。なお、この図において、
データロガー1のブロック図は電気自動車2の外部に図
示されているが、実際には、図に示すように、データロ
ガー1は電気自動車2のトランク部に収納されている。
DETAILED DESCRIPTION OF THE INVENTION Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of an automobile data recording device (hereinafter referred to as a data logger) that executes a data sampling method according to an embodiment of the present invention. In this figure,
Although the block diagram of the data logger 1 is shown outside the electric vehicle 2, the data logger 1 is actually stored in the trunk portion of the electric vehicle 2 as shown in the figure.

【0010】この図において、コントロール回路3は、
CPU(中央処理装置),ROM(リードオンリメモ
リ),RAM(ランダムアクセスメモリ)等からなる制
御用回路であり、図2に示すように、メインCPU・5
0を中心としたメインコントロール部40と、通信CP
U・70を中心とした通信コントロール部41とから構
成される。このコントロール回路3に関する構成は、図
2を用いて、後で詳述する。また、図1において、時計
IC・4は、データをサンプリングした日時を記録する
為に用いる。
In this figure, the control circuit 3 is
A CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like are control circuits. As shown in FIG.
Main control unit 40 centered on 0 and communication CP
It is composed of a communication control section 41 centering on U / 70. The configuration relating to the control circuit 3 will be described later in detail with reference to FIG. Further, in FIG. 1, the clock IC-4 is used to record the date and time when the data is sampled.

【0011】40MBメモリ部5は、バッテリーバック
アップされたSRAMであり、その記憶容量は40メガ
バイトである。なお、上記バッテリーバックアップに
は、電気自動車2のサブバッテリー110から供給され
る電源が用いられるが、該サブバッテリー110による
電源供給がない場合には、本データロガー1に設けられ
た電池(BATT)6から供給される電源が用いられ
る。ICカードI/F・7は、ICカードライタ112
を備えたパーソナルコンピュータ113によってICカ
ード111に書き込まれた本データロガー1に対する各
種動作設定を、該ICカード111より読み込む。な
お、上記動作設定としては、上記通信コントロール部4
1において用いられる通信条件(ビット数,パリティの
有無,ストップビット数,チャンネル番号,通信データ
の格納先アドレス等)と、データ測定条件(測定レン
ジ,サンプリングタイム等)がある。
The 40 MB memory section 5 is a battery-backed SRAM, and its storage capacity is 40 megabytes. The battery backup uses the power supplied from the sub-battery 110 of the electric vehicle 2. If the sub-battery 110 does not supply power, the battery (BATT) provided in the data logger 1 is used. The power supplied from 6 is used. IC card I / F.7 is IC card writer 112
Various operation settings for the data logger 1 written in the IC card 111 by the personal computer 113 having the above are read from the IC card 111. In addition, as the operation setting, the communication control unit 4 is used.
1 includes the communication conditions (the number of bits, the presence / absence of parity, the number of stop bits, the channel number, the storage address of communication data, etc.) and the data measurement conditions (the measurement range, the sampling time, etc.).

【0012】RS−232CI/F・8は、本データロ
ガー1の動作状態・異常検出内容等を電気自動車2に設
けられた外部表示装置103に表示する際の、通信用I
/Fである。温度計測部9は、熱電対に生じる熱起電力
を利用して、メインバッテリー101各部の温度を計測
する。温度計測部9には、6チャンネル入力,各チャン
ネルの分解能8bit以上のTMUが用いられており、
−50℃〜200℃または0℃〜1200℃のいずれか
の測定レンジにて温度測定を行う。アナログ入力部10
は、DCモータ102に設けられた電流計・加速度セン
サ等の出力値(アナログ値)を取り込む。上記アナログ
入力部10は、8bit以上の分解能で上記アナログ値
を取り込み、そのチャンネル数は6チャンネルである。
なお、上記アナログ入力部10による測定レンジは、各
チャンネル毎に、0〜1〔V〕,0〜5〔V〕,0〜1
0〔V〕,0〜20〔V〕のいずれかに設定可能であ
る。
The RS-232C I / F.8 is a communication I / F for displaying the operating state and abnormality detection contents of the data logger 1 on the external display device 103 provided in the electric vehicle 2.
/ F. The temperature measuring unit 9 measures the temperature of each unit of the main battery 101 by using the thermoelectromotive force generated in the thermocouple. The temperature measuring unit 9 uses TMU with 6-channel input and a resolution of 8 bits or more for each channel.
The temperature is measured in a measurement range of either -50 ° C to 200 ° C or 0 ° C to 1200 ° C. Analog input section 10
Captures the output value (analog value) of the ammeter / acceleration sensor or the like provided on the DC motor 102. The analog input unit 10 takes in the analog value with a resolution of 8 bits or more, and the number of channels is 6.
The measurement range of the analog input unit 10 is 0 to 1 [V], 0 to 5 [V], 0 to 1 for each channel.
It can be set to either 0 [V] or 0 to 20 [V].

【0013】電気自動車2には、様々な機能を制御する
ECU(Electrical Control Unit)が設けられている
(ECU・104〜ECU・108)。そして、ECU
モニター入力部11は、上記ECU・104〜108に
よる制御内容を常時監視する。この監視用チャンネルと
して、5つのECU・104〜108のうち、3つのE
CUについて各16チャンネル、残りの2つのECUに
ついて各25チャンネルが割り当てられている。
The electric vehicle 2 is provided with ECUs (Electrical Control Units) for controlling various functions (ECU 104 to ECU 108). And the ECU
The monitor input unit 11 constantly monitors the control contents of the ECUs 104 to 108. Of these five ECUs 104 to 108, three Es are used as the monitoring channel.
16 channels are assigned to each CU, and 25 channels are assigned to each of the remaining two ECUs.

【0014】SW入力部12は、電気自動車2に設けら
れたイグニションキー(IG1)および充電キー(KC
HG)109のON/OFFを検出する。レギュレータ
(REG)13は、サブバッテリー110より供給され
る12〔V〕の電源電圧から、本データロガー1各部を
動作させるための5〔V〕の電源電圧を生成する。
The SW input section 12 includes an ignition key (IG1) and a charge key (KC) provided on the electric vehicle 2.
HG) 109 ON / OFF is detected. The regulator (REG) 13 generates a power supply voltage of 5 [V] for operating each part of the data logger 1 from the power supply voltage of 12 [V] supplied from the sub-battery 110.

【0015】次に、図2を参照して、上記コントロール
回路3およびその周辺回路の構成を説明する。まず、メ
インコントロール部40から説明する。メインCPU・
50は、本データロガー1各部の制御と、40MBメモ
リ部5に対するデータの格納・読み出し・保持等を行
う。メインROM・51には、メインCPU・50にお
いて用いられる制御用プログラムが格納されている。メ
インRAM・52は、上記制御用プログラムをロードし
たり、該制御用プログラムの実行中にデータを一時的に
記憶する。
Next, the configurations of the control circuit 3 and its peripheral circuits will be described with reference to FIG. First, the main control unit 40 will be described. Main CPU
A control unit 50 controls each unit of the data logger 1 and stores / reads / holds data in / from the 40 MB memory unit 5. A control program used in the main CPU 50 is stored in the main ROM 51. The main RAM 52 loads the control program and temporarily stores data during execution of the control program.

【0016】また、メインROM・51には、上記制御
プログラムの他に、サンプリングテーブルと呼ばれるテ
ーブルも記憶されている。以下、このサンプリングテー
ブルについて説明する。上述したように、本データロガ
ーは、データ収録用として多数のチャンネルを有してい
る。すなわち、5つのECU・104〜108のうち3
つのECUについて各16チャンネル、残りの2つのE
CUについて各25チャンネルが割り当てられ、この他
に、アナログ入力に6チャンネル、外部温度入力に6チ
ャンネルが割り当てられる。これらのチャンネルに関し
ては、全てのチャンネルにおいて同じタイミングでデー
タ収録が行われる訳ではなく、各チャンネルのデータ
は、予め設定された複数種類のサンプリングタイムの内
のいずれかで収録される。本データロガー・1では、上
記サンプリングタイムとしては、50ms,100m
s,200ms,500ms,1s,2s,5s,10
s,30s,1min,5minの中から、同時に3種
類のサンプリングタイムを選択し、3つのダウンカウン
タ(第1ダウンカウンタ64〜第3ダウンカウンタ6
6)に設定することができる。そして、各チャンネルよ
り得られたデータは、全て、この3種類の内のいずれか
のサンプリングタイム毎に収録される。そのため、上記
サンプリングテーブルには、選択された3種類のサンプ
リングタイム(例えば、200ms,1min,5mi
n)と、それぞれのサンプリングタイムで収録されるべ
きデータの種類(温度測定部9,アナログ入力部10,
ECUモニター入力部11のいずれかにおけるチャンネ
ル番号)との組が記憶されている。
In addition to the above control program, the main ROM 51 also stores a table called a sampling table. The sampling table will be described below. As described above, this data logger has a large number of channels for recording data. That is, 3 of the 5 ECUs 104 to 108
16 channels each for 1 ECU, 2 remaining Es
Each 25 channels are allocated to the CU, 6 channels are allocated to the analog input, and 6 channels are allocated to the external temperature input. With respect to these channels, data recording is not performed at the same timing in all channels, and the data of each channel is recorded at any of a plurality of preset sampling times. In this data logger-1 the sampling time is 50ms, 100m
s, 200ms, 500ms, 1s, 2s, 5s, 10
Three types of sampling times are selected simultaneously from s, 30s, 1 min, and 5 min, and three down counters (first down counter 64 to third down counter 6) are selected.
6) can be set. Then, all the data obtained from each channel are recorded at every sampling time of these three types. Therefore, in the sampling table, three types of selected sampling times (for example, 200 ms, 1 min, 5 mi) are selected.
n) and the type of data to be recorded at each sampling time (temperature measuring unit 9, analog input unit 10,
A channel number in any one of the ECU monitor input units 11) is stored.

【0017】第1ダウンカウンタ64〜第3ダウンカウ
ンタ66は、それぞれ、専用ICからなるダウンカウン
タであり、所定パルス(クロック,割り込みパルス等)
が入る度に、その保持値をデクリメントしていく。ま
た、プリセット機能を用いたデータロードにより、ダウ
ンカウントすべきカウント開始値(以下、ダウンカウン
ト値と称す)を任意の値に設定することができる。
Each of the first down counter 64 to the third down counter 66 is a down counter composed of a dedicated IC and has a predetermined pulse (clock, interrupt pulse, etc.).
Each time is entered, the held value is decremented. Moreover, the count start value to be down-counted (hereinafter referred to as a down-count value) can be set to an arbitrary value by data loading using the preset function.

【0018】レベル変換I/F・54は、本データロガ
ー1に設けられた操作部53の各種操作スイッチのON
/OFFを検出し、該ON/OFFによる操作信号を、
メインバス63における信号レベルに変換する。TMU
・55は、温度計測部9内に設けられ、熱電対に生じる
熱起電力を利用して温度を計測する。計測された温度
は、RS−232CI/F・56を介して、メインバス
63上に乗せられる。
The level conversion I / F 54 is for turning on various operation switches of the operation unit 53 provided in the data logger 1.
/ OFF is detected, and the operation signal by ON / OFF is
It is converted to a signal level on the main bus 63. TMU
55 is provided in the temperature measuring unit 9 and measures the temperature by utilizing the thermoelectromotive force generated in the thermocouple. The measured temperature is put on the main bus 63 via the RS-232C I / F 56.

【0019】ヘッドアンプ(HEADAMP)57,マ
ルチプレクサ(MPX)58,A/D変換器59は、図
1に示すアナログ入力部10を構成する。ヘッドアンプ
57は、DCモータ102より取り込んだ6つの各種ア
ナログ入力のそれぞれを増幅する。マルチプレクサ58
は、ヘッドアンプ57が増幅した6つのアナログ入力の
中から、1つの入力を定期的に順次選択し、出力する。
A/D変換器59は、マルチプレクサ58が選択したア
ナログ値を、所定のビット数のデジタル値にA/D変換
する。PIOインターフェイス(PIOI/F)61
は、パーソナルコンピュータ114の拡張スロット11
4aにセットされたPIOボード60との間で、40M
Bメモリ部5に格納されているデータの転送を行う。上
述した、メインCPU・50,メインROM・51,メ
インRAM・52,時計IC・4,40MBメモリ部
5,レベル変換I/F・54,ICカードI/F・7,
RS−232CI/F・8,RS−232CI/F・5
6,A/D変換器59,PIOI/F・61,第1ダウ
ンカウンタ64〜第3ダウンカウンタ66は、メインバ
ス63に接続されている。
The head amplifier (HEADAMP) 57, the multiplexer (MPX) 58, and the A / D converter 59 constitute the analog input section 10 shown in FIG. The head amplifier 57 amplifies each of the six various analog inputs taken from the DC motor 102. Multiplexer 58
Periodically selects one of the six analog inputs amplified by the head amplifier 57 and outputs the selected input.
The A / D converter 59 A / D converts the analog value selected by the multiplexer 58 into a digital value having a predetermined number of bits. PIO interface (PIO I / F) 61
Is the expansion slot 11 of the personal computer 114.
40M between PIO board 60 set to 4a
The data stored in the B memory unit 5 is transferred. The above-mentioned main CPU, 50, main ROM, 51, main RAM, 52, clock IC, 4, 40 MB memory section 5, level conversion I / F, 54, IC card I / F, 7,
RS-232CI / F.8, RS-232CI / F.5
6, the A / D converter 59, the PIO I / F 61, the first down counter 64 to the third down counter 66 are connected to the main bus 63.

【0020】次に、通信コントロール部41について説
明する。通信コントロール部41は、電気自動車2に設
けられた5つのECU・104〜108の制御内容を示
すデータ(以下、制御データと称す)の受信を主な機能
とする。通信CPU・70は、上記ECU・104〜1
08との通信の制御、および、該ECU・104〜10
8から送られてくる各制御データのDPRAM・73へ
の書き込みを行う。通信ROM・72には、通信CPU
・70において用いられる制御用プログラムが格納され
ている。通信RAM・71は、上記制御用プログラムを
ロードしたり、該制御用プログラムの実行中に制御デー
タを一時的に記憶する。
Next, the communication control section 41 will be described. The communication control unit 41 has a main function of receiving data indicating control contents of the five ECUs 104 to 108 provided in the electric vehicle 2 (hereinafter, referred to as control data). The communication CPU 70 is the ECU 104-1
Control of communication with 08 and the ECU 104-10
Write each control data sent from 8 to the DPRAM 73. Communication ROM 72 has a communication CPU
The control program used in 70 is stored. The communication RAM 71 loads the control program and temporarily stores control data during execution of the control program.

【0021】DPRAM・73は、デュアルポートRA
Mであり、該デュアルポートRAMに対する制御データ
の書き込みと読み出しを、互いに異なるタイミングで、
並行して行うことができる。モニター通信I/F・74
〜78は、それぞれに対応するECUと本データロガー
1との通信時における通信タイミング調整,データフォ
ーマット変換,信号レベル変換等を行う。上述した通信
CPU・70,通信ROM・72,通信RAM・71,
モニター通信I/F・74〜78は、通信バス79に接
続されている。
DPRAM 73 is a dual port RA
M, and write and read of control data to and from the dual port RAM at different timings.
Can be done in parallel. Monitor communication I / F ・ 74
Reference numerals 78 to 78 perform communication timing adjustment, data format conversion, signal level conversion, and the like during communication between the corresponding ECU and the data logger 1. Communication CPU 70, communication ROM 72, communication RAM 71,
The monitor communication I / Fs 74 to 78 are connected to the communication bus 79.

【0022】次に、上記構成による自動車のデータ収録
装置の動作を説明する。オペレータが電気自動車2のイ
グニションキー(IG1)を入れると、SW入力部12
は該キーがONになったことを検知して、リレースイッ
チ14をONにする。リレースイッチ14がONになる
と、サブバッテリー110から12〔V〕の電源電圧
が、レギュレータ13に供給される。レギュレータ13
は、供給された12〔V〕の電源電圧から、5〔V〕の
電源電圧を作り、データロガー1の各部に供給する。ま
た、リレースイッチ14がONになると、サブバッテリ
ー110から12〔V〕の電源電圧が、バッテリー電圧
用ECU・107およびバッテリー温度用ECU・10
8に供給される。
Next, the operation of the automobile data recording device having the above-mentioned configuration will be described. When the operator pushes the ignition key (IG1) of the electric vehicle 2, the SW input unit 12
Detects that the key is turned on and turns on the relay switch 14. When the relay switch 14 is turned on, the power voltage of 12 [V] is supplied from the sub-battery 110 to the regulator 13. Regulator 13
Generates a power supply voltage of 5 [V] from the supplied power supply voltage of 12 [V] and supplies it to each unit of the data logger 1. Further, when the relay switch 14 is turned on, the power supply voltage of 12 [V] from the sub-battery 110 causes the battery voltage ECU 107 and the battery temperature ECU 10.
8 is supplied.

【0023】電源が供給されると、メインCPU・50
は、制御プログラムに従って動作し、メインROM・5
1に記憶されているサンプリングテーブルをメインRA
M・52に展開する。また、電源が供給されると、メイ
ンCPU・50は、同じく制御プログラムに従って動作
し、第1ダウンカウンタ64〜第3ダウンカウンタ66
のそれぞれに対して、互いに異なるダウンカウント値を
設定する。ここでは一例として、第1ダウンカウンタは
200msダウンカウント用とし、そのダウンカウント
値を”20(=200ms÷10ms)”とする。同様
に、第2ダウンカウンタ(1minダウンカウント用)
のダウンカウント値は”6000(=60000ms÷
10ms)”とし、第3ダウンカウンタ(5minダウ
ンカウント用)のダウンカウント値は”30000(=
300000ms÷10ms)”とする。なお、ここで
示した”10ms”という値は、メインCPU・50が
各ダウンカウンタに対して割り込みを入力する時間間隔
(以下、基準サンプリングタイムと称す)である。各ダ
ウンカウンタは、上記メインCPU・50による割り込
みが入る度に(10ms毎)、その保持値をデクリメン
トしていくので、例えば、第1ダウンカウンタの保持値
が”20”からデクリメントされ”0”になると、20
0ms(=10ms×20)が経過したことになる。ま
た、第1ダウンカウンタ64〜第3ダウンカウンタ66
の代わりに、メインRAM・52のレジスターの値をカ
ウント値として用いてもよい。
When power is supplied, the main CPU 50
Operates according to the control program, and main ROM 5
Sampling table stored in the main RA
Expand to M52. When the power is supplied, the main CPU 50 also operates according to the control program, and the first down counter 64 to the third down counter 66 are operated.
Different down count values are set for each of the above. Here, as an example, the first down counter is for 200 ms down counting, and the down count value is “20 (= 200 ms / 10 ms)”. Similarly, the second down counter (for 1 min down count)
The down count value of "6000 (= 60,000 ms ÷
10 ms) ", and the down count value of the third down counter (for 5 min down count) is" 30000 (=
The value "10 ms" shown here is a time interval (hereinafter referred to as a reference sampling time) at which the main CPU 50 inputs an interrupt to each down counter. Each down counter decrements its holding value each time the main CPU 50 interrupts (every 10 ms). Therefore, for example, the holding value of the first down counter is decremented from "20" to "0". When it comes to 20
This means that 0 ms (= 10 ms × 20) has elapsed. Further, the first down counter 64 to the third down counter 66
Instead of, the value of the register of the main RAM 52 may be used as the count value.

【0024】次に、オペレータは、パーソナルコンピュ
ータ113を用いて、本データロガー1に対する各種動
作設定を決定し、該動作設定をICカード111に書き
込む。そして、オペレータは上記動作設定が書き込まれ
たICカード111を、ICカードライタ112から取
り外し、本データロガー1に設けられたICカードI/
F・7に差し込む。オペレータが、本データロガー1の
操作部53に設けられたICカード読み込みスイッチ
(図示略)を操作すると、メインCPU・50は、該I
Cカード111内の上記動作設定を、上記ICカードI
/F・7を介して、メインRAM・52にロードする。
また、このとき、上記動作設定に関するデータ量が小さ
い場合には、メインCPU・50内のレジスタに直接ロ
ードするようにしてもよい。
Next, the operator uses the personal computer 113 to determine various operation settings for the data logger 1 and writes the operation settings in the IC card 111. Then, the operator removes the IC card 111 in which the operation settings are written from the IC card writer 112, and the IC card I / I provided in the data logger 1 is removed.
Insert into F7. When the operator operates an IC card read switch (not shown) provided on the operation unit 53 of the data logger 1, the main CPU 50 causes the main CPU 50 to
The operation settings in the C card 111 are set in the IC card I
Load to main RAM 52 via / F7.
At this time, if the amount of data relating to the operation setting is small, the data may be directly loaded into the register in the main CPU 50.

【0025】また、先の説明において、メインCPU・
50は、電源投入時に、メインROM・51に記憶され
たサンプリングテーブルをメインRAM・52に展開す
るとしたが、その他にも、オペレータが、パーソナルコ
ンピュータ113を用いて、該サンプリングテーブルの
内容を随時更新し、該更新内容をICカード111を介
して、メインRAM・52に格納するようにしても良
い。同様に、各ダウンカウンタ64〜66に設定される
ダウンカウント値は、オペレータが、パーソナルコンピ
ュータ113を用いて設定し、該設定内容をICカード
111を介して、各ダウンカウンタ64〜66に設定す
るようにしても良い。
Further, in the above description, the main CPU
In the case of 50, when the power is turned on, the sampling table stored in the main ROM 51 is expanded in the main RAM 52, but in addition, the operator uses the personal computer 113 to update the contents of the sampling table at any time. However, the updated contents may be stored in the main RAM 52 via the IC card 111. Similarly, the down count value set in each down counter 64-66 is set by the operator using the personal computer 113, and the set content is set in each down counter 64-66 via the IC card 111. You may do it.

【0026】動作設定の読み出し完了後、オペレータ
が、操作部53のスタートスイッチをONにすると、本
データロガー1はロギングを開始し、温度計測部9,ア
ナログ入力部10,ECUモニター入力部11は、並行
して、それぞれデータの取り込みを行う。以下、個別に
その動作を説明する。
When the operator turns on the start switch of the operation unit 53 after reading the operation settings, the data logger 1 starts logging, and the temperature measuring unit 9, analog input unit 10, and ECU monitor input unit 11 In parallel, the data is taken in respectively. The operation will be described below individually.

【0027】温度計測部9に設けられたTMU・55
は、メインバッテリー101各部の温度を測定し、該測
定値をTMU・55の内蔵メモリ(図示略)に記憶す
る。TMU・55は、測定値の内蔵メモリへの記憶と並
行して、RS−232CI/F・56を介して、該内蔵
メモリ中の測定値をメインバス63に送信するので、メ
インCPU・50は該測定値をメインRAM・52に格
納する。
TMU 55 provided in the temperature measuring unit 9
Measures the temperature of each part of the main battery 101 and stores the measured value in the internal memory (not shown) of the TMU 55. The TMU.55 transmits the measured value in the internal memory to the main bus 63 via the RS-232C I / F.56 in parallel with the storage of the measured value in the internal memory. The measured value is stored in the main RAM 52.

【0028】アナログ入力部10より延びる6つのアナ
ログ入力端子は、該DCモータ102に取り付けられた
所定のセンサ(電流計,加速度センサ等)の出力値を取
り込む。ヘッドアンプ57は、DCモータ102より取
り込んだ6つの各種アナログ入力のそれぞれを増幅す
る。マルチプレクサ58は、ヘッドアンプ57が増幅し
た6つのアナログ入力の中から、1つの入力を定期的に
順次選択し、出力する。A/D変換器59は、マルチプ
レクサ58が選択したアナログ値を、所定のビット数の
デジタル値にA/D変換する。A/D変換器59の出力
値は、メインCPU・50によって、メインRAM・5
2に格納される。
Six analog input terminals extending from the analog input section 10 take in output values of a predetermined sensor (ammeter, acceleration sensor, etc.) attached to the DC motor 102. The head amplifier 57 amplifies each of the six various analog inputs taken from the DC motor 102. The multiplexer 58 periodically and sequentially selects one input from the six analog inputs amplified by the head amplifier 57 and outputs it. The A / D converter 59 A / D converts the analog value selected by the multiplexer 58 into a digital value having a predetermined number of bits. The output value of the A / D converter 59 is output by the main CPU 50 to the main RAM 5
Stored in 2.

【0029】ECU・104〜108による各種制御デ
ータは、該ECUに接続されたモニター通信I/F・7
4〜78を介して、ECUモニター入力部11に取り込
まれる。通信CPU・70は、モニター通信I/F・7
4〜78を介して読み込まれた上記制御データを、一定
のごく短い周期(一例としては、数10ms周期)で通
信RAM・71に格納していく。そのため、通信RAM
・71内に格納されている古い制御データは、次々と最
新の制御データに更新されていく。メインCPU・50
は、通信CPU・70に、DPRAM・73への書き込
み命令を行い、書き込みが完了した後、DPRAM・7
3内に格納されている各種制御データを、メインRAM
・52へ読み出す。
Various control data from the ECUs 104 to 108 are sent to the monitor communication I / F 7 connected to the ECU.
It is taken into the ECU monitor input unit 11 via 4-78. Communication CPU 70 is monitor communication I / F 7
The control data read via 4 to 78 is stored in the communication RAM 71 at a constant very short cycle (for example, several tens ms cycle). Therefore, communication RAM
The old control data stored in 71 is updated to the latest control data one after another. Main CPU 50
Sends a write command to the DPRAM 73 to the communication CPU 70, and after the writing is completed, the DPRAM 7
Various control data stored in 3 is stored in main RAM
・ Read to 52.

【0030】このように、温度計測部9,アナログ入力
部10,ECUモニター入力部11で得られた各データ
は、メインバス63を介して、メインRAM・52に読
み出されるわけであるが、このときの読み出す時間間隔
(すなわち、サンプリングタイム)は、サンプリングテ
ーブルを用いて、以下に示す方法で決定される。まず、
メインCPU・50は、予め設定された基準サンプリン
グタイム(例えば、10ms)毎に、3つのダウンカウ
ンタ(第1ダウンカウンタ64〜第3ダウンカウンタ6
6)に対して割り込みを入れる。3つのダウンカウンタ
は、それぞれ、上記基準サンプリングタイムによる割り
込みが入る度に、自己の保持値(カウント値)を1減ら
す(デクリメントする)。例えば、第1カウンタ64
(200msダウンカウント用)は、1回目の割り込み
により、初期設定時の保持値”20(=200÷1
0)”を”19”に減らし、次の割り込みにより、該保
持値”19”を”18”に減らし・・・というように割
り込みが入る度に減らしていく。
As described above, the respective data obtained by the temperature measuring unit 9, the analog input unit 10, and the ECU monitor input unit 11 are read out to the main RAM 52 via the main bus 63. The time interval for reading (that is, the sampling time) is determined by the following method using a sampling table. First,
The main CPU 50 has three down counters (first down counter 64 to third down counter 6) for each preset reference sampling time (for example, 10 ms).
Insert interrupt for 6). Each of the three down counters decrements their own holding value (count value) by 1 each time an interrupt due to the reference sampling time is input. For example, the first counter 64
(For 200ms down count), the value held by the first interruption is "20 (= 200/1)
0) ”is reduced to“ 19 ”, and the next interrupt causes the held value“ 19 ”to be reduced to“ 18 ”, and so on.

【0031】他の2つのダウンカウンタ(1minダウ
ンカウント用,5minダウンカウント用)も、ダウン
カウント開始時の保持値が異なるだけで、上記割り込み
が入る度に、その保持値をデクリメントしていく。そし
て、それぞれのダウンカウンタは、その保持値が”0”
になると、そのことをメインCPU・50に通知した
後、該保持値を再びダウンカウント値(200msダウ
ンカウント用ならば”20”、1minダウンカウント
用ならば”6000”、5minダウンカウント用なら
ば”30000”)に戻し、次のダウンカウントを開始
する。
The other two down counters (for 1 min down count and for 5 min down count) differ only in the hold value at the start of the down count, and the hold value is decremented each time the interrupt occurs. Then, the held value of each down counter is "0".
Then, after notifying the main CPU 50 of the fact, the holding value is again reduced to a down count value (“20” for 200 ms down count, “6000” for 1 min down count, and 5 min for 5 min down count). "30000") and start the next down count.

【0032】3つのダウンカウンタ(第1ダウンカウン
タ64〜第3ダウンカウンタ66)のうちのいずれかの
ダウンカウンタから、その保持値が”0”になった旨の
通知を受けると、メインCPU・50は、その通知がど
のダウンカウンタから供給されたものかを確認する。こ
れにより、メインCPU・50は、そのダウンカウンタ
がカウントしたサンプリングタイムを認識する。サンプ
リングタイムを認識すると、メインCPU・50は、メ
インRAM・52内のサンプリングテーブルを参照し
て、該サンプリングタイム毎に収録するように設定され
たデータの種類(測定部およびそのチャンネル番号)を
取得する。そして、メインCPU・50は、該測定部の
チャンネル番号から得られるデータを、メインRAM・
52に格納する。
When any one of the three down counters (first down counter 64 to third down counter 66) receives a notification that the held value is "0", the main CPU 50 confirms from which down counter the notification was supplied. As a result, the main CPU 50 recognizes the sampling time counted by the down counter. When the sampling time is recognized, the main CPU 50 refers to the sampling table in the main RAM 52 to acquire the type of data (measurement unit and its channel number) set to be recorded at each sampling time. To do. Then, the main CPU 50 transfers the data obtained from the channel number of the measuring unit to the main RAM
It stores in 52.

【0033】具体的一例を上げると、第1ダウンカウン
タ64(200msダウンカウント用)の保持値が”
0”になると、該第1ダウンカウンタ64は、その旨を
メインCPU・50に通知する。メインCPU・50
は、該通知が第1ダウンカウンタ64から来たことを確
認すると、該カウンタがカウントしたサンプリングタイ
ム(200ms)を認識する。このサンプリングタイム
の認識方法としては、電源投入時において、それぞれの
ダウンカウンタにダウンカウント値をセットするとき
に、それぞれのダウンカウンタに対応したサンプリング
タイムをメインRAM・52に記録しておいても良い
し、また、メインCPU・50が、該ダウンカウンタの
ダウンカウント値(例えば、200msダウンカウント
用ならば”20”)に基準サンプリングタイム(この例
においては10ms)を乗算してサンプリングタイムを
算出するようにしても良い。メインCPU・50は、メ
インRAM・52内のサンプリングテーブルを参照し
て、200ms毎にサンプリングするように設定されて
いるデータの種類(例えば、TMU・55のチャンネル
1〜6から得られるデータ等)を確認し、該データを、
上述した方法により、メインバス63を介して、メイン
RAM・52に格納する。
As a concrete example, the held value of the first down counter 64 (for 200 ms down count) is "
When it becomes "0", the first down counter 64 notifies the main CPU 50 of that fact.
Confirms that the notification comes from the first down counter 64, recognizes the sampling time (200 ms) counted by the counter. As a method of recognizing the sampling time, when the down count value is set in each down counter when the power is turned on, the sampling time corresponding to each down counter may be recorded in the main RAM 52. In addition, the main CPU 50 calculates the sampling time by multiplying the down count value of the down counter (for example, "20" for 200 ms down count) by the reference sampling time (10 ms in this example). You may do it. The main CPU 50 refers to the sampling table in the main RAM 52 to set the type of data set to sample every 200 ms (for example, data obtained from channels 1 to 6 of TMU 55). And confirm the data,
By the method described above, the data is stored in the main RAM 52 via the main bus 63.

【0034】そして、メインCPU・50は、メインR
AM・52に格納された各種データ(TMU・55によ
る温度測定値,A/D変換された各種アナログ測定値,
各ECU・104〜108による各種制御データ)を、
所定のフォーマットに展開・整理した後、40MBメモ
リ部5に格納する。なお、40MBメモリ部5にデータ
を格納する際に、メインCPU・50は、そのデータが
どのサンプリングタイムで得られたデータであるかを示
すフラグ(以下、サンプリングタイムフラグと称す)を
一緒に付加する。
The main CPU 50 is the main CPU
Various data stored in AM ・ 52 (temperature measured value by TMU ・ 55, various analog measured value by A / D conversion,
Various control data by each ECU 104-108)
The data is stored in the 40 MB memory unit 5 after being expanded / arranged into a predetermined format. When storing data in the 40 MB memory unit 5, the main CPU 50 also adds a flag (hereinafter, referred to as a sampling time flag) indicating at what sampling time the data was obtained. To do.

【0035】上述したロギングは、オペレータが操作部
53のストップスイッチをONにするまで続けられる。
なお、上記40MBメモリ部5は電池(BATT)6に
よってバッテリーバックアップされているので、ロギン
グ終了後に、本データロガー1の電源を落としても、該
40MBメモリ部5内の各種データはそのまま保持され
る。
The above-mentioned logging is continued until the operator turns on the stop switch of the operation unit 53.
Since the 40 MB memory unit 5 is backed up by the battery (BATT) 6, even if the power of the data logger 1 is turned off after the end of logging, various data in the 40 MB memory unit 5 is retained as it is. .

【0036】次に、オペレータが、パーソナルコンピュ
ータ114のキーボードを操作して、データの吸い上げ
を指示すると、40MBメモリ部5に保持されたデータ
は、本データロガー1に設けられたPIOI/F・6
1、および、パーソナルコンピュータ114の拡張スロ
ット114aにセットされたPIOボード60を介し
て、該パーソナルコンピュータ114側へ読み込まれ
る。このとき、40MBメモリ部5においてはバイナリ
データであった上記データは、パーソナルコンピュータ
114ではアスキーデータに変換される等の、データ形
態およびフォーマット等の変換が行われる場合もある。
また、このとき、パーソナルコンピュータ114は、各
データの先頭に付けられたサンプリングタイムフラグを
参照することにより、それぞれのデータをサンプリング
タイムごとに分類し、所定のファイルに格納する。以上
で、本データロガー1の動作の説明を終了する。
Next, when the operator operates the keyboard of the personal computer 114 to instruct to download the data, the data held in the 40 MB memory unit 5 is stored in the PIO I / F 6 provided in the data logger 1.
1 and is read to the personal computer 114 side via the PIO board 60 set in the expansion slot 114a of the personal computer 114. At this time, the above-mentioned data, which was binary data in the 40 MB memory unit 5, may be converted in data form and format such as being converted into ASCII data in the personal computer 114.
Further, at this time, the personal computer 114 classifies each data by sampling time by referring to the sampling time flag attached to the head of each data and stores it in a predetermined file. This is the end of the description of the operation of the data logger 1.

【0037】次に、請求項記載の発明と本実施形態との
対応関係を説明する。 記憶手段……メインRAM・52 計時手段……時計IC・4 ダウンカウンタ……第1ダウンカウンタ64〜第3ダウ
ンカウンタ66 取り込み手段……メインCPU・50,40MBメモリ
部5 分類手段……パーソナルコンピュータ114 以上、この発明の実施形態を図面を参照して詳述してき
たが、具体的な構成はこの実施形態に限られるものでは
なく、この発明の要旨を逸脱しない範囲の設計の変更等
があってもこの発明に含まれる。
Next, the correspondence between the claimed invention and this embodiment will be described. Storage means ...... Main RAM ・ 52 Timekeeping means ・ ・ ・ Clock IC ・ 4 Down counter ...... First down counter 64 to third down counter 66 Loading means ...... Main CPU50, 40 MB Memory section 5 Sorting means ...... Personal computer 114 Although the embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to this embodiment, and there are design changes and the like without departing from the gist of the present invention. However, it is included in this invention.

【0038】[0038]

【発明の効果】以上説明したように、この発明によれ
ば、各データに関して、基準タイミングを生成する計時
手段を共用できるため、装置全体のコストを低く抑える
ことができる。また、サンプリングタイミングとデータ
との対応を記憶手段を用いて一元管理できるので、サン
プリング時における操作ミス等が生じ難い。さらに、付
加された識別データに基づいて、各データをサンプリン
グタイム毎に分類するので、収録したデータの分析が容
易である。
As described above, according to the present invention, it is possible to share the timing means for generating the reference timing with respect to each data, so that the cost of the entire apparatus can be kept low. Further, since the correspondence between the sampling timing and the data can be centrally managed by using the storage means, it is difficult to make an operation error at the time of sampling. Further, since each data is classified for each sampling time based on the added identification data, it is easy to analyze the recorded data.

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

【図1】この発明の一実施形態によるデータサンプリン
グ方法を実行する自動車のデータ収録装置の構成例を示
すブロック図である。
FIG. 1 is a block diagram showing a configuration example of a data recording device of an automobile that executes a data sampling method according to an embodiment of the present invention.

【図2】同実施形態によるコントロール回路およびその
周辺回路の構成例を示すブロック図である。
FIG. 2 is a block diagram showing a configuration example of a control circuit and its peripheral circuit according to the same embodiment.

【符号の説明】[Explanation of symbols]

1……データロガー、 2……電気自動車、 3……コ
ントロール回路、4……時計IC、 5……40MBメ
モリ部、 6……電池(BATT)、7……ICカード
I/F、 8……RS−232CI/F、9……温度計
測部、 10……アナログ入力部、11……ECUモニ
ター入力部、 12……SW入力部、13……レギュレ
ータ(REG)、 14……リレースイッチ
1 ... Data logger, 2 ... Electric vehicle, 3 ... Control circuit, 4 ... Clock IC, 5 ... 40MB memory section, 6 ... Battery (BATT), 7 ... IC card I / F, 8 ... ... RS-232C I / F, 9 ... Temperature measuring part, 10 ... Analog input part, 11 ... ECU monitor input part, 12 ... SW input part, 13 ... Regulator (REG), 14 ... Relay switch

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 複数種類のデータを、N種類(Nは2以
上の整数)の異なる時間間隔のいずれかでサンプリング
するデータサンプリング方法において、 サンプリング開始前に、 前記N種類の時間間隔と、各時間間隔にてサンプリング
すべきデータの種類との対応を、記憶手段に記憶してお
き、 サンプリングが開始されると、 前記N種類の時間間隔のそれぞれを所定の基準時間間隔
で除算した値を、それぞれ異なるダウンカウンタに対応
つけて保持させ、 計時手段は、各ダウンカウンタに、前記基準時間間隔毎
に、同じタイミングで基準信号を供給し、 各ダウンカウンタは、前記基準信号を受信する度に、そ
れぞれの保持値を所定値だけ減ずることでダウンカウン
トし、 各ダウンカウンタの内、その保持値が予め決められた値
以下になったダウンカウンタは、データ取り込み指示を
サンプリング手段に送出した後、その保持値を再びダウ
ンカウント開始前の値に戻し、 取り込み手段は、いずれかのダウンカウンタより、前記
データ取り込み指示を受けると、該ダウンカウンタに対
応する時間間隔にてサンプリングすべきデータの種類を
前記記憶手段より読み出し、該データの取り込みを行う
ことを特徴とするデータサンプリング方法。
1. A data sampling method for sampling a plurality of kinds of data at any of N kinds (N is an integer of 2 or more) of different time intervals, wherein before the start of sampling, the N kinds of time intervals and Correspondence with the type of data to be sampled at time intervals is stored in the storage means, and when sampling is started, a value obtained by dividing each of the N types of time intervals by a predetermined reference time interval, Each of the down counters is held in association with a different down counter, and the timing means supplies a reference signal to each of the down counters at the same timing at each of the reference time intervals, and each down counter receives each of the reference signals, Each held value is decreased by a predetermined value to count down, and the held value of each down counter has become less than or equal to a predetermined value. The down-counter sends the data fetching instruction to the sampling means, and then returns the held value to the value before the start of the down-counting again. When the fetching means receives the data fetching instruction from any of the down counters, the down-counter A data sampling method characterized in that the type of data to be sampled is read from the storage means at a time interval corresponding to a counter, and the data is fetched.
【請求項2】 請求項1記載のデータサンプリング方法
において、 前記取り込み手段は、取り込んだデータに対して、該デ
ータを取り込んだ時間間隔を示す識別データを付加し、 サンプリング終了後、 付加された前記識別データに基づいて、各データを取り
込んだ時間間隔毎に分類することを特徴とするデータサ
ンプリング方法。
2. The data sampling method according to claim 1, wherein the fetching means adds identification data indicating a time interval at which the data is fetched to the fetched data, and after the sampling, the added data is added. A data sampling method, characterized in that each data is classified based on identification data for each time interval.
【請求項3】 複数種類のデータを、N種類(Nは2以
上の整数)の異なる時間間隔のいずれかでサンプリング
するデータサンプリング装置において、 前記N種類の時間間隔と、各時間間隔にてサンプリング
すべきデータの種類との対応を記憶する記憶手段と、 所定の基準時間間隔毎に、基準信号を出力する計時手段
と、 前記N種類の時間間隔のそれぞれを、前記基準時間間隔
で除算した除算値のうちから、それぞれ互いに異なる1
つの除算値を保持した後、前記計時手段より、前記基準
信号を受信する度に、その保持値を所定値だけ減ずるこ
とでダウンカウントし、該保持値が予め決められた値以
下になると、データ取り込み指示を送出した後、その保
持値を再びダウンカウント開始前の値に戻すN個のダウ
ンカウンタと、 いずれかのダウンカウンタより、データ取り込み指示を
受けると、該ダウンカウンタに対応する時間間隔にてサ
ンプリングすべきデータの種類を前記記憶手段より読み
出し、該データの取り込みを行う取り込み手段とを具備
することを特徴とするデータサンプリング装置。
3. A data sampling apparatus for sampling a plurality of types of data at any of N types (N is an integer of 2 or more) of different time intervals, wherein the N types of time intervals and each time interval are sampled. Storage means for storing the correspondence with the type of data to be stored, timing means for outputting a reference signal at predetermined reference time intervals, and division of each of the N types of time intervals by the reference time interval One of the values that is different from each other
After holding two divided values, each time the reference signal is received from the time measuring means, the held value is reduced by a predetermined value to down-count, and when the held value becomes equal to or less than a predetermined value, data is stored. After sending the fetching instruction, the N down counters that return the held value to the value before the start of the down counting again, and when the data fetching instruction is received from any of the down counters, the time interval corresponding to the down counter is set. A data sampling device for reading the type of data to be sampled from the storage device and capturing the data.
【請求項4】 請求項3記載のデータサンプリング装置
において、 前記取り込み手段は、取り込んだデータに対して、該デ
ータを取り込んだ時間間隔を示す識別データを付加し、 サンプリング終了後、付加された前記識別データに基づ
いて、各データを取り込んだ時間間隔毎に分類する分類
手段を具備することを特徴とするデータサンプリング装
置。
4. The data sampling apparatus according to claim 3, wherein the capturing means adds identification data indicating a time interval of capturing the data to the captured data, and the added data is added after the sampling is completed. A data sampling apparatus comprising a classifying unit that classifies each data based on the identification data at each time interval.
JP33378095A 1995-12-21 1995-12-21 Method and device for sampling data Pending JPH09170937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP33378095A JPH09170937A (en) 1995-12-21 1995-12-21 Method and device for sampling data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP33378095A JPH09170937A (en) 1995-12-21 1995-12-21 Method and device for sampling data

Publications (1)

Publication Number Publication Date
JPH09170937A true JPH09170937A (en) 1997-06-30

Family

ID=18269883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP33378095A Pending JPH09170937A (en) 1995-12-21 1995-12-21 Method and device for sampling data

Country Status (1)

Country Link
JP (1) JPH09170937A (en)

Similar Documents

Publication Publication Date Title
US4258421A (en) Vehicle monitoring and recording system
US4307455A (en) Power supply for computing means with data protected shut-down
US4352067A (en) Battery analyzer
US4589074A (en) Multiple channel power line monitor
JP3063708B2 (en) Non-stop power supply system, backup target device used therefor, and recording medium recording program for operating computer as backup target device
US4303850A (en) Real time clock using computer and separate counting means
CA1111140A (en) Power supply for computing means with data protected shut-down
CA1137222A (en) Vehicle monitoring and recording system
JP2006515739A (en) Power management unit for portable electronic devices
JPH09170937A (en) Method and device for sampling data
JP3300216B2 (en) Data recording device with self-diagnosis function
JPH09170932A (en) Data recording device for abnormality analysis
JPH09170936A (en) Device for storing data of vehicle
JPH06261408A (en) Monitor
JPH0511462Y2 (en)
CN209930412U (en) Finished product detection system of automobile data recorder
JPH08145728A (en) Signal waveform recording device
CN117130338A (en) Vehicle network non-dormancy diagnosis method and device, vehicle and storage medium
JPH07234882A (en) Waveform measuring instrument
SU1270799A1 (en) Device for checking memory blocks
JPS61276003A (en) Control device of electronic equipment
JP3064687B2 (en) Data memory controller
JPH10240677A (en) Dma device
JPS62166450A (en) History analyzing device for logical unit
JP2005134149A (en) Disturbance signal recording method and disturbance signal recording system using the disturbance signal recording system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20020507