JP2008310619A - Data processor - Google Patents

Data processor Download PDF

Info

Publication number
JP2008310619A
JP2008310619A JP2007158329A JP2007158329A JP2008310619A JP 2008310619 A JP2008310619 A JP 2008310619A JP 2007158329 A JP2007158329 A JP 2007158329A JP 2007158329 A JP2007158329 A JP 2007158329A JP 2008310619 A JP2008310619 A JP 2008310619A
Authority
JP
Japan
Prior art keywords
measurement
measurement data
data
memory
command
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.)
Granted
Application number
JP2007158329A
Other languages
Japanese (ja)
Other versions
JP5088542B2 (en
Inventor
Osamu Ito
修 伊東
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.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP2007158329A priority Critical patent/JP5088542B2/en
Publication of JP2008310619A publication Critical patent/JP2008310619A/en
Application granted granted Critical
Publication of JP5088542B2 publication Critical patent/JP5088542B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a data processor allowing acquisition of measurement data from a plurality of measurement devices during measurement via a network even without the knowledge for creating a communication program, and allowing data processing (calculation between pieces of the measurement data). <P>SOLUTION: This data processor is a data processor wherein improvement is added to a data processor connected with the plurality of measurement devices via the network, performing the calculation by the measurement data measured by the respective measurement devices. The data processor has: an input part inputting an arithmetic expression for performing the calculation; and a generation part generating the communication program making the measurement device designated by the arithmetic expression of the input part transmit the measurement data. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、複数の測定器とネットワークを介して接続され、前記測定器それぞれが測定した測定データで演算を行なうデータ処理装置に関し、詳しくは、通信プログラムを作成する知識が無くとも、ネットワーク経由で測定中の複数台の測定器から測定データを取得してデータ処理(測定データ間の演算)を行なうことができるデータ処理装置に関するものである。   The present invention relates to a data processing apparatus that is connected to a plurality of measuring instruments via a network and performs an operation on the measurement data measured by each of the measuring instruments, and more particularly, without knowledge of creating a communication program, via a network. The present invention relates to a data processing apparatus capable of acquiring measurement data from a plurality of measuring instruments being measured and performing data processing (calculation between measurement data).

自動車、燃料電池、モータ、インバータ等の性能試験を行なう場合、測定点数が非常に多く1台の測定器(例えば、電力計)ではエレメント数が足りない。このような場合、複数台の測定器を用いて測定を行ない、各測定器からの測定データをデータ処理用のパソコンに集めてデータ処理し、電力、インピーダンス、変換効率等を求める。なお、1個のエレメントには、電圧用の測定回路と電流用の測定回路とが内蔵され、電圧と電流とを同期を図って測定して電力も求める。そして、1台の測定器には複数のエレメント(例えば、4個)が実装される(例えば、特許文献1参照)。   When performing performance tests on automobiles, fuel cells, motors, inverters, etc., the number of measurement points is very large, and one measuring device (for example, a wattmeter) does not have enough elements. In such a case, measurement is performed using a plurality of measuring instruments, and measurement data from each measuring instrument is collected in a data processing personal computer and processed to obtain power, impedance, conversion efficiency, and the like. One element includes a voltage measurement circuit and a current measurement circuit, and the power is also obtained by measuring the voltage and the current in synchronization. A single measuring instrument is mounted with a plurality of elements (for example, four elements) (see, for example, Patent Document 1).

図5は、複数台の測定器を用いて測定してデータ処理を行なう場合の従来の動作を示したフローチャートである。   FIG. 5 is a flowchart showing a conventional operation when data processing is performed using a plurality of measuring instruments.

各測定器で所定の測定を行なって測定データを収集し(S10)、各測定器での測定データをファイルに変換して持ち運び可能な記憶媒体(例えば、USBメモリ等)に保存する(S11)。そして、記憶媒体に保存した全ファイルをパソコン内のハードディスクにコピーし(S12)、表計算ソフトで演算に必要なファイルを開き、必要な測定データを抜き出して演算を行なってデータ処理する(S13)。   Measurement data is collected by performing predetermined measurements with each measuring instrument (S10), and the measurement data of each measuring instrument is converted into a file and stored in a portable storage medium (for example, a USB memory) (S11). . Then, all the files saved in the storage medium are copied to the hard disk in the personal computer (S12), files necessary for calculation are opened with spreadsheet software, necessary measurement data is extracted, calculation is performed, and data processing is performed (S13). .

図6は、複数台の測定器とパソコンとをネットワークで接続し、各測定器からの測定データのデータ処理を行なう場合の従来の動作を示したフローチャートである(例えば、特許文献2参照)。   FIG. 6 is a flowchart showing a conventional operation when a plurality of measuring instruments and a personal computer are connected via a network and data processing of measurement data from each measuring instrument is performed (see, for example, Patent Document 2).

ユーザが専用の通信プログラム(測定器と通信を行って測定データを送信させるためのプログラム)を作成する(S20)。一方、各測定器が測定データを収集する(S21)。そして、パソコン上でプログラムを実行させて各測定器に測定データをパソコンに送信させ(S22)、パソコンで受信した測定データをファイルに変換してパソコン内のハードディスクにコピーする(S23)。さらに、表計算ソフトで演算に必要なファイルを開き、さらに必要な測定データを抜き出して演算を行なってデータ処理する(S24)。   A user creates a dedicated communication program (a program for communicating with a measuring instrument and transmitting measurement data) (S20). On the other hand, each measuring device collects measurement data (S21). Then, the program is executed on the personal computer to cause each measuring instrument to transmit the measurement data to the personal computer (S22), and the measurement data received by the personal computer is converted into a file and copied to the hard disk in the personal computer (S23). Further, a file necessary for calculation is opened with spreadsheet software, and necessary measurement data is extracted and calculation is performed for data processing (S24).

特開2006−098111号公報JP 2006-098111 A 特開平05−118886号公報Japanese Patent Laid-Open No. 05-118886

測定対象の測定点数が多くとも、このように複数台の測定器を用いて測定を行なって各測定器の測定データをパソコンに集めることで所望の演算を行なってデータ処理することができる。   Even if the number of measurement points to be measured is large, it is possible to perform data processing by performing a desired calculation by performing measurement using a plurality of measuring devices and collecting measurement data of each measuring device in a personal computer.

各測定器の測定データを記憶媒体に保存してパソコンにコピーする場合、測定器1台1台順番に記憶媒体を取り付けて測定データを記憶媒体に保存する必要がある。電力計等での一般的な測定周期は、数百[ms]〜数[s]であるが、この測定周期で各測定器の測定データをパソコンにコピーすることは不可能であり、測定や試験を行ないつつデータ処理を行なうことができなかった。そのため、測定中にデータ処理を行なって測定データやデータ処理結果を確認することが困難であり、作業効率が悪いという問題があった。   When the measurement data of each measuring instrument is stored in a storage medium and copied to a personal computer, it is necessary to attach the storage medium in order for each measuring instrument and store the measurement data in the storage medium. A general measurement cycle with a power meter or the like is several hundreds [ms] to several [s], but it is impossible to copy measurement data of each measuring instrument to a personal computer in this measurement cycle. Data processing could not be performed during the test. For this reason, it is difficult to check the measurement data and the data processing result by performing data processing during the measurement, and there is a problem that work efficiency is poor.

一方、通信によって測定データをパソコンに転送する場合、各測定器が測定データを収集するごとに測定データをパソコンに転送でき、ほぼリアルタイムに測定データのデータ処理が行なえる。例えば、測定周期500[ms]程度であれば、十分な余裕をもって測定周期と同じ500[ms]周期で測定データをパソコンに送受信できる。   On the other hand, when the measurement data is transferred to the personal computer by communication, the measurement data can be transferred to the personal computer every time each measuring instrument collects the measurement data, and the measurement data can be processed almost in real time. For example, if the measurement cycle is about 500 [ms], measurement data can be transmitted to and received from the personal computer with the same 500 [ms] cycle as the measurement cycle.

しかしながら、専用の通信プログラムの作成には、まず、汎用のプログラム言語(例えば、C言語等)そのものの理解が必要であり、プログラム言語に関する専門知識が必要になるという問題があった。   However, in order to create a dedicated communication program, first of all, it is necessary to understand a general-purpose program language (for example, C language) itself, and there is a problem that specialized knowledge about the program language is required.

また、測定器の操作パネルを直接操作するのと異なり、測定器専用のコマンドを測定器に送信する必要があり、例えば、測定データをパソコン側に送信させるだけのコマンド(例えば、”Num:Value?”)であっても、製造メーカごとにコマンドの書式が異なり同一の製造メーカであっても機種によって異なる。そのため、コマンドに関する専門知識が必要になるという問題もあった。   Also, unlike direct operation of the measuring instrument operation panel, it is necessary to send a command dedicated to the measuring instrument to the measuring instrument. For example, a command that simply sends measurement data to the personal computer (for example, “Num: Value ?)), The command format differs for each manufacturer, and even for the same manufacturer, it depends on the model. For this reason, there is a problem that specialized knowledge about commands is required.

さらに、パソコンと測定器とを通信させるためのプロトコルの理解が必要であり、これに関する専門知識も必要となる。通常は通信インターフェース用の関数、いわゆる制御用API(Application Programming Interface)が通信インターフェースの製造メーカから提供されるが、これらのAPI(例えば、GPIBの場合、”iopen()”,”iwrite()”等)は、汎用のプログラム言語にデフォルトで用意されているものとは異なる。そのため、各APIに関する専門知識が必要になるという問題もあった。   Furthermore, it is necessary to understand a protocol for communicating between a personal computer and a measuring instrument, and specialized knowledge about this is also required. Usually, a communication interface function, so-called control API (Application Programming Interface) is provided by the manufacturer of the communication interface. For example, in the case of GPIB, "iopen ()", "iwrite ()" Etc.) are different from those prepared by default in general-purpose programming languages. Therefore, there is a problem that specialized knowledge about each API is required.

従って、測定器と通信して測定データを取得してデータ処理を行なう場合、通信プログラム作成に時間とコストがかかるという問題があった。   Therefore, there is a problem in that it takes time and cost to create a communication program when communicating with a measuring instrument to acquire measurement data and perform data processing.

そこで本発明の目的は、通信プログラムを作成する知識が無くとも、ネットワーク経由で測定中の複数台の測定器から測定データを取得してデータ処理(測定データ間の演算)を行なうことができるデータ処理装置を実現することにある。   Therefore, an object of the present invention is to obtain data that can be measured and processed (calculation between measurement data) from a plurality of measuring instruments being measured via a network without knowledge of creating a communication program. It is to realize a processing apparatus.

請求項1記載の発明は、
複数の測定器とネットワークを介して接続され、前記測定器それぞれが測定した測定データで演算を行なうデータ処理装置において、
前記演算を行なうための演算式を入力する入力部と、
この入力部の演算式で指定された測定器に前記測定データの送信を行なわせる通信プログラムを生成する生成部と
を有することを特徴とするものである。
請求項2記載の発明は、請求項1記載の発明において、
前記ネットワークに接続されている測定器の機種、前記ネットワークの通信インターフェースの種別を記憶する第1のメモリと、
各測定器ごとのコマンドを格納する第2のメモリと、
前記ネットワークの通信インターフェースごとのAPIを格納する第3のメモリと
を有し、前記生成部は、
前記演算式と前記第1のメモリとを参照し、送信を行なわせる測定器の機種、通信インターフェースを解析する解析部と、
この解析部の解析結果に基づいて、前記第2のメモリから前記測定器の機種に対応したコマンドを読み出すコマンド生成部と、
前記解析部の解析結果に基づいて、前記第3のメモリから前記通信インターフェースに対応したAPIを読み出し、前記コマンド生成部のコマンドと組み合わせ前記通信プログラムを生成するプログラム生成部と
を有することを特徴とするものである。
The invention described in claim 1
In a data processing apparatus that is connected to a plurality of measuring instruments via a network and performs an operation on measurement data measured by each of the measuring instruments,
An input unit for inputting an arithmetic expression for performing the operation;
And a generation unit that generates a communication program that causes the measuring instrument specified by the arithmetic expression of the input unit to transmit the measurement data.
The invention according to claim 2 is the invention according to claim 1,
A first memory for storing a model of a measuring instrument connected to the network and a type of a communication interface of the network;
A second memory for storing a command for each measuring instrument;
A third memory for storing an API for each communication interface of the network, and the generation unit includes:
An analysis unit that analyzes a model of a measuring instrument that performs transmission with reference to the arithmetic expression and the first memory, and a communication interface;
Based on the analysis result of the analysis unit, a command generation unit that reads a command corresponding to the model of the measuring instrument from the second memory;
A program generation unit that reads an API corresponding to the communication interface from the third memory based on an analysis result of the analysis unit, and generates a communication program in combination with a command of the command generation unit; To do.

本発明によれば以下の効果がある。
生成部が、入力部で入力された演算式において指定された測定器に測定データの送信を行なわせる通信プログラムを生成する。これにより、ユーザは、演算式を入力するだけでよく、ユーザに通信プログラムを作成する知識が無くとも、測定中の状態で複数台の測定器から測定データをネットワーク経由で取得してデータ処理(演算式で指定された測定データ同士の演算)を行なうことができる。従って、測定中であってもデータ処理結果の確認を直ちにでき、作業効率が向上する。また、専用の通信プログラムを開発するコストと時間を抑えることができる。
The present invention has the following effects.
The generation unit generates a communication program that causes the measuring instrument specified in the arithmetic expression input from the input unit to transmit measurement data. Thus, the user only has to input an arithmetic expression, and even if the user has no knowledge of creating a communication program, measurement data is acquired from a plurality of measuring instruments via a network in the state of measurement, and data processing ( (Calculation between measurement data specified by an arithmetic expression) can be performed. Therefore, the data processing result can be confirmed immediately even during measurement, and the work efficiency is improved. In addition, the cost and time for developing a dedicated communication program can be reduced.

以下図面を用いて本発明の実施の形態を説明する。
図1は、本発明の一実施例を示した構成図である。
図1において、測定器Ma〜Mdは、予め設定された測定条件(測定レンジ、測定周期等)で被測定対象の測定を行ない、設定された測定周期で測定データを繰り返し取得する。パソコンPCは、データ処理装置であり、汎用の信号線(例えば、GP−IBケーブル)100を介して複数の測定器Ma〜Mdと通信を行なってデータの授受を行なう。また、測定器Ma〜Mdのそれぞれは、ネットワーク100とは別の専用線200で接続され、各測定器Ma〜Md間で同期を図って測定を行なう。
Embodiments of the present invention will be described below with reference to the drawings.
FIG. 1 is a block diagram showing an embodiment of the present invention.
In FIG. 1, measuring instruments Ma to Md measure a measurement target under preset measurement conditions (measurement range, measurement period, etc.), and repeatedly acquire measurement data at the set measurement period. The personal computer PC is a data processing device, and communicates with a plurality of measuring instruments Ma to Md via a general-purpose signal line (for example, GP-IB cable) 100 to exchange data. Each of the measuring instruments Ma to Md is connected by a dedicated line 200 different from the network 100, and performs measurement while synchronizing each measuring instrument Ma to Md.

パソコンPCは、メモリ10〜13、入力部14、演算式の解析部15、コマンド生成部16、プログラム生成部17、実行部18、演算部19、通信部20を有する。   The personal computer PC includes memories 10 to 13, an input unit 14, an arithmetic expression analysis unit 15, a command generation unit 16, a program generation unit 17, an execution unit 18, a calculation unit 19, and a communication unit 20.

第1のメモリ10は、測定器情報用のデータベースであり、ネットワーク100に接続される測定器Ma〜Md個々の情報(例えば、ネットワークに接続される測定器の機種名、これらの測定器に内蔵されるエレメント数、各エレメントの測定条件等)、信号線100の通信インターフェースの種別等が格納される。   The first memory 10 is a database for measuring instrument information, and information on the measuring instruments Ma to Md connected to the network 100 (for example, model names of measuring instruments connected to the network, built in these measuring instruments) The number of elements to be processed, the measurement conditions of each element, etc.), the type of communication interface of the signal line 100, and the like are stored.

第2のメモリ11は、コマンド用のデータベースであり、各測定器それぞれの通信コマンド(例えば、指定したエレメントの測定データを送信させるコマンド等)が格納される。   The second memory 11 is a database for commands, and stores a communication command (for example, a command for transmitting measurement data of a designated element) for each measuring instrument.

第3のメモリ12は、通信用APIのデータベースであり、通信インターフェースを制御するAPIが格納される(GPIBの製造メーカごとに提供される固有のAPI)。   The third memory 12 is a communication API database, and stores an API for controlling the communication interface (a unique API provided for each GPIB manufacturer).

第4のメモリ13は、測定データ、演算結果のデータ処理結果等のファイルを格納する。なお、メモリ10〜13は、図1では別々に図示してるが物理的に同一のメモリであってもく、例えば、パソコンのハードディスク等でもよい。   The fourth memory 13 stores files such as measurement data and calculation result data processing results. Although the memories 10 to 13 are illustrated separately in FIG. 1, they may be physically the same memory, for example, a hard disk of a personal computer.

入力部14は、キーボードやマウス等であり、ユーザによってデータ処理用の演算式が入力される。   The input unit 14 is a keyboard, a mouse, or the like, and an arithmetic expression for data processing is input by the user.

解析部15は、メモリ10の測定器に関する情報を参照し、入力部14の演算式の解析を行なう。   The analysis unit 15 refers to information on the measuring device in the memory 10 and analyzes the arithmetic expression of the input unit 14.

コマンド生成部16は、解析結果に基づいて、メモリ11から制御対象の測定器に対応したコマンド(測定データを送信させるコマンド)を読み出す。   Based on the analysis result, the command generation unit 16 reads from the memory 11 a command (command for transmitting measurement data) corresponding to the measuring instrument to be controlled.

プログラム生成部17は、コマンド生成部16のコマンドが入力され、解析部15の解析結果に基づいて通信インターフェースに対応した通信用APIを読み出し、コマンドと組み合わせ、測定データをパソコンPCに送信させるための通信プログラムを作成する。   The program generation unit 17 receives a command from the command generation unit 16, reads a communication API corresponding to the communication interface based on the analysis result of the analysis unit 15, combines the command with the command, and transmits measurement data to the personal computer PC. Create a communication program.

ここで、解析部15、コマンド生成部16、プログラム生成部17で、特許請求の範囲の生成部を構成する。   Here, the analysis unit 15, the command generation unit 16, and the program generation unit 17 constitute a generation unit of claims.

実行部18は、通信プログラムを実行し、通信部20を介して各測定器Ma〜Mdにコマンドを送信して測定データを取得し、取得した測定データをメモリ13にファイルとして格納する。   The execution unit 18 executes the communication program, transmits a command to each of the measuring devices Ma to Md via the communication unit 20, acquires the measurement data, and stores the acquired measurement data as a file in the memory 13.

演算部19は、実行部18からの指示に従って、メモリ13からファイルを読み出し、解析部15の解析した演算式で測定データの演算を行ない、演算結果をメモリ13に格納する。   The calculation unit 19 reads a file from the memory 13 according to an instruction from the execution unit 18, calculates measurement data using the calculation formula analyzed by the analysis unit 15, and stores the calculation result in the memory 13.

通信部20は、実行部18からの指示に従って測定器Ma〜Mdと通信を行なってデータの授受を行なう。   Communication unit 20 communicates with measuring instruments Ma to Md according to instructions from execution unit 18 to exchange data.

このような装置の動作を説明する。
測定を開始する前にパソコンPC、測定器Ma〜MdをGPIB100で接続する。また、測定器Ma〜Mdのそれぞれを測定対象の測定点に接続して、測定条件(測定周期(例えば、500[ms])、測定レンジ等)を設定し、測定を開始させる。各測定器Ma〜Mdが、専用線200で同期信号を授受して同期を図って所定の測定周期で繰り返し測定を行なって、測定データ(例えば、電流、電圧、電力等)を時系列に収集する。
The operation of such an apparatus will be described.
Before starting the measurement, the personal computer PC and measuring instruments Ma to Md are connected by GPIB100. In addition, each of the measuring devices Ma to Md is connected to a measurement point to be measured, measurement conditions (measurement period (for example, 500 [ms]), measurement range, etc.) are set, and measurement is started. Each measuring device Ma to Md exchanges a synchronization signal on the dedicated line 200 to synchronize and repeatedly measure at a predetermined measurement period, and collect measurement data (for example, current, voltage, power, etc.) in time series. To do.

そして、メモリ10の測定器情報用データベース10に測定器Ma〜Mdの機種(型式)、測定条件、通信インターフェースの情報等を格納する。通信インターフェースの情報としては、信号線100の種類、この信号線(例えば、GPIB)100に対応した通信部20のメーカ名等、測定器Ma〜Mdの識別情報(例えば、GPIBアドレス)等である。これらを設定することにより初期設定が終了する。   Then, the measuring instrument information database 10 in the memory 10 stores the models (models) of the measuring instruments Ma to Md, measuring conditions, communication interface information, and the like. The information of the communication interface includes the type of the signal line 100, the manufacturer name of the communication unit 20 corresponding to the signal line (for example, GPIB) 100, the identification information (for example, GPIB address) of the measuring devices Ma to Md, and the like. . Setting these ends the initial setting.

なお、測定精度や確度の異なる測定器Ma〜Mdで測定した測定データを用いて演算を行なった場合、測定精度や確度が最も低い機種の影響を受けるので、測定器Ma〜Mdは同一のメーカの同一機種のものにするとよい。   In addition, when the calculation is performed using the measurement data measured by the measuring devices Ma to Md having different measuring accuracy and accuracy, the measuring devices Ma to Md are the same manufacturer because they are affected by the model having the lowest measuring accuracy and accuracy. It should be of the same model.

ここで、図2は、図1に示す装置の動作を説明したフローチャートである。また、図3は、測定器Maで測定される測定データの一例を示した図である。図3において、測定器Maは、3個のエレメントが内蔵され、各エレメントでは、電流、電圧が測定され、電力が求められる。1番目のエレメントの電流、電圧、電力それぞれの測定データを”E1a”、”E1u”、”E1w”とし、2番目のエレメントの電流、電圧、電力それぞれの測定データを”E2a”、”E2u”、”E2w”としている。3番目も同様である。   Here, FIG. 2 is a flowchart for explaining the operation of the apparatus shown in FIG. FIG. 3 is a diagram showing an example of measurement data measured by the measuring instrument Ma. In FIG. 3, the measuring instrument Ma includes three elements, and each element measures current and voltage to obtain power. The measurement data for the current, voltage, and power of the first element are “E1a”, “E1u”, and “E1w”, and the measurement data for the current, voltage, and power of the second element are “E2a” and “E2u”. , “E2w”. The same applies to the third.

入力部14から演算式(図2中のユーザ定義式1、2)が入力される。例えば、ユーザ定義式1は、電力[W]の加算値を求めるものであり、ユーザ定義式2は、効率[%]を求めるものである。ここで、接続される測定器Ma〜Md、エレメント、データ種別(電流、電圧、電力等)の指定は、解析部15が、メモリ10の情報を表示させ、ユーザがこれらから選択して演算子器を入力できるようにしてもよい(S30)。   An arithmetic expression (user-defined expressions 1 and 2 in FIG. 2) is input from the input unit 14. For example, the user-defined formula 1 is for obtaining an added value of power [W], and the user-defined formula 2 is for obtaining efficiency [%]. Here, for specifying the measuring instruments Ma to Md, elements, and data types (current, voltage, power, etc.) to be connected, the analysis unit 15 displays the information in the memory 10, and the user selects them from the operators. A device may be input (S30).

解析部15が、演算部19での演算を容易とするため逆ポーランド変換を行ないつつ、演算式に記述される測定データそれぞれを抽出し、この測定データに対応する測定器Ma〜Mdおよびエレメント番号を解析する。例えば、定義式1では、測定器Maのエレメント1の電力の測定データE1wと、測定器Mbのエレメント2の電力の測定データE2wが必要と解析する。また、解析部15が、メモリ10のデータベースから、測定器Ma〜Mdそれぞれの機種情報、測定器Ma〜Mdとの通信インターフェースの種別を読み出す(S31)。   The analysis unit 15 extracts each of the measurement data described in the calculation formula while performing reverse Polish conversion to facilitate the calculation in the calculation unit 19, and the measuring devices Ma to Md and element numbers corresponding to the measurement data Is analyzed. For example, the definition formula 1 analyzes that the measurement data E1w of the power of the element 1 of the measuring device Ma and the measurement data E2w of the power of the element 2 of the measuring device Mb are necessary. Further, the analysis unit 15 reads out the model information of each of the measuring instruments Ma to Md and the type of the communication interface with the measuring instruments Ma to Md from the database of the memory 10 (S31).

そして、コマンド生成部16が、解析部15からの測定器Ma〜Mdの機種情報に基づいて、この測定器の機種に対応したコマンド(測定データを送信させるコマンド)を、メモリ11のデータベースから読み出す(S32)。   Then, based on the model information of the measuring instruments Ma to Md from the analyzing unit 15, the command generating unit 16 reads a command (command for transmitting measurement data) corresponding to the model of the measuring instrument from the database of the memory 11. (S32).

さらに、プログラム生成部17が、解析部15からの通信インターフェースの情報に基づいて、この通信インターフェースに対応したAPIをメモリ12のデータベースから読み出し(S33)、コマンド生成部16のコマンドと組み合わせ、通信プログラムを生成する(S34)。   Further, the program generation unit 17 reads out an API corresponding to the communication interface from the database of the memory 12 based on the information of the communication interface from the analysis unit 15 (S33), and combines the command with the command of the command generation unit 16 to obtain a communication program. Is generated (S34).

そして、実行部18が、プログラム生成部17のプログラムを実行し、通信部20を介して各測定器Ma〜Mbにコマンドを送信する。このコマンドを受信した各測定器Ma〜Mdが最新の測定データをパソコンに返送する(S36)   Then, the execution unit 18 executes the program of the program generation unit 17 and transmits a command to each measuring device Ma to Mb via the communication unit 20. Receiving this command, each of the measuring devices Ma to Md returns the latest measurement data to the personal computer (S36).

そして、実行部18が、通信部20を介して各測定器Ma〜Mdからの測定データを受信する。また、受信した測定データをファイルに変換してメモリ13に格納する。なお、新たに取得した測定データは既に存在するファイルに追加していく(S37)。   And the execution part 18 receives the measurement data from each measuring device Ma-Md via the communication part 20. FIG. The received measurement data is converted into a file and stored in the memory 13. Note that newly acquired measurement data is added to an existing file (S37).

そして、演算部19が、実行部18から測定データを受信した旨の信号によって、解析部15で逆ポーランド変換された演算式の実行を行なう。すなわち、演算式に従ってメモリ13のファイルを開き、このファイル中の測定データを用いて演算を行なう。演算後、演算結果や測定データを表示部(図示せず)に表示したり、演算結果をファイルに変換してメモリ13に格納する(S39)。   Then, the arithmetic unit 19 executes the arithmetic expression reverse-Polish-transformed by the analyzing unit 15 based on a signal indicating that the measurement data has been received from the executing unit 18. That is, the file in the memory 13 is opened according to the arithmetic expression, and the calculation is performed using the measurement data in this file. After the calculation, the calculation result and measurement data are displayed on a display unit (not shown), or the calculation result is converted into a file and stored in the memory 13 (S39).

測定を続ける場合、測定器Ma〜Mdの測定周期に基づいて、または、ポーリングを行なって測定器Ma〜Mdから新たな測定データを収集した旨のデータを受けた後、測定データを送信させるコマンドの送信、測定データの受信、演算等を行なう(S40、S36〜S39)。測定を終了する場合、プログラムの実行をやめてデータ処理を終了する(S40)。   A command for transmitting measurement data after receiving data indicating that new measurement data has been collected from the measurement devices Ma to Md based on the measurement cycle of the measurement devices Ma to Md or performing polling when continuing measurement. Transmission, reception of measurement data, calculation, etc. (S40, S36 to S39). When the measurement is finished, the program execution is stopped and the data processing is finished (S40).

ここで、図4は、演算結果のファイルのデータ例を示した図である。各測定時間ごとの測定データで演算されたユーザ定義式1、2それぞれの演算結果が格納される。   Here, FIG. 4 is a diagram illustrating an example of data of a calculation result file. The calculation results of the user-defined equations 1 and 2 calculated from the measurement data for each measurement time are stored.

このように、入力部14から演算式を入力し、生成部(解析部15、コマンド生成部16、プログラム生成部17)が、入力部14で入力された演算式において指定された測定器Ma〜Mdに測定データの送信を行なわせる通信プログラムを生成する。これにより、ユーザは演算式を入力するだけでよく、ユーザに通信プログラムを作成する知識が無くとも、ネットワーク100経由で測定中の複数台の測定器Ma〜Mdから測定データを取得してデータ処理(演算式で指定された測定データ同士の演算)を行なうことができる。従って、測定中であってもデータ処理結果の確認を直ちにでき、作業効率が向上する。また、専用の通信プログラムを開発するコストと時間を抑えることができる。   In this way, an arithmetic expression is input from the input unit 14, and the generation unit (analyzing unit 15, command generation unit 16, program generation unit 17) determines the measuring instruments Ma˜ specified in the arithmetic expression input by the input unit 14. A communication program that causes Md to transmit measurement data is generated. Thus, the user only has to input an arithmetic expression, and even if the user has no knowledge of creating a communication program, the measurement data is acquired from a plurality of measuring instruments Ma to Md being measured via the network 100 and processed. (Calculation between measurement data specified by an arithmetic expression) can be performed. Therefore, the data processing result can be confirmed immediately even during measurement, and the work efficiency is improved. In addition, the cost and time for developing a dedicated communication program can be reduced.

なお、本発明はこれに限定されるものではなく、以下に示すようなものでもよい。
(1)測定器Ma〜Mdの一例として電力計を用いる構成を示したが、どのような測定器でもよく、例えば、デジタルオシロスコープ、スペクトラムアナライザ、マルチメータ等でもよい。
The present invention is not limited to this, and may be as shown below.
(1) Although the configuration using a wattmeter is shown as an example of the measuring devices Ma to Md, any measuring device may be used, for example, a digital oscilloscope, a spectrum analyzer, a multimeter, or the like.

(2)パソコンに測定器を4台接続する構成を示したが、何台接続してもよく、信号線もGIPBケーブルでなくどのようなものでもよく、有線の代わりに無線を用いてもよい。 (2) Although a configuration in which four measuring instruments are connected to a personal computer is shown, any number of measuring instruments may be connected, and any signal line may be used instead of a GIPB cable, and wireless may be used instead of wired. .

本発明の一実施例を示した構成図である。It is the block diagram which showed one Example of this invention. 図1に示す装置の動作を説明したフローチャートである。It is a flowchart explaining operation | movement of the apparatus shown in FIG. 図1に示す測定器Maの測定データの一例を示した図である。It is the figure which showed an example of the measurement data of the measuring device Ma shown in FIG. 図1に示すパソコンPCの演算結果の一例を示した図である。It is the figure which showed an example of the calculation result of personal computer PC shown in FIG. 従来のデータ処理装置の動作の一例を説明したフローチャートである。It is the flowchart explaining an example of operation | movement of the conventional data processor. 従来のデータ処理装置の動作のその他の一例を説明したフローチャートである。It is the flowchart explaining another example of operation | movement of the conventional data processor.

符号の説明Explanation of symbols

10〜13 メモリ
14 入力部
15 解析部
16 コマンド生成部
17 プログラム生成部
100 汎用の信号線(GPIBケーブル)
Ma〜Md 測定器
10 to 13 Memory 14 Input unit 15 Analysis unit 16 Command generation unit 17 Program generation unit 100 General-purpose signal line (GPIB cable)
Ma to Md measuring instrument

Claims (2)

複数の測定器とネットワークを介して接続され、前記測定器それぞれが測定した測定データで演算を行なうデータ処理装置において、
前記演算を行なうための演算式を入力する入力部と、
この入力部の演算式で指定された測定器に前記測定データの送信を行なわせる通信プログラムを生成する生成部と
を有することを特徴とするデータ処理装置。
In a data processing apparatus that is connected to a plurality of measuring instruments via a network and performs an operation on measurement data measured by each of the measuring instruments,
An input unit for inputting an arithmetic expression for performing the operation;
A data processing apparatus comprising: a generation unit that generates a communication program that causes the measuring instrument specified by the arithmetic expression of the input unit to transmit the measurement data.
前記ネットワークに接続されている測定器の機種、前記ネットワークの通信インターフェースの種別を記憶する第1のメモリと、
各測定器ごとのコマンドを格納する第2のメモリと、
前記ネットワークの通信インターフェースごとのAPIを格納する第3のメモリと
を有し、前記生成部は、
前記演算式と前記第1のメモリとを参照し、送信を行なわせる測定器の機種、通信インターフェースを解析する解析部と、
この解析部の解析結果に基づいて、前記第2のメモリから前記測定器の機種に対応したコマンドを読み出すコマンド生成部と、
前記解析部の解析結果に基づいて、前記第3のメモリから前記通信インターフェースに対応したAPIを読み出し、前記コマンド生成部のコマンドと組み合わせ前記通信プログラムを生成するプログラム生成部と
を有することを特徴とする請求項1記載のデータ処理装置。
A first memory for storing a model of a measuring instrument connected to the network and a type of a communication interface of the network;
A second memory for storing a command for each measuring instrument;
A third memory for storing an API for each communication interface of the network, and the generation unit includes:
An analysis unit that analyzes a model of a measuring instrument that performs transmission with reference to the arithmetic expression and the first memory, and a communication interface;
Based on the analysis result of the analysis unit, a command generation unit that reads a command corresponding to the model of the measuring instrument from the second memory;
A program generation unit that reads an API corresponding to the communication interface from the third memory based on an analysis result of the analysis unit, and generates a communication program in combination with a command of the command generation unit; The data processing apparatus according to claim 1.
JP2007158329A 2007-06-15 2007-06-15 Data processing device Active JP5088542B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007158329A JP5088542B2 (en) 2007-06-15 2007-06-15 Data processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007158329A JP5088542B2 (en) 2007-06-15 2007-06-15 Data processing device

Publications (2)

Publication Number Publication Date
JP2008310619A true JP2008310619A (en) 2008-12-25
JP5088542B2 JP5088542B2 (en) 2012-12-05

Family

ID=40238157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007158329A Active JP5088542B2 (en) 2007-06-15 2007-06-15 Data processing device

Country Status (1)

Country Link
JP (1) JP5088542B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6945766B1 (en) * 2020-07-03 2021-10-06 三菱電機株式会社 Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0593634A (en) * 1991-10-01 1993-04-16 Nec Corp Command converter
JPH05322602A (en) * 1992-05-21 1993-12-07 Hitachi Ltd Plant operation management system
JP2004280502A (en) * 2003-03-17 2004-10-07 Yokogawa Electric Corp Measuring device control system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0593634A (en) * 1991-10-01 1993-04-16 Nec Corp Command converter
JPH05322602A (en) * 1992-05-21 1993-12-07 Hitachi Ltd Plant operation management system
JP2004280502A (en) * 2003-03-17 2004-10-07 Yokogawa Electric Corp Measuring device control system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6945766B1 (en) * 2020-07-03 2021-10-06 三菱電機株式会社 Data analysis program creation support device, data analysis program creation support method, and data analysis program creation support program
WO2022003955A1 (en) * 2020-07-03 2022-01-06 三菱電機株式会社 Data analysis program creation assistance device, data analysis program creation assistance method, and data analysis program creation assistance program

Also Published As

Publication number Publication date
JP5088542B2 (en) 2012-12-05

Similar Documents

Publication Publication Date Title
CN108804302B (en) Remote testing method, system and related equipment
EP1286167B1 (en) Apparatus and method for processor power measurement in a digital signal processor using trace data and simulation techniques
JP5833502B2 (en) Test program
CN106093897B (en) A kind of the test system and test method of radar system
CN105653338B (en) A kind of update method and device of application
JP2007172599A (en) Method and system for tracing program execution
US9563527B2 (en) Test system
CN107977318B (en) Energy consumption and performance test method for Android application program
JP5088542B2 (en) Data processing device
JP6275009B2 (en) Test apparatus and test program
US20100223035A1 (en) Test Time Calculator
JP6644577B2 (en) Testing system
CN111949538A (en) Data analysis method, equipment and system
CN106557419B (en) Program testing method and device
JP2020140331A (en) Api adapter test system, api adapter test assistance device, api adapter test assistance method, and api adapter test assistance program
JP5096394B2 (en) Measuring device and mobile communication device testing device
JP2008175681A (en) Testing device
KR102307895B1 (en) Apparatus, method and program for opc ua specification compliance verification
JP5438417B2 (en) Equipment test system
JP2011191116A (en) System testing device
US20230266390A1 (en) Test Abstraction Data Model
JP2012088069A (en) Test device
JP2007292723A (en) Automatic test system
US20090089123A1 (en) Method and a Tool for Performance Measurement of a Business Scenario Step Executed by a Single User
JP2011221697A (en) Test device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100420

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120307

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120315

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120509

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120529

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: 20120816

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120829

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150921

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5088542

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150