Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6131735B2 - Data management apparatus, data management method, and data management program - Google Patents
[go: Go Back, main page]

JP6131735B2 - Data management apparatus, data management method, and data management program - Google Patents

Data management apparatus, data management method, and data management program Download PDF

Info

Publication number
JP6131735B2
JP6131735B2 JP2013131924A JP2013131924A JP6131735B2 JP 6131735 B2 JP6131735 B2 JP 6131735B2 JP 2013131924 A JP2013131924 A JP 2013131924A JP 2013131924 A JP2013131924 A JP 2013131924A JP 6131735 B2 JP6131735 B2 JP 6131735B2
Authority
JP
Japan
Prior art keywords
measurement
data
date
time
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2013131924A
Other languages
Japanese (ja)
Other versions
JP2015007824A (en
Inventor
大室 善則
善則 大室
英治 高松
英治 高松
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP2013131924A priority Critical patent/JP6131735B2/en
Publication of JP2015007824A publication Critical patent/JP2015007824A/en
Application granted granted Critical
Publication of JP6131735B2 publication Critical patent/JP6131735B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、一定周期で計測処理を行うセンサの計測データの、データベースへの格納を管理するデータ管理装置、データ管理方法およびデータ管理用のプログラムに関する。   The present invention relates to a data management apparatus, a data management method, and a data management program for managing storage of measurement data of a sensor that performs measurement processing at a constant cycle in a database.

従来から、温度や湿度などの管理のために配置された複数のセンサの計測値をネットワークを介して中央の管理装置に送信し、管理装置がデータベースに格納して一括に管理および制御を行う技術が用いられている。このような技術では、一定周期で計測を行う各センサの計測データ全てが管理装置に送信されるため、管理装置へのデータ送信が集中して管理装置までの通信負荷が増大してしまうという問題や、管理装置における受信処理の負荷が増大してしまうという問題があった。   Conventionally, the measurement value of multiple sensors arranged for management of temperature, humidity, etc. is sent to the central management device via the network, and the management device stores it in the database and performs management and control in a batch Is used. In such a technique, since all the measurement data of each sensor that performs measurement at a constant cycle is transmitted to the management device, the data transmission to the management device is concentrated and the communication load to the management device increases. In addition, there is a problem that the load of reception processing in the management apparatus increases.

そこで、近年、センサの計測値が変わらない場合には、毎回計測値を送信するのではなく、前回送信された計測値と値が一致する旨と何回一致したかを示す一致回数とを含む一致情報を送信して、管理装置へのデータ送信回数を間引きする技術が提案されている(たとえば、特許文献1参照)。この一致情報を受信した管理装置は、データベースに格納された計測データのうち、この一致情報が示すセンサの計測データに対して、前回送信された計測値と同じ値を一致回数分だけ書き込むことによって、データ送信がされなかった計測回の計測値を補完する。   Therefore, in recent years, when the measurement value of the sensor does not change, instead of transmitting the measurement value every time, the previously transmitted measurement value includes the fact that the value matches and the number of times of coincidence indicating the number of times of coincidence. A technique has been proposed in which coincidence information is transmitted and the number of times of data transmission to the management apparatus is thinned out (see, for example, Patent Document 1). The management device that has received the match information writes the same value as the previously transmitted measurement value as many times as the number of matches in the sensor measurement data indicated by the match information among the measurement data stored in the database. The measurement value of the measurement time when data transmission was not performed is complemented.

特開2013−3837号公報JP 2013-3837 A

しかしながら、特許文献1記載の技術の場合、各センサの計測値全てをデータベースに格納するため、データベースが保持するデータ量が非常に大きくなってしまうという問題があった。   However, in the case of the technique described in Patent Document 1, since all the measurement values of each sensor are stored in the database, there is a problem that the amount of data held in the database becomes very large.

本発明は、上記に鑑みてなされたものであって、データベースに格納されるセンサの計測データのデータ量を削減することができるデータ管理装置、データ管理方法およびデータ管理用のプログラムを提供することを目的とする。   The present invention has been made in view of the above, and provides a data management device, a data management method, and a data management program capable of reducing the amount of sensor measurement data stored in a database. With the goal.

上述した課題を解決し、目的を達成するために、本発明にかかるデータ管理装置は、一定周期で計測処理を行うセンサの計測データの、データベースへの格納を管理するデータ管理装置であって、前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データを前記データベースに格納すべき計測データとして選択するデータ選択手段と、前記データ選択手段が前記格納すべき計測データとして選択した計測データを前記データベースに格納するデータ格納処理手段と、前記センサの計測データの出力すべき日時を指示するデータ出力指示情報を入力する入力手段と、前記入力手段によってデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測され
た計測データをもとに前記出力させる日時の計測データを作成する出力データ作成手段と、を備えたことを特徴とする。
In order to solve the above-described problems and achieve the object, a data management device according to the present invention is a data management device that manages the storage of measurement data of a sensor that performs measurement processing at a constant cycle in a database, In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. In some cases, data selection means for selecting measurement data including the first measurement value and the measurement date and time of the first measurement value as measurement data to be stored in the database; and the data selection means stores the data. Data storage processing means for storing the measurement data selected as the measurement data to be stored in the database, and data output instruction information for indicating the date and time when the measurement data of the sensor should be output are input. And when the data output instruction information is input by the input means, the measurement data corresponding to the date and time to be output can be searched from the measurement data stored in the database, and the measurement data of the date and time to be output can be searched. If not, output data creation means for creating the measurement data of the date and time to be output based on the measurement data measured on the date and time closest to the date and time of output from the measurement data of the database, It is characterized by that.

また、本発明にかかるデータ管理装置は、前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には、前記データベースに格納された計測データの中から前記出力させる日時よりも前であって、かつ、最も近い日時の計測データの計測値を抽出し、該抽出した計測データの計測値を前記出力させる日時の計測値として採用することを特徴とする。   Further, in the data management device according to the present invention, when the output data creation means cannot retrieve the measurement data of the date and time to be output, from the date and time of output from the measurement data stored in the database. The measurement value of the measurement data having the closest date and time is extracted, and the measurement value of the extracted measurement data is employed as the measurement value of the date and time to be output.

また、本発明にかかるデータ管理装置は、前記データ選択手段が前記データベースに格納すべき計測データを選択した日時であるデータ選択日時を記憶する記憶手段をさらに備え、前記データ選択手段は、前記格納すべき計測データを選択するたびに前記記憶手段に記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上である場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化があった旨を示す変化有り情報を含ませた計測データを前記格納すべき計測データとして選択し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値の選択を判断する判断タイミングが前記記憶手段に記憶される前記データ選択日時から所定の格納義務期間を越えている場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化がなかった旨を示す変化無し情報を含ませた計測データを前記格納すべき計測データとして選択することを特徴とする。   The data management apparatus according to the present invention further comprises storage means for storing a data selection date and time that is a date and time when the data selection means has selected measurement data to be stored in the database, and the data selection means includes the storage Each time measurement data to be selected is selected, the data selection date and time stored in the storage means is updated to the latest date and time, and the absolute value of the difference between the first measurement value and the second measurement value is the predetermined value. If it is above, there is a change indicating that the first measurement value has changed with respect to the second measurement value in addition to the first measurement value and the measurement date and time of the first measurement value. When the measurement data including information is selected as the measurement data to be stored, and the absolute value of the difference between the first measurement value and the second measurement value is less than the predetermined value, the first data Select the measured value of In the case where the judgment timing for declining exceeds a predetermined storage duty period from the data selection date and time stored in the storage means, in addition to the first measurement value and the measurement date and time of the first measurement value, Measurement data including no-change information indicating that the measurement value of 1 has not changed with respect to the second measurement value is selected as the measurement data to be stored.

また、本発明にかかるデータ管理装置は、前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には前記データベースに格納された計測データの中から前記出力させる日時に最も近い日時に計測された計測データを抽出し、該抽出した計測データが前記変化無し情報を含む場合には該抽出した計測データの計測値を前記出力させる日時の計測値として採用し、前記抽出した前記計測データが前記変化有り情報を含む場合には前記データベースに格納された計測データの中から前記出力させる日時よりも前であって、かつ、最も近い日時の計測データを抽出し該抽出した前記出力させる日時よりも前であって、かつ、最も近い日時の計測データの計測値を前記出力させる日時の計測値として採用することを特徴とする。   In the data management device according to the present invention, when the output data creation means cannot retrieve the measurement data of the date and time to be output, the output data creation means is the most suitable for the date and time of output from the measurement data stored in the database. Extracting measurement data measured at a close date and time, when the extracted measurement data includes the no-change information, adopt the measurement value of the extracted measurement data as the measurement value of the date and time to be output and extract the data When the measurement data includes the information with change, the measurement data of the closest date and time is extracted from the measurement data stored in the database before the date and time to be output and extracted. The measurement value of the measurement data of the closest date and time before the date and time of output is adopted as the measurement value of the date and time of output To.

また、本発明にかかるデータ管理装置は、前記データ選択手段は、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上の差がある場合に、前記第1の計測値および該第1の計測値の計測日時とともに前記第1の計測値から前記第2の計測値を減算した差分値である前回差分値とを含む計測データを前記データベースに格納すべき計測データとして選択し、前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には前記出力させる日時に最も近い日時に計測された計測データの計測値と該計測データの前回差分値とをもとに前記出力させる日時の計測データを作成することを特徴とする。   In the data management device according to the present invention, the data selection means may be configured such that when the absolute value of the difference between the first measurement value and the second measurement value is greater than or equal to the predetermined value, Measurement data including the measurement value and the measurement date and time of the first measurement value and the previous difference value obtained by subtracting the second measurement value from the first measurement value is to be stored in the database If the measurement data of the date and time to be output cannot be retrieved, the output data creation means selects the measurement value of the measurement data measured at the date and time closest to the date and time of output and the previous measurement data. The measurement data of the date and time to be output is created based on the difference value.

また、本発明にかかるデータ管理装置は、前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には、前記データベースに格納された計測データの中から前記出力させる日時よりも後であって、かつ、最も近い日時に計測された計測データを抽出し、該抽出した前記出力させる日時よりも後であって、かつ、最も近い日時に計測された計測データの計測値から該計測データの前回差分値を減算した値を前記出力させる日時の計測値として採用することを特徴とする。   Further, in the data management device according to the present invention, when the output data creation means cannot retrieve the measurement data of the date and time to be output, from the date and time of output from the measurement data stored in the database. And the measurement data measured at the nearest date and time are extracted, and from the measurement value of the measurement data measured at the nearest date and time after the extracted date and time to be output A value obtained by subtracting the previous difference value of the measurement data is adopted as the measurement value of the date and time to be output.

また、本発明にかかるデータ管理装置は、前記データ選択手段が計測データの選択を行
った日時であるデータ選択日時を記憶する記憶手段をさらに備え、前記データ選択手段は、前記格納すべき計測データを選択するたびに前記記憶手段に記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値に対する選択日時が前記記憶手段に記憶される前記データ選択日時から所定の格納義務期間を越えている場合には、前記第1の計測値と該第1の計測値の計測日時とに加え前記前回差分値を0とした計測データを、前記格納すべき計測データとして選択することを特徴とする。
The data management apparatus according to the present invention further comprises storage means for storing a data selection date and time that is a date and time when the data selection means has selected measurement data, and the data selection means includes the measurement data to be stored. The data selection date and time stored in the storage means is updated to the latest date and time, and the absolute value of the difference between the first measurement value and the second measurement value is less than the predetermined value When the selection date and time for the first measurement value exceeds a predetermined storage duty period from the data selection date and time stored in the storage means, the first measurement value and the first measurement In addition to the measurement date and time of the value, measurement data with the previous difference value set to 0 is selected as the measurement data to be stored.

また、本発明にかかるデータ管理装置は、前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には前記データベースに格納された計測データの中から前記出力させる日時に最も近い計測データを抽出し、該抽出した計測データの計測日時が前記出力させる日時よりも前である場合には該抽出した計測データの計測値を前記出力させる日時の計測値として採用し、前記抽出した前記計測データの計測日時が前記出力させる日時よりも後である場合には前記抽出した計測データの計測値から該抽出した計測データの前回差分値を減算した値を前記出力させる日時の計測値として採用することを特徴とする。   In the data management device according to the present invention, when the output data creation means cannot retrieve the measurement data of the date and time to be output, the output data creation means is the most suitable for the date and time of output from the measurement data stored in the database. When near measurement data is extracted and the measurement date and time of the extracted measurement data is earlier than the date and time of output, the measurement value of the extracted measurement data is adopted as the measurement value of the date and time of output and the extraction When the measurement date / time of the measured data is later than the output date / time, the measured value of the date / time to output the value obtained by subtracting the previous difference value of the extracted measurement data from the measured value of the extracted measurement data It is adopted as a feature.

また、本発明にかかるデータ管理装置は、前記データ選択手段と前記データ格納処理手段とは、ネットワークを介して接続されることを特徴とする。   The data management apparatus according to the present invention is characterized in that the data selection means and the data storage processing means are connected via a network.

また、本発明にかかるデータ管理方法は、一定周期で計測処理を行うセンサの計測データを管理するデータ管理装置が行うデータ管理方法であって、前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データを前記データベースに格納すべき計測データとして選択するデータ選択ステップと、前記データ選択ステップにおいて前記格納すべき計測データとして選択された計測データを前記データベースに格納するデータ格納処理ステップと、前記センサの計測データの出力すべき日時を指示するデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成ステップと、を含むことを特徴とする。   Further, the data management method according to the present invention is a data management method performed by a data management device that manages measurement data of a sensor that performs measurement processing at a constant cycle. In the first measurement value measured by the sensor, When the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value, the first measurement value and the first measurement value A data selection step for selecting measurement data including the measurement date and time of one measurement value as measurement data to be stored in the database, and the measurement data selected as the measurement data to be stored in the data selection step in the database When the data storage processing step to store and the data output instruction information indicating the date and time when the measurement data of the sensor should be output are input, the database If the measurement data corresponding to the date and time to be output is searched from the stored measurement data and the measurement data of the date and time to be output cannot be searched, the measurement data in the database is the most suitable for the date and time to be output. An output data creation step of creating measurement data of the date and time to be output based on measurement data measured at a near date and time.

また、本発明にかかるデータ管理用のプログラムは、一定周期で計測処理を行うセンサの計測データを管理するデータ管理装置に、前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データを前記データベースに格納すべき計測データとして選択するデータ選択手順と、前記データ選択手順において前記格納すべき計測データとして選択された計測データを前記データベースに格納するデータ格納処理手順と、前記センサの計測データの出力すべき日時を指示するデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成手順と、を実行させることを特徴とする。   In addition, the data management program according to the present invention provides a data management apparatus that manages measurement data of a sensor that performs measurement processing at a constant period, and uses the first measurement value measured by the sensor. When the absolute value of the difference between the first measurement value and the second measurement value measured once before the value is greater than or equal to a predetermined value, the first measurement value and the first measurement value A data selection procedure for selecting measurement data including measurement date and time as measurement data to be stored in the database, and a data storage process for storing the measurement data selected as measurement data to be stored in the data selection procedure in the database If the procedure and the data output instruction information indicating the date and time when the measurement data of the sensor should be output are input, whether the measurement data is stored in the database. If the measurement data corresponding to the date and time to be output is searched, and the measurement data of the date and time to be output cannot be searched, the measurement data measured at the date and time closest to the date and time to be output from the measurement data of the database And an output data creation procedure for creating measurement data of the date and time to be output based on the above.

本発明によれば、各センサによる計測処理の全ての計測データではなく、各計測値の中
から前回計測値に対して所定値以上の差がある計測値を含む計測データを選択してデータベースに格納するため、データベースに格納されるセンサによる計測データのデータ量を削減することができるという効果を奏する。
According to the present invention, not all measurement data of measurement processing by each sensor, but measurement data including measurement values that have a difference of a predetermined value or more with respect to the previous measurement value is selected from each measurement value in the database. Since the data is stored, it is possible to reduce the amount of measurement data by the sensor stored in the database.

図1は、実施の形態1にかかるデータ管理装置の構成を示すブロック図である。FIG. 1 is a block diagram of the configuration of the data management apparatus according to the first embodiment. 図2は、図1に示すデータ選択部による格納対象の計測データ選択処理の処理手順を示すフローチャートである。FIG. 2 is a flowchart showing a processing procedure of measurement data selection processing to be stored by the data selection unit shown in FIG. 図3は、図1に示すデータベースに格納される管理用計測データの内容を例示した表を示す図である。FIG. 3 is a diagram illustrating a table illustrating the contents of the measurement data for management stored in the database illustrated in FIG. 図4は、図1に示す出力データ作成部における出力用データの作成処理の処理手順を示すフローチャートである。FIG. 4 is a flowchart showing a processing procedure of output data creation processing in the output data creation unit shown in FIG. 図5は、図1に示す出力データ作成部が作成する出力用計測データの一例を示す図である。FIG. 5 is a diagram illustrating an example of output measurement data created by the output data creation unit illustrated in FIG. 1. 図6は、従来技術におけるデータベースに格納される計測データの内容を例示した表を示す図である。FIG. 6 is a diagram illustrating a table illustrating the contents of measurement data stored in a database according to the related art. 図7は、実施の形態1の変形例1における格納対象の計測データ選択処理の処理手順を示すフローチャートである。FIG. 7 is a flowchart illustrating a processing procedure of measurement data selection processing to be stored in the first modification of the first embodiment. 図8は、図1に示す管理用計測データの内容を示す表の他の例を示す図である。FIG. 8 is a diagram showing another example of the table showing the contents of the management measurement data shown in FIG. 図9は、実施の形態1の変形例2における出力用データの作成処理の処理手順を示すフローチャートである。FIG. 9 is a flowchart illustrating a processing procedure of output data creation processing according to the second modification of the first embodiment. 図10は、実施の形態2にかかるデータ管理システムの構成を示すブロック図である。FIG. 10 is a block diagram of the configuration of the data management system according to the second embodiment. 図11は、図10に示すデータ選択部における格納対象の計測データの選択処理の処理手順を示すフローチャートである。FIG. 11 is a flowchart showing a processing procedure for selecting measurement data to be stored in the data selection unit shown in FIG. 図12は、実施の形態3にかかるデータ管理装置の構成を示すブロック図である。FIG. 12 is a block diagram of the configuration of the data management apparatus according to the third embodiment. 図13は、図12に示すデータ選択部における格納対象の計測データの選択処理の処理手順を示すフローチャートである。FIG. 13 is a flowchart showing a processing procedure for selecting measurement data to be stored in the data selection unit shown in FIG. 図14は、図12に示す管理用計測データの内容を例示した表を示す図である。FIG. 14 is a diagram illustrating a table illustrating the contents of the management measurement data illustrated in FIG. 図15は、図12に示す出力データ作成部における出力用データの作成処理の処理手順を示すフローチャートである。FIG. 15 is a flowchart showing a processing procedure of output data creation processing in the output data creation unit shown in FIG. 図16は、図12に示す出力データ作成部が作成する出力用計測データの一例を示す図である。FIG. 16 is a diagram illustrating an example of output measurement data created by the output data creation unit illustrated in FIG. 12. 図17は、実施の形態3の変形例1における格納対象の計測データ選択処理の処理手順を示すフローチャートである。FIG. 17 is a flowchart illustrating a processing procedure of measurement data selection processing to be stored in the first modification of the third embodiment. 図18は、図12に示す管理用計測データの内容を示す表の他の例を示す図である。FIG. 18 is a diagram showing another example of a table showing the contents of the management measurement data shown in FIG. 図19は、実施の形態3の変形例2における出力用データの作成処理の処理手順を示すフローチャートである。FIG. 19 is a flowchart illustrating a processing procedure of output data creation processing according to the second modification of the third embodiment. 図20は、実施の形態4にかかるデータ管理システムの構成を示すブロック図である。FIG. 20 is a block diagram of the configuration of the data management system according to the fourth embodiment. 図21は、図20に示すデータ選択部における格納対象の計測データの選択処理の処理手順を示すフローチャートである。FIG. 21 is a flowchart showing a processing procedure for selecting measurement data to be stored in the data selection unit shown in FIG.

以下に、本発明にかかる実施の形態の一例として、一定周期で計測処理を行うセンサの
計測データの、データベースへの格納を管理するデータ管理装置について説明する。なお、この実施の形態によりこの発明が限定されるものではない。また、図面の記載において、同一部分には同一の符号を付している。
Hereinafter, as an example of an embodiment according to the present invention, a data management apparatus that manages storage of measurement data of a sensor that performs measurement processing at a constant period in a database will be described. Note that the present invention is not limited to the embodiments. In the description of the drawings, the same parts are denoted by the same reference numerals.

(実施の形態1)
図1は、本実施の形態1にかかるデータ管理装置の構成を示すブロック図である。図1に示すように、実施の形態1にかかるデータ管理装置1は、入力部10、制御部20、センサ群30、データ収集部40、データ選択部50、データ格納処理部60、各センサの計測値が書き込まれた管理用計測データ71を格納したデータベース70、出力データ作成部80、出力部90、ならびに、データ収集部40およびデータ選択部50における処理のためのデータを一時的に保持するメモリ100を備える。
(Embodiment 1)
FIG. 1 is a block diagram of the configuration of the data management apparatus according to the first embodiment. As shown in FIG. 1, the data management apparatus 1 according to the first embodiment includes an input unit 10, a control unit 20, a sensor group 30, a data collection unit 40, a data selection unit 50, a data storage processing unit 60, and each sensor. Data for processing in the database 70, the output data creation unit 80, the output unit 90, and the data collection unit 40 and the data selection unit 50 storing the management measurement data 71 in which the measurement values are written are temporarily stored. A memory 100 is provided.

入力部10は、キーボード、各種ボタン、各種スイッチ等の入力デバイスや、マウスやタッチパネル等のポインティングデバイスを含み、これらのデバイスに対するユーザの操作に応じた指示信号を制御部20に入力する。入力部10は、データ出力対象のセンサと、このセンサにおける計測データの出力すべき期間を指示するデータ出力指示情報を入力する。   The input unit 10 includes input devices such as a keyboard, various buttons, and various switches, and pointing devices such as a mouse and a touch panel, and inputs instruction signals corresponding to user operations on these devices to the control unit 20. The input unit 10 inputs data output instruction information for instructing a sensor that is a data output target and a period during which measurement data from the sensor is to be output.

制御部20は、各種プログラムおよびパラメータを実行してデータ管理装置1の各構成部位の各処理および各動作を制御する。制御部20は、データ管理装置1の各構成部位に入出力されるデータについて入出力制御を行い、また、各構成部位に対してデータに対する所定の処理を行わせる。   The control unit 20 executes various programs and parameters to control each process and each operation of each component of the data management device 1. The control unit 20 performs input / output control on data input / output to / from each component of the data management apparatus 1 and causes each component to perform predetermined processing on the data.

センサ群30は、第1センサ31および第2センサ32を含む複数のセンサを備える。第1センサ31および第2センサ32は、温度センサであり、それぞれ所定の管理領域に設置され、対応する管理領域の温度を計測する計測処理を一定周期で行う。なお、図1では、温度センサである第1センサ31および第2センサ32で構成されるセンサ群30を例示したが、温度に限らず、湿度、pH値、重量、明るさなど各種パラメータを測定するセンサから成るセンサ群でもよい。また、図1では、センサが複数ある場合を例に説明するが、もちろん、センサは単数であってもよい。   The sensor group 30 includes a plurality of sensors including a first sensor 31 and a second sensor 32. The first sensor 31 and the second sensor 32 are temperature sensors, each installed in a predetermined management area, and performing measurement processing for measuring the temperature of the corresponding management area at a constant period. 1 illustrates the sensor group 30 including the first sensor 31 and the second sensor 32 that are temperature sensors, but various parameters such as humidity, pH value, weight, and brightness are measured in addition to the temperature. It may be a sensor group consisting of sensors. Further, FIG. 1 illustrates an example in which there are a plurality of sensors, but of course, a single sensor may be provided.

データ収集部40は、センサ群30の各センサと接続し、第1センサ31および第2センサ32を含むセンサ群30の各センサが計測した計測値を収集し、収集した計測値、および、この計測値の計測日時に、計測を行ったセンサの識別情報を付してデータ選択部50に出力する。   The data collection unit 40 is connected to each sensor of the sensor group 30, collects measurement values measured by each sensor of the sensor group 30 including the first sensor 31 and the second sensor 32, collects the measurement values, and this The identification information of the sensor that has performed the measurement is attached to the measurement date and time of the measurement value, and is output to the data selection unit 50.

データ選択部50は、データ収集部40から出力されたデータのうち、データベース70に格納すべき計測データを選択する。データ選択部50は、データ収集部40からデータ入力されるたびに、このデータがデータベース70に格納すべき計測データであるか否かを判断し、データベース70に格納すべき計測データであると判断した場合には、このデータをデータベース70に格納すべき計測データとして選択する。メモリ100には、データ選択部50がデータベース70に格納すべき計測データを選択した日時であるデータ選択日時が一時的に保持され、データ選択部50は、格納すべき計測データを選択するたびにメモリ100に記憶されるデータ選択日時を最新のものに更新する。データ選択部50は、センサ群30のセンサごとに計測データの選択を行う。この選択にともない、メモリ100に記憶されるデータ選択日時も、センサ群30の各センサにそれぞれ対応して記憶される。なお、データ選択部50における計測データの選択処理は、データ収集部40によって計測データが収集された直後に行われ、センサ群30のセンサの計測処理、データ収集部40による計測データの収集処理、および、データ選択部50における計測データの選択処理は、ほぼリアルタイムに実行される。   The data selection unit 50 selects measurement data to be stored in the database 70 from the data output from the data collection unit 40. Each time data is input from the data collection unit 40, the data selection unit 50 determines whether this data is measurement data to be stored in the database 70, and determines that this data is measurement data to be stored in the database 70. In this case, this data is selected as measurement data to be stored in the database 70. The memory 100 temporarily holds a data selection date and time that is the date and time when the data selection unit 50 selected measurement data to be stored in the database 70, and the data selection unit 50 selects the measurement data to be stored each time. The data selection date and time stored in the memory 100 is updated to the latest one. The data selection unit 50 selects measurement data for each sensor in the sensor group 30. With this selection, the data selection date and time stored in the memory 100 is also stored corresponding to each sensor of the sensor group 30. The measurement data selection process in the data selection unit 50 is performed immediately after the measurement data is collected by the data collection unit 40. The measurement process of the sensors in the sensor group 30, the collection process of the measurement data by the data collection unit 40, And the selection process of measurement data in the data selection part 50 is performed substantially in real time.

データ選択部50は、センサによって計測された計測値が、この計測値よりも1回前に計測された前回計測値に対する、この計測値の差の絶対値が所定値以上である場合に、この計測値と、この計測値の計測日時とを含む計測データをデータベース70に格納すべき計測データとして選択する。この場合、データ選択部50は、格納すべき計測データとして、選択した計測値および計測日時に加えて、この計測値が前回計測値に対して変化があった旨を示す変化有り情報を含ませたものを、データ格納処理部60に出力する。データ選択部50は、判断対象の計測値の前回計測値に対する差の絶対値が所定値未満である場合であって、この計測値に対する判断処理タイミングが、メモリ100に記憶されるデータ選択日時から所定の格納義務期間を越えている場合には、この計測値、および、この計測値の計測日時に加えて、この測定値が前回計測値に対して変化がなかった旨を示す変化無し情報を含ませた計測データを格納すべき計測データとして選択する。なお、前回計測値は、センサごとにメモリ100に保持されており、一つの計測値に対する判断処理が終わると、この判断処理が終わった計測値に書き換えられる。また、この前回計測値からの変化の有無の判断基準となる所定値は、センサが設置される管理領域およびセンサが計測するパラメータの種別等に応じてセンサごとに設定されている。また、一つのセンサに対して一つの値が設定されている場合に限らず、センサの計測可能範囲を複数に分割して、分割した範囲ごとにそれぞれ値を設定してもよい。また、格納義務期間は、センサが設置される管理領域およびセンサが計測するパラメータの種別等に応じてセンサごとに設定されている。   When the measured value measured by the sensor is equal to or greater than a predetermined value, the absolute value of the difference between the measured value and the previous measured value measured once before the measured value is selected by the data selection unit 50. Measurement data including the measurement value and the measurement date and time of the measurement value is selected as measurement data to be stored in the database 70. In this case, the data selection unit 50 includes, as the measurement data to be stored, change information indicating that the measurement value has changed with respect to the previous measurement value, in addition to the selected measurement value and the measurement date and time. The data is output to the data storage processing unit 60. The data selection unit 50 is a case where the absolute value of the difference between the measurement value to be determined and the previous measurement value is less than a predetermined value, and the determination processing timing for this measurement value is determined from the data selection date and time stored in the memory 100. If the specified storage duty period has been exceeded, in addition to this measurement value and the measurement date and time of this measurement value, no change information indicating that this measurement value has not changed from the previous measurement value. The included measurement data is selected as measurement data to be stored. Note that the previous measurement value is held in the memory 100 for each sensor, and when the determination process for one measurement value is completed, the measurement value is rewritten to the measurement value for which the determination process is completed. In addition, the predetermined value, which is a criterion for determining whether or not there is a change from the previous measurement value, is set for each sensor according to the management area where the sensor is installed, the type of parameter measured by the sensor, and the like. Moreover, not only when one value is set for one sensor, the measurable range of the sensor may be divided into a plurality of values, and a value may be set for each divided range. Further, the storage duty period is set for each sensor according to the management area where the sensor is installed, the type of parameter measured by the sensor, and the like.

データ格納処理部60は、データ選択部50が格納すべき計測データとして選択した計測データをデータベース70に格納する。データ格納処理部60は、選択された計測データの計測日時、センサ種別、計測値、および、前回計測値に対する変化の有無を示す変化有無情報を対応付けたものを、データベース70に記憶される管理用計測データ71に新たに書き込む。   The data storage processing unit 60 stores the measurement data selected as the measurement data to be stored by the data selection unit 50 in the database 70. The data storage processing unit 60 stores, in the database 70, the association of the measurement date / time, the sensor type, the measurement value, and the change presence / absence information indicating the presence / absence of change with respect to the previous measurement value in the selected measurement data. New measurement data 71 is written.

出力データ作成部80は、入力部10によってデータ出力指示情報が入力された場合、データベース70に格納された管理用計測データ71をもとに、データ出力指示情報によって指示されたセンサが、データ出力指示情報によって指示された期間中において計測した各計測処理の日時と計測値とをそれぞれ対応付けた出力用計測データを作成する。1時間ごとに計測を行うセンサの計測データの出力が指示された場合には、指示された期間において、時単位で計測値が表されたデータを作成する。   When the data output instruction information is input from the input unit 10, the output data creation unit 80 outputs the data output from the sensor instructed by the data output instruction information based on the management measurement data 71 stored in the database 70. Output measurement data is created by associating the date and time of each measurement process measured during the period indicated by the instruction information with the measurement value. When the output of the measurement data of the sensor that performs measurement every hour is instructed, data in which the measurement value is expressed by the hour is generated in the instructed period.

出力データ作成部80は、データベース70の中から、データ出力指示情報によって指示された期間中に、指示対象のセンサが計測した計測処理の計測データを全て検索できなかった場合、計測データを検索できなかった日時の計測データについては、この日時よりも前であって、かつ、最も近い日時に計測された計測データの計測値をもとに計測値を補完して、出力をさせる期間の計測データを作成する。   The output data creation unit 80 can retrieve the measurement data from the database 70 when all the measurement data of the measurement processing measured by the instruction target sensor cannot be retrieved during the period designated by the data output instruction information. For the measurement data of the date and time that did not exist, the measurement data for the period that is before this date and time, and the output is complemented with the measurement value of the measurement data measured at the closest date and time to output Create

出力部90は、プリンタや、液晶ディスプレイまたは有機エレクトロルミネッセンスディスプレイといったディスプレイなどを有する。出力部90は、出力データ作成部80が作成した計測データを印刷した紙面を出力する。また、出力部90は、出力データ作成部80が作成した計測データをディスプレイ上に表示する。出力部90が出力する計測データは、データ出力指示情報によって出力を指示されたセンサが、計測データの出力を指示された期間において計測した計測処理の各日時と各日時における計測値とがそれぞれ対応付けられたものとなる。   The output unit 90 includes a printer, a display such as a liquid crystal display or an organic electroluminescence display, and the like. The output unit 90 outputs a paper surface on which the measurement data created by the output data creation unit 80 is printed. The output unit 90 displays the measurement data created by the output data creation unit 80 on the display. The measurement data output by the output unit 90 corresponds to the date and time of the measurement process measured by the sensor instructed to output by the data output instruction information in the period instructed to output the measurement data and the measurement value at each date and time. It will be attached.

次に、データ選択部50による格納対象の計測データ選択処理について説明する。図2は、データ選択部50による格納対象の計測データ選択処理の処理手順を示すフローチャ
ートである。
Next, the measurement data selection process to be stored by the data selection unit 50 will be described. FIG. 2 is a flowchart showing a processing procedure of measurement data selection processing to be stored by the data selection unit 50.

図2に示すように、まず、データ選択部50は、データ格納判断の対象であるセンサの計測値を取得する(ステップS1)。続いて、データ選択部50は、取得した計測値と、この計測値の計測タイミングよりも1回前の計測タイミングにおける前回計測値との差の絶対値は所定値以上であるか否かを判断する(ステップS2)。   As shown in FIG. 2, first, the data selection unit 50 acquires a measurement value of a sensor that is a target of data storage determination (step S1). Subsequently, the data selection unit 50 determines whether or not the absolute value of the difference between the acquired measurement value and the previous measurement value at the measurement timing one time before the measurement timing of the measurement value is greater than or equal to a predetermined value. (Step S2).

データ選択部50は、取得した計測値と前回計測値との差の絶対値は所定値以上であると判断した場合(ステップS2:Yes)、前回計測値に対する変化が有った旨を示す「変化有り」の情報を計測データに追加し(ステップS3)、この計測値に対応する計測データを、データベース70に格納すべき計測データとして選択する(ステップS4)。   When the data selection unit 50 determines that the absolute value of the difference between the acquired measurement value and the previous measurement value is greater than or equal to a predetermined value (step S2: Yes), it indicates that there is a change with respect to the previous measurement value. Information “changed” is added to the measurement data (step S3), and the measurement data corresponding to the measurement value is selected as measurement data to be stored in the database 70 (step S4).

一方、データ選択部50は、取得した計測値と前回計測値との差の絶対値は所定値以上でないと判断した場合(ステップS2:No)、現にこの判断処理を行っているタイミングの日時である現在日時とメモリ100のデータ選択日時との差を算出する(ステップS5)。データ選択部50は、算出した差が所定の格納義務期間以上であるか否かを判断する(ステップS6)。   On the other hand, when the data selection unit 50 determines that the absolute value of the difference between the acquired measurement value and the previous measurement value is not equal to or greater than a predetermined value (step S2: No), the date and time of the timing at which this determination process is actually performed. The difference between a certain current date and time and the data selection date and time of the memory 100 is calculated (step S5). The data selection unit 50 determines whether or not the calculated difference is equal to or longer than a predetermined storage duty period (step S6).

データ選択部50は、算出した差が所定の格納義務期間以上でないと判断した場合(ステップS6:No)、この計測値に対応する計測データは、データベース70に格納すべき計測データではないとして、この計測値については選択判断の処理を終了し、ステップS1に進んで、次に判断するセンサの計測値を取得する。したがって、前回計測値から所定値以上の変化がなく、前回のデータ選択日時から一定の格納義務期間内である計測値は、データ選択部50に選択されないため、データベース70には格納されない。   When the data selection unit 50 determines that the calculated difference is not equal to or longer than the predetermined storage duty period (step S6: No), the measurement data corresponding to the measurement value is not the measurement data to be stored in the database 70. For this measurement value, the selection determination process ends, the process proceeds to step S1, and the measurement value of the sensor to be determined next is acquired. Accordingly, a measurement value that has not changed by a predetermined value or more from the previous measurement value and is within a certain storage duty period from the previous data selection date and time is not selected by the data selection unit 50 and is not stored in the database 70.

データ選択部50は、算出した差が所定の格納義務期間以上であると判断した場合(ステップS6:Yes)、前回計測値に対する変化がなかった旨を示す「変化無し」の情報を計測データに追加し(ステップS7)、この計測値に対応する計測データを、データベース70に格納すべき計測データとして選択する(ステップS4)。したがって、データ選択部50は、前回計測値から所定値以上の変化がない計測値が続く場合であっても、一定の格納義務期間ごとにデータベース70に計測データが格納されるように計測データの選択を行い、センサの異常の有無についても判別できるようにしている。   When the data selection unit 50 determines that the calculated difference is equal to or greater than the predetermined storage duty period (step S6: Yes), information “no change” indicating that there was no change with respect to the previous measurement value is used as measurement data. The measurement data corresponding to the measurement value is selected as measurement data to be stored in the database 70 (step S4). Therefore, the data selection unit 50 stores the measurement data so that the measurement data is stored in the database 70 for each fixed storage duty period even when the measurement value that does not change by more than the predetermined value continues from the previous measurement value. A selection is made so that the presence / absence of an abnormality of the sensor can also be determined.

データ選択部50は、ステップS4が終了した後、メモリ100に記憶されるデータ選択日時を、最新の日時、すなわち今処理を行った現在日時に更新し(ステップS8)、ステップS1に進んで、次に判断するセンサの計測値を取得する。   After step S4 ends, the data selection unit 50 updates the data selection date and time stored in the memory 100 to the latest date and time, that is, the current date and time when the current processing is performed (step S8), and proceeds to step S1. The measured value of the sensor to be determined next is acquired.

図2に示すステップS4においてデータ選択部50によって格納すべき計測データとして選択された計測データのみが、データ格納処理部60によってデータベース70に格納される。図3は、データベース70に格納される管理用計測データ71の内容を例示した表を示す図である。図3のテーブルT1に示すように、管理用計測データ71は、図中左から順に、計測日時欄L1、センサ種別欄L2、計測値L3に加え、前回計測値に対する変化の有無を示す変化有無欄L4が並んで設けられ、1回の計測処理ごとに、計測日時、センサ種別、計測値および変化有無情報が横一列に並ぶように各セルに順次書き込まれる。   Only the measurement data selected as the measurement data to be stored by the data selection unit 50 in step S4 shown in FIG. 2 is stored in the database 70 by the data storage processing unit 60. FIG. 3 is a diagram illustrating a table illustrating the contents of the management measurement data 71 stored in the database 70. As shown in the table T1 of FIG. 3, the management measurement data 71 includes, in order from the left in the drawing, a change presence / absence indicating whether there is a change with respect to the previous measurement value in addition to the measurement date / time field L1, the sensor type field L2, and the measurement value L3 A column L4 is provided side by side, and for each measurement process, the measurement date and time, sensor type, measurement value, and change presence / absence information are sequentially written in each cell so as to be arranged in a horizontal row.

たとえば、第1センサ31が1時間ごとに計測処理を行う場合であって、前回格納から3時間で計測データをデータベース70に格納することが義務付けられている場合を例に説明する。まず、第1センサ31の1月2日0時0分の計測値が、前回計測値から変化しないものの前回格納時から3時間以上を経過したときのデータである場合、テーブルT1
の行R10に、計測日時である「1月2日0時0分」、センサ種別を示す「第1センサ」、計測値である「20.0」、および、データ選択部50で付された変化無し情報を示す「無」が書き込まれる。そして、1月2日1時0分および1月2日2時0分に第1センサ31で計測された計測値が、前回計測値から変化がない場合には、前回格納の1月2日0時0分から3時間未満のデータであるため、データ選択部50によって選択されず、テーブルT1には書き込まれない。
For example, a case where the first sensor 31 performs measurement processing every hour and is required to store measurement data in the database 70 in three hours from the previous storage will be described as an example. First, when the measurement value of 0:00 on January 2 of the first sensor 31 does not change from the previous measurement value but is data when 3 hours or more have elapsed since the previous storage, the table T1
To the row R10 of “January 2 0:00” as the measurement date, “first sensor” indicating the sensor type, “20.0” as the measurement value, and the data selection unit 50. “None” indicating no change information is written. If the measurement value measured by the first sensor 31 at 1:00 on January 2 and 2:00 on January 2 does not change from the previous measurement, January 2 of the previous storage is stored. Since the data is less than 3 hours from 0:00, it is not selected by the data selection unit 50 and is not written in the table T1.

その次の1月2日3時0分に第1センサ31で計測された計測値は、前回格納の1月2日0時0分から3時間経過したものに対応するため、変化の有無によらず選択される。この例では、前回の計測値から変化していないため、データ選択部50で変化無し情報を付された上で格納対象に選択される。その結果、テーブルT1の行R13に、計測日時である「1月2日3時0分」、センサ種別を示す「第1センサ」、計測値である「20.0」および変化無し情報を示す「無」が書き込まれる。1月2日4時0分に第1センサ31で計測された計測データが、前回計測値から変化しない場合には、1月2日1時0分の場合と同様に前回格納時から3時間未満のデータであるため、データ選択部50によって選択されず、テーブルT1には書き込まれない。   The next measurement value measured by the first sensor 31 at 3:00 on January 2 corresponds to the value that has passed 3 hours from 0:00 on January 2 stored in the previous time. Selected. In this example, since there is no change from the previous measurement value, the data selection unit 50 adds the no-change information and selects the storage target. As a result, the row R13 of the table T1 indicates “January 2 3:00” as the measurement date, “first sensor” as the sensor type, “20.0” as the measurement value, and no change information. “None” is written. If the measurement data measured by the first sensor 31 at 4:00:00 on January 2 does not change from the previous measurement, it will be 3 hours from the previous storage as with 12:00 on January 2. Since it is less than the data, it is not selected by the data selector 50 and is not written to the table T1.

1月2日5時0分に第1センサ31で計測された計測データが、前回計測値から所定値以上変化した場合には、データ選択部50で変化有り情報を付された上で格納対象として選択される。その結果、テーブルT1の行R15に、計測日時である「1月2日5時0分」、センサ種別を示す「第1センサ」、計測値である「30.0」および変化有り情報を示す「有」が書き込まれる。その次の1月2日6時0分に第1センサ31で計測された計測データが、前回計測値から変化しない場合には、1月2日1時0分と同様に前回格納時から3時間未満のデータであるため、テーブルT1には書き込まれない。そして、1月2日7時0分に第1センサ31で計測された計測データが、前回計測値から変化した場合には、1月2日5時0分の場合と同様に、テーブルT1の行R17に、計測日時である「1月2日7時0分」、センサ種別を示す「第1センサ」、計測値である「40.0」および変化有り情報を示す「有」が書き込まれる。   When the measurement data measured by the first sensor 31 at 5:00:00 on January 2 has changed by a predetermined value or more from the previous measurement value, the data selection unit 50 adds the change presence information and stores the data. Selected as. As a result, the row R15 of the table T1 indicates “January 2 5:00” as the measurement date, “first sensor” as the sensor type, “30.0” as the measurement value, and information with change. “Yes” is written. If the measurement data measured by the first sensor 31 at 6:00:00 on January 2 does not change from the previous measurement value, it will be 3 Since the data is less than the time, it is not written in the table T1. When the measurement data measured by the first sensor 31 at 7:00 on January 2 has changed from the previous measurement value, as in the case of 5:00 on January 2, the table T1 In row R17, “January 2 7:00” as the measurement date, “first sensor” as the sensor type, “40.0” as the measurement value, and “present” as the change information are written. .

したがって、前回計測値から変化がなく、さらに、前回格納から格納義務期間を経過していない1月2日1時0分、1月2日2時0分、1月2日4時0分および1月2日6時0分の計測データが抜けたテーブルT1が管理用計測データ71となる。出力データ作成部80は、データ出力指示情報が入力された場合、このように管理用計測データ71から抜けている計測データの測定値を、この抜けている計測データの計測日時よりも前であって、かつ、最も近い日時の計測データの測定値をもとに補完することによって、出力を指示された期間中に出力指示対象のセンサで行われた全ての計測処理の計測値が計測日時順に配列した出力用計測データを作成する。   Therefore, there is no change from the previous measurement value, and furthermore, the storage duty period has not elapsed since the previous storage, 2:00 on January 2, 2:00 on January 2, 4:00 on January 2, and The table T1 from which the measurement data at 6:00:00 on January 2 is missing becomes the management measurement data 71. When the data output instruction information is input, the output data creation unit 80 sets the measurement value of the measurement data missing from the management measurement data 71 in this way before the measurement date and time of the missing measurement data. In addition, by complementing based on the measurement values of the measurement data of the nearest date and time, the measurement values of all the measurement processes performed by the output instruction target sensor during the output instruction period are in order of measurement date and time. Create arrayed output measurement data.

そこで、図4を参照して、出力データ作成部80が行う出力用計測データ作成処理について説明する。図4は、出力データ作成部80における出力用データの作成処理の処理手順を示すフローチャートである。   The output measurement data creation process performed by the output data creation unit 80 will be described with reference to FIG. FIG. 4 is a flowchart showing a processing procedure of output data creation processing in the output data creation unit 80.

図4に示すように、出力データ作成部80は、入力部10によってデータ出力指示情報によって計測データ出力の指示を受け付けると(ステップS11)、データベース70の管理用計測データ71から、データ出力指示情報によって指示されたセンサの計測データであって、出力を指示された期間の開始日時から終了日時までの計測データを抽出する(ステップS12)。そして、出力データ作成部80は、出力を指示された期間中にこのセンサで行われた全ての計測処理の計測値が計測日時順に配列した出力用の計測データを作成するために、各計測日時の計測値をそれぞれ取得する処理を行う。このため、出力データ作成部80は、抽出した計測データの中から、まず、出力指示期間の開始日時に対応す
る計測データを検索し(ステップS13)、抽出した計測データの中に検索対象の開始日時の計測データがあるか否かを判断する(ステップS14)。
As shown in FIG. 4, when the output data creation unit 80 receives an instruction to output measurement data from the data output instruction information by the input unit 10 (step S11), the data output instruction information is obtained from the management measurement data 71 in the database 70. The measurement data from the start date and the end date of the period instructed to be output is extracted (step S12). Then, the output data creation unit 80 creates each measurement date and time in order to create measurement data for output in which the measurement values of all the measurement processes performed by this sensor during the period in which the output is instructed are arranged in order of the measurement date and time. The process which acquires each measured value is performed. For this reason, the output data creation unit 80 first searches for the measurement data corresponding to the start date and time of the output instruction period from the extracted measurement data (step S13), and starts the search target in the extracted measurement data. It is determined whether there is date and time measurement data (step S14).

出力データ作成部80は、検索対象の開始日時の計測データがあったと判断した場合(ステップS14:Yes)、検索して見つけ出した開始日時の計測データの計測値を開始日時の計測値としてそのまま採用する(ステップS15)。   When the output data creation unit 80 determines that there is measurement data of the start date / time to be searched (step S14: Yes), the measurement value of the measurement data of the start date / time found by searching is directly adopted as the measurement value of the start date / time. (Step S15).

これに対し、出力データ作成部80が、検索対象の開始日時の計測データがないと判断した場合(ステップS14:No)、検索対象の開始日時の計測データは、データベース70に格納されていないものであって、この前に計測された計測値から変化がないものに相当する。このため、出力データ作成部80は、管理用計測データ71の中から、検索対象の日時よりも前であって、かつ、最も近い日時の計測データを抽出し(ステップS16)、この抽出した計測データの計測値を、取得対象の日時の計測値として採用する(ステップS17)。   On the other hand, when the output data creation unit 80 determines that there is no measurement data of the start date / time of the search target (step S14: No), the measurement data of the start date / time of the search target is not stored in the database 70. In this case, it corresponds to a value that has not changed from the previously measured value. For this reason, the output data creation unit 80 extracts from the management measurement data 71 the measurement data of the closest date and time before the search target date and time (step S16), and this extracted measurement. The measured value of data is adopted as the measured value of the acquisition target date and time (step S17).

出力データ作成部80は、ステップS15またはステップS17の処理において取得対象の日時の計測値を取得した後、データ出力指示情報によって指示された期間の終了日時まで計測データの検索を終了したか否かを判断する(ステップS18)。   Whether or not the output data creation unit 80 has completed the search of the measurement data until the end date and time of the period indicated by the data output instruction information after acquiring the measurement value of the acquisition date and time in the process of step S15 or step S17. Is determined (step S18).

出力データ作成部80は、終了時刻まで計測データの検索を終了していないと判断した場合(ステップS18:No)、このセンサが次に計測処理を行った日時の計測値を取得するため、出力指示期間に対応する計測データとして抽出した中から、取得対象の次の計測処理を行った日時の計測データを検索し(ステップS19)、開始日時の計測値取得のために行った処理と同様にステップS14以降の処理を行う。   When the output data creation unit 80 determines that the search of the measurement data is not finished until the end time (step S18: No), the output data creation unit 80 outputs the measurement value for the date and time when this sensor performed the next measurement process. From the extracted measurement data corresponding to the instruction period, the measurement data of the date and time when the next measurement process to be acquired is performed is searched (step S19), and the process performed for acquiring the measurement value of the start date and time is performed. The process after step S14 is performed.

これに対し、出力データ作成部80は、終了時刻まで計測データの検索を終了したと判断した場合(ステップS18:Yes)、出力指示期間の全ての計測処理の計測値の全てを取得できたため、出力を指示された期間の全ての計測処理の計測値を計測日時順に配列した出力用の計測データを作成・出力して(ステップS20)、出力用計測データの作成処理を終了する。   On the other hand, when the output data creation unit 80 determines that the search of the measurement data has been completed until the end time (step S18: Yes), all the measurement values of all the measurement processes in the output instruction period can be acquired. Output measurement data in which measurement values of all measurement processes in the period instructed to be output are arranged in order of measurement date and time is created and output (step S20), and the output measurement data creation process is terminated.

図3および図5を参照して、図4の出力用計測データの作成処理について具体的に説明する。図5は、出力データ作成部80が作成する出力用計測データの一例を示す図である。ここでは、第1センサ31の1月2日0時0分から1月2日7時0分までの計測データの出力が指示された場合を例に説明する。図5のテーブルT2に示すように、出力用計測データは、図中左から順に、計測日時欄L1、センサ種別欄L2および計測値L3が配置する。   With reference to FIG. 3 and FIG. 5, the process of creating output measurement data in FIG. 4 will be specifically described. FIG. 5 is a diagram illustrating an example of output measurement data created by the output data creation unit 80. Here, a case where the first sensor 31 is instructed to output measurement data from January 2, 0:00 to January 2, 7:00 will be described as an example. As shown in the table T2 of FIG. 5, the measurement data for output includes a measurement date / time column L1, a sensor type column L2, and a measurement value L3 in order from the left in the drawing.

まず、出力データ作成部80は、図3のテーブルT1から、開始日時である1月2日0時0分のデータを検索する。この1月2日0時0分のデータは、テーブルT1の行R10のデータに対応するため、出力データ作成部80は、行R10のデータを見つけると、この行R10の計測値「20.0」を1月2日0時0分の計測値としてそのまま採用する。この結果、図5のテーブルT2には、1月2日0時0分の「第1センサ」31の計測値「20.0」が対応付けられた行R10−1が配置される。   First, the output data creation unit 80 retrieves data on January 2, 00:00, which is the start date and time, from the table T1 in FIG. Since the data of 0:00 on January 2 corresponds to the data in the row R10 of the table T1, when the output data creation unit 80 finds the data in the row R10, the measured value “20.0 in the row R10 is obtained. "Is used as it is as the measured value at 00:00 on January 2. As a result, in the table T2 of FIG. 5, a row R10-1 associated with the measurement value “20.0” of the “first sensor” 31 at 0:00 on January 2 is arranged.

続いて、出力データ作成部80は、この次に計測処理を行った1月2日1時0分のデータを検索する。この1月2日1時0分のデータは、テーブルT1には含まれないため、出力データ作成部80は、テーブルT1の中から1月2日1時0分よりも前であって、かつ、最も近い1月2日0時0分の行R10のデータを抽出し、この抽出した行R10の計測値「20.0」を1月2日1時0分の計測値として採用する。この結果、矢印Y1のよう
に、テーブルT2の1月2日1時0分に対応する行R11−1の計測値として、1月2日0時0分の計測値「20.0」の値が補完される。同様に、この次の1月2日2時0分のデータもテーブルT1には含まれないため、出力データ作成部80は、テーブルT1の中から1月2日2時0分よりも前であって、かつ、最も近い1月2日0時0分のデータを抽出し、矢印Y2のように、1月2日0時0分の計測値「20.0」が行R12−1の1月2日2時0分の計測値として補完される。
Subsequently, the output data creation unit 80 searches for data at 1:00 on January 2 on which the next measurement process was performed. Since the data of 0:00 on January 2 is not included in the table T1, the output data creation unit 80 is earlier than 10:00 on January 2 in the table T1, and Then, the data of the row R10 closest to 02:00 on January 2 is extracted, and the measured value “20.0” of the extracted row R10 is adopted as the measured value of 12:00 on January 2. As a result, as indicated by the arrow Y1, the measurement value “20.0” at 0:00 on January 2 as the measurement value of the row R11-1 corresponding to 1:00 on January 2 in the table T2. Is complemented. Similarly, since the next data of 2:00 on Jan. 2 is not included in the table T1, the output data creation unit 80 selects the data from the table T1 before 2:00 on Jan. 2. In addition, the closest data at 00:00 on January 2 is extracted, and the measured value “20.0” at 00:00 on January 2 is 1 in the row R12-1, as indicated by the arrow Y2. It is supplemented as a measurement value at 2:00 on March 2.

この次の1月2日3時0分のデータは、抽出した行R13のデータに対応するため、出力データ作成部80は、行R13の計測値「20.0」をテーブルT2の行R13−1の1月2日3時0分の計測値としてそのまま採用する。この次の1月2日4時0分のデータは、テーブルT1には含まれないため、出力データ作成部80は、テーブルT1の中から1月2日4時0分よりも前であって、かつ、最も近い1月2日3時0分の行R13のデータを抽出し、矢印Y3のように、1月2日3時0分の計測値「20.0」を行R14−1の1月2日4時0分の計測値として補完する。そして、この次の1月2日5時0分のデータは、テーブルT1の行R15のデータに対応するため、出力データ作成部80は、テーブルT2の行R15−1に示すように、この行R15の計測値「30.0」を1月2日5時0分の計測値としてそのまま採用する。この次の1月2日6時0分のデータは、テーブルT1には含まれないため、出力データ作成部80は、テーブルT1の中から1月2日6時0分よりも前であって、かつ、最も近い1月2日5時0分のデータを抽出し、矢印Y4のように、1月2日5時0分の計測値「30.0」を行R16−1の1月2日6時0分の計測値として補完する。さらに、次の1月2日7時0分のデータは、テーブルT1の行R17のデータに対応するため、テーブルT2の行R17−1に示すように、この行R17の計測値「40.0」を1月2日7時0分の計測値としてそのまま採用する。   Since the next data of 3:00:00 on January 2 corresponds to the extracted data of the row R13, the output data creation unit 80 sets the measured value “20.0” of the row R13 to the row R13− of the table T2. 1 is used as it is as a measurement value at 3 o'clock on January 2nd. Since the next data of 4:00:00 on January 2 is not included in the table T1, the output data creation unit 80 is before 4:00:00 on January 2 in the table T1. And, the data of the row R13 of January 2 3:00 is extracted, and the measurement value “20.0” of January 2 3:00 is the row R14-1 as indicated by the arrow Y3. It is supplemented as a measured value at 4:00:00 on January 2. Since the next data of 5:00 on January 2 corresponds to the data in the row R15 of the table T1, the output data creation unit 80, as shown in the row R15-1 of the table T2, The measurement value “30.0” of R15 is directly adopted as the measurement value at 5:00:00 on January 2. Since the next data on January 2 at 6:00:00 is not included in the table T1, the output data creation unit 80 is in the table T1 before 6:00:00 on January 2. And the nearest data of 5:00 on January 2nd is extracted, and the measured value “30.0” on January 2nd at 5:00:00 is taken as January 2 of row R16-1 as indicated by arrow Y4. It is supplemented as a measurement value at 6:00 on the day. Further, since the next data of 7:00 on January 2 corresponds to the data of the row R17 of the table T1, as shown in the row R17-1 of the table T2, the measured value “40.0” of the row R17 is displayed. "Is adopted as it is as a measurement value at 7:00 on January 2nd.

この結果、データ管理装置1においては、図5のテーブルT2のように、出力を指示された1月2日0時0分から1月2日7時0分までの間に第1センサ31が1時間ごとに計測した各計測値の全てが抜けることなく計測日時順に配列する出力用の計測データが作成され、出力される。このテーブルT2では、図3のテーブルT1の計測値に変化が有るとされた行R15の計測日時「1月2日5時0分」および行R17の計測日時「1月2日7時0分」において、その前の計測日時の計測値から所定値以上変化した計測値が示されているため、実際の計測処理の計測値に対応した正確な計測データであることが確認できる。なお、図5のように、データ出力指示情報によりデータ出力が指示された期間が、第1センサ31による複数回の計測処理を含む期間であった場合を例に、出力データ作成部80が出力用の計測データを作成する場合について説明したが、1回しか計測処理が行われない期間である場合や、また、データ出力指示情報が一つの日時を指定して計測データの出力を指示する場合も、出力データ作成部80は、図4に示す各処理を行うことによって計測データを作成する。   As a result, in the data management device 1, as shown in the table T2 of FIG. 5, the first sensor 31 is set to 1 during the period from 0:00 on January 2 to 7:00 on January 2 when the output is instructed. Output measurement data that is arranged in order of measurement date and time is created and output without missing all the measured values measured every time. In this table T2, the measurement date and time “January 2 5:00” on line R15 and the measurement date and time “January 2 7:00 on January 2” in which the measurement values in table T1 in FIG. ”Shows a measurement value that has changed by a predetermined value or more from the measurement value of the previous measurement date and time, so that it can be confirmed that the measurement data is accurate corresponding to the measurement value of the actual measurement process. As shown in FIG. 5, the output data creation unit 80 outputs the case where the period in which the data output is instructed by the data output instruction information is a period including a plurality of measurement processes by the first sensor 31 as an example. The case of creating measurement data for use has been explained, but when the measurement process is performed only once, or when the data output instruction information designates one date and time to instruct the output of measurement data Also, the output data creation unit 80 creates measurement data by performing each process shown in FIG.

ここで、従来においては、各センサによる計測処理の全ての計測データをデータベースに格納していた。具体的には、図6のテーブルT10に示すように、第1センサ31が1時間ごとに計測した全ての計測値が時単位で順に表されたデータが格納されていた。したがって、従来においては、多数設置された全てのセンサについて、それぞれのセンサの計測周期ごとに計測された全ての計測値をそのままデータベースに格納していたため、データベースに格納されるデータ量が非常に大きくなってしまうという問題があった。   Here, conventionally, all measurement data of measurement processing by each sensor is stored in a database. Specifically, as shown in a table T10 of FIG. 6, data in which all measured values measured by the first sensor 31 every hour are sequentially expressed in time units was stored. Therefore, in the past, for all the sensors installed in large numbers, all the measured values measured for each sensor measurement cycle are stored in the database as they are, so the amount of data stored in the database is very large. There was a problem of becoming.

これに対し、実施の形態1においては、各センサによる計測処理の全ての計測データをデータベース70に格納するのではなく、各計測値の中から前回計測値から所定値以上の変化した計測値をデータベース70に格納すべき計測データとして選択し、選択した一部の計測データのみをデータベース70に格納している。図3に示す例では、1月2日0時0分から1月2日7時0分まで実際に8回計測された計測値のうちの4回分の計測値しか
データベース70に格納していない。このように、実施の形態1では、各センサの各計測データのうちの一部のみをデータベース70に格納するため、全ての計測データを格納する場合と比較して、データベース70に格納されるセンサの計測データのデータ量を削減することができる。
On the other hand, in the first embodiment, instead of storing all the measurement data of the measurement processing by each sensor in the database 70, a measurement value that has changed from the previous measurement value by a predetermined value or more is selected from each measurement value. Selection is made as measurement data to be stored in the database 70, and only a part of the selected measurement data is stored in the database 70. In the example shown in FIG. 3, only four measurement values of the measurement values actually measured eight times from 2:00 on January 2 to 7:00 on January 2 are stored in the database 70. As described above, in the first embodiment, since only a part of the measurement data of each sensor is stored in the database 70, the sensor stored in the database 70 is compared with the case of storing all the measurement data. The amount of measurement data can be reduced.

また、実施の形態1において、データベース70に格納されていない計測値は、この計測値の前に計測された計測値から所定値未満の変化に留まるものである。このため、実施の形態1では、データベース70に格納されていない計測値に対して出力が必要となった場合であっても、この出力を指示された計測値の計測日時よりも前であって、かつ、最も近い日時に計測された計測値を用いて補完できるため、センサによる計測データを正確に再生することができる。また、実施の形態1においては、一つの日時の計測データの値から複数の日時の計測値を補完するため、効率的に処理することができる。   Further, in the first embodiment, the measurement values that are not stored in the database 70 remain from the measurement values measured before this measurement value to a change less than a predetermined value. For this reason, in the first embodiment, even when output is required for a measurement value that is not stored in the database 70, this output is before the measurement date and time of the instructed measurement value. And since it can complement using the measured value measured at the nearest date and time, the measurement data by the sensor can be reproduced accurately. Moreover, in Embodiment 1, since the measured value of several date is supplemented from the value of the measured data of one date, it can process efficiently.

また、実施の形態1においては、各計測値のうち、前回計測値から所定値以上の変化がない場合であっても格納義務期間ごとに一定の周期でデータベース70に計測データが格納されるように計測データの選択を行っているため、センサに異常の有無についても、この一定周期で格納された計測値の有無をもとに判別することができる。   Further, in the first embodiment, measurement data is stored in the database 70 at a constant cycle for each storage duty period even if there is no change of a predetermined value or more from the previous measurement value among the measurement values. Since the measurement data is selected, whether or not there is an abnormality in the sensor can be determined based on the presence or absence of the measurement value stored at this fixed period.

(実施の形態1の変形例1)
次に、実施の形態1の変形例1について説明する。実施の形態1の変形例1においては、データベース70に格納されるセンサの計測データのデータ量を実施の形態1よりも削減するように計測データの選択処理を行う。図7は、実施の形態1の変形例1における格納対象の計測データ選択処理の処理手順を示すフローチャートである。
(Modification 1 of Embodiment 1)
Next, Modification 1 of Embodiment 1 will be described. In the first modification of the first embodiment, the measurement data selection process is performed so that the data amount of the sensor measurement data stored in the database 70 is reduced as compared with the first embodiment. FIG. 7 is a flowchart illustrating a processing procedure of measurement data selection processing to be stored in the first modification of the first embodiment.

図7に示すように、ステップS21〜ステップS24は、図2のステップS1〜ステップS4に対応する。一方、データ選択部50は、取得した計測値と前回計測値との差の絶対値は所定値以上でないと判断した場合(ステップS22:No)、この計測値の計測日時が所定の格納基準時刻であるか否かを判断する(ステップS25)。格納基準時刻は、センサが設置される管理領域およびセンサが計測するパラメータの種別等に応じてセンサごとに設定されている。データ選択部50は、この計測値の計測日時が所定の格納基準時刻でないと判断した場合(ステップS25:No)、この計測値については選択判断の処理を終了し、ステップS21に進んで、次に判断するセンサの計測値を取得する。   As shown in FIG. 7, steps S21 to S24 correspond to steps S1 to S4 in FIG. On the other hand, when the data selection unit 50 determines that the absolute value of the difference between the acquired measurement value and the previous measurement value is not equal to or greater than a predetermined value (step S22: No), the measurement date and time of the measurement value is a predetermined storage reference time. Is determined (step S25). The storage reference time is set for each sensor according to the management area where the sensor is installed, the type of parameter measured by the sensor, and the like. When the data selection unit 50 determines that the measurement date / time of the measurement value is not the predetermined storage reference time (step S25: No), the process of selecting and determining the measurement value is terminated, and the process proceeds to step S21. The measured value of the sensor to be determined is acquired.

データ選択部50は、この計測値の計測日時が所定の格納基準時刻であると判断した場合(ステップS25:Yes)、図2に示すステップS7に同様に、前回計測値に対する変化がなかった旨を示す「変化無し」の情報を追加する(ステップS26)。したがって、前回計測値から所定値以上の変化がない場合、一定の格納基準時刻の計測データ以外は、データベース70には格納されない。たとえば格納基準時刻が0時0分に設定されている場合には、図8のテーブルT3に例示するように、1月2日のデータのうち前回計測値から所定値以上の変化がない計測データについては、格納基準時刻の1月2日0時0分の計測データのみが変化無し情報を示す「無」が書き込まれた状態でデータベースに格納される。したがって、図8のテーブルT3は、図3のテーブルT1から行R13を削除したものとなる。続く、図7のステップS27は、図2に示すステップS8に対応する。なお、実施の形態1の変形例1においては、出力データ作成部80は、図4に示す各処理手順を行うことによって出力用計測データ作成する。   When the data selection unit 50 determines that the measurement date / time of the measurement value is the predetermined storage reference time (step S25: Yes), the fact that there has been no change with respect to the previous measurement value is the same as in step S7 shown in FIG. “No change” information is added (step S26). Accordingly, when there is no change of a predetermined value or more from the previous measurement value, data other than measurement data at a fixed storage reference time is not stored in the database 70. For example, when the storage reference time is set to 0:00, as illustrated in the table T3 of FIG. 8, measurement data that does not change more than a predetermined value from the previous measurement value in the data on January 2 Is stored in the database in a state in which “nothing” indicating no change information is written, only the measurement data at 00:00 on January 2 of the storage reference time. Therefore, the table T3 in FIG. 8 is obtained by deleting the row R13 from the table T1 in FIG. The subsequent step S27 in FIG. 7 corresponds to step S8 shown in FIG. In the first modification of the first embodiment, the output data creation unit 80 creates output measurement data by performing each processing procedure shown in FIG.

このように、実施の形態1の変形例1においては、計測値に所定値以上の変化がない場合には、所定の格納基準時刻以外の計測値については格納対象として選択しないため、実施の形態1よりもデータベース70に格納されるセンサの計測データのデータ量を削減することができる。また、実施の形態1の変形例1においては、計測値に所定値以上の変化
がない場合であっても格納基準時刻の計測データが格納されるようにしているため、センサの異常の有無についても、この格納基準時刻で格納された計測値の有無をもとに判別することができる。
As described above, in the first modification of the first embodiment, when the measurement value does not change more than the predetermined value, the measurement value other than the predetermined storage reference time is not selected as the storage target. It is possible to reduce the amount of sensor measurement data stored in the database 70 rather than 1. Further, in the first modification of the first embodiment, the measurement data at the storage reference time is stored even when the measurement value does not change by a predetermined value or more. Also, the determination can be made based on the presence or absence of the measurement value stored at the storage reference time.

(実施の形態1の変形例2)
次に、実施の形態1の変形例2について説明する。実施の形態1の変形例2においては、管理用計測データ71に含まれる各計測値にそれぞれ付された変化有無情報を用いて、出力用データを作成する。図9は、実施の形態1の変形例2における出力用データの作成処理の処理手順を示すフローチャートである。
(Modification 2 of Embodiment 1)
Next, a second modification of the first embodiment will be described. In the second modification of the first embodiment, output data is created by using change presence / absence information attached to each measurement value included in the management measurement data 71. FIG. 9 is a flowchart illustrating a processing procedure of output data creation processing according to the second modification of the first embodiment.

図9に示すステップS31〜ステップS35は、図4に示すステップS11〜ステップS15に対応する。出力データ作成部80が、検索対象の開始日時の計測データがないと判断した場合(ステップS34:No)、検索対象の開始日時の計測データは、データベース70に格納されていないものであって、この前に計測された計測値から変化がないものに相当する。そこで、出力データ作成部80は、管理用計測データ71の中から検索対象の日時に最も近い日時の計測データを抽出し(ステップS36)、この抽出した最も近い日時の計測データの変化有無情報が「変化無し」であるか否かを判断する(ステップS37)。   Steps S31 to S35 shown in FIG. 9 correspond to steps S11 to S15 shown in FIG. When the output data creation unit 80 determines that there is no measurement data of the start date / time of the search target (step S34: No), the measurement data of the start date / time of the search target is not stored in the database 70, This corresponds to the case where there is no change from the previously measured value. Therefore, the output data creation unit 80 extracts the measurement data having the date and time closest to the search target date and time from the management measurement data 71 (step S36), and the extracted change date / time information of the measurement data having the closest date and time is obtained. It is determined whether or not “no change” (step S37).

出力データ作成部80が、抽出した最も近い日時の変化有無情報が「変化無し」であると判断した場合には(ステップS37:Yes)、検索対象の日時の計測値と同様に、この抽出した検索対象の日時に最も近い日時の計測値も、その前に計測された計測値から変化がないものに相当する。したがって、この場合は、この抽出した計測データの計測日時が、検索対象の日時の前または後のいずれであっても、検索対象の日時の計測値と、この検索対象の日時に最も近い日時の計測値とは、さらにその前に計測された計測値から変化していない場合に相当する。このため、出力データ作成部80は、この抽出した最も近い日時の計測データの計測値を、取得対象である開始日時の計測値として採用する(ステップS38)。   When the output data creation unit 80 determines that the extracted information on whether or not there is a change at the nearest date and time is “no change” (step S37: Yes), the extracted data is extracted in the same manner as the measurement value of the date and time to be searched. The measurement value at the date and time closest to the search target date and time also corresponds to the measurement value that has not changed from the measurement value measured before that. Therefore, in this case, even if the measurement date / time of the extracted measurement data is either before or after the search target date / time, the measurement value of the search target date / time and the date / time closest to the search target date / time The measured value corresponds to a case where there is no change from the previously measured value. For this reason, the output data creation unit 80 employs the measurement value of the extracted measurement data of the nearest date and time as the measurement value of the start date and time that is the acquisition target (step S38).

一方、出力データ作成部80が、抽出した最も近い日時の計測データの変化有無情報が「変化無し」でないと判断した場合(ステップS37:No)、すなわち、「変化有り」であると判断した場合、この最も近い日時が検索対象の日時の後である場合には、抽出した最も近い日時の計測値と、検索対象の日時の計測値とが異なることとなる。このため、出力データ作成部80は、最も近い日時の計測データとして抽出した計測データの日時が、検索対象の日時より前であるか否かを判断する(ステップS39)。出力データ作成部80は、抽出した計測データの日時が、検索対象の日時より前であると判断した場合には(ステップS39:Yes)、ステップS38に進み、この抽出した最も近い日時の計測データの計測値を、取得対象である開始日時の計測値として採用する。   On the other hand, when the output data creation unit 80 determines that the change presence / absence information of the extracted measurement data at the nearest date and time is not “no change” (step S37: No), that is, when it is determined that there is “change”. When the closest date / time is after the date / time to be searched, the extracted measured value of the closest date / time is different from the measured value of the date / time to be searched. For this reason, the output data creation unit 80 determines whether or not the date and time of the measurement data extracted as the measurement data having the closest date and time is before the date and time to be searched (step S39). If the output data creation unit 80 determines that the date and time of the extracted measurement data is earlier than the date and time of search (step S39: Yes), the process proceeds to step S38, and the extracted measurement data of the nearest date and time is extracted. Is used as the measurement value of the start date and time that is the acquisition target.

これに対し、出力データ作成部80は、抽出した計測データの日時が、検索対象の後であると判断した場合には(ステップS39:No)、出力データ作成部80は、検索対象の日時よりも前であって、かつ、最も近い日時の計測データを改めて抽出し(ステップS40)、この抽出した計測データの計測値を、取得対象である日時の計測値として採用する(ステップS41)。図9のステップS42〜ステップS44は、図4のステップS18〜ステップS20に対応する。   On the other hand, when the output data creation unit 80 determines that the date and time of the extracted measurement data is after the search target (step S39: No), the output data creation unit 80 determines the date and time of the search target. The measurement data of the nearest date and time is extracted again (step S40), and the measurement value of the extracted measurement data is adopted as the measurement value of the acquisition date and time (step S41). Steps S42 to S44 in FIG. 9 correspond to steps S18 to S20 in FIG.

このように、管理用計測データ71に含まれる各計測値にそれぞれ付された変化有無情報を用いて、出力用データを作成する場合も、実施の形態1と同様に、出力を指示された期間の全ての計測値が抜けることなく示された出力用の計測データを作成できる。   In this way, when the output data is created using the change presence / absence information attached to each measurement value included in the management measurement data 71, the period in which the output is instructed as in the first embodiment. It is possible to create output measurement data that is shown without missing all measured values.

(実施の形態2)
次に、実施の形態2について説明する。図10は、実施の形態2にかかるデータ管理システムの構成を示すブロック図である。
(Embodiment 2)
Next, a second embodiment will be described. FIG. 10 is a block diagram of the configuration of the data management system according to the second embodiment.

図10に示すように、実施の形態2にかかるデータ管理システム1Aは、データ選択部150を有するデータ収集装置2Aと、データ格納処理部60とデータベース70と出力データ作成部80とを有するデータ管理装置3Aとが、ネットワークNを介して接続される構成を有する。   As shown in FIG. 10, the data management system 1A according to the second embodiment includes a data collection device 2A having a data selection unit 150, a data storage processing unit 60, a database 70, and an output data creation unit 80. The apparatus 3 </ b> A has a configuration connected via the network N.

データ収集装置2Aは、各種プログラムおよびパラメータを実行してデータ収集装置2Aの各構成部位の処理動作を制御する制御部22Aと、各構成部位をセンサ群30の各センサの計測データを収集するデータ収集部40と、データ管理装置3Aが有するデータベース70に格納すべき計測データを選択するデータ選択部150と、データ選択部150によるデータ選択日時が一時的に保持されたメモリ102Aと、データ選択部150が選択した計測データをネットワークNを介してデータ管理装置3Aに送信するデータ送信処理部112Aとを有する。データ送信処理部112Aは、データ選択部150によって選択された計測データとして、計測日時、センサ種別、計測値、および、前回計測値に対する変化の有無を示す変化有無情報を対応付けた書式のデータD1を送信する。データ送信処理部112Aは、データ選択部150が送信すべきデータを選択するたびにそのままデータを送信するほか、データ管理装置3Aへのデータ送信量が一定値以下で送信負荷が低い時間帯にまとめて複数のデータを送信してもよい。   The data collection device 2A executes various programs and parameters to control the processing operation of each component of the data collection device 2A, and data to collect measurement data of each sensor of the sensor group 30 for each component A data selection unit 150 that selects measurement data to be stored in the database 70 of the data management apparatus 3A, a memory 102A in which the data selection date and time by the data selection unit 150 is temporarily stored, and a data selection unit A data transmission processing unit 112A that transmits the measurement data selected by 150 to the data management device 3A via the network N; The data transmission processing unit 112A, as measurement data selected by the data selection unit 150, data D1 in a format in which measurement date / time, sensor type, measurement value, and change presence / absence information indicating presence / absence of change with respect to the previous measurement value are associated with each other. Send. The data transmission processing unit 112A transmits the data as it is every time the data selection unit 150 selects the data to be transmitted, and collects the data transmission amount to the data management device 3A at a time when the transmission load is low and the transmission load is low. A plurality of data may be transmitted.

データ管理装置3Aは、入力部10と、各種プログラムおよびパラメータを実行してデータ管理装置3Aの各構成部位の処理動作を制御する制御部23Aと、ネットワークNを介してデータ収集装置2Aから送信された計測データを受信するデータ受信処理部113Aと、データ受信処理部113Aが受信した計測データをデータベース70に格納するデータ格納処理部60と、データベース70と、出力データ作成部80と、出力部90とを有する。   The data management device 3A is transmitted from the data collection device 2A via the input unit 10, a control unit 23A that executes various programs and parameters to control processing operations of each component of the data management device 3A, and the network N. The data reception processing unit 113A that receives the measured data, the data storage processing unit 60 that stores the measurement data received by the data reception processing unit 113A in the database 70, the database 70, the output data creation unit 80, and the output unit 90 And have.

次に、図10に示すデータ選択部150における格納対象となる計測データを選択する処理について説明する。図11は、データ収集装置202Aにおける格納対象の計測データの選択・送信処理の処理手順を示すフローチャートである。   Next, processing for selecting measurement data to be stored in the data selection unit 150 shown in FIG. 10 will be described. FIG. 11 is a flowchart illustrating a processing procedure for selecting and transmitting measurement data to be stored in the data collection device 202A.

図11に示すステップS51〜ステップS53は、図2に示すステップS1〜ステップS3に対応する。図11に示すステップS55は、図2に示すステップS5に対応する。データ選択部150は、取得した計測値は、現在日時とメモリ102Aのデータ選択日時との差が所定の送信周期以上であるか否かを判断する(ステップS56)。送信周期は、センサが設置される管理領域およびセンサが計測するパラメータの種別等に応じてセンサごとに設定されている。データ選択部150は、算出した差が所定の送信周期以上でないと判断した場合(ステップS56:No)、この計測値に対応する計測データは、データ管理装置3Aに送信すべき計測データではないとして、この計測値については選択判断の処理を終了する。   Steps S51 to S53 shown in FIG. 11 correspond to steps S1 to S3 shown in FIG. Step S55 shown in FIG. 11 corresponds to step S5 shown in FIG. The data selection unit 150 determines whether or not the acquired measurement value is a difference between the current date and time and the data selection date and time of the memory 102A equal to or greater than a predetermined transmission cycle (step S56). The transmission cycle is set for each sensor according to the management area in which the sensor is installed, the type of parameter measured by the sensor, and the like. When the data selection unit 150 determines that the calculated difference is not equal to or greater than the predetermined transmission cycle (step S56: No), the measurement data corresponding to the measurement value is not measurement data to be transmitted to the data management device 3A. Then, the selection determination process is finished for this measured value.

一方、データ選択部150は、算出した差が所定の送信周期以上であると判断した場合(ステップS56:Yes)、図2に示すステップS7と同様に、「変化無し」の情報を計測データ追加する(ステップS57)。ステップS53またはステップS57が終了した後、データ選択部150は、取得した計測値の計測データを、データ管理装置3Aにおけるデータベース70に格納するためにデータ管理装置3Aに送信すべき計測データとして選択する(ステップS54)。続いて、データ送信処理部112Aは、データ選択部150によって選択された計測データを、ネットワークNを介してデータ管理装置3Aに送
信する(ステップS58)。図11に示すステップS59は、図2に示すステップS8に対応する。なお、データ選択部150は、図7に示すステップS21〜23,S25,S26を行なった後に図11のステップS54,S58の処理を行って、データ管理装置3Aに送信すべき計測データを選択してもよい。また、出力データ作成部80は、図4または図9に示す処理手順を行うことによって、出力用の計測データを作成する。
On the other hand, when the data selection unit 150 determines that the calculated difference is equal to or greater than the predetermined transmission cycle (step S56: Yes), the information “No change” is added to the measurement data as in step S7 shown in FIG. (Step S57). After step S53 or step S57 is completed, the data selection unit 150 selects the measurement data of the acquired measurement value as measurement data to be transmitted to the data management device 3A in order to store it in the database 70 in the data management device 3A. (Step S54). Subsequently, the data transmission processing unit 112A transmits the measurement data selected by the data selection unit 150 to the data management device 3A via the network N (step S58). Step S59 shown in FIG. 11 corresponds to step S8 shown in FIG. The data selection unit 150 performs the processing of steps S54 and S58 in FIG. 11 after performing steps S21 to 23, S25, and S26 shown in FIG. 7, and selects measurement data to be transmitted to the data management device 3A. May be. Further, the output data creation unit 80 creates measurement data for output by performing the processing procedure shown in FIG. 4 or FIG.

この実施の形態2では、データ収集部データ選択部150を有するデータ収集装置2Aとデータ格納処理部60を有するデータ管理装置3AとがネットワークNを介して接続される構成の場合も、センサの各計測値の中から前回計測値に対して所定値以上変化した計測値に対応する計測データのみを、データベース70に格納すべき計測データとして選択し、データ管理装置3Aに送信する。このため、実施の形態2は、各センサの計測データの全てをデータ管理装置3Aに送信するのではなく、計測データの一部のみを送信するため、管理装置へのデータ送信が集中を低減し管理装置までの通信負荷を抑制し、管理装置における受信処理の負荷も低減することができるというさらなる効果を奏する。   In the second embodiment, even in the case where the data collection device 2A having the data collection unit data selection unit 150 and the data management device 3A having the data storage processing unit 60 are connected via the network N, each sensor Only the measurement data corresponding to the measurement value that has changed by a predetermined value or more with respect to the previous measurement value from the measurement values is selected as the measurement data to be stored in the database 70 and transmitted to the data management device 3A. For this reason, the second embodiment does not transmit all the measurement data of each sensor to the data management device 3A, but transmits only a part of the measurement data, so that data transmission to the management device reduces concentration. The communication load to the management apparatus can be suppressed, and a further effect that the load of reception processing in the management apparatus can be reduced can be achieved.

(実施の形態3)
次に、実施の形態3について説明する。実施の形態3では、変化有無情報ではなく前回計測値との差分値を、計測日時、センサ種別、計測値に対応付けてデータベースに格納する。
(Embodiment 3)
Next, Embodiment 3 will be described. In the third embodiment, not the change presence / absence information but the difference value with the previous measurement value is stored in the database in association with the measurement date / time, sensor type, and measurement value.

図12は、実施の形態3にかかるデータ管理装置の構成を示すブロック図である。図12に示すように、実施の形態3にかかるデータ管理装置201は、図1に示すデータ選択部50および出力データ作成部80に代えて、データ選択部250および出力データ作成部280を有する。また、データ管理装置201の制御部220は、制御部20と同様に、各種プログラムおよびパラメータを実行してデータ管理装置201の各構成部位の各処理および各動作を制御する機能を有する。   FIG. 12 is a block diagram of the configuration of the data management apparatus according to the third embodiment. As illustrated in FIG. 12, the data management apparatus 201 according to the third embodiment includes a data selection unit 250 and an output data creation unit 280 instead of the data selection unit 50 and the output data creation unit 80 illustrated in FIG. 1. Further, like the control unit 20, the control unit 220 of the data management device 201 has a function of executing various programs and parameters to control each process and each operation of each component of the data management device 201.

データ選択部250は、センサによって計測された判断対象の計測値が、この計測値の前回計測値に対して所定値以上の差がある場合に、判断対象である計測値とこの計測値の計測日時とともに、この計測値から前回計測値を減算した差分値である前回差分値とを含む計測データをデータベース70に格納すべき計測データとして選択する。   When the measurement value measured by the sensor has a difference of a predetermined value or more with respect to the previous measurement value of the measurement value, the data selection unit 250 measures the measurement value that is the determination target and the measurement value. Along with the date and time, measurement data including the previous difference value obtained by subtracting the previous measurement value from the measurement value is selected as measurement data to be stored in the database 70.

出力データ作成部280は、データベース70の中から、データ出力指示情報によって指示された期間中に、指示対象のセンサが計測した計測処理の計測データを全て検索できなかった場合、検索できなかった日時の計測データについては、この日時に最も近い日時に計測された計測データの計測値と前回差分値とをもとに、計測値を補完して、指示された期間の計測データを作成する。   The date and time when the output data creation unit 280 could not be searched when all the measurement data of the measurement processing measured by the instruction target sensor could not be searched from the database 70 during the period specified by the data output instruction information. For the measurement data, the measurement value is complemented based on the measurement value of the measurement data measured on the date and time closest to this date and the previous difference value, and measurement data for the specified period is created.

次に、図12に示すデータ選択部250による格納対象の計測データ選択処理について説明する。図13は、データ選択部250における格納対象の計測データの選択処理の処理手順を示すフローチャートである。   Next, a measurement data selection process to be stored by the data selection unit 250 shown in FIG. 12 will be described. FIG. 13 is a flowchart showing a processing procedure for selecting measurement data to be stored in the data selection unit 250.

図13に示すステップS61〜ステップS62は、図2に示すステップS1およびステップS2に対応する。データ選択部250は、取得した計測値と前回計測値との差の絶対値は所定値以上であると判断した場合(ステップS62:Yes)、この取得した計測値から前回計測値を減算した値を、この計測データの前回差分の値に設定し(ステップS63)、この計測値に対応する計測データを、データベース70に格納すべき計測データとして選択する(ステップS64)。   Step S61 to step S62 shown in FIG. 13 correspond to step S1 and step S2 shown in FIG. When the data selection unit 250 determines that the absolute value of the difference between the acquired measurement value and the previous measurement value is greater than or equal to a predetermined value (step S62: Yes), the value obtained by subtracting the previous measurement value from the acquired measurement value Is set to the previous difference value of the measurement data (step S63), and the measurement data corresponding to the measurement value is selected as the measurement data to be stored in the database 70 (step S64).

一方、データ選択部250は、取得した計測値と前回計測値との差の絶対値は所定値以
上でないと判断した場合(ステップS62:No)、図2のステップS5およびステップS6と同様に、現在日時とメモリ100のデータ選択日時との差を算出し(ステップS65)、算出した差が所定の格納義務期間以上であるか否かを判断する(ステップS66)。データ選択部250は、算出した差が所定の格納義務期間以上でないと判断した場合(ステップS66:No)、この計測値については選択判断の処理を終了する。データ選択部250は、算出した差が所定の格納義務期間以上であると判断した場合(ステップS66:Yes)、この計測データの前回差分の値を「0」に設定し(ステップS67)、この計測値に対応する計測データを、データベース70に格納すべき計測データとして選択する(ステップS64)。図13に示すステップS68は、図2に示すステップS8に対応する。
On the other hand, when the data selection unit 250 determines that the absolute value of the difference between the acquired measurement value and the previous measurement value is not equal to or greater than the predetermined value (step S62: No), as in step S5 and step S6 of FIG. The difference between the current date and time and the data selection date and time of the memory 100 is calculated (step S65), and it is determined whether or not the calculated difference is equal to or longer than a predetermined storage duty period (step S66). When the data selection unit 250 determines that the calculated difference is not equal to or longer than the predetermined storage duty period (step S66: No), the selection determination process ends for this measurement value. When the data selection unit 250 determines that the calculated difference is equal to or longer than the predetermined storage duty period (step S66: Yes), the value of the previous difference of the measurement data is set to “0” (step S67). Measurement data corresponding to the measurement value is selected as measurement data to be stored in the database 70 (step S64). Step S68 shown in FIG. 13 corresponds to step S8 shown in FIG.

実施の形態3では、図13に示す各処理を行うことによって、実施の形態1で説明した変化有無情報に代えて、取得した計測値から前回計測値を減算した値を前回差分として、計測日時、センサ種別、計測値に対応付けて管理用計測データ271がデータベース70に格納される。図14は、データベース70に格納される管理用計測データ271の内容を例示した表を示す図である。   In the third embodiment, by performing each process shown in FIG. 13, instead of the change presence / absence information described in the first embodiment, a value obtained by subtracting the previous measurement value from the acquired measurement value is used as the previous difference. The management measurement data 271 is stored in the database 70 in association with the sensor type and the measurement value. FIG. 14 is a diagram illustrating a table illustrating the contents of the management measurement data 271 stored in the database 70.

図14のテーブルT11に示すように、管理用計測データ71は、図中左から順に、計測日時欄L1、センサ種別欄L2、計測値L3に加え、前回計測値との差分値を示す前回差分欄L24が並んで設けられ、1回の計測処理ごとに、計測日時、センサ種別、計測値および前回差分値が横一列に並ぶように各セルに順次書き込まれる。ここでは、実施の形態1と同様に、第1センサ31が1時間ごとに計測処理を行い、3時間周期で計測データをデータベース70に格納することが義務付けられている場合であって、データ選択部250は、図3で説明した場合と同じ計測結果に対して選択処理を行った場合を例に説明する。   As shown in the table T11 of FIG. 14, the management measurement data 71 includes, in order from the left in the figure, a previous difference indicating a difference value from the previous measurement value in addition to the measurement date / time field L1, the sensor type field L2, and the measurement value L3. A column L24 is provided side by side, and the measurement date and time, sensor type, measurement value, and previous difference value are sequentially written in each cell so as to be arranged in a horizontal row for each measurement process. Here, as in the first embodiment, the first sensor 31 performs measurement processing every hour, and is required to store the measurement data in the database 70 in a three-hour cycle. The unit 250 will be described by taking as an example a case where the selection process is performed on the same measurement result as that described with reference to FIG.

まず、第1センサ31の1月2日0時0分の計測データは、前回計測値から変化しないものの前回格納から3時間以上を経過したときのデータであるため、テーブルT11の行R20には、計測日時である「1月2日0時0分」、センサ種別を示す「第1センサ」、計測値である「20.0」、および、データ選択部250で付された前回差分の値「0.0」が書き込まれる。そして、1月2日1時0分および1月2日2時0分の計測データは、図3の場合と同様に、前回計測値から変化がなく前回格納時である1月2日0時0分から3時間未満のデータであるため、データ選択部250で選択されず、テーブルT11には書き込まれない。   First, the measurement data at 0:00 on January 2 of the first sensor 31 is data that has not changed from the previous measurement value but has passed 3 hours or more since the previous storage, so the row R20 of the table T11 includes , The measurement date and time “January 2 00:00”, the sensor type “first sensor”, the measurement value “20.0”, and the value of the previous difference added by the data selection unit 250 “0.0” is written. Then, the measurement data of 2:00 on January 2 and 2:00 on January 2 is the same as in FIG. Since the data is from 0 minutes to less than 3 hours, it is not selected by the data selection unit 250 and is not written in the table T11.

その次の1月2日3時0分の計測データは、前回格納の1月2日0時0分から3時間経過したものに対応するため、データ選択部250で前回差分の値として「0.0」を付された上で格納対象に選択される。このため、テーブルT11の行R23に、計測日時である「1月2日3時0分」、センサ種別を示す「第1センサ」、計測値である「20.0」、および、前回差分の値「0.0」が書き込まれる。この次の1月2日4時0分の計測データは、前回計測値から変化しないため、データ選択部250によって選択されず、テーブルT11には書き込まれない。   The next measurement data at 3:00:00 on January 2 corresponds to data that has passed 3 hours from 00:00 on January 2 stored last time, and therefore the data selection unit 250 sets “0. After “0” is added, it is selected as a storage target. Therefore, in the row R23 of the table T11, the measurement date and time “January 2 3:00”, the sensor type “first sensor”, the measurement value “20.0”, and the previous difference The value “0.0” is written. The next measurement data at 4:00:00 on January 2 does not change from the previous measurement value, and therefore is not selected by the data selection unit 250 and is not written in the table T11.

1月2日5時0分の計測データは、前回計測値から所定値以上変化したものであるため、データ選択部250で前回計測値との差分値「+10.0」を付された上で格納対象に選択される。その結果、テーブルT11の行R25に、計測日時である「1月2日5時0分」、センサ種別を示す「第1センサ」、計測値である「30.0」、および、前回差分の値「+10.0」が書き込まれる。この次の1月2日6時0分の計測データは、前回計測値から変化しないため、データ選択部250によって選択されず、テーブルT11には書き込まれない。   Since the measurement data at 5:00:00 on January 2 has changed from the previous measurement value by a predetermined value or more, the data selection unit 250 adds the difference value “+10.0” from the previous measurement value. Selected for storage. As a result, in the row R25 of the table T11, the measurement date and time “January 2 5:00”, the sensor type “first sensor”, the measurement value “30.0”, and the previous difference The value “+10.0” is written. The next measurement data at 6:00:00 on January 2 does not change from the previous measurement value, so it is not selected by the data selection unit 250 and is not written in the table T11.

そして、1月2日7時0分の計測データは、前回計測値から所定値以上変化したものであるため、データ選択部250で前回計測値との差分値「+10.0」を付された上で格納対象に選択された結果、テーブルT11の行R27に、計測日時である「1月2日7時0分」、センサ種別を示す「第1センサ」、計測値である「40.0」、および、前回差分の値「+10.0」が書き込まれる。   And since the measurement data at 07:00 on January 2 has been changed by a predetermined value or more from the previous measurement value, the data selection unit 250 is given a difference value “+10.0” from the previous measurement value. As a result of the above selection as the storage target, in the row R27 of the table T11, the measurement date and time “January 2 7:00”, the sensor type “first sensor”, and the measurement value “40.0” are displayed. ”And the previous difference value“ +10.0 ”are written.

したがって、前回計測値から変化がなく、さらに、前回格納から格納義務期間を経過していない1月2日1時0分、1月2日2時0分、1月2日4時0分および1月2日6時0分の計測データが抜けたテーブルT11が管理用計測データ271としてデータベース70に格納される。   Therefore, there is no change from the previous measurement value, and furthermore, the storage duty period has not elapsed since the previous storage, 2:00 on January 2, 2:00 on January 2, 4:00 on January 2, and The table T11 from which the measurement data at 6:00:00 on January 2 is missing is stored in the database 70 as management measurement data 271.

次に、図15を参照して、出力データ作成部280が行う出力用計測データ作成処理について説明する。図15は、図12に示す出力データ作成部280における出力用データの作成処理の処理手順を示すフローチャートである。   Next, output measurement data creation processing performed by the output data creation unit 280 will be described with reference to FIG. FIG. 15 is a flowchart showing a processing procedure of output data creation processing in the output data creation unit 280 shown in FIG.

図15に示すS71〜ステップS75は、図4に示すステップS11〜ステップS15に対応する。出力データ作成部280が、検索対象の日時の計測データがないと判断した場合には(ステップS74:No)、出力データ作成部80は、管理用計測データ71の中から検索対象の日時よりも後であって、かつ、最も近い日時の計測データを抽出する(ステップS76)。出力データ作成部280は、この抽出した計測データの計測値から、この抽出した計測データの前回差分の値を減算して(ステップS77)、算出した値を取得対象である日時の計測値として採用する(ステップS78)。管理用計測データ271の中に書き込まれていない日時の計測値は、この日時の前に計測された計測値から変化がないものに相当し、管理用計測データ271の計測データのうち、この日時よりも後であって、かつ、最も近い日時に計測された計測値から前回差分の値を減算すれば求めることができる。図15に示すステップS79〜ステップS81は、図4に示すステップS18〜ステップS20に対応する。   Steps S71 to S75 shown in FIG. 15 correspond to steps S11 to S15 shown in FIG. When the output data creation unit 280 determines that there is no measurement data for the search target date and time (step S74: No), the output data creation unit 80 selects the search target date and time from the management measurement data 71. After that, the measurement data of the closest date and time is extracted (step S76). The output data creation unit 280 subtracts the value of the previous difference of the extracted measurement data from the measurement value of the extracted measurement data (step S77), and adopts the calculated value as the measurement value of the acquisition target date and time. (Step S78). The measurement value at the date and time not written in the management measurement data 271 corresponds to the measurement value that has not changed from the measurement value measured before this date and time. Among the measurement data of the management measurement data 271, this date and time It can be obtained by subtracting the value of the previous difference from the measured value measured after the latest date and time. Step S79 to step S81 shown in FIG. 15 correspond to step S18 to step S20 shown in FIG.

図14および図16を参照して、図15の出力用計測データの作成処理について具体的に説明する。図16は、出力データ作成部280が作成する出力用計測データの一例を示す図である。ここでは、実施の形態1における説明と同様に、第1センサ31の1月2日0時0分から1月2日7時0分までの計測データの出力が指示された場合を例に説明する。   With reference to FIG. 14 and FIG. 16, the output measurement data creation processing of FIG. 15 will be specifically described. FIG. 16 is a diagram illustrating an example of output measurement data created by the output data creation unit 280. Here, as in the description in the first embodiment, a case will be described as an example in which measurement data output from the first sensor 31 from 0:00 on January 2 to 7:00 on January 2 is instructed. .

まず、出力データ作成部280は、図14のテーブルT11から、開始日時である1月2日0時0分のデータを検索する。この1月2日0時0分のデータは、抽出した行R20のデータに対応するため、出力データ作成部80は、行R20のデータを見つけると、この行R20の計測値「20.0」を1月2日0時0分の計測値としてそのまま採用する。この結果、図16のテーブルT12に示すように、1月2日0時0分の「第1センサ」31の計測値「20.0」が対応付けられた行R20−1が配置される。   First, the output data creation unit 280 searches the data on January 2, 0:00, which is the start date and time, from the table T11 of FIG. Since the data of 0:00 on January 2 corresponds to the extracted data of the row R20, when the output data creation unit 80 finds the data of the row R20, the measurement value “20.0” of the row R20 is obtained. Is directly adopted as the measured value at 00:00 on January 2. As a result, as shown in the table T12 of FIG. 16, the row R20-1 in which the measurement value “20.0” of the “first sensor” 31 at 0:00 on January 2 is associated is arranged.

続いて、出力データ作成部280は、この次に計測処理を行った1月2日1時0分のデータを検索する。この1月2日1時0分のデータは、テーブルT11には含まれないため、出力データ作成部280は、テーブルT11の中から1月2日1時0分よりも後で、かつ、最も近い日時の計測データである1月2日3時0分の行R23のデータを抽出し、この抽出した行R23の計測値「20.0」から前回差分の値「0.0」を減算した「20.0」を1月2日1時0分の計測値として採用する。この結果、テーブルT12の1月2日1時0分に対応する行R21−1の計測値として、矢印Y11のように、計測値「20.0」が補完される。同様に、この次の1月2日2時0分のデータもテーブルT11には
含まれないため、出力データ作成部280は、テーブルT11の中から1月2日2時0分によりも後で、かつ、最も近い日時の1月2日3時0分のデータを抽出し、矢印Y12のように、1月2日0時0分の計測値「20.0」から前回差分の値「0.0」を減算した「20.0」を行R22−1の1月2日2時0分の計測値として補完する。
Subsequently, the output data creation unit 280 searches for data of 12:00 on January 2 on which the next measurement process was performed. Since the data of 0:00 on January 2 is not included in the table T11, the output data creation unit 280 is later than 1:00 on January 2 in the table T11, and most The data of the row R23 on January 2 at 3:00, which is measurement data of the near date and time, is extracted, and the previous difference value “0.0” is subtracted from the measurement value “20.0” of the extracted row R23 “20.0” is adopted as the measurement value at 1:00 on January 2. As a result, the measurement value “20.0” is complemented as the measurement value of the row R21-1 corresponding to 12:00 on January 2 in the table T12 as indicated by the arrow Y11. Similarly, since the next data of 2:00 on January 2 is not included in the table T11, the output data creation unit 280 will later execute the data from the table T11 after 2:00 on January 2. In addition, the data of 3:00:00 on January 2 of the nearest date and time is extracted, and as shown by the arrow Y12, the previous difference value “0” from the measured value “20.0” on January 2 00:00 “20.0” obtained by subtracting “.0” is complemented as a measurement value at 2:02:00 on January 2 in row R22-1.

この次の1月2日3時0分のデータは、抽出した行R23のデータに対応するため、出力データ作成部280は、行R23の計測値「20.0」をテーブルT12の行R23−1の1月2日3時0分の計測値としてそのまま採用する。この次の1月2日4時0分のデータは、テーブルT11には含まれないため、出力データ作成部280は、テーブルT11の中から1月2日4時0分よりも後であって、かつ、最も近い日時の1月2日5時0分の行R25のデータを抽出し、1月2日5時0分の計測値「30.0」から前回差分の値「+10.0」を減算した「20.0」を矢印Y13のように行R24−1の1月2日4時0分の計測値として補完する。そして、この次の1月2日5時0分のデータは、テーブルT11の行R25のデータに対応するため、出力データ作成部280は、テーブルT12の行R25−1に示すように、この行R25の計測値「30.0」を1月2日5時0分の計測値としてそのまま採用する。この次の1月2日6時0分のデータはテーブルT11には含まれないため、出力データ作成部280は、テーブルT11の中から1月2日6時0分よりも後であって、かつ、最も近い日時の1月2日7時0分のデータを抽出し、矢印Y14のように、1月2日7時0分の計測値「40.0」から前回差分の値「+10.0」を減算した「30.0」を行R26−1の1月2日6時0分の計測値として補完する。さらに、この次の1月2日7時0分のデータは、テーブルT11の行R27に対応するため、テーブルT12の行R27−1に示すように、この行R27の計測値「40.0」を1月2日7時0分の計測値としてそのまま採用する。   Since the next data of 3:00:00 on January 2 corresponds to the extracted data of the row R23, the output data creation unit 280 sets the measured value “20.0” of the row R23 to the row R23− of the table T12. 1 is used as it is as a measurement value at 3 o'clock on January 2nd. Since the next data of 4:00 on January 2 is not included in the table T11, the output data creation unit 280 is later than 4:00 on January 2 in the table T11. In addition, the data of the row R25 of January 2nd 5:00 at the nearest date and time is extracted, and the previous difference value “+10.0” from the measured value “30.0” on January 2nd 5:00:00 "20.0" is subtracted as a measurement value at 4:00:00 on January 2 in row R24-1. Since the next data of 5:00 on January 2 corresponds to the data in the row R25 of the table T11, the output data creation unit 280 displays this row as shown in the row R25-1 of the table T12. The measurement value “30.0” of R25 is directly adopted as the measurement value at 5:00:00 on January 2. Since the next data of 6:00:00 on January 2 is not included in the table T11, the output data creation unit 280 is later than 6:00:00 on January 2 in the table T11, And the data of 7:00:00 on January 2 of the nearest date and time is extracted, and as shown by the arrow Y14, the previous difference value “+10. “30.0” obtained by subtracting “0” is supplemented as a measurement value at 6:00:00 on January 2, row R26-1. Further, since the next data of 7:00 on January 2 corresponds to the row R27 of the table T11, as shown in the row R27-1 of the table T12, the measured value “40.0” of the row R27. Is directly adopted as the measurement value at 07:00 on January 2nd.

この結果、データ管理装置201においては、図16のテーブルT12のように、出力を指示された1月2日0時0分から1月2日7時0分までの間に第1センサ31が1時間ごとに計測した各計測値の全てが抜けることなく計測日時順に配列する出力用の計測データを出力される。   As a result, in the data management apparatus 201, as shown in the table T12 of FIG. 16, the first sensor 31 is set to 1 between 0:00 on January 2 and 7:00 on January 2 when the output is instructed. Output measurement data arranged in order of measurement date and time is output without missing all the measured values measured every time.

このように、実施の形態3においても、実施の形態1と同様に、データ選択部250が選択した一部の計測データのみをデータベース70に格納するため、全ての計測データを格納する場合と比較して、データベース70に格納されるセンサの計測データのデータ量を削減できる。また、実施の形態3においても、実施の形態1と同様に、格納義務期間ごとに一定の周期でデータベース70に計測データが格納されるように計測データの選択を行っているため、センサに異常の有無についても、この一定周期で格納された計測値の有無をもとに判別することができる。また、実施の形態3では、実施の形態1における変化有無情報に代えて、前回差分の値を管理用計測データ271に格納しており、前回差分の値の桁数が小さい場合にはデータベース70に格納するデータ量を実施の形態1よりも低減することができる。   Thus, in the third embodiment as well, in the same way as in the first embodiment, only a part of the measurement data selected by the data selection unit 250 is stored in the database 70, so that it is compared with the case of storing all the measurement data. Thus, the amount of sensor measurement data stored in the database 70 can be reduced. Also in the third embodiment, as in the first embodiment, the measurement data is selected so that the measurement data is stored in the database 70 at a constant cycle for each storage duty period. The presence or absence of can also be determined based on the presence or absence of measurement values stored at this fixed period. In the third embodiment, instead of the change presence / absence information in the first embodiment, the previous difference value is stored in the management measurement data 271. If the number of digits of the previous difference value is small, the database 70 is stored. Can be reduced as compared with the first embodiment.

(実施の形態3の変形例1)
次に、実施の形態3の変形例1について説明する。実施の形態3の変形例1においては、実施の形態3よりもデータベース70に格納されるセンサの計測データのデータ量を削減するように計測データの選択処理を行う。図17は、実施の形態3の変形例1における格納対象の計測データ選択処理の処理手順を示すフローチャートである。
(Modification 1 of Embodiment 3)
Next, Modification 1 of Embodiment 3 will be described. In the first modification of the third embodiment, the measurement data selection process is performed so as to reduce the amount of sensor measurement data stored in the database 70 as compared with the third embodiment. FIG. 17 is a flowchart illustrating a processing procedure of measurement data selection processing to be stored in the first modification of the third embodiment.

図17に示すステップS91〜ステップS94は、図13のステップS61〜ステップS64に対応する。データ選択部250は、取得した計測値は、前回計測値から所定値以上の変化がないと判断した場合(ステップS92:No)、この計測値の計測日時が所定の格納基準時刻であるか否かを判断する(ステップS95)。データ選択部250は、こ
の計測値の計測日時が所定の格納基準時刻でないと判断した場合(ステップS95:No)、この計測値については選択判断の処理を終了する。
Step S91 to step S94 shown in FIG. 17 correspond to step S61 to step S64 of FIG. When the data selection unit 250 determines that the acquired measurement value has not changed by a predetermined value or more from the previous measurement value (step S92: No), whether or not the measurement date and time of this measurement value is a predetermined storage reference time. Is determined (step S95). When the data selection unit 250 determines that the measurement date / time of the measurement value is not the predetermined storage reference time (step S95: No), the process of selecting and determining the measurement value ends.

データ選択部250は、この計測値の計測日時が所定の格納基準時刻であると判断した場合(ステップS95:Yes)、この計測データの前回差分の値を「0」に設定し(ステップS96)、この計測値に対応する計測データを、データベース70に格納すべき計測データとして選択する(ステップS94)。したがって、前回計測値から所定値以上の変化がない場合、一定の格納基準時刻の計測データ以外は、データベース70には格納されない。たとえば格納基準時刻が0時0分に設定されている場合には、図18のテーブルT13に例示するように、1月2日のデータのうち前回計測値から所定値以上の変化がない計測データについては格納基準時刻の1月2日0時0分の計測データのみが前回差分に「0.0」の値が書き込まれた状態でデータベースに格納される。したがって、図18のテーブルT3は、図14のテーブルT11から行R23を削除したものとなる。   When the data selection unit 250 determines that the measurement date / time of the measurement value is a predetermined storage reference time (step S95: Yes), the value of the previous difference of the measurement data is set to “0” (step S96). The measurement data corresponding to the measurement value is selected as measurement data to be stored in the database 70 (step S94). Accordingly, when there is no change of a predetermined value or more from the previous measurement value, data other than measurement data at a fixed storage reference time is not stored in the database 70. For example, when the storage reference time is set to 0: 0, as illustrated in the table T13 of FIG. 18, measurement data that does not change more than a predetermined value from the previous measurement value in the data on January 2nd. Is stored in the database in a state in which the value of “0.0” is written in the previous difference only at 0:00:00 on January 2 of the storage reference time. Therefore, the table T3 in FIG. 18 is obtained by deleting the row R23 from the table T11 in FIG.

図17のステップS97は、図13のステップS68に対応する。なお、実施の形態3の変形例1においては、出力データ作成部280は、図15に示す各処理手順を行うことによって出力用計測データ作成する。   Step S97 in FIG. 17 corresponds to step S68 in FIG. In the first modification of the third embodiment, the output data creation unit 280 creates output measurement data by performing each processing procedure shown in FIG.

このように、実施の形態3の変形例1においては、計測値に所定値以上の変化がない場合には、所定の格納基準時刻以外の計測値については格納対象として選択しないため、実施の形態3よりもデータベース70に格納されるセンサの計測データのデータ量を削減することができる。また、実施の形態3の変形例1においては、計測値に所定値以上の変化がない場合であっても格納基準時刻の計測データが格納されるようにしているため、センサに異常の有無についても、この格納基準時刻で格納された計測値の有無をもとに判別することができる。   As described above, in the first modification of the third embodiment, when the measurement value does not change more than the predetermined value, the measurement value other than the predetermined storage reference time is not selected as the storage target. 3 can reduce the amount of sensor measurement data stored in the database 70. In the first modification of the third embodiment, the measurement data at the storage reference time is stored even when the measurement value does not change by a predetermined value or more. Also, the determination can be made based on the presence or absence of the measurement value stored at the storage reference time.

(実施の形態3の変形例2)
次に、実施の形態3の変形例2について説明する。図19は、実施の形態3の変形例2における出力用データの作成処理の処理手順を示すフローチャートである。
(Modification 2 of Embodiment 3)
Next, a second modification of the third embodiment will be described. FIG. 19 is a flowchart illustrating a processing procedure of output data creation processing according to the second modification of the third embodiment.

図19に示すステップS101〜ステップS105は、図15に示すステップS71〜ステップS75に対応する。出力データ作成部280が、検索対象の開始日時の計測データがないと判断した場合には(ステップS104:No)、管理用計測データ271の中から検索対象の日時に最も近い日時の計測データを抽出し(ステップS106)、この抽出した最も近い日時の計測データが検索対象の日時よりも前に計測されたものであるか否かを判断する(ステップS107)。   Step S101 to step S105 shown in FIG. 19 correspond to step S71 to step S75 shown in FIG. When the output data creation unit 280 determines that there is no measurement data of the start date / time of the search target (step S104: No), the measurement data of the date / time closest to the search target date / time is selected from the management measurement data 271. It is extracted (step S106), and it is determined whether or not the extracted measurement data of the nearest date / time is measured before the date / time of search (step S107).

出力データ作成部280が、抽出した最も近い日時の計測データが検索対象の日時よりも前に計測されたものであると判断した場合には(ステップS107:Yes)、データが格納されていない検索対象の日時の計測値は、その前に計測された計測値から変化がないものに相当するため、この抽出した最も近い日時の計測データの計測値を、取得対象である開始日時の計測値として採用する(ステップS108)。   When the output data creation unit 280 determines that the extracted measurement data of the nearest date / time is measured before the search date / time (step S107: Yes), the search in which no data is stored Since the measurement value of the target date and time corresponds to the measurement value that has not changed from the measurement value measured before that, the measurement value of the extracted measurement data of the closest date and time is used as the measurement value of the start date and time that is the acquisition target. Adopt (step S108).

出力データ作成部280が、抽出した最も近い日時の計測データが検索対象の日時よりも前に計測されたものでないと判断した場合は(ステップS107:No)、抽出した最も近い日時の計測データは、検索対象の日時よりも後であって、かつ、最も近い日時の計測データとなるため、この抽出した計測データの計測値から、この抽出した計測データの前回差分の値を減算して(ステップS109)、算出した値を取得対象である日時の計測値として採用する(ステップS110)。図19に示すステップS111〜ステップS113は、図15に示すステップS79〜ステップS81に対応する。   When the output data creation unit 280 determines that the extracted measurement data at the nearest date and time is not measured before the search target date and time (step S107: No), the extracted measurement data at the nearest date and time is Since the measurement data is later than the search target date and time and has the closest date and time, the previous difference value of the extracted measurement data is subtracted from the measurement value of the extracted measurement data (step In step S109, the calculated value is adopted as a measurement value for the date and time to be acquired (step S110). Step S111 to step S113 shown in FIG. 19 correspond to step S79 to step S81 shown in FIG.

このように、実施の形態3の変形例1における出力データ作成処理においては、管理用計測データ271に格納されていない日時の計測値を取得する場合において、検索対象の日時に最も近い日時の計測データを抽出し、この抽出した最も近い日時の計測データが検索対象の日時よりも前に計測されたものである場合には、図15の処理からのステップS77の減算処理が省略される。   As described above, in the output data creation process according to the first modification of the third embodiment, when the measurement value of the date and time not stored in the management measurement data 271 is acquired, the measurement of the date and time closest to the search target date and time is obtained. When data is extracted and the extracted measurement data of the nearest date and time is measured before the search target date and time, the subtraction processing in step S77 from the processing of FIG. 15 is omitted.

(実施の形態4)
次に、実施の形態4について説明する。図20は、実施の形態4にかかるデータ管理システムの構成を示すブロック図である。
(Embodiment 4)
Next, a fourth embodiment will be described. FIG. 20 is a block diagram of the configuration of the data management system according to the fourth embodiment.

図20に示すように、実施の形態4にかかるデータ管理システム201Aは、データ選択部350を有するデータ収集装置202Aと、データ格納処理部60とデータベース70と出力データ作成部280とを有するデータ管理装置203Aとが、ネットワークNを介して接続される構成を有する。   As shown in FIG. 20, the data management system 201A according to the fourth embodiment includes a data collection device 202A having a data selection unit 350, a data storage processing unit 60, a database 70, and an output data creation unit 280. The apparatus 203 </ b> A is connected via the network N.

データ収集装置202Aは、各種プログラムおよびパラメータを実行してデータ収集装置202Aの処理動作を制御する制御部222Aと、データ収集部40と、データ管理装置203Aが有するデータベース70に格納すべき計測データを選択するデータ選択部350と、データ選択部350によるデータ選択日時が一時的に保持されたメモリ102Aと、データ選択部350が選択した計測データをネットワークNを介してデータ管理装置203Aに送信するデータ送信処理部112Aとを有する。データ送信処理部112Aは、データ選択部350によって選択された計測データとして、計測日時、センサ種別、計測値、および、前回差分値を対応付けた書式のデータD2を送信する。   The data collection device 202A executes various programs and parameters to control processing operations of the data collection device 202A, the data collection unit 40, and measurement data to be stored in the database 70 of the data management device 203A. A data selection unit 350 to be selected, a memory 102A in which the data selection date and time by the data selection unit 350 is temporarily stored, and data to be transmitted to the data management device 203A via the network N by the measurement data selected by the data selection unit 350 And a transmission processing unit 112A. The data transmission processing unit 112A transmits data D2 in a format in which the measurement date and time, the sensor type, the measurement value, and the previous difference value are associated as the measurement data selected by the data selection unit 350.

データ管理装置203Aは、入力部10と、各種プログラムおよびパラメータを実行してデータ管理装置203Aの処理動作を制御する制御部223Aと、ネットワークNを介してデータ収集装置202Aから送信された計測データを受信するデータ受信処理部113Aと、データ受信処理部113Aが受信した計測データをデータベース70に格納するデータ格納処理部60と、データベース70と、出力データ作成部280と、出力部90とを有する。   The data management device 203A receives the measurement data transmitted from the data collection device 202A via the input unit 10, the control unit 223A that executes various programs and parameters to control the processing operation of the data management device 203A, and the network N. A data reception processing unit 113A to receive, a data storage processing unit 60 to store measurement data received by the data reception processing unit 113A in the database 70, a database 70, an output data creation unit 280, and an output unit 90 are provided.

次に、図20に示すデータ選択部350における格納対象となる計測データを選択する処理について説明する。図21は、データ収集装置202Aにおける格納対象の計測データの選択・送信処理の処理手順を示すフローチャートである。   Next, processing for selecting measurement data to be stored in the data selection unit 350 shown in FIG. 20 will be described. FIG. 21 is a flowchart illustrating a processing procedure of selection / transmission processing of measurement data to be stored in the data collection device 202A.

図21に示すステップS121〜ステップS123は、図13に示すステップS61〜ステップS63に対応する。ステップS124は、図11に示すステップS54に対応する。ステップS125およびステップS126は、図11に示すステップS55およびステップS56に対応する。データ選択部350は、算出した差が所定の送信周期以上でないと判断した場合(ステップS126:No)、この計測データは、選択判断の処理を終了する。一方、データ選択部350は、算出した差が所定の送信周期以上であると判断した場合(ステップS126:Yes)、この計測データの前回差分の値を「0」に設定する(ステップS127)。ステップS128およびステップS129は、図11に示すステップS58およびステップS59に対応する。なお、データ選択部350は、図17に示すステップS91〜93,S95,S96を行なった後に図21のステップS124,S128の処理を行って、データ管理装置203Aに送信すべき計測データを選択してもよい。また、出力データ作成部280は、図15または図19に示す処理手順を行うことによって、出力用の計測データを作成する。   Step S121 to step S123 shown in FIG. 21 correspond to step S61 to step S63 shown in FIG. Step S124 corresponds to step S54 shown in FIG. Step S125 and step S126 correspond to step S55 and step S56 shown in FIG. When the data selection unit 350 determines that the calculated difference is not equal to or greater than the predetermined transmission cycle (step S126: No), the measurement data ends the selection determination process. On the other hand, when the data selection unit 350 determines that the calculated difference is equal to or greater than the predetermined transmission cycle (step S126: Yes), the value of the previous difference of the measurement data is set to “0” (step S127). Step S128 and step S129 correspond to step S58 and step S59 shown in FIG. Note that the data selection unit 350 performs the processing of steps S124 and S128 of FIG. 21 after performing steps S91 to 93, S95, and S96 shown in FIG. 17, and selects measurement data to be transmitted to the data management device 203A. May be. Further, the output data creation unit 280 creates output measurement data by performing the processing procedure shown in FIG. 15 or FIG.

この実施の形態4は、実施の形態2と同様に、計測データの一部のみを送信するため、管理装置へのデータ送信が集中を低減し管理装置までの通信負荷を抑制し、管理装置における受信処理の負荷も低減することができるというさらなる効果を奏する。   Since the fourth embodiment transmits only a part of the measurement data as in the second embodiment, data transmission to the management device reduces concentration and suppresses the communication load to the management device. There is an additional effect that the load of the reception process can be reduced.

また、本実施の形態にかかるデータ管理装置と、データ収集装置およびデータ管理装置とで実行される各処理に対する実行プログラムは、インストール可能な形式又は実行可能な形式のファイルでCD−ROM、フレキシブルディスク(FD)、CD−R、DVD(Digital Versatile Disk)等のコンピュータで読み取り可能な記録媒体に記録して提供するように構成してもよく、インターネット等のネットワークに接続されたコンピュータ上に格納し、ネットワーク経由でダウンロードさせることにより提供するように構成してもよい。また、インターネット等のネットワーク経由で提供または配布するように構成してもよい。   An execution program for each process executed by the data management device, the data collection device, and the data management device according to the present embodiment is a file in an installable format or an executable format, and is a CD-ROM or flexible disk. (FD), CD-R, DVD (Digital Versatile Disk), etc. may be recorded and provided on a computer-readable recording medium and stored on a computer connected to a network such as the Internet. The program may be provided by being downloaded via a network. Further, it may be configured to be provided or distributed via a network such as the Internet.

1,201 データ管理装置
1A,201A データ管理システム
2A,202A データ収集装置
3A,203A データ管理装置
20,22A,23A,220,222A,223A 制御部
30 センサ群
31 第1センサ
32 第2センサ
40 データ収集部
50,150,250,350 データ選択部
60 データ格納処理部
70 データベース
71,271 管理用計測データ
80,280 出力データ作成部
90 出力部
100,102A メモリ
112A データ送信処理部
113A データ受信処理部
201A データ管理システム
202A データ収集装置
1,201 Data management device 1A, 201A Data management system 2A, 202A Data collection device 3A, 203A Data management device 20, 22A, 23A, 220, 222A, 223A Control unit 30 Sensor group 31 First sensor 32 Second sensor 40 Data Collection unit 50, 150, 250, 350 Data selection unit 60 Data storage processing unit 70 Database 71, 271 Management measurement data 80, 280 Output data creation unit 90 Output unit 100, 102A Memory 112A Data transmission processing unit 113A Data reception processing unit 201A data management system 202A data collection device

Claims (11)

一定周期で計測処理を行うセンサの計測データの、データベースへの格納を管理するデータ管理装置であって、
前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データを前記データベースに格納すべき計測データとして選択するデータ選択手段と、
前記データ選択手段が前記格納すべき計測データとして選択した計測データを前記データベースに格納するデータ格納処理手段と、
前記センサの計測データの出力すべき日時を指示するデータ出力指示情報を入力する入力手段と、
前記入力手段によってデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成手段と、
前記データ選択手段が前記データベースに格納すべき計測データを選択した日時であるデータ選択日時を記憶する記憶手段と、
を備え
前記データ選択手段は、前記格納すべき計測データを選択するたびに前記記憶手段に記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上である場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化があった旨を示す変化有り情報を含ませた計測データを前記格納すべき計測データとして選択し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値の選択を判断する判断タイミングが前記記憶手段に記憶される前記データ選択日時から所定の格納義務期間を越えている場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化がなかった旨を示す変化無し情報を含ませた計測データを前記格納すべき計測データとして選択することを特徴とするデータ管理装置。
A data management device that manages the storage of measurement data of a sensor that performs measurement processing at a fixed period in a database,
In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. In some cases, data selection means for selecting measurement data including the first measurement value and the measurement date and time of the first measurement value as measurement data to be stored in the database;
Data storage processing means for storing the measurement data selected as the measurement data to be stored by the data selection means in the database;
Input means for inputting data output instruction information for instructing the date and time when the measurement data of the sensor should be output;
When the data output instruction information is input by the input means, the measurement data corresponding to the date and time to be output is searched from the measurement data stored in the database, and the measurement data of the date and time to be output cannot be searched Output data creation means for creating the measurement data of the date and time to be output based on the measurement data measured at the date and time closest to the date and time of output from the measurement data of the database,
Storage means for storing a data selection date and time which is a date and time when the data selection means has selected measurement data to be stored in the database;
Equipped with a,
The data selection unit updates the data selection date and time stored in the storage unit to the latest date and time each time the measurement data to be stored is selected, and the first measurement value with respect to the second measurement value is updated. When the absolute value of the difference is greater than or equal to the predetermined value, the first measurement value changes with respect to the second measurement value in addition to the first measurement value and the measurement date and time of the first measurement value. Measurement data including change information indicating that there is a change is selected as the measurement data to be stored, and the absolute value of the difference between the first measurement value and the second measurement value is less than the predetermined value. In some cases, if the determination timing for determining the selection of the first measurement value exceeds a predetermined storage duty period from the data selection date and time stored in the storage means, the first measurement value and In addition to the measurement date and time of the first measurement value Data management apparatus characterized by first measured value to select the measurement data moistened with no change information indicating that no change to the second measurement as the measurement data to be the storage.
前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には、前記データベースに格納された計測データの中から前記出力させる日時よりも前であって、かつ、最も近い日時の計測データの計測値を抽出し、該抽出した計測データの計測値を前記出力させる日時の計測値として採用することを特徴とする請求項1に記載のデータ管理装置。   If the output data creation means cannot retrieve the measurement data of the date and time to be output, the closest date and time before the date and time of output from the measurement data stored in the database The data management apparatus according to claim 1, wherein a measurement value of the measurement data is extracted, and the measurement value of the extracted measurement data is adopted as the measurement value of the date and time to be output. 前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には前記データベースに格納された計測データの中から前記出力させる日時に最も近い日時に計測された計測データを抽出し、該抽出した計測データが前記変化無し情報を含む場合には該抽出した計測データの計測値を前記出力させる日時の計測値として採用し、前記抽出した前記計測データが前記変化有り情報を含む場合には前記データベースに格納された計測データの中から前記出力させる日時よりも前であって、かつ、最も近い日時の計測データを抽出し該抽出した前記出力させる日時よりも前であって、かつ、最も近い日時の計測データの計測値を前記出力させる日時の計測値として採用することを特徴とする請求項に記載のデータ管理装置。 The output data creation means extracts measurement data measured at the date and time closest to the date and time of output from the measurement data stored in the database when the measurement data of the date and time of output cannot be retrieved. In the case where the extracted measurement data includes the no-change information, the measurement value of the extracted measurement data is adopted as the measurement value of the date and time to be output, and the extracted measurement data includes the change information Is before the date to be output from the measurement data stored in the database, and is prior to the date and time to output the extracted measurement data of the nearest date and time, and The data management apparatus according to claim 1 , wherein the measurement value of the measurement data of the nearest date and time is adopted as the measurement value of the date and time of output. 一定周期で計測処理を行うセンサの計測データの、データベースへの格納を管理するデータ管理装置であって、
前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データを前記データベースに格納すべき計測データとして選択するデータ選択手段と、
前記データ選択手段が前記格納すべき計測データとして選択した計測データを前記データベースに格納するデータ格納処理手段と、
前記センサの計測データの出力すべき日時を指示するデータ出力指示情報を入力する入力手段と、
前記入力手段によってデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成手段と、
前記データ選択手段が計測データの選択を行った日時であるデータ選択日時を記憶する記憶手段と、
を備え
前記データ選択手段は、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上の差がある場合に、前記第1の計測値および該第1の計測値の計測日時とともに前記第1の計測値から前記第2の計測値を減算した差分値である前回差分値とを含む計測データを前記データベースに格納すべき計測データとして選択し、
前記データ選択手段は、さらに、前記格納すべき計測データを選択するたびに前記記憶手段に記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値に対する選択日時が前記記憶手段に記憶される前記データ選択日時から所定の格納義務期間を越えている場合には、前記第1の計測値と該第1の計測値の計測日時とに加え前記前回差分値を0とした計測データを、前記格納すべき計測データとして選択し、
前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には前記出力させる日時に最も近い日時に計測された計測データの計測値と該計測データの前回差分値とをもとに前記出力させる日時の計測データを作成することを特徴とするデータ管理装置。
A data management device that manages the storage of measurement data of a sensor that performs measurement processing at a fixed period in a database,
In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. In some cases, data selection means for selecting measurement data including the first measurement value and the measurement date and time of the first measurement value as measurement data to be stored in the database;
Data storage processing means for storing the measurement data selected as the measurement data to be stored by the data selection means in the database;
Input means for inputting data output instruction information for instructing the date and time when the measurement data of the sensor should be output;
When the data output instruction information is input by the input means, the measurement data corresponding to the date and time to be output is searched from the measurement data stored in the database, and the measurement data of the date and time to be output cannot be searched Output data creation means for creating the measurement data of the date and time to be output based on the measurement data measured at the date and time closest to the date and time of output from the measurement data of the database,
Storage means for storing a data selection date and time that is a date and time when the data selection means has selected measurement data;
Equipped with a,
When the absolute value of the difference between the first measurement value and the second measurement value is greater than or equal to the predetermined value, the data selection unit may determine the first measurement value and the first measurement value. The measurement data including the previous difference value, which is a difference value obtained by subtracting the second measurement value from the first measurement value together with the measurement date and time, is selected as measurement data to be stored in the database,
The data selection means further updates the data selection date and time stored in the storage means to the latest date and time each time the measurement data to be stored is selected, and the second measurement of the first measurement value. When the absolute value of the difference with respect to the value is less than the predetermined value, and the selection date and time for the first measurement value exceeds a predetermined storage duty period from the data selection date and time stored in the storage means Selects, as the measurement data to be stored, the measurement data in which the previous difference value is 0 in addition to the first measurement value and the measurement date and time of the first measurement value,
When the output data creation means cannot find the measurement data of the date and time to be output, the output data creation means has a measurement value of the measurement data measured at the date and time closest to the date and time of output and the previous difference value of the measurement data. A data management apparatus for generating measurement data of the date and time to be output to the user .
前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には、前記データベースに格納された計測データの中から前記出力させる日時よりも後であって、かつ、最も近い日時に計測された計測データを抽出し、該抽出した前記出力させる日時よりも後であって、かつ、最も近い日時に計測された計測データの計測値から該計測データの前回差分値を減算した値を前記出力させる日時の計測値として採用することを特徴とする請求項に記載のデータ管理装置。 When the output data creation means cannot retrieve the measurement data of the date and time to be output, the closest date and time is later than the date and time of output from the measurement data stored in the database A value obtained by subtracting the previous difference value of the measurement data from the measurement value of the measurement data measured at the nearest date and time that is after the extracted date and time to be output. The data management apparatus according to claim 4 , wherein the data management device employs the measured value of the date and time to be output. 前記出力データ作成手段は、前記出力させる日時の計測データを検索できなかった場合には前記データベースに格納された計測データの中から前記出力させる日時に最も近い計測データを抽出し、該抽出した計測データの計測日時が前記出力させる日時よりも前である場合には該抽出した計測データの計測値を前記出力させる日時の計測値として採用し、前記抽出した前記計測データの計測日時が前記出力させる日時よりも後である場合には前記抽出した計測データの計測値から該抽出した計測データの前回差分値を減算した値を前記出力させる日時の計測値として採用することを特徴とする請求項に記載のデータ管理装置。 The output data creation means extracts the measurement data closest to the date and time to be output from the measurement data stored in the database when the measurement data of the date and time to be output cannot be retrieved, and the extracted measurement When the measurement date of data is before the output date, the measurement value of the extracted measurement data is adopted as the measurement value of the output date, and the measurement date of the extracted measurement data is output. claims in some cases later than date and characterized by using a value obtained by subtracting the previous difference value of the measured data the extracted from the measured values of the measurement data the extracted as a measurement value of the date and time to the output 4 The data management device described in 1. 前記データ選択手段と前記データ格納処理手段とは、ネットワークを介して接続されることを特徴とする請求項1〜のいずれか一つに記載のデータ管理装置。 The data and the selection means and the data storage processing unit, the data management apparatus according to any one of claims 1-6, characterized in that it is connected via a network. 一定周期で計測処理を行うセンサの計測データを管理するデータ管理装置が行うデータ管理方法であって、
前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データをデータベースに格納すべき計測データとして選択するデータ選択ステップと、
前記データ選択ステップにおいて前記格納すべき計測データとして選択された計測データを前記データベースに格納するデータ格納処理ステップと、
前記センサの計測データの出力すべき日時を指示するデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成ステップと、
前記データ選択ステップにおいて前記データベースに格納すべき計測データを選択した日時であるデータ選択日時を記憶する記憶ステップと、
を含み、
前記データ選択ステップでは、前記格納すべき計測データを選択するたびに前記記憶ステップで記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上である場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化があった旨を示す変化有り情報を含ませた計測データを前記格納すべき計測データとして選択し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値の選択を判断する判断タイミングが前記記憶ステップで記憶される前記データ選択日時から所定の格納義務期間を越えている場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化がなかった旨を示す変化無し情報を含ませた計測データを前記格納すべき計測データとして選択することを特徴とするデータ管理方法。
A data management method performed by a data management device that manages measurement data of a sensor that performs measurement processing at a constant cycle,
In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. in some cases, the data selection step of selecting as said first measurement value and the measurement data to be stored in the database of the measurement data including the measurement date and time of the first measurement value,
A data storage processing step of storing in the database the measurement data selected as the measurement data to be stored in the data selection step;
When data output instruction information indicating the date and time when the measurement data of the sensor should be output is input, the measurement data corresponding to the date and time to be output is retrieved from the measurement data stored in the database, and the date and time when the data is output If the measurement data cannot be retrieved, the output data that creates the measurement data of the date and time to be output based on the measurement data measured at the date and time closest to the date and time of output from the measurement data of the database Creation steps,
A storage step of storing a data selection date and time that is a date and time when the measurement data to be stored in the database is selected in the data selection step;
Only including,
In the data selection step, each time the measurement data to be stored is selected, the data selection date and time stored in the storage step is updated to the latest date and time, and the first measurement value with respect to the second measurement value is updated. When the absolute value of the difference is greater than or equal to the predetermined value, the first measurement value changes with respect to the second measurement value in addition to the first measurement value and the measurement date and time of the first measurement value. Measurement data including change information indicating that there is a change is selected as the measurement data to be stored, and the absolute value of the difference between the first measurement value and the second measurement value is less than the predetermined value. In some cases, when the determination timing for determining the selection of the first measurement value exceeds a predetermined storage duty period from the data selection date and time stored in the storage step, the first measurement value and The first measured value And characterized in that the measured values of the first addition to the date and time to select the measurement data moistened with no change information indicating that no change to the second measurement as the measurement data to be the storage Data management method.
一定周期で計測処理を行うセンサの計測データを管理するデータ管理装置が行うデータ管理方法であって、
前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データをデータベースに格納すべき計測データとして選択するデータ選択ステップと、
前記データ選択ステップにおいて前記格納すべき計測データとして選択された計測データを前記データベースに格納するデータ格納処理ステップと、
前記センサの計測データの出力すべき日時を指示するデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成ステップと、
前記データ選択ステップにおいて計測データの選択を行った日時であるデータ選択日時を記憶する記憶ステップと、
を含み、
前記データ選択ステップでは、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上の差がある場合に、前記第1の計測値および該第1の計測値の計測日時とともに前記第1の計測値から前記第2の計測値を減算した差分値である前回差分値とを含む計測データを前記データベースに格納すべき計測データとして選択し、
前記データ選択ステップでは、さらに、前記格納すべき計測データを選択するたびに前記記憶ステップで記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値に対する選択日時が前記記憶ステップで記憶される前記データ選択日時から所定の格納義務期間を越えている場合には、前記第1の計測値と該第1の計測値の計測日時とに加え前記前回差分値を0とした計測データを、前記格納すべき計測データとして選択し、
前記出力データ作成ステップでは、前記出力させる日時の計測データを検索できなかった場合には前記出力させる日時に最も近い日時に計測された計測データの計測値と該計測データの前回差分値とをもとに前記出力させる日時の計測データを作成することを特徴とするデータ管理方法。
A data management method performed by a data management device that manages measurement data of a sensor that performs measurement processing at a constant cycle,
In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. in some cases, the data selection step of selecting as said first measurement value and the measurement data to be stored in the database of the measurement data including the measurement date and time of the first measurement value,
A data storage processing step of storing in the database the measurement data selected as the measurement data to be stored in the data selection step;
When data output instruction information indicating the date and time when the measurement data of the sensor should be output is input, the measurement data corresponding to the date and time to be output is retrieved from the measurement data stored in the database, and the date and time when the data is output If the measurement data cannot be retrieved, the output data that creates the measurement data of the date and time to be output based on the measurement data measured at the date and time closest to the date and time of output from the measurement data of the database Creation steps,
A storage step of storing a data selection date and time that is a date and time when measurement data is selected in the data selection step;
Only including,
In the data selection step, when the absolute value of the difference between the first measurement value and the second measurement value is greater than or equal to the predetermined value, the first measurement value and the first measurement value The measurement data including the previous difference value, which is a difference value obtained by subtracting the second measurement value from the first measurement value together with the measurement date and time, is selected as measurement data to be stored in the database,
In the data selection step, the data selection date and time stored in the storage step is updated to the latest date and time each time the measurement data to be stored is selected, and the second measurement of the first measurement value is performed. When the absolute value of the difference with respect to the value is less than the predetermined value, and the selection date and time for the first measurement value exceeds the predetermined storage duty period from the data selection date and time stored in the storage step Selects, as the measurement data to be stored, the measurement data in which the previous difference value is 0 in addition to the first measurement value and the measurement date and time of the first measurement value,
In the output data creation step, when the measurement data of the date and time to be output cannot be searched, the measurement value of the measurement data measured at the date and time closest to the date and time of output and the previous difference value of the measurement data are included. A data management method characterized in that measurement data of the date and time to be output is created .
一定周期で計測処理を行うセンサの計測データを管理するデータ管理装置に、
前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データをデータベースに格納すべき計測データとして選択するデータ選択手順と、
前記データ選択手順において前記格納すべき計測データとして選択された計測データを前記データベースに格納するデータ格納処理手順と、
前記センサの計測データの出力すべき日時を指示するデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成手順と、
前記データ選択手順において前記データベースに格納すべき計測データを選択した日時であるデータ選択日時を記憶する記憶手順と、
を実行させ
前記データ選択手順では、前記格納すべき計測データを選択するたびに前記記憶手順に記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上である場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化があった旨を示す変化有り情報を含ませた計測データを前記格納すべき計測データとして選択し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値の選択を判断する判断タイミングが前記記憶手順に記憶される前記データ選択日時から所定の格納義務期間を越えている場合には前記第1の計測値および該第1の計測値の計測日時に加えて該第1の計測値が前記第2の計測値に対して変化がなかった旨を示す変化無し情報を含ませた計測データを前記格納すべき計測データとして選択することを特徴とするデータ管理用のプログラム。
In the data management device that manages the measurement data of the sensor that performs measurement processing at a fixed period
In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. in some cases, the data selection procedure for selecting as the measurement data to be stored measurement data in the database including a measurement date and time of the first measurement and the first measurement value,
A data storage processing procedure for storing the measurement data selected as the measurement data to be stored in the data selection procedure in the database;
When data output instruction information indicating the date and time when the measurement data of the sensor should be output is input, the measurement data corresponding to the date and time to be output is retrieved from the measurement data stored in the database, and the date and time when the data is output If the measurement data cannot be retrieved, the output data that creates the measurement data of the date and time to be output based on the measurement data measured at the date and time closest to the date and time of output from the measurement data of the database Creation procedure and
A storage procedure for storing a data selection date and time, which is a date and time when measurement data to be stored in the database is selected in the data selection procedure;
Was executed,
In the data selection procedure, each time the measurement data to be stored is selected, the data selection date and time stored in the storage procedure is updated to the latest date and time, and the first measurement value with respect to the second measurement value is updated. When the absolute value of the difference is greater than or equal to the predetermined value, the first measurement value changes with respect to the second measurement value in addition to the first measurement value and the measurement date and time of the first measurement value. Measurement data including change information indicating that there is a change is selected as the measurement data to be stored, and the absolute value of the difference between the first measurement value and the second measurement value is less than the predetermined value. In some cases, when the determination timing for determining the selection of the first measurement value exceeds a predetermined storage duty period from the data selection date and time stored in the storage procedure, the first measurement value and In addition to the measurement date and time of the first measurement value Data management, wherein you to select the measurement data measured values of the first is impregnated with no change information indicating that there was no change with respect to the second measurement as the measurement data to be the storage Program.
一定周期で計測処理を行うセンサの計測データを管理するデータ管理装置に、
前記センサによって計測された第1の計測値において、該第1の計測値よりも1回前に計測された第2の計測値に対する前記第1の計測値の差の絶対値が所定値以上である場合に、前記第1の計測値と該第1の計測値の計測日時とを含む計測データをデータベースに格納すべき計測データとして選択するデータ選択手順と、
前記データ選択手順において前記格納すべき計測データとして選択された計測データを前記データベースに格納するデータ格納処理手順と、
前記センサの計測データの出力すべき日時を指示するデータ出力指示情報が入力された場合、前記データベースに格納された計測データの中から出力させる日時に対応する計測データを検索し、前記出力させる日時の計測データを検索できなかった場合には、前記データベースの計測データの中から前記出力させる日時に最も近い日時に計測された計測データをもとに前記出力させる日時の計測データを作成する出力データ作成手順と、
前記データ選択手順において計測データの選択を行った日時であるデータ選択日時を記憶する記憶手順と、
を実行させ
前記データ選択手順では、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値以上の差がある場合に、前記第1の計測値および該第1の計測値の計測日時とともに前記第1の計測値から前記第2の計測値を減算した差分値である前回差分値とを含む計測データを前記データベースに格納すべき計測データとして選択し、
前記データ選択手順では、さらに、前記格納すべき計測データを選択するたびに前記記憶手順に記憶される前記データ選択日時を最新の日時に更新し、前記第1の計測値の前記第2の計測値に対する差の絶対値が前記所定値未満である場合であって前記第1の計測値に対する選択日時が前記記憶手順に記憶される前記データ選択日時から所定の格納義務期間を越えている場合には、前記第1の計測値と該第1の計測値の計測日時とに加え前記前回差分値を0とした計測データを、前記格納すべき計測データとして選択し、
前記出力データ作成手順では、前記出力させる日時の計測データを検索できなかった場合には前記出力させる日時に最も近い日時に計測された計測データの計測値と該計測データの前回差分値とをもとに前記出力させる日時の計測データを作成することを特徴とするデータ管理用のプログラム。
In the data management device that manages the measurement data of the sensor that performs measurement processing at a fixed period
In the first measurement value measured by the sensor, the absolute value of the difference between the first measurement value and the second measurement value measured one time before the first measurement value is greater than or equal to a predetermined value. in some cases, the data selection procedure for selecting as the measurement data to be stored measurement data in the database including a measurement date and time of the first measurement and the first measurement value,
A data storage processing procedure for storing the measurement data selected as the measurement data to be stored in the data selection procedure in the database;
When data output instruction information indicating the date and time when the measurement data of the sensor should be output is input, the measurement data corresponding to the date and time to be output is retrieved from the measurement data stored in the database, and the date and time when the data is output If the measurement data cannot be retrieved, the output data that creates the measurement data of the date and time to be output based on the measurement data measured at the date and time closest to the date and time of output from the measurement data of the database Creation procedure and
A storage procedure for storing a data selection date and time that is a date and time when measurement data was selected in the data selection procedure;
Was executed,
In the data selection procedure, when the absolute value of the difference between the first measurement value and the second measurement value is greater than or equal to the predetermined value, the first measurement value and the first measurement value The measurement data including the previous difference value, which is a difference value obtained by subtracting the second measurement value from the first measurement value together with the measurement date and time, is selected as measurement data to be stored in the database,
In the data selection procedure, every time the measurement data to be stored is selected, the data selection date and time stored in the storage procedure is updated to the latest date and time, and the second measurement of the first measurement value is performed. When the absolute value of the difference with respect to the value is less than the predetermined value, and the selection date and time for the first measurement value exceeds the predetermined storage duty period from the data selection date and time stored in the storage procedure Selects, as the measurement data to be stored, the measurement data in which the previous difference value is 0 in addition to the first measurement value and the measurement date and time of the first measurement value,
In the output data creation procedure, when the measurement data of the date and time to be output cannot be searched, the measurement value of the measurement data measured at the date and time closest to the date and time of output and the previous difference value of the measurement data are included. preparative the program data management characterized that you create a measurement data of date and time to be the output.
JP2013131924A 2013-06-24 2013-06-24 Data management apparatus, data management method, and data management program Expired - Fee Related JP6131735B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013131924A JP6131735B2 (en) 2013-06-24 2013-06-24 Data management apparatus, data management method, and data management program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013131924A JP6131735B2 (en) 2013-06-24 2013-06-24 Data management apparatus, data management method, and data management program

Publications (2)

Publication Number Publication Date
JP2015007824A JP2015007824A (en) 2015-01-15
JP6131735B2 true JP6131735B2 (en) 2017-05-24

Family

ID=52338079

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013131924A Expired - Fee Related JP6131735B2 (en) 2013-06-24 2013-06-24 Data management apparatus, data management method, and data management program

Country Status (1)

Country Link
JP (1) JP6131735B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017110801A1 (en) * 2015-12-25 2017-06-29 三菱電機株式会社 Positioning and measurement apparatus, data storage apparatus, data utilization apparatus, positioning and measurement program, data storage program, and data utilization program
WO2018207352A1 (en) 2017-05-12 2018-11-15 株式会社野村総合研究所 Data management system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH01314094A (en) * 1988-06-13 1989-12-19 Nippon Johnson Controls Kk Transfer system for measured value
JPH0951382A (en) * 1995-08-08 1997-02-18 Toshiba Corp Analog value transmission system
JP3709326B2 (en) * 2000-05-23 2005-10-26 アロカ株式会社 Radiation measurement equipment
JP5824836B2 (en) * 2011-03-20 2015-12-02 富士通株式会社 Data communication control method and meter reading data communication control method

Also Published As

Publication number Publication date
JP2015007824A (en) 2015-01-15

Similar Documents

Publication Publication Date Title
EP3399434B1 (en) Short link processing method, device and server
JP5693369B2 (en) Information processing apparatus, control method thereof, and computer program
JP2010514035A5 (en)
CN103970342A (en) Information processing apparatus and touch panel parameter correcting method
CN103020089A (en) Method and device for importing data in EXCEL file to database
JP4795258B2 (en) Web page recollection method
US20120041946A1 (en) Data search apparatus, control method thereof and computer readable storage medium
WO2020008688A1 (en) Gas monitoring image recording device, method, and program
JP6131735B2 (en) Data management apparatus, data management method, and data management program
CN101995410A (en) Image processing device and image processing method
JP2007094449A5 (en)
JP6869453B2 (en) Information processing equipment, information processing methods and information processing programs
JP2014179000A (en) Information management system and program
CN108629002A (en) A kind of big data comparison method and device based on kettle
EP2098960A1 (en) Data synchronizing system
JP6451272B2 (en) Data output device and program
CN112000258A (en) Operation control method and device, intelligent terminal and storage medium
JP2009169936A (en) Information processing apparatus and information processing method
JP2010003051A (en) Document information processor and program
CN101021861A (en) Image reproducing apparatus and control method therefor
CN116225602A (en) Jump management method and device for user interface, electronic equipment and storage medium
CN105608806A (en) information processing device
JP6278678B2 (en) File management apparatus, control method thereof, and program
JP5717459B2 (en) Image recording apparatus, information processing apparatus, control method thereof, and program thereof
JP6070102B2 (en) Deviation calculation program, program, information processing apparatus, and information processing method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160215

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170214

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170309

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20170321

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170403

R150 Certificate of patent or registration of utility model

Ref document number: 6131735

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees