JP2012059169A - Data analysis support method, data analysis support program and data analysis support system - Google Patents

Data analysis support method, data analysis support program and data analysis support system Download PDF

Info

Publication number
JP2012059169A
JP2012059169A JP2010204015A JP2010204015A JP2012059169A JP 2012059169 A JP2012059169 A JP 2012059169A JP 2010204015 A JP2010204015 A JP 2010204015A JP 2010204015 A JP2010204015 A JP 2010204015A JP 2012059169 A JP2012059169 A JP 2012059169A
Authority
JP
Japan
Prior art keywords
time
trace data
simulator program
procedure
simulation
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
JP2010204015A
Other languages
Japanese (ja)
Other versions
JP5610146B2 (en
Inventor
Yasuo Katsu
康夫 勝
Masahiro Matsushita
正裕 松下
Yasuhiro Ito
康宏 伊藤
Shigeru Obo
茂 於保
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.)
Hitachi Advanced Digital Inc
Original Assignee
Hitachi Advanced Digital Inc
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 Hitachi Advanced Digital Inc filed Critical Hitachi Advanced Digital Inc
Priority to JP2010204015A priority Critical patent/JP5610146B2/en
Publication of JP2012059169A publication Critical patent/JP2012059169A/en
Application granted granted Critical
Publication of JP5610146B2 publication Critical patent/JP5610146B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve debugging efficiency of a built-in control system comprised of controller components and mechanical components.SOLUTION: The present invention relates to a data analysis support method executed by a computer system, and the computer system holds a first simulator program and a second simulator program for performing a simulation cooperated by communicating with each other. The data analysis support method includes: a first step for executing the simulation for a set first time and outputting as trace data a plurality of pairs of times within the first time and values of parameters in the first simulator program corresponding to the times; and a second step for executing the simulation for a second time included in the first time and shorter than the first time, and outputting as trace data a plurality of pairs of times within the second time and values of parameters in the second simulator program corresponding to the times.

Description

本発明は、コントローラ部品と、コントローラ部品によって制御されるメカ部品と、によって構成された組込み制御システムのデバッグ解析に用いられるデータ解析支援技術に関する。   The present invention relates to a data analysis support technique used for debug analysis of an embedded control system including a controller part and a mechanical part controlled by the controller part.

組込みシステムとは、制御対象を構成するメカ(機械装置)と、メカから受け取った物理量を元に制御演算を行い、メカに制御値を出力するコントローラと、コントローラ上で動作するソフトウェアと、によって構成されるシステムである。例えば自動車の組込みシステムとは、制御対象である自動車エンジンと自動車エンジンを制御するマイコン等の電子機器とその上で動作するソフトウェアを指す。組込みシステムに含まれるソフトウェアの挙動は制御対象のメカとコントローラの構成に強く依存するため、メカ、コントローラ、ソフトウェアを併せた挙動の解析が必要である。   An embedded system consists of a mechanism (mechanical device) that constitutes the control target, a controller that performs control calculations based on physical quantities received from the mechanism, and outputs control values to the mechanism, and software that runs on the controller. System. For example, an automobile embedded system refers to an automobile engine to be controlled, an electronic device such as a microcomputer that controls the automobile engine, and software that operates on the electronic equipment. Since the behavior of software included in an embedded system strongly depends on the structure of the control target mechanism and controller, it is necessary to analyze the behavior of the mechanism, controller, and software together.

従来は、実機を用いた検証環境によってシステム動作時のソフトウェアの挙動検証を行ってきた。実機を用いた従来の検証環境の例を図16に示す。図16の例では、検証のために、コントローラ実機210と、メカ部品の動作をシミュレートするリアルタイムメカシミュレータ220と、が用いられる。この場合、各要素/部品の実機が必要となるため、個々の部品の動作確認後、部品の組み立て時の開発最終段階になってから検証を着手せざるを得なかった。したがって、開発の最終段階でソフトウェアの不具合及び性能不足が判明した後に設計への手戻りが生じることによって、開発期間の遅延が多発しており、開発効率の悪化が問題となってきた。   Conventionally, the behavior of software during system operation has been verified in a verification environment using an actual machine. An example of a conventional verification environment using a real machine is shown in FIG. In the example of FIG. 16, the actual controller 210 and a real-time mechanical simulator 220 that simulates the operation of the mechanical parts are used for verification. In this case, since an actual machine for each element / part is required, verification has to be started after the final stage of development at the time of assembling the part after confirming the operation of each part. Therefore, after a software defect and performance deficiency are found at the final stage of development, a delay in the development period occurs frequently, resulting in a problem of deterioration in development efficiency.

更に、ソフトウェアの検証解析において、車両速度及びエンジン回転数といったメカの挙動とCAN(Controller Area Network)バス内の制御信号といったコントローラの挙動をそれぞれ独立して観測していた。図16の例では、コントローラ実機210の挙動をコントローラ部品データ解析支援装置230が、リアルタイムメカシミュレータ220の挙動をメカ部品データ解析支援装置240が、それぞれ観測する。このため、メカの挙動で異常箇所が検出された場合に、その異常個所に対応したコントローラの挙動を見つけるのに手間がかかり、検証時に発見されたソフトウェア不具合の原因の解明が困難であった。   Further, in the software verification analysis, the behavior of the mechanism such as the vehicle speed and the engine speed and the behavior of the controller such as the control signal in the CAN (Controller Area Network) bus are independently observed. In the example of FIG. 16, the controller part data analysis support device 230 observes the behavior of the actual controller 210 and the mechanical part data analysis support device 240 observes the behavior of the real-time mechanical simulator 220. For this reason, when an abnormal part is detected in the mechanical behavior, it takes time to find the behavior of the controller corresponding to the abnormal part, and it is difficult to elucidate the cause of the software defect discovered during the verification.

この問題を解決するため、設計時点でのメカ・コントローラ・ソフトウェアを協調させたシミュレーションによるデバッグ解析手法が用いられ始めている。公知の技術として、特許文献1がある。特許文献1には、「メカモデルとコントローラモデルがシミュレーションされ、必要であればトリガイベントに対応して、メカモデルとコントローラモデルの実行を一時停止し、トリガの時点で、メカモデルパラメータ、コントローラモデルパラメータ、またはコントローラモデルのプログラムコードを変更することなく、メカモデルパラメータおよび/またはコントローラモデルパラメータのステータスを表示する」技術が記載されている。   In order to solve this problem, a debugging analysis method based on a simulation in which the mechanical controller software is coordinated at the time of design is beginning to be used. There is Patent Document 1 as a known technique. Patent Document 1 states that “a mechanical model and a controller model are simulated, and if necessary, the execution of the mechanical model and the controller model is temporarily stopped in response to a trigger event. At the time of the trigger, the mechanical model parameter, the controller model parameter, Alternatively, a technique for displaying the status of the mechanical model parameters and / or controller model parameters without changing the program code of the controller model is described.

特開2007−265415号公報JP 2007-265415 A

上記特許文献1の技術では、メカモデルの任意のイベントが発生した場合に、そのイベントが発生した時刻をコントローラモデルの挙動に対応付けて表示する。あるいはその逆に、コントローラモデルの任意のイベントが発生した場合に、そのイベントが発生した時刻をメカモデルの挙動に対応付けて表示することが可能である。   In the technique of Patent Document 1, when an arbitrary event of the mechanical model occurs, the time when the event occurs is displayed in association with the behavior of the controller model. Or, conversely, when any event of the controller model occurs, the time when the event occurred can be displayed in association with the behavior of the mechanical model.

しかし、上記特許文献1の技術では、メカモデルの任意の指定した箇所に対して、その箇所に対応したコントローラモデルの状態しか表示できないため、例えば、その指定箇所の前後近傍のコントローラモデルの挙動を表示することができず、メカとコントローラの詳細な連携解析が困難であった。   However, since the technique of the above-mentioned patent document 1 can display only the state of the controller model corresponding to the specified position of the mechanical model, for example, the behavior of the controller model near the specified position is displayed. It was difficult to perform detailed analysis of the linkage between the mechanism and the controller.

本発明の代表的な一例を示せば次のとおりである。すなわち、計算機システムが実行するデータ解析支援方法であって、前記計算機システムは、演算装置と、前記演算装置に接続される記憶装置と、前記演算装置に接続されるインタフェースと、前記インタフェースに接続される入力装置と、前記インタフェースに接続される表示装置と、を備え、前記記憶装置は、前記演算装置によって実行され、各々が互いに通信をして協調したシミュレーションを行う第1シミュレータプログラム及び第2シミュレータプログラムを保持し、前記データ解析支援方法は、設定された第1時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行し、前記第1時間内の時刻と、当該時刻に対応する前記第1シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第1手順と、前記第1時間に含まれ、かつ、前記第1時間より短い第2時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行し、前記第2時間内の時刻と、当該時刻に対応する前記第2シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第2手順と、を含むことを特徴とする。   A typical example of the present invention is as follows. That is, a data analysis support method executed by a computer system, wherein the computer system is connected to an arithmetic device, a storage device connected to the arithmetic device, an interface connected to the arithmetic device, and the interface. A first simulator program and a second simulator, which are executed by the arithmetic device and communicate with each other to perform a coordinated simulation. The program is stored, and the data analysis support method executes a simulation by the first simulator program and the second simulator program at the set first time, and corresponds to the time within the first time and the time At least one in the first simulator program A first procedure for outputting a plurality of sets of variables as trace data, and the first simulator program and the second in a second time that is included in the first time and shorter than the first time Second procedure of executing simulation by a simulator program and outputting a plurality of sets of time within the second time and a value of at least one variable in the second simulator program corresponding to the time as trace data It is characterized by including these.

メカモデルとコントローラモデルの両挙動を連携表示させることで、効率的にソフトウェアのデバッグが可能となり、工数の大きな下流工程での開発工数の軽減が可能となる。また実装不具合による手戻りを抑制することができる。さらに、シミュレーションの実行時間を削減することができる。   By displaying the behaviors of both the mechanical model and controller model in a coordinated manner, software can be debugged efficiently, and development man-hours can be reduced in downstream processes with a large man-hour. In addition, rework due to mounting defects can be suppressed. Furthermore, the simulation execution time can be reduced.

本発明の第1の実施形態におけるデバッグ解析システムのツール環境構成の例を説明する機能ブロック図である。It is a functional block diagram explaining the example of the tool environment structure of the debug analysis system in the 1st Embodiment of this invention. 本発明の第1の実施形態におけるシミュレーション実行を説明するフローチャートである。It is a flowchart explaining the simulation execution in the 1st Embodiment of this invention. 本発明の第1の実施形態のデバッグ解析システムにおけるユーザインタフェースの例を示す説明図である。It is explanatory drawing which shows the example of the user interface in the debug analysis system of the 1st Embodiment of this invention. 本発明の第1の実施形態において表示されるトレースデータの例を示す説明図である。It is explanatory drawing which shows the example of the trace data displayed in the 1st Embodiment of this invention. 本発明の第1の実施形態において構成されるデバッグ解析システムの詳細を例示する説明図である。It is explanatory drawing which illustrates the detail of the debug analysis system comprised in the 1st Embodiment of this invention. 本発明の第1の実施形態におけるコントローラシミュレータのデータ処理を示すフローチャートである。It is a flowchart which shows the data processing of the controller simulator in the 1st Embodiment of this invention. 本発明の第1の実施形態におけるメカシミュレータのデータ処理を示すフローチャートである。It is a flowchart which shows the data process of the mechanical simulator in the 1st Embodiment of this invention. 本発明の第1の実施形態におけるデータ解析支援装置のデータ処理を示すフローチャートである。It is a flowchart which shows the data processing of the data analysis assistance apparatus in the 1st Embodiment of this invention. 本発明の第2の実施形態におけるデバッグ解析システムのツール環境構成の例を説明する機能ブロック図である。It is a functional block diagram explaining the example of the tool environment structure of the debug analysis system in the 2nd Embodiment of this invention. 本発明の第2の実施形態のデバッグ解析システムにおけるユーザインタフェースの例を示す説明図である。It is explanatory drawing which shows the example of the user interface in the debug analysis system of the 2nd Embodiment of this invention. 本発明の第2の実施形態において表示されるトレースデータの例を示す説明図である。It is explanatory drawing which shows the example of the trace data displayed in the 2nd Embodiment of this invention. 本発明の第2の実施形態において構成されるデバッグ解析システムの詳細を例示する説明図である。It is explanatory drawing which illustrates the detail of the debug analysis system comprised in the 2nd Embodiment of this invention. 本発明の第2の実施形態におけるコントローラシミュレータのデータ処理を示すフローチャートである。It is a flowchart which shows the data processing of the controller simulator in the 2nd Embodiment of this invention. 本発明の第2の実施形態におけるメカシミュレータのデータ処理を示すフローチャートである。It is a flowchart which shows the data processing of the mechanical simulator in the 2nd Embodiment of this invention. 本発明の第3の実施形態におけるデバッグ解析システムのツール環境構成の例を説明する機能ブロック図である。It is a functional block diagram explaining the example of the tool environment structure of the debug analysis system in the 3rd Embodiment of this invention. 本発明の第3の実施形態において構成されるデバッグ解析システムの詳細を例示する説明図である。It is explanatory drawing which illustrates the detail of the debug analysis system comprised in the 3rd Embodiment of this invention. 本発明の第3の実施形態におけるトレースデータ連携処理装置のデータ処理を示すフローチャートである。It is a flowchart which shows the data processing of the trace data cooperation processing apparatus in the 3rd Embodiment of this invention. 本発明の第1の実施形態のデバッグ解析システムを動作するために使用されるハードウェア構成の例を示すブロック図である。It is a block diagram which shows the example of the hardware constitutions used in order to operate the debug analysis system of the 1st Embodiment of this invention. 実機を用いた従来の検証環境の例を説明する機能ブロック図である。It is a functional block diagram explaining the example of the conventional verification environment using a real machine.

以下、図面を用いて本発明の実施形態を説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

<第1の実施形態>
本発明の第1の実施形態では、ユーザーがメカ部品トレースデータに対して任意の点又は領域を指定することによって、指定された点の近傍又はその点を含む所定の領域におけるコントローラ部品トレースデータを拡大表示するデバッグ解析システムの例を説明する。
<First Embodiment>
In the first embodiment of the present invention, when a user designates an arbitrary point or area for mechanical part trace data, controller part trace data in the vicinity of the designated point or a predetermined area including the point is obtained. An example of a debug analysis system to be enlarged will be described.

図1は、本発明の第1の実施形態におけるデバッグ解析システム10のツール環境構成の例を説明する機能ブロック図である。   FIG. 1 is a functional block diagram illustrating an example of a tool environment configuration of a debug analysis system 10 according to the first embodiment of the present invention.

本実施例のデバッグ解析システム10は、コントローラシミュレータ110、メカシミュレータ120及びデータ解析支援装置130を有する。   The debug analysis system 10 of this embodiment includes a controller simulator 110, a mechanical simulator 120, and a data analysis support device 130.

コントローラシミュレータ110は、メカ部品(例えば自動車のエンジンのような機械装置)を制御するコントローラ部品(例えばマイコン等を含む電子機器)の動作をシミュレートするために用いられる。コントローラシミュレータ110は、データ解析支援装置130からのデータ設定要求を受け取り、コントローラ部品の内部パラメータを変更する。また、コントローラシミュレータ110は、予め定義されたシミュレーション条件に従いコントローラ部品の挙動をシミュレートし、さらに予め定義されたデータ出力条件に従いコントローラ部品トレースデータ150(図5参照)を出力する。出力されるコントローラ部品トレースデータ150は、時刻と、その時刻におけるコントローラシミュレータ110内部の少なくとも一つの変数の値と、の複数の組を含む。   The controller simulator 110 is used to simulate the operation of a controller component (for example, an electronic device including a microcomputer) that controls a mechanical component (for example, a mechanical device such as an automobile engine). The controller simulator 110 receives a data setting request from the data analysis support device 130 and changes the internal parameters of the controller component. In addition, the controller simulator 110 simulates the behavior of the controller component according to a predefined simulation condition, and further outputs the controller component trace data 150 (see FIG. 5) according to the predefined data output condition. The outputted controller component trace data 150 includes a plurality of sets of time and the value of at least one variable in the controller simulator 110 at that time.

メカシミュレータ120は、データ解析支援装置130からのデータ設定要求を受け取り、メカ部品の内部パラメータを変更する。また、メカシミュレータ120は、予め定義されたシミュレーション条件に従ってメカ部品の挙動をシミュレートする。さらに、メカシミュレータ120は、トレースデータ連携処理部121を有する。トレースデータ連携処理部121は、コントローラ部品トレースデータ150を受け取り、コントローラ部品トレースデータ150とメカ部品のトレースデータとの連携処理を行い、予め定義されたデータ出力条件に従ってコントローラ部品及びメカ部品のトレースデータを出力する。   The mechanical simulator 120 receives a data setting request from the data analysis support device 130 and changes internal parameters of the mechanical parts. In addition, the mechanical simulator 120 simulates the behavior of the mechanical component according to a predefined simulation condition. Further, the mechanical simulator 120 includes a trace data cooperation processing unit 121. The trace data linkage processing unit 121 receives the controller component trace data 150, performs linkage processing between the controller component trace data 150 and the trace data of the mechanical component, and trace data of the controller component and the mechanical component according to a predefined data output condition. Is output.

出力されるトレースデータは、時刻と、その時刻におけるコントローラシミュレータ110内部の少なくとも一つの変数の値と、その時刻におけるメカシミュレータ120内部の少なくとも一つの変数の値と、の複数の組を含む。ただし、後述するように、ここで出力されるコントローラシミュレータ110内部の変数の値は、その前にコントローラシミュレータ110からメカシミュレータ120に送信されたものである。このため、コントローラシミュレータ110がトレースデータを出力しない条件下では、メカシミュレータ120はコントローラシミュレータ110内部の変数の値を出力しない。   The output trace data includes a plurality of sets of time, the value of at least one variable inside the controller simulator 110 at that time, and the value of at least one variable inside the mechanical simulator 120 at that time. However, as will be described later, the values of the variables in the controller simulator 110 output here are those transmitted from the controller simulator 110 to the mechanical simulator 120 before that. For this reason, under the condition that the controller simulator 110 does not output the trace data, the mechanical simulator 120 does not output the value of the variable inside the controller simulator 110.

データ解析支援装置130は、データ設定処理部131及びデータ表示処理部132を有する。データ設定処理部131は、ユーザーからの各種データ設定要求を受け取り、その要求をコントローラシミュレータ110及びメカシミュレータ120へ通知する。データ表示処理部132は、メカシミュレータ120から出力されたコントローラ部品及びメカ部品のトレースデータを受け取り、データの表示処理を行い、ユーザーへ情報提示する。   The data analysis support device 130 includes a data setting processing unit 131 and a data display processing unit 132. The data setting processing unit 131 receives various data setting requests from the user, and notifies the controller simulator 110 and the mechanical simulator 120 of the requests. The data display processing unit 132 receives the controller component and the trace data of the mechanical component output from the mechanical simulator 120, performs data display processing, and presents information to the user.

図15は、本発明の第1の実施形態のデバッグ解析システム10を動作するために使用されるハードウェア構成の例を示すブロック図である。   FIG. 15 is a block diagram illustrating an example of a hardware configuration used for operating the debug analysis system 10 according to the first embodiment of this invention.

デバッグ解析システム10を動作する計算機1では、少なくとも1つ以上の中央演算処理装置2を備えており、また主記憶装置3及び外部インタフェース4も備えている。さらに外部インタフェース4は、入力装置40、表示装置50及び補助記憶装置60といった周辺機器とバス接続されており、外部インタフェース4を介して計算機1と周辺装置との間でデータが入出力される。なお、入力装置40の一例はマウスのようなポインティングデバイス及びキーボードのような文字入力デバイスであり、表示装置50の一例は画像表示装置であり、補助記憶装置60の一例はハードディスクドライブである。   The computer 1 that operates the debug analysis system 10 includes at least one central processing unit 2 and also includes a main storage device 3 and an external interface 4. Further, the external interface 4 is connected to peripheral devices such as the input device 40, the display device 50, and the auxiliary storage device 60 through a bus, and data is input / output between the computer 1 and the peripheral device via the external interface 4. An example of the input device 40 is a pointing device such as a mouse and a character input device such as a keyboard, an example of the display device 50 is an image display device, and an example of the auxiliary storage device 60 is a hard disk drive.

デバッグ解析システム10は、主記憶装置3又は補助記憶装置60に常時格納されており、システムを動作させる際には外部インタフェース4を通じて中央演算処理装置2へと呼び出される。すなわち、コントローラシミュレータ110、メカシミュレータ120及びデータ解析支援装置130が実行する処理は、実際には、主記憶装置3又は補助記憶装置60に格納されたプログラム(例えば、それぞれ、コントローラシミュレータプログラム、メカシミュレータプログラム及びデータ解析支援プログラム)に従って中央演算処理装置2が実行する。トレースデータ連携処理部121は、メカシミュレータプログラムのサブプログラムとして提供されてもよい。   The debug analysis system 10 is always stored in the main storage device 3 or the auxiliary storage device 60, and is called to the central processing unit 2 through the external interface 4 when operating the system. That is, the processes executed by the controller simulator 110, the mechanical simulator 120, and the data analysis support device 130 are actually programs stored in the main storage device 3 or the auxiliary storage device 60 (for example, a controller simulator program and a mechanical simulator, respectively). The central processing unit 2 executes the program and data analysis support program). The trace data cooperation processing unit 121 may be provided as a subprogram of the mechanical simulator program.

図2は、本発明の第1の実施形態におけるシミュレーション実行を説明するフローチャートである。   FIG. 2 is a flowchart for explaining the execution of simulation in the first embodiment of the present invention.

ステップ(S)1000では、データ設定処理部131がコントローラ部品のトレース条件を設定する。ステップ1100では、データ設定処理部131がメカ部品のトレース条件を設定する。ステップ1200では、データ設定処理部131がコントローラ部品又はメカ部品のトレースデータの出力方向を設定する。ステップ1300では、データ設定処理部131がシミュレーション条件を設定する。なお、これらの設定は、例えば、ユーザーが入力装置40を操作して入力した値をデータ設定処理部131が各シミュレータに通知することによって実行される。ステップ1000からステップ1300は、どのような順序で実行されてもよい。設定される条件の詳細については後述する(図3参照)。   In step (S) 1000, the data setting processing unit 131 sets the trace conditions for the controller component. In step 1100, the data setting processing unit 131 sets trace conditions for mechanical parts. In step 1200, the data setting processing unit 131 sets the output direction of the trace data of the controller part or the mechanical part. In step 1300, the data setting processing unit 131 sets simulation conditions. These settings are executed, for example, when the data setting processing unit 131 notifies each simulator of values input by the user operating the input device 40. Step 1000 to step 1300 may be executed in any order. Details of the set conditions will be described later (see FIG. 3).

ステップ1000からステップ1300までの条件設定が行われた後に、ステップ1400でコントローラシミュレータ110及びメカシミュレータ120によるシミュレーションの実行が開始される。   After the conditions are set from step 1000 to step 1300, the execution of simulation by the controller simulator 110 and the mechanical simulator 120 is started in step 1400.

ステップ1400でシミュレーション実行が開始された後、ステップ1500では、データ解析支援装置130がコントローラ部品又はメカ部品のトレースデータ出力の有無を判定する。トレースデータ出力がある場合にはステップ1600でデータ表示処理部132がトレース対象であるデータを表示し、トレースデータ出力がない場合にはステップ1700へ処理が進む。   After the simulation execution is started in step 1400, in step 1500, the data analysis support apparatus 130 determines whether or not the trace data of the controller part or the mechanical part is output. If there is trace data output, the data display processing unit 132 displays the data to be traced in step 1600, and if there is no trace data output, the process proceeds to step 1700.

ステップ1700では、データ解析支援装置130がシミュレーション実行終了命令の有無及びシミュレーション実行終了条件が満たされるか否かを判定する。シミュレーション実行終了命令は、ユーザーによって入力装置40から入力される。シミュレーション実行終了条件は、例えば、ユーザーによってシミュレーション条件として設定されたシミュレーション終了時刻であり、シミュレータ内部の時刻がシミュレーション終了時刻と一致した場合にシミュレーション実行終了条件が満たされると判定される。   In step 1700, the data analysis support apparatus 130 determines whether there is a simulation execution end instruction and whether the simulation execution end condition is satisfied. The simulation execution end command is input from the input device 40 by the user. The simulation execution end condition is, for example, a simulation end time set as a simulation condition by the user, and it is determined that the simulation execution end condition is satisfied when the time inside the simulator matches the simulation end time.

シミュレーション実行終了命令があったか、又はシミュレーション実行終了条件が満たされる場合、ステップ1800でシミュレーション実行が終了し、処理が終了する。シミュレーション終了命令がなく、かつ、シミュレーション実行終了条件も満たされない場合、ステップ1500へ処理が戻る。   If there is a simulation execution end command or if the simulation execution end condition is satisfied, the simulation execution ends at step 1800 and the process ends. If there is no simulation end command and the simulation execution end condition is not satisfied, the process returns to step 1500.

図3は、本発明の第1の実施形態のデバッグ解析システム10におけるユーザインタフェースの例を示す説明図である。   FIG. 3 is an explanatory diagram illustrating an example of a user interface in the debug analysis system 10 according to the first embodiment of this invention.

具体的には、図3に例示する表示装置50には、入力装置40を介して、データ設定処理部131がステップ1000からステップ1300までのデータ出力条件設定要求及びステップ1400のシミュレーション実行制御要求を受け取るためのユーザインタフェースが示されている。   Specifically, in the display device 50 illustrated in FIG. 3, the data setting processing unit 131 sends a data output condition setting request from step 1000 to step 1300 and a simulation execution control request in step 1400 via the input device 40. A user interface for receiving is shown.

表示装置50には、シミュレーション実行制御部501、シミュレーション開始時刻設定部502及びシミュレーション終了時刻設定部503が表示される。   On the display device 50, a simulation execution control unit 501, a simulation start time setting unit 502, and a simulation end time setting unit 503 are displayed.

シミュレーション実行制御部501は、ユーザーがシミュレーション実行の開始及び終了を命令するために使用される。図3に例示されたシミュレーション実行制御部501は、それぞれ「スタート」及び「エンド」の表示に対応する二つのラジオボタンを含む。図3の例では「エンド」に対応するラジオボタンが選択されている。これは、シミュレーションの実行が既に終了したか、又はまだ開始されていないことを意味する。ユーザーが入力装置40を操作して「スタート」に対応するラジオボタンを選択すると、コントローラシミュレータ110及びメカシミュレータ120によるシミュレーションの実行が開始される(図2のステップ1400)。シミュレーションが実行されているときにユーザーが「エンド」に対応するラジオボタンを選択すると、データ解析支援装置130はシミュレーション実行終了命令があったと判定する(図2のステップ1700)。   The simulation execution control unit 501 is used by the user to instruct the start and end of simulation execution. The simulation execution control unit 501 illustrated in FIG. 3 includes two radio buttons corresponding to the display of “start” and “end”, respectively. In the example of FIG. 3, the radio button corresponding to “END” is selected. This means that the simulation run has already ended or has not yet started. When the user operates the input device 40 and selects a radio button corresponding to “START”, the execution of simulation by the controller simulator 110 and the mechanical simulator 120 is started (step 1400 in FIG. 2). If the user selects a radio button corresponding to “END” while the simulation is being executed, the data analysis support apparatus 130 determines that there is a simulation execution end command (step 1700 in FIG. 2).

シミュレーション開始時刻設定部502及びシミュレーション終了時刻設定部503は、図2のステップ1300においてユーザーがシミュレーション条件を設定するために使用される。図3に例示されたシミュレーション開始時刻設定部502及びシミュレーション終了時刻設定部503は、それぞれ、シミュレーションの開始時刻及び終了時刻の表示を含む。ユーザーが入力装置40を操作してこれらの時刻を入力することによって、シミュレーション条件が設定される。   The simulation start time setting unit 502 and the simulation end time setting unit 503 are used by the user to set simulation conditions in step 1300 of FIG. The simulation start time setting unit 502 and the simulation end time setting unit 503 illustrated in FIG. 3 each include display of a simulation start time and an end time. When the user operates the input device 40 and inputs these times, simulation conditions are set.

図3の例では、シミュレーション開始時刻設定部502及びシミュレーション終了時刻設定部503にそれぞれ「0.000」及び「10.000」が表示されている。これは、時刻0秒から時刻10秒までのシミュレーションを実行するように、ユーザーがシミュレーション条件を設定したことを意味する。   In the example of FIG. 3, “0.000” and “10.000” are displayed in the simulation start time setting unit 502 and the simulation end time setting unit 503, respectively. This means that the user has set the simulation conditions so as to execute the simulation from time 0 seconds to time 10 seconds.

なお、これらの時刻は、実時刻ではなく、コントローラシミュレータ110又はメカシミュレータ120の内部の時刻(すなわちシミュレーション時刻)である。以下の説明においても同様である。   Note that these times are not actual times but internal times of the controller simulator 110 or the mechanical simulator 120 (that is, simulation times). The same applies to the following description.

さらに、表示装置50には、コントローラ部品トレースデータ出力設定部504、コントローラ部品トレース開始時刻設定部505、コントローラ部品トレース終了時刻設定部506、及びコントローラ部品トレース対象データ設定部507が表示される。これらは、図2のステップ1000においてユーザーがコントローラ部品トレース条件を設定するために使用される。   Further, the display device 50 displays a controller component trace data output setting unit 504, a controller component trace start time setting unit 505, a controller component trace end time setting unit 506, and a controller component trace target data setting unit 507. These are used by the user to set controller part trace conditions in step 1000 of FIG.

ここで、「シミュレーション条件」及び「トレース条件」について説明する。   Here, “simulation conditions” and “trace conditions” will be described.

シミュレーション条件は、シミュレーションを実行する条件である。具体的には、シミュレーション条件は、少なくともシミュレーションの開始時刻及び終了時刻を含む。図3には示されていないが、シミュレーション条件は、上記以外の条件(例えば、シミュレーション開始時点のシミュレータ内部のパラメータの初期値等)をさらに含んでもよい。   The simulation condition is a condition for executing the simulation. Specifically, the simulation conditions include at least a simulation start time and an end time. Although not shown in FIG. 3, the simulation conditions may further include conditions other than those described above (for example, initial values of parameters inside the simulator at the start of simulation).

一方、トレース条件は、シミュレーション結果の記録及び表示に関する条件である。各シミュレータは、シミュレーション結果として種々の値を出力することができるが、トレース条件は、どの期間のどの値を記録し、それをユーザーに対して表示するかを指定するものである。トレース条件の具体例は後述する。コントローラシミュレータ110及びメカシミュレータ120に関するトレース条件を、それぞれコントローラ部品トレース条件及びメカ部品トレース条件と記載する。また、各シミュレータがトレース条件に従って記録及び表示するデータをトレースデータと記載する。   On the other hand, the trace condition is a condition relating to recording and display of simulation results. Each simulator can output various values as simulation results. The trace condition specifies which value in which period is recorded and displayed to the user. A specific example of the trace condition will be described later. Trace conditions relating to the controller simulator 110 and the mechanical simulator 120 are described as a controller part trace condition and a mechanical part trace condition, respectively. Also, the data that each simulator records and displays according to the trace conditions is described as trace data.

表示装置50には、さらに、メカ部品トレースデータ出力設定部508、メカ部品トレース開始時刻設定部509、メカ部品トレース終了時刻設定部510、及びメカ部品トレース対象データ設定部511が表示される。これらは、図2のステップ1100においてユーザーがメカ部品トレース条件を設定するために使用される。   The display device 50 further displays a mechanical component trace data output setting unit 508, a mechanical component trace start time setting unit 509, a mechanical component trace end time setting unit 510, and a mechanical component trace target data setting unit 511. These are used by the user to set mechanical part trace conditions in step 1100 of FIG.

図3に例示されたコントローラ部品トレースデータ出力設定部504及びメカ部品トレースデータ出力設定部508の各々は、「オン」及び「オフ」の表示に対応する二つのラジオボタンを含む。ユーザーは、入力装置40を操作してこれらのラジオボタンを選択することによって、各シミュレータにトレースデータを出力させるか否かを設定することができる。図3の例では、コントローラ部品トレースデータ出力設定部504において「オフ」に対応するラジオボタンが、メカ部品トレースデータ出力設定部508において「オン」に対応するラジオボタンがそれぞれ選択されている。これらは、コントローラシミュレータ110がトレースデータを出力せず、メカシミュレータ120がトレースデータを出力するように設定されていることを示す。   Each of the controller component trace data output setting unit 504 and the mechanical component trace data output setting unit 508 illustrated in FIG. 3 includes two radio buttons corresponding to the display of “ON” and “OFF”. The user can set whether to output trace data to each simulator by operating the input device 40 and selecting these radio buttons. In the example of FIG. 3, the radio button corresponding to “OFF” is selected in the controller component trace data output setting unit 504, and the radio button corresponding to “ON” is selected in the mechanical component trace data output setting unit 508. These indicate that the controller simulator 110 is set not to output trace data and the mechanical simulator 120 is set to output trace data.

図3に例示されたコントローラ部品トレース開始時刻設定部505及びコントローラ部品トレース終了時刻設定部506は、それぞれ、コントローラシミュレータ110によるトレースの開始時刻及び終了時刻の表示を含む。ユーザーが入力装置40を操作してこれらの時刻を入力することによって、コントローラシミュレータ110によるトレースの開始時刻及び終了時刻が設定される。   The controller component trace start time setting unit 505 and the controller component trace end time setting unit 506 illustrated in FIG. 3 include display of the trace start time and end time by the controller simulator 110, respectively. When the user operates the input device 40 and inputs these times, the start time and end time of the trace by the controller simulator 110 are set.

図3に例示されたコントローラ部品トレース対象データ設定部507は、それぞれ「関数番号」及び「タスク番号」に対応する二つのチェックボックスを含む。ユーザーは、入力装置40を操作してこれらのチェックボックスを選択することによって、コントローラシミュレータ110に出力させるトレースデータを設定することができる。図3の例ではコントローラシミュレータ110がトレースデータとして出力できる値として関数番号及びタスク番号を挙げたが、コントローラシミュレータ110内部の変数の値である限り、上記以外の値がトレースデータとして出力されてもよい。   The controller part trace target data setting unit 507 illustrated in FIG. 3 includes two check boxes corresponding to “function number” and “task number”, respectively. The user can set trace data to be output to the controller simulator 110 by operating the input device 40 and selecting these check boxes. In the example of FIG. 3, the function number and the task number are given as values that the controller simulator 110 can output as trace data. However, as long as the values are variables in the controller simulator 110, values other than those described above may be output as trace data. Good.

図3の例ではコントローラ部品トレースデータ出力設定部504において「オフ」が選択されているため、コントローラシミュレータ110はトレースデータを出力しない。このため、コントローラ部品トレース開始時刻設定部505及びコントローラ部品トレース終了時刻設定部506ではいずれも時刻「0.000」が設定され、コントローラ部品トレース対象データ設定部507ではいずれのチェックボックスも選択されていない。   In the example of FIG. 3, since “off” is selected in the controller part trace data output setting unit 504, the controller simulator 110 does not output trace data. For this reason, the controller component trace start time setting unit 505 and the controller component trace end time setting unit 506 both set time “0.000”, and the controller component trace target data setting unit 507 selects any check box. Absent.

図3に例示されたメカ部品トレース開始時刻設定部509及びメカ部品トレース終了時刻設定部510は、それぞれ、メカシミュレータ120によるトレースの開始時刻及び終了時刻の表示を含む。ユーザーが入力装置40を操作してこれらの時刻を入力することによって、メカシミュレータ120によるトレースの開始時刻及び終了時刻が設定される。   The mechanical component trace start time setting unit 509 and the mechanical component trace end time setting unit 510 illustrated in FIG. 3 include display of the trace start time and end time by the mechanical simulator 120, respectively. When the user operates the input device 40 to input these times, the start time and end time of the trace by the mechanical simulator 120 are set.

図3に例示されたメカ部品トレース対象データ設定部511は、それぞれ「エンジン回転数」及び「燃料噴射量」に対応する二つのチェックボックスを含む。ユーザーは、入力装置40を操作してこれらのチェックボックスを選択することによって、メカシミュレータ120に出力させるトレースデータを設定することができる。図3の例ではメカシミュレータ120がトレースデータとして出力できる値としてエンジン回転数及び燃料噴射量を挙げたが、メカシミュレータ120内部の変数の値である限り、上記以外の値がトレースデータとして出力されてもよい。   The mechanical part tracing target data setting unit 511 illustrated in FIG. 3 includes two check boxes corresponding to “engine speed” and “fuel injection amount”, respectively. The user can set the trace data to be output to the mechanical simulator 120 by operating the input device 40 and selecting these check boxes. In the example of FIG. 3, the engine speed and the fuel injection amount are listed as values that the mechanical simulator 120 can output as trace data. However, as long as the values are variables in the mechanical simulator 120, values other than the above are output as trace data. May be.

図3の例では、メカ部品トレースデータ出力設定部508において「オン」が選択され、メカ部品トレース開始時刻設定部509及びメカ部品トレース終了時刻設定部510においてそれぞれ「0.000」及び「10.000」が設定され、メカ部品トレース対象データ設定部511において「エンジン回転数」が選択されている。これは、メカシミュレータ120が、時刻「0.000」(秒)から「10.000」(秒)までの変数「燃料噴射量」の値をトレースデータとして出力するように設定されていることを示す。   In the example of FIG. 3, “ON” is selected in the mechanical part trace data output setting unit 508, and “0.000” and “10.10” are selected in the mechanical part trace start time setting unit 509 and the mechanical part trace end time setting unit 510, respectively. “000” is set, and “engine speed” is selected in the mechanical part trace target data setting unit 511. This is because the mechanical simulator 120 is set to output the value of the variable “fuel injection amount” from time “0.000” (seconds) to “10.000” (seconds) as trace data. Show.

表示装置50には、さらに、トレースデータ出力方向設定部512が表示される。これは、図2のステップ1200においてユーザーがトレースデータ出力方向を設定するために使用される。図3に例示するトレースデータ出力方向設定部512は、「コントローラ部品⇒メカシミュレータ」、「メカ部品⇒コントローラシミュレータ」及び「コントローラ部品/メカ部品⇒挙動連携処理装置」のそれぞれの表示に対応するラジオボタンを含む。ユーザーは、入力装置40を操作してこれらのラジオボタンを選択することによって、トレースデータの出力方向を設定することができる。第1の実施形態では、「コントローラ部品⇒メカシミュレータ」が選択される。トレースデータの出力方向の詳細については後述する。挙動連携処理装置(すなわちトレースデータ連携処理装置140)については、本発明の第3の実施形態において説明する。   The display device 50 further displays a trace data output direction setting unit 512. This is used by the user to set the trace data output direction in step 1200 of FIG. The trace data output direction setting unit 512 illustrated in FIG. 3 is a radio corresponding to each display of “controller part → mechanical simulator”, “mechanical part → controller simulator”, and “controller part / mechanical part → behavior cooperation processing device”. Includes buttons. The user can set the output direction of the trace data by operating the input device 40 and selecting these radio buttons. In the first embodiment, “controller part => mechanical simulator” is selected. Details of the output direction of the trace data will be described later. The behavior cooperation processing device (that is, the trace data cooperation processing device 140) will be described in the third embodiment of the present invention.

次に、図3に示されているトレース条件、シミュレーション条件下において、データ設定処理部131がシミュレーション実行制御部501にてシミュレーション実行開始要求を受け取った(すなわち、ユーザーが「スタート」を選択した)場合について説明する。   Next, under the trace conditions and simulation conditions shown in FIG. 3, the data setting processing unit 131 receives a simulation execution start request from the simulation execution control unit 501 (that is, the user selects “Start”). The case will be described.

図4は、本発明の第1の実施形態において表示されるトレースデータの例を示す説明図である。   FIG. 4 is an explanatory diagram showing an example of trace data displayed in the first embodiment of the present invention.

図3に示す条件下でシミュレーション実行(以下の説明において、このシミュレーションを1回目のシミュレーションとも記載する)が終了した後、データ表示処理部132は、図4に示すように、メカ部品トレースデータ表示部514に0秒から10秒までのエンジン回転数変化(太実線)515を表示する。このとき、データ設定処理部131は、以下に説明するように、表示されたエンジン回転数変化515をもとに、コントローラ部品のトレース条件及びシミュレーション条件の設定変更要求を受け取ることができる。   After the execution of the simulation under the conditions shown in FIG. 3 (in the following description, this simulation is also referred to as the first simulation), the data display processing unit 132 displays the mechanical part trace data as shown in FIG. The engine speed change (bold solid line) 515 from 0 second to 10 seconds is displayed on the part 514. At this time, as will be described below, the data setting processing unit 131 can receive a setting change request for the trace conditions and simulation conditions of the controller parts based on the displayed engine speed change 515.

なお、この時点で、コントローラ部品トレースデータ表示部513には何も表示されていない。   At this time, nothing is displayed on the controller part trace data display unit 513.

ユーザーは、入力装置40を操作してヘアーカーソル(細破線)516を上下左右に移動させることによって、シミュレーション時刻当たりのエンジン回転数変化を表す波形515上の任意のポイントを指定することができる(図4の「1.ユーザーによるポイント指定」(ステップ9000)に相当)。データ設定処理部131は、このポイントの指定を前述の設定変更要求として受け取る。そして、データ設定処理部131は、受け取った設定変更要求に従って、斜線で示されるコントローラ部品のトレース対象領域のデータを取得するためのトレースデータ出力条件、及び、シミュレータ内部の時刻がトレース対象領域から外れたときにシミュレーション実行を自動的に終了するためのシミュレーション条件を設定する。   The user can designate an arbitrary point on the waveform 515 that represents a change in engine speed per simulation time by operating the input device 40 to move the hair cursor (thin broken line) 516 up, down, left, and right (see FIG. 4 corresponds to “1. Point designation by user” (step 9000)). The data setting processing unit 131 receives this point specification as the setting change request described above. Then, in accordance with the received setting change request, the data setting processing unit 131 causes the trace data output condition for acquiring the data of the trace target area of the controller part indicated by the diagonal lines and the time inside the simulator to be out of the trace target area. The simulation conditions for automatically terminating the simulation execution are set.

図4の例では、ヘアーカーソル516によって、シミュレーション時刻5.05秒におけるエンジン回転数が指定されている。この場合、斜線で示されるコントローラ部品のトレース対象領域517は、シミュレーション時刻5.00秒から5.10秒までの範囲に相当する。トレース対象領域517は、ユーザーによって指定されたシミュレーション時刻(図4では5.05秒)を含み、かつ、1回目のシミュレーションによるトレースデータが取得された時間(図4では0.00秒から10.00秒まで)内に含まれるように設定される。例えば、データ設定処理部131が、ユーザーによって指定された時刻を含む所定の範囲(図4の例では指定された時刻−0.05秒から+0.05秒の範囲)をトレース対象領域517として設定してもよいし、ユーザーがトレース対象領域517自体を指定してもよい。ユーザーが指定する場合は、図3に示すユーザインタフェースを使用することができる。   In the example of FIG. 4, the engine speed at the simulation time of 5.05 seconds is designated by the hair cursor 516. In this case, the trace target area 517 of the controller part indicated by the diagonal lines corresponds to the range from the simulation time of 5.00 seconds to 5.10 seconds. The trace target area 517 includes the simulation time (5.05 seconds in FIG. 4) designated by the user, and the time (from 0.00 seconds to 10.2 in FIG. 4) when the trace data was acquired by the first simulation. (Up to 00 seconds). For example, the data setting processing unit 131 sets, as the trace target area 517, a predetermined range including the time specified by the user (in the example of FIG. 4, the specified time -0.05 seconds to +0.05 seconds). Alternatively, the user may specify the trace target area 517 itself. When the user designates, the user interface shown in FIG. 3 can be used.

その後、コントローラ部品トレース対象データ設定部507は、ユーザーからの指定に従って、関数番号をトレースデータとして出力する条件を設定する。   Thereafter, the controller component trace target data setting unit 507 sets a condition for outputting the function number as trace data in accordance with the designation from the user.

これらの設定の結果、図3の表示は次のように変更される。すなわち、コントローラ部品トレースデータ出力設定部504において「オン」が選択される。シミュレーション開始時刻設定部502、コントローラ部品トレース開始時刻設定部505及びメカ部品トレース開始時刻設定部509に「5.000」が表示される。シミュレーション終了時刻設定部503、コントローラ部品トレース終了時刻設定部506及びメカ部品トレース終了時刻設定部510に「5.100」が表示される。コントローラ部品トレース対象データ設定部507において「関数番号」が選択される。   As a result of these settings, the display of FIG. 3 is changed as follows. That is, “ON” is selected in the controller component trace data output setting unit 504. “5.000” is displayed in the simulation start time setting unit 502, the controller component trace start time setting unit 505, and the mechanical component trace start time setting unit 509. “5.100” is displayed in the simulation end time setting unit 503, the controller component trace end time setting unit 506, and the mechanical component trace end time setting unit 510. The “function number” is selected in the controller part trace target data setting unit 507.

その後、シミュレーション実行制御部501がシミュレーション実行開始要求を受け取り、上記のように設定された条件に基づくシミュレーションが実行される。このとき実行されるシミュレーションを、以下の説明において2回目のシミュレーションとも記載する。図4に示す「2.シミュレーション実行」(ステップ9100)は、この2回目のシミュレーションを意味する。2回目のシミュレーション実行終了後、データ表示処理部132は、コントローラ部品トレースデータ表示部513に、トレース対象領域における関数番号変化(太破線)518を表示する(図4の「3.指定ポイント近傍のトレースデータ表示」(ステップ9200)に相当)。   Thereafter, the simulation execution control unit 501 receives a simulation execution start request, and a simulation based on the conditions set as described above is executed. The simulation executed at this time is also referred to as a second simulation in the following description. “2. Simulation execution” (step 9100) shown in FIG. 4 means this second simulation. After the execution of the second simulation, the data display processing unit 132 displays a function number change (thick broken line) 518 in the trace target area on the controller part trace data display unit 513 (see “3. "Trace data display" (corresponding to step 9200).

このとき、メカ部品トレースデータ表示部514には、シミュレーション時刻が0.00秒から10.00秒までの間のエンジン回転数変化が表示されるのに対して、コントローラ部品トレースデータ表示部513には、シミュレーション時刻が5.00秒から5.10秒までの間の関数番号変化が表示される。このように、メカ部品トレースデータが表示されるシミュレーション時刻の範囲の一部に対応するコントローラ部品トレースデータが、時間軸方向に拡大して表示される。   At this time, the mechanical component trace data display unit 514 displays the engine speed change during the simulation time from 0.00 seconds to 10.00 seconds, whereas the controller component trace data display unit 513 displays Displays the change in the function number during the simulation time from 5.00 seconds to 5.10 seconds. In this way, the controller part trace data corresponding to a part of the simulation time range in which the mechanical part trace data is displayed is enlarged and displayed in the time axis direction.

例えば、1回目のシミュレーションによって表示されたエンジン回転数515に異常が発見された場合、その異常はコントローラ部品の不具合(より具体的には、コントローラ部品にインストールされたソフトウェア)に起因する可能性がある。ユーザーは、その異常の原因となった可能性があるコントローラ部品の挙動を観測するため、エンジン回転数の異常が観測されたシミュレーション時刻を指定し、さらに、その時刻の近傍における関数番号を出力するように指定することができる。その場合、指定された時刻を含むトレース対象領域における時刻ごとの関数番号518がコントローラ部品トレースデータ表示部513に表示される。ユーザーは、各時刻において処理されている関数番号を参照することによって、コントローラ部品のデバッグを行うことができる。   For example, when an abnormality is found in the engine speed 515 displayed by the first simulation, the abnormality may be caused by a malfunction of the controller component (more specifically, software installed in the controller component). is there. In order to observe the behavior of the controller component that may have caused the abnormality, the user specifies the simulation time at which the abnormality in the engine speed was observed, and outputs the function number near that time. Can be specified as: In this case, the function number 518 for each time in the trace target area including the designated time is displayed on the controller part trace data display unit 513. The user can debug the controller component by referring to the function number being processed at each time.

しかし、仮に、関数番号518をエンジン回転数515と同じ時間スケールで表示すると、ユーザーが関数番号の変化を観測することは困難である。これは、関数番号が一般的にエンジン回転数よりずっと短い時間間隔で変化するためである。例えば、エンジン回転数の観測は数ミリ秒ごとに行えば十分であるのに対して、コントローラ部品のCPUの命令サイクルが数十メガヘルツ程度であれば、複数のCPU命令が実行される関数単位では、関数番号は数マイクロ秒ごとに変化する。このように、両者を表示するための適正な時間スケールには1000倍程度又はそれ以上の差が生じる場合がある。   However, if the function number 518 is displayed on the same time scale as the engine speed 515, it is difficult for the user to observe the change in the function number. This is because the function number generally changes at a time interval much shorter than the engine speed. For example, while it is sufficient to observe the engine speed every few milliseconds, if the instruction cycle of the CPU of the controller component is about several tens of megahertz, the function unit in which multiple CPU instructions are executed The function number changes every few microseconds. Thus, a difference of about 1000 times or more may occur in an appropriate time scale for displaying both.

本実施形態では、それぞれのトレースデータを観測に適した時間スケールで表示するために、関数番号518の時間分解能がエンジン回転数515のそれより高くなるように表示される。言い換えると、エンジン回転数515が表示される時刻の間隔より短い間隔の時刻ごとの関数番号518が表示される。例えば、コントローラシミュレータ110がコントローラ部品トレースデータとして数マイクロ秒ごとの関数番号を出力し、メカシミュレータ120がメカ部品トレースデータとして数ミリ秒ごとのエンジン回転数を出力し、表示装置50がトレース対象領域の関数番号を時間軸方向に拡大して表示してもよい。図4の例では、メカ部品トレースデータ表示部514の時間軸における0.00秒から10.00秒までの10秒間と、コントローラ部品トレースデータ表示部513の時間軸における5.00秒から5.10秒までの0.1秒間とが同じ長さになるように表示される。これによって、ユーザーがコントローラ部品の挙動を容易に観測することができる。   In this embodiment, in order to display each trace data on a time scale suitable for observation, the time resolution of the function number 518 is displayed to be higher than that of the engine speed 515. In other words, the function number 518 for each time interval shorter than the time interval for displaying the engine speed 515 is displayed. For example, the controller simulator 110 outputs function numbers every several microseconds as controller part trace data, the mechanical simulator 120 outputs engine revolutions every several milliseconds as mechanical part trace data, and the display device 50 displays a trace target area. The function number may be enlarged and displayed in the time axis direction. In the example of FIG. 4, 10 seconds from 0.00 seconds to 10.00 seconds on the time axis of the mechanical part trace data display unit 514 and 5.00 seconds to 5.5 on the time axis of the controller part trace data display unit 513. It is displayed so that 0.1 second up to 10 seconds is the same length. As a result, the user can easily observe the behavior of the controller component.

また、上記のように時間スケールが大きく異なるため、単位時間当たりのコントローラ部品トレースデータの量は、メカ部品トレースデータのそれよりずっと多くなる。このため、仮にメカ部品トレースデータと同じ時間範囲(例えば0.00秒から10.00秒までの間)のコントローラ部品トレースデータを出力する場合、膨大なデータを処理する必要が生じ、その処理のために多くの時間を要することになる。しかし、本実施形態では、トレース対象領域のみについてコントローラ部品トレースデータを表示することによって、表示のために必要なデータ量を制限することができる。   Further, since the time scale is greatly different as described above, the amount of the controller part trace data per unit time is much larger than that of the mechanical part trace data. For this reason, if the controller part trace data in the same time range as the mechanical part trace data (for example, between 0.00 seconds and 10.00 seconds) is output, a huge amount of data needs to be processed. Therefore, it takes a lot of time. However, in the present embodiment, by displaying the controller part trace data only for the trace target area, it is possible to limit the amount of data necessary for display.

また、コントローラ部品のトレースデータを出力しない場合と比較して、それを出力する2回目のコントローラ部品のシミュレーション実行速度は低下する。しかし、上記のようにトレース対象領域として指定されたごく短い時間についてのみトレースデータを出力することによって、シミュレーション実行速度の低下を抑制することができる。   In addition, the simulation execution speed of the second controller component that outputs the controller component is lower than when the controller component trace data is not output. However, a decrease in simulation execution speed can be suppressed by outputting trace data only for a very short time designated as a trace target area as described above.

なお、図4の例では、コントローラ部品トレースデータ表示部513に関数番号が表示される。これは、各時刻においてどの関数が処理されているかを特定することによって、各時刻におけるコントローラシミュレータ110の挙動(すなわちそれによってシミュレートされたコントローラ部品の挙動)を特定することができるためである。しかし、この表示は一例であり、関数番号以外の値(例えば各時刻において実行されているプログラムのアドレス等)が表示されてもよい。ユーザーは、コントローラ部品トレース対象データ設定部507を介して、コントローラ部品のデバッグに有用な任意の値が表示されるように設定することができる。   In the example of FIG. 4, the function number is displayed on the controller part trace data display unit 513. This is because by specifying which function is processed at each time, the behavior of the controller simulator 110 at each time (that is, the behavior of the controller component simulated thereby) can be specified. However, this display is an example, and a value other than the function number (for example, an address of a program executed at each time) may be displayed. The user can set to display any value useful for debugging the controller part via the controller part trace target data setting unit 507.

また、図4の例では、メカ部品トレースデータ表示部514にエンジン回転数が表示されるが、これも一例に過ぎず、実際には種々の値(例えば自動車の走行速度等)が表示され得る。表示される変数の値が異なっても、一般には上記のような時間スケールの関係が成立する場合が多く、その場合には本実施形態は有効である。ただし、変数の選択次第では、時間スケールの関係が逆転する場合がある。そのような場合については後述する(第2の実施形態参照)。   Further, in the example of FIG. 4, the engine speed is displayed on the mechanical part trace data display unit 514, but this is only an example, and various values (for example, the traveling speed of an automobile, etc.) can actually be displayed. . Even if the displayed variable values are different, in general, the above time scale relationship is often established, and in this case, the present embodiment is effective. However, the time scale relationship may be reversed depending on the selection of variables. Such a case will be described later (see the second embodiment).

図5は、本発明の第1の実施形態において構成されるデバッグ解析システム10の詳細を例示する説明図である。   FIG. 5 is an explanatory diagram illustrating details of the debug analysis system 10 configured in the first embodiment of the present invention.

コントローラシミュレータ110は、コントローラ部品のトレース条件とシミュレーション条件を受け取るコントローラ部品トレース条件設定部112、及び、コントローラ部品シミュレーション条件設定部113を有する。コントローラシミュレータ110は、さらに、コントローラ部品トレースデータ150を外部出力するコントローラ部品トレースデータ出力制御部114を有する。   The controller simulator 110 includes a controller component trace condition setting unit 112 and a controller component simulation condition setting unit 113 that receive the trace conditions and simulation conditions of the controller components. The controller simulator 110 further includes a controller component trace data output control unit 114 that outputs the controller component trace data 150 to the outside.

メカシミュレータ120は、それぞれメカ部品のトレース条件及びシミュレーション条件を受け取るメカ部品トレース条件設定部122及びメカ部品シミュレーション条件設定部123を有する。さらに、メカシミュレータ120は、トレースデータ連携処理部121を有する。トレースデータ連携処理部121は、コントローラ部品トレースデータ入力制御部125、コントローラ部品/メカ部品トレースデータ同期制御部126及びコントローラ部品/メカ部品トレースデータ出力制御部127を有する。コントローラ部品トレースデータ入力制御部125がコントローラ部品のトレース対象データを受け取る。そして、コントローラ部品/メカ部品トレースデータ同期制御部126が各部品のトレースデータの同期をとる。最後に、コントローラ部品/メカ部品トレースデータ出力制御部127がトレースデータを出力する。   The mechanical simulator 120 includes a mechanical component trace condition setting unit 122 and a mechanical component simulation condition setting unit 123 that receive the trace condition and simulation condition of the mechanical component, respectively. Further, the mechanical simulator 120 includes a trace data cooperation processing unit 121. The trace data cooperation processing unit 121 includes a controller component trace data input control unit 125, a controller component / mechanical component trace data synchronization control unit 126, and a controller component / mechanical component trace data output control unit 127. The controller component trace data input control unit 125 receives the trace data of the controller component. Then, the controller part / mechanical part trace data synchronization control unit 126 synchronizes the trace data of each part. Finally, the controller part / mechanical part trace data output control unit 127 outputs the trace data.

データ解析支援装置130のデータ設定処理部131は、入力装置40からユーザーの操作入力を受け取る入力制御部136、入力データから各種条件を判定するトレース条件判定部133、シミュレーション条件判定部134及びトレースデータ表示条件判定部135を有する。また、データ解析支援装置130のデータ表示処理部132は、トレースデータを表示装置50に出力するトレースデータ表示制御部137、及びメカシミュレータ120から出力されたトレースデータを受け取るトレースデータ入力制御部138を有する。   The data setting processing unit 131 of the data analysis support device 130 includes an input control unit 136 that receives a user operation input from the input device 40, a trace condition determination unit 133 that determines various conditions from the input data, a simulation condition determination unit 134, and trace data. A display condition determination unit 135 is included. The data display processing unit 132 of the data analysis support device 130 includes a trace data display control unit 137 that outputs trace data to the display device 50 and a trace data input control unit 138 that receives the trace data output from the mechanical simulator 120. Have.

1回目のシミュレーションでは、図3に示すような条件が入力制御部136に入力され、トレース条件判定部133、シミュレーション条件判定部134及びトレースデータ表示条件判定部135はどのような条件が入力されたかを判定し、各条件がコントローラ部品トレース条件設定部112、コントローラ部品シミュレーション条件設定部113、メカ部品トレース条件設定部122及びメカ部品シミュレーション条件設定部123に設定される(図2のステップ1000〜ステップ1300)。その後、コントローラシミュレータ110及びメカシミュレータ120は、設定された条件に従ってシミュレーションの実行を開始する(図2のステップ1400)。   In the first simulation, conditions as shown in FIG. 3 are input to the input control unit 136, and what conditions are input to the trace condition determination unit 133, the simulation condition determination unit 134, and the trace data display condition determination unit 135. Each condition is set in the controller component trace condition setting unit 112, the controller component simulation condition setting unit 113, the mechanical component trace condition setting unit 122, and the mechanical component simulation condition setting unit 123 (step 1000 to step in FIG. 2). 1300). Thereafter, the controller simulator 110 and the mechanical simulator 120 start executing the simulation according to the set conditions (step 1400 in FIG. 2).

メカ部品はコントローラ部品から受信した制御信号に従って動作し、コントローラ部品はメカ部品から受信した信号を制御に反映させる。このため、コントローラシミュレータ110及びメカシミュレータ120は、相互にデータを通信しながらシミュレーションを実行する。しかし、トレースデータとしては、図5には明示されていないが、ユーザーによってトレース対象データとして指定されたエンジン回転数のみがメカシミュレータ120から出力される。すなわち、1回目のシミュレーションではコントローラ部品トレースデータ150は出力されない。この場合、図2のステップ1500ではメカ部品トレースデータが出力されたと判定され、トレースデータ表示制御部137によってエンジン回転数がメカ部品トレースデータ表示部514に表示される(図2のステップ1600)。   The mechanical component operates according to the control signal received from the controller component, and the controller component reflects the signal received from the mechanical component in the control. For this reason, the controller simulator 110 and the mechanical simulator 120 execute simulation while communicating data with each other. However, although not explicitly shown in FIG. 5 as the trace data, only the engine rotational speed designated as the trace target data by the user is output from the mechanical simulator 120. That is, the controller component trace data 150 is not output in the first simulation. In this case, it is determined in step 1500 in FIG. 2 that the mechanical component trace data has been output, and the engine data is displayed on the mechanical component trace data display unit 514 by the trace data display control unit 137 (step 1600 in FIG. 2).

その後、シミュレーション条件として設定されたシミュレーション終了時刻が到来すると、シミュレーションの実行が終了する(図2のステップ1700及びステップ1800)。   Thereafter, when the simulation end time set as the simulation condition arrives, the execution of the simulation ends (steps 1700 and 1800 in FIG. 2).

2回目のシミュレーションでは、図4を参照して説明したように変更された条件が入力制御部136に入力され、各シミュレータに設定される(図2のステップ1000〜ステップ1300)。その後、コントローラシミュレータ110及びメカシミュレータ120は、設定された条件に従ってシミュレーションの実行を開始する(図2のステップ1400)。このとき、コントローラシミュレータ110は、ユーザーによる設定に従って、関数番号をコントローラ部品トレースデータ150として出力する。   In the second simulation, the changed conditions as described with reference to FIG. 4 are input to the input control unit 136 and set in each simulator (step 1000 to step 1300 in FIG. 2). Thereafter, the controller simulator 110 and the mechanical simulator 120 start executing the simulation according to the set conditions (step 1400 in FIG. 2). At this time, the controller simulator 110 outputs the function number as the controller part trace data 150 according to the setting by the user.

コントローラ部品トレースデータ150は、メカシミュレータ120内のトレースデータ連携処理部121のコントローラ部品トレースデータ入力制御部125に入力される。既に説明したようにコントローラ部品トレースデータとメカ部品トレースデータの時間スケールが異なるため、コントローラ部品/メカ部品トレースデータ同期制御部126が時刻情報に基づいて両者を対応付け、コントローラ部品/メカ部品トレースデータ出力制御部127が両者をトレースデータ入力制御部138に出力する。   The controller component trace data 150 is input to the controller component trace data input control unit 125 of the trace data cooperation processing unit 121 in the mechanical simulator 120. As described above, since the time scales of the controller component trace data and the mechanical component trace data are different, the controller component / mechanical component trace data synchronization control unit 126 associates both based on the time information, and the controller component / mechanical component trace data. The output control unit 127 outputs both to the trace data input control unit 138.

この場合、図2のステップ1500ではコントローラ部品トレースデータ及びメカ部品トレースデータが出力されたと判定され、トレースデータ表示制御部137によって関数番号及びエンジン回転数がそれぞれコントローラ部品トレースデータ表示部513及びメカ部品トレースデータ表示部514に表示される(図2のステップ1600)。その結果、図4に示すようなトレースデータが表示される。   In this case, in step 1500 of FIG. 2, it is determined that the controller part trace data and the mechanical part trace data are output, and the trace data display control unit 137 sets the function number and the engine speed to the controller part trace data display unit 513 and the mechanical part, respectively. The data is displayed on the trace data display unit 514 (step 1600 in FIG. 2). As a result, trace data as shown in FIG. 4 is displayed.

なお、図3のトレースデータ出力方向設定部512において選択された「コントローラ部品⇒メカシミュレータ」は、上記のように、コントローラシミュレータ110から出力されたコントローラ部品トレースデータ150がメカシミュレータ120に入力されることを意味する。上記以外の方向については後述する(第2実施形態及び第3実施形態参照)。   Note that the “controller part → mechanical simulator” selected in the trace data output direction setting unit 512 in FIG. 3 receives the controller part trace data 150 output from the controller simulator 110 as described above. Means that. The directions other than the above will be described later (see the second embodiment and the third embodiment).

次に、図6A〜図6Cを参照して、本実施形態のデバッグ解析システム10がトレースデータを出力する処理について説明する。なお、本実施形態の各シミュレータが実行するシミュレーション処理自体は従来の技術によって実現できるため、その詳細な説明は省略する。   Next, with reference to FIG. 6A to FIG. 6C, a process in which the debug analysis system 10 according to the present embodiment outputs trace data will be described. In addition, since the simulation process itself which each simulator of this embodiment performs is realizable by a prior art, the detailed description is abbreviate | omitted.

図6Aは、本発明の第1の実施形態におけるコントローラシミュレータ110のデータ処理を示すフローチャートである。   FIG. 6A is a flowchart showing data processing of the controller simulator 110 according to the first embodiment of the present invention.

ステップ2000において、コントローラシミュレータ110は、コントローラ部品のトレース条件が一致しているか否かを判定する。トレース条件としてトレース開始時刻及び終了時刻が設定されている場合、現在のシミュレーション時刻がトレース開始時刻から終了時刻までの時間に含まれるか否かが判定される。トレース条件が一致している場合、コントローラシミュレータ110は、ステップ2100においてコントローラ部品のシミュレーション時刻を出力し、ステップ2200においてコントローラ部品のトレースデータを出力した後、処理を終了する。トレース条件が一致していない場合、コントローラシミュレータ110は、ステップ2100及びステップ2200を実行せずに処理を終了する。   In step 2000, the controller simulator 110 determines whether or not the trace conditions of the controller parts match. When the trace start time and end time are set as the trace conditions, it is determined whether or not the current simulation time is included in the time from the trace start time to the end time. If the trace conditions match, the controller simulator 110 outputs the simulation time of the controller component in step 2100, outputs the trace data of the controller component in step 2200, and ends the process. If the trace conditions do not match, the controller simulator 110 ends the process without executing Step 2100 and Step 2200.

1回目のシミュレーションでは、コントローラシミュレータ110がコントローラ部品トレースデータを出力しないように設定され、トレース条件として設定されている開始時刻及び終了時刻はいずれも「0.000」である。このため、ステップ2000では常にトレース条件が一致しないと判定され、ステップ2100及びステップ2200は実行されない。   In the first simulation, the controller simulator 110 is set not to output the controller component trace data, and the start time and end time set as the trace conditions are both “0.000”. For this reason, in step 2000, it is always determined that the trace conditions do not match, and steps 2100 and 2200 are not executed.

2回目のシミュレーションでは、トレース条件として設定されている開始時刻及び終了時刻はそれぞれ「5.000」及び「5.100」である。このため、コントローラ部品のシミュレーション時刻が5.000秒から5.100秒までの間のいずれかである場合に、ステップ2000でトレース条件が一致すると判定され、コントローラシミュレータ110のコントローラ部品トレースデータ出力制御部114が、シミュレーション時刻と、その時刻に対応するコントローラ部品トレースデータ(図4の例では関数番号)とを出力する(ステップ2100及びステップ2200)。   In the second simulation, the start time and end time set as the trace conditions are “5.000” and “5.100”, respectively. For this reason, when the simulation time of the controller component is any one between 5.000 seconds and 5.100 seconds, it is determined in step 2000 that the trace conditions match, and the controller component trace data output control of the controller simulator 110 is performed. The unit 114 outputs the simulation time and the controller part trace data (function number in the example of FIG. 4) corresponding to the time (step 2100 and step 2200).

図6Bは、本発明の第1の実施形態におけるメカシミュレータ120のデータ処理を示すフローチャートである。   FIG. 6B is a flowchart showing data processing of the mechanical simulator 120 in the first embodiment of the present invention.

メカシミュレータ120は、ステップ3000において、メカ部品のシミュレーション時刻を取得し、ステップ3100において、コントローラ部品のトレースデータ出力の有無を判定する。トレースデータ出力が有る場合は、ステップ3200へ処理が進む。一方、トレースデータ出力が無い場合は、ステップ3900へ処理が進み、メカシミュレータ120は、メカ部品のシミュレーション時刻を出力し、ステップ3950において、メカ部品のトレースデータのみを出力する。   In step 3000, the mechanical simulator 120 acquires the simulation time of the mechanical part, and in step 3100, determines whether or not the trace data is output from the controller part. If there is trace data output, the process proceeds to step 3200. On the other hand, if there is no trace data output, the process proceeds to step 3900, where the mechanical simulator 120 outputs the simulation time of the mechanical part, and in step 3950 outputs only the trace data of the mechanical part.

ステップ3100で、コントローラ部品のトレースデータ出力が有ると判定された場合、メカシミュレータ120は、ステップ3200において、コントローラ部品のシミュレーション時刻を取得する。その後、ステップ3300において、メカシミュレータ120は、コントローラ部品のトレースデータを取得する。そして、ステップ3400において、メカシミュレータ120は、取得したメカ部品のシミュレーション時刻とコントローラ部品のシミュレーション時刻とが一致するか否かを判定する。シミュレーション時刻が一致した場合は、ステップ3500へ処理が進むが、一致しなかった場合は、ステップ3700へ進み、コントローラ部品のシミュレーション時刻を取得し、ステップ3800において、コントローラ部品のトレースデータのみを出力する。   If it is determined in step 3100 that there is trace data output of the controller part, the mechanical simulator 120 acquires the simulation time of the controller part in step 3200. Thereafter, in step 3300, the mechanical simulator 120 acquires the trace data of the controller part. In step 3400, the mechanical simulator 120 determines whether or not the acquired simulation time of the mechanical part matches the simulation time of the controller part. If the simulation times match, the process proceeds to step 3500. If the simulation times do not match, the process proceeds to step 3700 to acquire the simulation time of the controller part, and in step 3800, only the trace data of the controller part is output. .

シミュレーション時刻が一致した場合メカシミュレータ120は、ステップ3500においてシミュレーション時刻を出力し、ステップ3600においてコントローラ部品及びメカ部品のトレースデータを出力して処理が終了する。   If the simulation times coincide with each other, the mechanical simulator 120 outputs the simulation time in step 3500, outputs the trace data of the controller part and the mechanical part in step 3600, and the process ends.

1回目のシミュレーションでは、コントローラシミュレータ110がコントローラ部品トレースデータ150を出力しない。このため、メカシミュレータ120は、ステップ3000においてメカ部品のシミュレーション時刻を取得した後、ステップ3200からステップ3800を実行せずに、そのシミュレーション時刻と、それに対応するメカ部品トレースデータ(すなわちエンジン回転数)を出力する(ステップ3900及びステップ3950)。   In the first simulation, the controller simulator 110 does not output the controller component trace data 150. For this reason, the mechanical simulator 120 acquires the simulation time of the mechanical part in step 3000 and then executes the simulation time and the corresponding mechanical part trace data (that is, the engine speed) without executing steps 3200 to 3800. Are output (steps 3900 and 3950).

2回目のシミュレーションでは、コントローラシミュレータ110がコントローラ部品トレースデータ150を出力する。このため、メカシミュレータ120は、ステップ3000においてメカ部品のシミュレーション時刻を取得した後、ステップ3200においてコントローラ部品トレースデータ150に含まれるコントローラ部品のトレース時刻を取得する。   In the second simulation, the controller simulator 110 outputs the controller component trace data 150. For this reason, the mechanical simulator 120 acquires the simulation time of the mechanical component in step 3000 and then acquires the trace time of the controller component included in the controller component trace data 150 in step 3200.

既に説明したように、本実施形態では、コントローラ部品トレースデータの時間分解能がメカ部品トレースデータのそれより高い。このため、あるシミュレーション時刻における関数番号が出力されても、その時刻におけるエンジン回転数は出力されない場合がある。このため、メカシミュレータ120は、ステップ3200において、コントローラ部品のシミュレーション時刻を取得し、その後ステップ3300において、そのシミュレーション時刻に対応するコントローラ部品トレースデータ(すなわち関数番号)を取得し、ステップ3400において、その時刻に対応するメカ部品トレースデータが出力されるか否かを判定する。   As already described, in this embodiment, the time resolution of the controller component trace data is higher than that of the mechanical component trace data. For this reason, even if a function number at a certain simulation time is output, the engine speed at that time may not be output. Therefore, the mechanical simulator 120 acquires the simulation time of the controller component in step 3200, and then acquires the controller component trace data (that is, the function number) corresponding to the simulation time in step 3300. It is determined whether or not mechanical part trace data corresponding to the time is output.

コントローラ部品のシミュレーション時刻に対応するメカ部品トレースデータが出力されないと判定された場合、メカシミュレータ120は、コントローラ部品のシミュレーション時刻と、その時刻に対応するコントローラ部品トレースデータを出力する(ステップ3700及び3800)。   When it is determined that the mechanical part trace data corresponding to the simulation time of the controller part is not output, the mechanical simulator 120 outputs the simulation time of the controller part and the controller part trace data corresponding to the time (steps 3700 and 3800). ).

コントローラ部品のシミュレーション時刻に対応するメカ部品トレースデータが出力されると判定された場合、メカシミュレータ120は、そのシミュレーション時刻、その時刻に対応するコントローラ部品トレースデータ(すなわち関数番号)、及びその時刻に対応するメカ部品トレースデータ(すなわちエンジン回転数)を出力する(ステップ3500及びステップ3600)。これによって、同一の時刻に対応するコントローラ部品トレースデータ及びメカ部品トレースデータが対応付けられる。   When it is determined that mechanical part trace data corresponding to the simulation time of the controller part is output, the mechanical simulator 120 displays the simulation time, the controller part trace data (that is, the function number) corresponding to the time, and the time. Corresponding mechanical part trace data (namely, engine speed) is output (steps 3500 and 3600). Thereby, the controller component trace data and the mechanical component trace data corresponding to the same time are associated with each other.

図6Cは、本発明の第1の実施形態におけるデータ解析支援装置130のデータ処理を示すフローチャートである。   FIG. 6C is a flowchart showing data processing of the data analysis support apparatus 130 in the first embodiment of the present invention.

データ解析支援装置130は、ステップ4000において、メカシミュレータ120から出力されたシミュレーション時刻を取得し、ステップ4100において、メカシミュレータ120から出力されたコントローラ部品及びメカ部品のトレースデータを(メカ部品のトレースデータのみが出力された場合はメカ部品のトレースデータを)取得する。なお、ステップ4000において取得される時刻及びステップ4100において取得されるトレースデータは、それぞれ、図6Bのステップ3500及びステップ3600において出力されたものである。   In step 4000, the data analysis support apparatus 130 acquires the simulation time output from the mechanical simulator 120. In step 4100, the data analysis support device 130 obtains the controller component and the mechanical component trace data output from the mechanical simulator 120 (the trace data of the mechanical component). If only is output, get trace data of mechanical parts). The time acquired in step 4000 and the trace data acquired in step 4100 are those output in step 3500 and step 3600 in FIG. 6B, respectively.

そして、データ解析支援装置130は、ステップ4200において、取得したトレースデータを表示装置50に表示する(図4参照)。   Then, in step 4200, the data analysis support device 130 displays the acquired trace data on the display device 50 (see FIG. 4).

以上の第1の実施形態によれば、コントローラ部品トレースデータとメカ部品トレースデータの時間スケールが異なる場合であっても、表示のために必要なデータ量を制限し、シミュレーションの実行速度の低下を抑制しながら、必要な時間範囲において、十分な時間分解能を有するトレースデータを表示することができる。コントローラ部品トレースデータとメカ部品トレースデータとを連携して表示することによって、効率的にソフトウェアのデバッグを行い、工数の大きな下流工程での開発工数を軽減し、実装不具合による手戻りを抑制することができる。   According to the first embodiment described above, even if the time scales of the controller component trace data and the mechanical component trace data are different, the amount of data necessary for display is limited, and the simulation execution speed is reduced. Trace data having sufficient time resolution can be displayed in a necessary time range while being suppressed. By displaying controller part trace data and mechanical part trace data in a coordinated manner, software can be debugged efficiently, development man-hours in downstream processes with large man-hours can be reduced, and rework due to mounting defects can be suppressed. Can do.

<第2の実施形態>
本発明の第2の実施形態では、ユーザーがコントローラ部品トレースデータ150に対して任意の点又は領域を指定することによって、指定された点の近傍又はその点を含む所定の領域におけるメカ部品のトレースデータを拡大表示するデバッグ解析システムの例を説明する。
<Second Embodiment>
In the second embodiment of the present invention, when the user designates an arbitrary point or area for the controller part trace data 150, the mechanical part trace in the vicinity of the designated point or a predetermined area including the point is designated. An example of a debug analysis system that enlarges and displays data will be described.

図7は、本発明の第2の実施形態におけるデバッグ解析システム20のツール環境構成の例を説明する機能ブロック図である。   FIG. 7 is a functional block diagram illustrating an example of the tool environment configuration of the debug analysis system 20 according to the second embodiment of the present invention.

図7のデバッグ解析システム20のうち、既に説明した図1に示された同一の符号を付された構成と同一の機能を有する部分については、説明を省略する。   In the debug analysis system 20 of FIG. 7, the description of the portion having the same function as the configuration denoted by the same reference numeral shown in FIG.

コントローラシミュレータ110は、トレースデータ連携処理部111を有する。トレースデータ連携処理部111は、メカ部品トレースデータ160(図10参照)を受け取り、メカ部品トレースデータ160とコントローラ部品のトレースデータとの連携処理を行い、予め定義されたデータ出力条件に従いコントローラ部品及びメカ部品のトレースデータを出力する。メカシミュレータ120は、予め定義されたデータ出力条件に従ってメカ部品トレースデータ160を出力する。本実施形態のデバッグ解析システム20におけるシミュレート実行のフローチャートは、図2で示されるフローチャートと同一となるため、説明を省略する。   The controller simulator 110 has a trace data cooperation processing unit 111. The trace data linkage processing unit 111 receives the mechanical component trace data 160 (see FIG. 10), performs linkage processing between the mechanical component trace data 160 and the trace data of the controller component, and performs the controller component and the controller component according to the predefined data output condition. Outputs trace data of mechanical parts. The mechanical simulator 120 outputs mechanical part trace data 160 in accordance with a predefined data output condition. The flowchart of the simulation execution in the debug analysis system 20 of the present embodiment is the same as the flowchart shown in FIG.

なお、本実施形態のデバッグ解析システム20のハードウェア構成は、第1の実施形態と同様であるため(図15参照)、説明を省略する。第1の実施形態の場合と同様、第2の実施形態のコントローラシミュレータ110、メカシミュレータ120及びデータ解析支援装置130が実行する処理は、実際には、主記憶装置3又は補助記憶装置60に格納されたプログラムに従って中央演算処理装置2が実行する。トレースデータ連携処理部111は、コントローラシミュレータ110を実現するプログラムのサブプログラムとして提供されてもよい。   Note that the hardware configuration of the debug analysis system 20 of the present embodiment is the same as that of the first embodiment (see FIG. 15), and thus description thereof is omitted. As in the case of the first embodiment, the processes executed by the controller simulator 110, the mechanical simulator 120, and the data analysis support device 130 of the second embodiment are actually stored in the main storage device 3 or the auxiliary storage device 60. The central processing unit 2 executes in accordance with the programmed program. The trace data cooperation processing unit 111 may be provided as a subprogram of a program that realizes the controller simulator 110.

図8は、本発明の第2の実施形態のデバッグ解析システム10におけるユーザインタフェースの例を示す説明図である。   FIG. 8 is an explanatory diagram illustrating an example of a user interface in the debug analysis system 10 according to the second embodiment of this invention.

図8に示すユーザインタフェースは、第1の実施形態において使用されるものと同じであるが(図3参照)、図8の例では、ユーザーによって図3と異なる設定がなされている。すなわち、コントローラ部品トレースデータ出力設定部504において「オン」が、メカ部品トレースデータ出力設定部において「オフ」が、トレースデータ出力方向設定部512において「メカ部品⇒コントローラシミュレータ」が、それぞれ選択されている。シミュレーション終了時刻設定部503、コントローラ部品トレース終了時刻設定部506及びメカ部品トレース終了時刻設定部510において、それぞれ「0.100」、「0.100」及び「0.000」が設定されている。コントローラ部品トレース対象データ設定部507において「タスク番号」が選択され、メカ部品トレース対象データ設定部511では何も選択されていない。   The user interface shown in FIG. 8 is the same as that used in the first embodiment (see FIG. 3), but in the example of FIG. 8, settings different from those in FIG. 3 are made by the user. That is, “ON” is selected in the controller component trace data output setting unit 504, “OFF” is selected in the mechanical component trace data output setting unit, and “mechanical component → controller simulator” is selected in the trace data output direction setting unit 512. Yes. In the simulation end time setting unit 503, the controller component trace end time setting unit 506, and the mechanical component trace end time setting unit 510, “0.100”, “0.100”, and “0.000” are set, respectively. The “task number” is selected in the controller part trace target data setting unit 507, and nothing is selected in the mechanical part trace target data setting unit 511.

図8で示されるトレース条件及びシミュレーション条件下において、データ設定処理部131がシミュレーション実行制御部501にてシミュレーション実行開始要求を受け取った場合について、図9を参照して説明する。   A case where the data setting processing unit 131 receives a simulation execution start request from the simulation execution control unit 501 under the trace condition and the simulation condition shown in FIG. 8 will be described with reference to FIG.

図9は、本発明の第2の実施形態において表示されるトレースデータの例を示す説明図である。   FIG. 9 is an explanatory diagram showing an example of trace data displayed in the second embodiment of the present invention.

図8の条件下でシミュレーション(すなわち、第2の実施形態における1回目のシミュレーション)の実行が終了した後、データ表示処理部132は、図9に示すように、コントローラ部品トレースデータ表示部513に0秒から0.1秒までのタスク番号変化(太実線)519を表示する。このとき、データ設定処理部131は、表示されたタスク番号のデータをもとに、メカ部品のトレース条件及びシミュレーション条件の設定変更要求を受け取ることができる。   After the execution of the simulation (that is, the first simulation in the second embodiment) is completed under the conditions of FIG. 8, the data display processing unit 132 displays the controller part trace data display unit 513 as shown in FIG. A task number change (bold solid line) 519 from 0 second to 0.1 second is displayed. At this time, the data setting processing unit 131 can receive a setting change request for the trace conditions and simulation conditions of the mechanical parts based on the displayed task number data.

第1の実施形態と同様、ユーザーは、入力装置40を操作してヘアーカーソル(細破線)520を上下左右に移動させることによって、シミュレーション時刻当たりのタスク番号変化を表す波形519上の任意のポイントを指定することができる。データ設定処理部131は、このポイントの指定を前述の設定変更要求として受け取る(ステップ9300)。そして、データ設定処理部131は、受け取った設定変更要求に従って、斜線で示されるメカ部品のトレース対象領域521のデータを取得するためのトレースデータ出力条件、及び、シミュレータ内部の時刻がトレース対象領域から外れたときにシミュレーション実行を自動的に終了するためのシミュレーション条件を設定する。   As in the first embodiment, the user operates the input device 40 to move the hair cursor (thin broken line) 520 up, down, left, and right, and thereby any point on the waveform 519 representing a change in task number per simulation time. Can be specified. The data setting processing unit 131 receives this point designation as the setting change request described above (step 9300). Then, according to the received setting change request, the data setting processing unit 131 obtains the trace data output condition for acquiring the data of the trace target area 521 of the mechanical part indicated by the diagonal lines, and the time in the simulator from the trace target area. Set the simulation conditions for automatically ending the simulation execution when it goes off.

図9の例では、ヘアーカーソル520によって、シミュレーション時刻0.035秒におけるタスク番号が指定されている。この場合、斜線で示されるメカ部品のトレース対象領域521は、シミュレーション時刻0.030秒から0.040秒までの範囲である。トレース対象領域521は、ユーザーによって指定されたシミュレーション時刻(図9では0.035秒)を含むように設定される。第1の実施形態と同様、トレース対象領域521はデータ設定処理部131によって自動的に設定されてもよいし、ユーザーによって指定されてもよい。ユーザーが指定する場合は、図9に示すユーザインタフェースを使用することができる。   In the example of FIG. 9, the task number at the simulation time of 0.035 seconds is designated by the hair cursor 520. In this case, the trace target area 521 of the mechanical part indicated by diagonal lines is a range from the simulation time of 0.030 seconds to 0.040 seconds. The trace target area 521 is set to include the simulation time designated by the user (0.035 seconds in FIG. 9). Similar to the first embodiment, the trace target area 521 may be automatically set by the data setting processing unit 131 or may be specified by the user. When the user designates, the user interface shown in FIG. 9 can be used.

その後、メカ部品トレース対象データ設定部511は、ユーザーからの指定に従って、燃料噴射量をトレースデータとして出力する条件を設定する。   Thereafter, the mechanical part trace target data setting unit 511 sets conditions for outputting the fuel injection amount as trace data in accordance with the designation from the user.

これらの設定の結果、図8の表示は次のように変更される。すなわち、メカ部品トレースデータ出力設定部508において「オン」が選択される。シミュレーション開始時刻設定部502、コントローラ部品トレース開始時刻設定部505及びメカ部品トレース開始時刻設定部509に「0.030」が表示される。シミュレーション終了時刻設定部503、コントローラ部品トレース終了時刻設定部506及びメカ部品トレース終了時刻設定部510に「0.040」が表示される。メカ部品トレース対象データ設定部511において「燃料噴射量」が選択される。   As a result of these settings, the display of FIG. 8 is changed as follows. That is, “ON” is selected in the mechanical part trace data output setting unit 508. “0.030” is displayed in the simulation start time setting unit 502, the controller component trace start time setting unit 505, and the mechanical component trace start time setting unit 509. “0.040” is displayed in the simulation end time setting unit 503, the controller component trace end time setting unit 506, and the mechanical component trace end time setting unit 510. In the mechanical part tracing target data setting unit 511, “fuel injection amount” is selected.

その後、シミュレーション実行制御部501がシミュレーション実行開始要求を受け取り、上記のように設定された条件に基づくシミュレーション(すなわち、第2の実施形態における2回目のシミュレーション)が実行される(ステップ9400)。2回目のシミュレーション実行終了後、データ表示処理部132は、メカ部品トレース対象データ表示部514に、トレース対象領域における燃料噴射量変化(太破線)522を表示する。   Thereafter, the simulation execution control unit 501 receives a simulation execution start request, and a simulation based on the conditions set as described above (that is, the second simulation in the second embodiment) is executed (step 9400). After completion of the second simulation, the data display processing unit 132 displays the fuel injection amount change (thick broken line) 522 in the trace target region on the mechanical part trace target data display unit 514.

このとき、コントローラ部品トレースデータ表示部513には、シミュレーション時刻が0.000秒から0.100秒までの間のタスク番号変化519が表示されるのに対して、メカ部品トレースデータ表示部514には、シミュレーション時刻が0.030秒から0.040秒までの間の燃料噴射量変化522が表示される。このように、コントローラ部品トレースデータが表示されるシミュレーション時刻の範囲の一部に対応するメカ部品トレースデータが拡大表示される。   At this time, the controller part trace data display unit 513 displays a task number change 519 during the simulation time from 0.000 seconds to 0.100 seconds, whereas the mechanical part trace data display unit 514 Displays the fuel injection amount change 522 during the simulation time from 0.030 seconds to 0.040 seconds. In this way, the mechanical component trace data corresponding to a part of the simulation time range in which the controller component trace data is displayed is enlarged and displayed.

第1の実施形態では、コントローラ部品トレースデータ(関数番号)の時間分解能がメカ部品トレースデータ(エンジン回転数)のそれより高かった。第2の実施形態ではこの関係が逆転し、メカ部品トレースデータ(燃料噴射量)の時間分解能がコントローラ部品トレースデータ(タスク番号)のそれより高くなる。すなわち、第2の実施形態では、図9に示すように、トレース対象領域の燃料噴射量が時間軸方向に拡大して表示される。これによって、ユーザーがメカ部品の挙動を容易に観測することができる。   In the first embodiment, the time resolution of the controller component trace data (function number) is higher than that of the mechanical component trace data (engine speed). In the second embodiment, this relationship is reversed, and the time resolution of the mechanical component trace data (fuel injection amount) is higher than that of the controller component trace data (task number). That is, in the second embodiment, as shown in FIG. 9, the fuel injection amount in the trace target region is displayed enlarged in the time axis direction. As a result, the user can easily observe the behavior of the mechanical component.

また、第1の実施形態の場合と同様、トレース対象領域のみについてメカ部品トレースデータを表示することによって、表示のために必要なデータ量を制限することができる。さらに、第1の実施形態と同様、トレースデータを出力することによるメカ部品のシミュレーション実行速度低下を抑制することができる。   Further, as in the case of the first embodiment, displaying the mechanical part trace data only for the trace target area makes it possible to limit the amount of data necessary for display. Further, similarly to the first embodiment, it is possible to suppress a decrease in the simulation execution speed of the mechanical parts due to the output of the trace data.

なお、タスク番号及び燃料噴射量はトレースデータの一例に過ぎない。実際には、第1の実施形態の場合と同様、種々の変数の値をトレースデータとして選択することができる。   The task number and the fuel injection amount are only examples of trace data. Actually, as in the case of the first embodiment, values of various variables can be selected as trace data.

図10は、本発明の第2の実施形態において構成されるデバッグ解析システム20の詳細を例示する説明図である。   FIG. 10 is an explanatory diagram illustrating details of the debug analysis system 20 configured in the second embodiment of the present invention.

図10に示されたデバッグ解析システム20の詳細のうち、既に説明した図5に示された同一の符号を付された構成と、同一の機能を有する部分については、説明を省略する。   Of the details of the debug analysis system 20 shown in FIG. 10, the description of the components having the same functions as those already described with reference to FIG. 5 is omitted.

コントローラシミュレータ110が有するトレースデータ連携処理部111は、メカ部品トレースデータ入力制御部115、コントローラ部品/メカ部品トレースデータ同期制御部116及びコントローラ部品/メカ部品トレースデータ出力制御部117を有する。メカ部品トレースデータ入力制御部115がメカ部品トレースデータ160を受け取る。そして、コントローラ部品/メカ部品トレースデータ同期制御部116が各部品のトレースデータの同期をとる。最後に、コントローラ部品/メカ部品トレースデータ出力制御部117がコントローラ部品とメカ部品のトレースデータを出力する。メカシミュレータ120は、メカ部品トレースデータ160を外部出力するメカ部品トレースデータ出力制御部124を有する。   The trace data linkage processing unit 111 included in the controller simulator 110 includes a mechanical component trace data input control unit 115, a controller component / mechanical component trace data synchronization control unit 116, and a controller component / mechanical component trace data output control unit 117. The mechanical part trace data input control unit 115 receives the mechanical part trace data 160. The controller part / mechanical part trace data synchronization control unit 116 synchronizes the trace data of each part. Finally, the controller part / mechanical part trace data output control unit 117 outputs the trace data of the controller part and the mechanical part. The mechanical simulator 120 includes a mechanical part trace data output control unit 124 that outputs mechanical part trace data 160 to the outside.

1回目のシミュレーションでは、図8に示すような条件が入力制御部136に入力され、各シミュレータに設定される(図2のステップ1000〜ステップ1300)。その後、コントローラシミュレータ110及びメカシミュレータ120は、設定された条件に従ってシミュレーションの実行を開始する(図2のステップ1400)。   In the first simulation, conditions as shown in FIG. 8 are input to the input control unit 136 and set in each simulator (step 1000 to step 1300 in FIG. 2). Thereafter, the controller simulator 110 and the mechanical simulator 120 start executing the simulation according to the set conditions (step 1400 in FIG. 2).

図10では省略されているが、1回目のシミュレーションでは、トレースデータとしてタスク番号のみがコントローラシミュレータ110から出力される。すなわち、1回目のシミュレーションではメカ部品トレースデータ160は出力されない。この場合、図2のステップ1500ではコントローラ部品トレースデータが出力されたと判定され、トレースデータ表示制御部137によってタスク番号がコントローラ部品トレースデータ表示部513に表示される(図2のステップ1600)。   Although omitted in FIG. 10, only the task number is output from the controller simulator 110 as trace data in the first simulation. That is, the mechanical part trace data 160 is not output in the first simulation. In this case, it is determined in step 1500 in FIG. 2 that the controller part trace data has been output, and the task number is displayed on the controller part trace data display unit 513 by the trace data display control unit 137 (step 1600 in FIG. 2).

その後、シミュレーション条件として設定されたシミュレーション終了時刻が到来すると、シミュレーションの実行が終了する(図2のステップ1700及びステップ1800)。   Thereafter, when the simulation end time set as the simulation condition arrives, the execution of the simulation ends (steps 1700 and 1800 in FIG. 2).

2回目のシミュレーションでは、図9を参照して説明したように変更された条件が入力制御部136に入力され、各シミュレータに設定される(図2のステップ1000〜ステップ1300)。その後、コントローラシミュレータ110及びメカシミュレータ120は、設定された条件に従ってシミュレーションの実行を開始する(図2のステップ1400)。このとき、メカシミュレータ120は、燃料噴射量をメカ部品トレースデータ160として出力する。   In the second simulation, the changed condition as described with reference to FIG. 9 is input to the input control unit 136 and set in each simulator (step 1000 to step 1300 in FIG. 2). Thereafter, the controller simulator 110 and the mechanical simulator 120 start executing the simulation according to the set conditions (step 1400 in FIG. 2). At this time, the mechanical simulator 120 outputs the fuel injection amount as mechanical part trace data 160.

メカ部品トレースデータ160は、コントローラシミュレータ110内のトレースデータ連携処理部111のメカ部品トレースデータ入力制御部115に入力される。コントローラ部品トレースデータとメカ部品トレースデータの時間スケールが異なるため、コントローラ部品/メカ部品トレースデータ同期制御部116が時刻情報に基づいて両者を対応付け、コントローラ部品/メカ部品トレースデータ出力制御部117が両者をトレースデータ入力制御部138に出力する。   The mechanical part trace data 160 is input to the mechanical part trace data input control unit 115 of the trace data cooperation processing unit 111 in the controller simulator 110. Since the time scales of the controller component trace data and the mechanical component trace data are different, the controller component / mechanical component trace data synchronization control unit 116 associates both based on the time information, and the controller component / mechanical component trace data output control unit 117 Both are output to the trace data input control unit 138.

この場合、図2のステップ1500ではコントローラ部品トレースデータ及びメカ部品トレースデータが出力されたと判定され、トレースデータ表示制御部137によってタスク番号及び燃料噴射量がそれぞれコントローラ部品トレースデータ表示部513及びメカ部品トレースデータ表示部514に表示される(図2のステップ1600)。その結果、図9に示すようなトレースデータが表示される。   In this case, it is determined in step 1500 of FIG. 2 that the controller part trace data and the mechanical part trace data have been output, and the trace data display control unit 137 determines the task number and the fuel injection amount from the controller part trace data display unit 513 and the mechanical part, respectively. The data is displayed on the trace data display unit 514 (step 1600 in FIG. 2). As a result, trace data as shown in FIG. 9 is displayed.

なお、図3のトレースデータ出力方向設定部512において選択された「メカ部品⇒コントローラシミュレータ」は、上記のように、メカシミュレータ120から出力されたメカ部品トレースデータ160がコントローラシミュレータ110に入力されることを意味する。   Note that the “mechanical part → controller simulator” selected in the trace data output direction setting unit 512 of FIG. 3 receives the mechanical part trace data 160 output from the mechanical simulator 120 as described above. Means that.

図11Aは、本発明の第2の実施形態におけるコントローラシミュレータ110のデータ処理を示すフローチャートである。   FIG. 11A is a flowchart showing data processing of the controller simulator 110 in the second embodiment of the present invention.

コントローラシミュレータ110は、ステップ5000において、コントローラ部品のシミュレーション時刻を取得し、ステップ5100において、メカ部品のトレースデータ出力の有無を判定する。トレースデータ出力が有る場合は、ステップ5200へ処理が進む。一方、トレースデータ出力が無い場合は、ステップ5900へ処理が進み、コントローラシミュレータ110は、コントローラ部品のシミュレーション時刻を出力し、ステップ5950において、コントローラ部品のトレースデータのみ出力する。   In step 5000, the controller simulator 110 acquires the simulation time of the controller part, and in step 5100, the controller simulator 110 determines whether or not the trace data of the mechanical part is output. If there is trace data output, the process proceeds to step 5200. On the other hand, if there is no trace data output, the process proceeds to step 5900, where the controller simulator 110 outputs the simulation time of the controller part, and in step 5950, outputs only the trace data of the controller part.

ステップ5100で、メカ部品のトレースデータ出力が有ると判定された場合、コントローラシミュレータ110は、ステップ5200において、メカ部品のシミュレーション時刻を取得する。その後、ステップ5300において、コントローラシミュレータ110は、メカ部品のトレースデータを取得する。そして、ステップ5400において、コントローラシミュレータ110は、取得したコントローラ部品のシミュレーション時刻とメカ部品のシミュレーション時刻とが一致するか否かを判定する。シミュレーション時刻が一致した場合は、ステップ5500へ処理が進むが、一致しなかった場合は、ステップ5700へ進み、メカ部品のシミュレーション時刻を取得し、ステップ5800において、メカ部品のトレースデータのみを出力する。   When it is determined in step 5100 that there is trace data output of the mechanical part, the controller simulator 110 acquires the simulation time of the mechanical part in step 5200. Thereafter, in step 5300, the controller simulator 110 acquires trace data of the mechanical parts. In step 5400, the controller simulator 110 determines whether or not the acquired simulation time of the controller part matches the simulation time of the mechanical part. If the simulation times match, the process proceeds to step 5500. If the simulation times do not match, the process proceeds to step 5700 to acquire the simulation time of the mechanical part, and in step 5800, only the trace data of the mechanical part is output. .

シミュレーション時刻が一致した場合、コントローラシミュレータ110は、ステップ5500においてシミュレーション時刻を出力し、ステップ5600においてコントローラ部品及びメカ部品のトレースデータ(又はそれらのうち一方)を出力して処理が終了する。   If the simulation times coincide with each other, the controller simulator 110 outputs the simulation time in step 5500, outputs the trace data (or one of them) of the controller part and the mechanical part in step 5600, and the process ends.

1回目のシミュレーションでは、メカシミュレータ120がメカ部品トレースデータ160を出力しない。このため、コントローラシミュレータ110は、ステップ5000においてコントローラ部品のシミュレーション時刻を取得した後、ステップ5200からステップ5800を実行せずに、そのシミュレーション時刻と、それに対応するコントローラ部品トレースデータ(すなわちタスク番号)を出力する(ステップ5900及びステップ5950)。   In the first simulation, the mechanical simulator 120 does not output the mechanical part trace data 160. For this reason, the controller simulator 110 obtains the simulation time of the controller component in step 5000 and then executes the simulation time and the corresponding controller component trace data (that is, the task number) without executing steps 5200 to 5800. Output (steps 5900 and 5950).

2回目のシミュレーションでは、メカシミュレータ120がメカ部品トレースデータ160を出力する。このため、コントローラシミュレータ110は、ステップ5000においてコントローラ部品のシミュレーション時刻を取得した後、ステップ5200においてメカ部品トレースデータ160に含まれるメカ部品のシミュレーション時刻を取得する。   In the second simulation, the mechanical simulator 120 outputs mechanical part trace data 160. For this reason, the controller simulator 110 acquires the simulation time of the controller component in step 5000 and then acquires the simulation time of the mechanical component included in the mechanical component trace data 160 in step 5200.

次に、コントローラシミュレータ110は、ステップ5300において、そのシミュレーション時刻に対応するメカ部品トレースデータ(すなわち燃料噴射量)を取得し、ステップ5400において、コントローラシミュレータ110は、取得したメカ部品のシミュレーション時刻に対応するコントローラ部品トレースデータが出力されるか否かを判定する。これは、コントローラ部品トレースデータとメカ部品トレースデータとの関係が逆転していることを除いて、図6Bのステップ3400と同様である。   Next, in step 5300, the controller simulator 110 acquires mechanical part trace data (ie, fuel injection amount) corresponding to the simulation time. In step 5400, the controller simulator 110 corresponds to the acquired mechanical part simulation time. It is determined whether controller part trace data to be output is output. This is the same as Step 3400 in FIG. 6B except that the relationship between the controller component trace data and the mechanical component trace data is reversed.

その時刻に対応するコントローラ部品トレースデータが出力されないと判定された場合、コントローラシミュレータ110は、メカ部品のシミュレーション時刻と、その時刻に対応するメカ部品トレースデータを出力する(ステップ5700及び5800)。   When it is determined that the controller part trace data corresponding to the time is not output, the controller simulator 110 outputs the mechanical part simulation time and the mechanical part trace data corresponding to the time (steps 5700 and 5800).

その時刻に対応するコントローラ部品トレースデータが出力されると判定された場合、コントローラシミュレータ110は、そのシミュレーション時刻、その時刻に対応するメカ部品トレースデータ(すなわち燃料噴射量)、及びその時刻に対応するコントローラ部品トレースデータ(すなわちタスク番号)を出力する(ステップ5500及びステップ5600)。   When it is determined that the controller part trace data corresponding to the time is output, the controller simulator 110 corresponds to the simulation time, the mechanical part trace data corresponding to the time (that is, the fuel injection amount), and the time. Controller part trace data (ie, task number) is output (steps 5500 and 5600).

図11Bは、本発明の第2の実施形態におけるメカシミュレータ120のデータ処理を示すフローチャートである。   FIG. 11B is a flowchart showing data processing of the mechanical simulator 120 in the second embodiment of the present invention.

ステップ6000において、メカシミュレータ120は、メカ部品のトレース条件が一致しているか否かを判定する。この判定は、図6Aのステップ2000におけるコントローラ部品のトレース条件の判定と同様に行われる。トレース条件が一致している場合、メカシミュレータ120は、ステップ6100においてメカ部品のシミュレーション時刻を出力し、ステップ6200においてメカ部品のトレースデータを出力した後、処理を終了する。トレース条件が一致していない場合、メカシミュレータ120は、ステップ6100及びステップ6200を実行せずに処理を終了する。   In step 6000, the mechanical simulator 120 determines whether or not the trace conditions of the mechanical parts match. This determination is performed in the same manner as the determination of the trace condition of the controller component in step 2000 of FIG. 6A. If the trace conditions match, the mechanical simulator 120 outputs the simulation time of the mechanical part in step 6100, outputs the trace data of the mechanical part in step 6200, and ends the process. If the trace conditions do not match, the mechanical simulator 120 ends the process without executing Step 6100 and Step 6200.

1回目のシミュレーションでは、メカシミュレータ120がメカ部品トレースデータを出力しないように設定されているため、ステップ6000では常にトレース条件が一致しないと判定され、ステップ6100及びステップ6200は実行されない。   In the first simulation, since the mechanical simulator 120 is set not to output the mechanical part trace data, it is determined in step 6000 that the trace conditions do not always match, and the steps 6100 and 6200 are not executed.

2回目のシミュレーションでは、トレース条件として設定されている開始時刻及び終了時刻はそれぞれ「0.030」及び「0.040」である。このため、メカ部品のシミュレーション時刻が0.030秒から0.040秒までの間のいずれかである場合に、ステップ6000でトレース条件が一致すると判定され、メカシミュレータ120のメカ部品トレースデータ出力制御部124が、シミュレーション時刻と、その時刻に対応するメカ部品トレースデータ(図9の例では燃料噴射量)とを出力する(ステップ6100及びステップ6200)。   In the second simulation, the start time and end time set as the trace conditions are “0.030” and “0.040”, respectively. For this reason, when the simulation time of the mechanical part is any one between 0.030 seconds and 0.040 seconds, it is determined in step 6000 that the trace conditions match, and the mechanical part trace data output control of the mechanical simulator 120 is performed. The unit 124 outputs the simulation time and the mechanical component trace data (in the example of FIG. 9, the fuel injection amount) corresponding to the time (step 6100 and step 6200).

本実施形態のデータ解析支援装置130が実行する処理は、第1の実施形態と同様であるため、説明を省略する(図6C参照)。   The processing executed by the data analysis support device 130 of the present embodiment is the same as that of the first embodiment, and thus the description thereof is omitted (see FIG. 6C).

以上の第2の実施形態によれば、メカ部品トレースデータをコントローラ部品トレースデータより高い時間分解能で表示する必要がある場合であっても、表示のために必要なデータ量を制限し、シミュレーションの実行速度の低下を抑制しながら、必要な時間範囲において、十分な時間分解能を有するトレースデータを表示することができる。   According to the second embodiment described above, even if it is necessary to display the mechanical component trace data with a higher time resolution than the controller component trace data, the amount of data required for display is limited, Trace data having sufficient time resolution can be displayed in a necessary time range while suppressing a decrease in execution speed.

なお、第1の実施形態では、メカシミュレータ120はトレースデータ連携処理部121を有するが、コントローラシミュレータ110はトレースデータ連携処理部111を有しない。一方、第2の実施形態では、コントローラシミュレータ110はトレースデータ連携処理部111を有するが、メカシミュレータ120はトレースデータ連携処理部121を有しない。しかし、これらの実施形態の変形例として、コントローラシミュレータ110がトレースデータ連携処理部111を有し、かつ、メカシミュレータ120がトレースデータ連携処理部121を有する構成もあり得る。このような構成においては、ユーザーが必要に応じて(具体的には、選択したトレースデータの時間スケールに応じて)いずれのトレースデータ連携処理部を使用するかを選択することができる。   In the first embodiment, the mechanical simulator 120 includes the trace data cooperation processing unit 121, but the controller simulator 110 does not include the trace data cooperation processing unit 111. On the other hand, in the second embodiment, the controller simulator 110 includes the trace data cooperation processing unit 111, but the mechanical simulator 120 does not include the trace data cooperation processing unit 121. However, as a modification of these embodiments, there may be a configuration in which the controller simulator 110 includes the trace data cooperation processing unit 111 and the mechanical simulator 120 includes the trace data cooperation processing unit 121. In such a configuration, the user can select which trace data linkage processing unit to use as needed (specifically, according to the time scale of the selected trace data).

例えば、第1の実施形態のように、コントローラ部品トレースデータとして関数番号を、メカ部品トレースデータとしてエンジン回転数を選択した場合、ユーザーは、トレースデータ出力方向設定部512において「コントローラ部品⇒メカシミュレータ」を選択する。この場合、トレースデータ連携処理部121が動作して、第1の実施形態において説明した処理が実行されるが、トレースデータ連携処理部111は動作しない。   For example, as in the first embodiment, when the function number is selected as the controller part trace data and the engine speed is selected as the mechanical part trace data, the user selects “controller part → mechanical simulator” in the trace data output direction setting unit 512. ”Is selected. In this case, the trace data cooperation processing unit 121 operates and the processing described in the first embodiment is executed, but the trace data cooperation processing unit 111 does not operate.

一方、第2の実施形態のように、コントローラ部品トレースデータとしてタスク番号を、メカ部品トレースデータとして燃料噴射量を選択した場合、ユーザーは、トレースデータ出力方向設定部512において「メカ部品⇒コントローラシミュレータ」を選択する。この場合、トレースデータ連携処理部111が動作して、第2の実施形態において説明した処理が実行されるが、トレースデータ連携処理部121は動作しない。   On the other hand, when the task number is selected as the controller component trace data and the fuel injection amount is selected as the mechanical component trace data as in the second embodiment, the user selects “mechanical component → controller simulator” in the trace data output direction setting unit 512. ”Is selected. In this case, the trace data cooperation processing unit 111 operates and the processing described in the second embodiment is executed, but the trace data cooperation processing unit 121 does not operate.

<第3の実施形態>
本発明の第3の実施形態では、コントローラ部品とメカ部品のトレースデータを連携する処理を独立して実施する装置を備えたデバッグ解析システム30の例を説明する。
<Third Embodiment>
In the third embodiment of the present invention, an example of a debug analysis system 30 including an apparatus that independently performs processing for linking trace data of a controller part and a mechanical part will be described.

図12は、本発明の第3の実施形態におけるデバッグ解析システム30のツール環境構成の例を説明する機能ブロック図である。   FIG. 12 is a functional block diagram illustrating an example of the tool environment configuration of the debug analysis system 30 according to the third embodiment of the present invention.

本実施例のデバッグ解析システム30は、コントローラシミュレータ110、メカシミュレータ120、データ解析支援装置130及びトレースデータ連携処理装置140を有する。   The debug analysis system 30 of this embodiment includes a controller simulator 110, a mechanical simulator 120, a data analysis support device 130, and a trace data linkage processing device 140.

図12のデバッグ解析システム30のうち、既に説明した図1または図5に示された同一の符号を付された構成と同一の機能を有する部分については、説明を省略する。   In the debug analysis system 30 shown in FIG. 12, the description of the portion having the same function as that of the configuration denoted by the same reference numeral shown in FIG.

トレースデータ連携処理装置140は、コントローラシミュレータ110及びメカシミュレータ120からコントローラ部品トレースデータ150及びメカ部品トレースデータ160を受け取り、トレースデータを連携表示するために処理し、データ解析支援装置130へ出力する。   The trace data linkage processing device 140 receives the controller component trace data 150 and the mechanical component trace data 160 from the controller simulator 110 and the mechanical simulator 120, processes the trace data for linked display, and outputs them to the data analysis support device 130.

なお、本実施形態のデバッグ解析システム30のハードウェア構成は、第1の実施形態と同様であるため(図15参照)、説明を省略する。第1の実施形態の場合と同様、第2の実施形態のコントローラシミュレータ110、メカシミュレータ120、データ解析支援装置130及びトレースデータ連携処理装置140が実行する処理は、実際には、主記憶装置3又は補助記憶装置60に格納されたプログラムに従って中央演算処理装置2が実行する。   Note that the hardware configuration of the debug analysis system 30 of the present embodiment is the same as that of the first embodiment (see FIG. 15), and thus the description thereof is omitted. As in the case of the first embodiment, the processes executed by the controller simulator 110, the mechanical simulator 120, the data analysis support device 130, and the trace data linkage processing device 140 of the second embodiment are actually the main memory 3 Alternatively, the central processing unit 2 executes the program according to a program stored in the auxiliary storage device 60.

本実施形態のデバッグ解析システム30におけるシミュレート実行のフローチャートは、図2に示したものと同一であるため、説明を省略する。   The flowchart of the simulation execution in the debug analysis system 30 of this embodiment is the same as that shown in FIG.

本実施形態のデバッグ解析システム30において使用されるユーザインタフェースは、図3又は図8に示したものと同一であるため、説明を省略する。ただし、本実施形態では、トレースデータ出力方向設定部512において「コントローラ部品/メカ部品⇒挙動連携処理装置」が選択される。   The user interface used in the debug analysis system 30 of the present embodiment is the same as that shown in FIG. 3 or FIG. However, in the present embodiment, “controller part / mechanical part → behavior cooperation processing apparatus” is selected in the trace data output direction setting unit 512.

図13は、本発明の第3の実施形態において構成されるデバッグ解析システム30の詳細を例示する説明図である。   FIG. 13 is an explanatory diagram illustrating details of the debug analysis system 30 configured in the third embodiment of the present invention.

図13のシステム構成のうち、既に説明した図5または図10に示された同一の符号を付された構成と、同一の機能を有する部分については説明を省略する。   In the system configuration of FIG. 13, the description of the components having the same functions as those already described in FIG. 5 or FIG.

トレースデータ連携処理装置140は、コントローラ部品/メカ部品トレースデータ入力制御部141、コントローラ部品/メカ部品トレースデータ同期制御部142及びコントローラ部品/メカ部品トレースデータ出力制御部143を有する。コントローラ部品/メカ部品トレースデータ入力制御部141は、コントローラ部品トレースデータ150及びメカ部品トレースデータ160を受け取る。コントローラ部品/メカ部品トレースデータ同期制御部142は、各部品のシミュレーション時刻情報を用いて、入力されたトレースデータの同期処理を行う。そして、コントローラ部品/メカ部品トレースデータ出力制御部143は、各部品のトレースデータを出力する。   The trace data linkage processing device 140 includes a controller part / mechanical part trace data input control unit 141, a controller part / mechanical part trace data synchronization control unit 142, and a controller part / mechanical part trace data output control unit 143. The controller part / mechanical part trace data input control unit 141 receives the controller part trace data 150 and the mechanical part trace data 160. The controller part / mechanical part trace data synchronization control unit 142 uses the simulation time information of each part to synchronize the input trace data. Then, the controller part / mechanical part trace data output control unit 143 outputs the trace data of each part.

本実施例におけるデバッグ解析システム30では、各シミュレータがコントローラ部品トレースデータ150及びメカ部品トレースデータ160を外部へ出力する。そのため、トレースデータとして出力されるデータ量が増大する場合などに備えて、トレースデータを保存するために十分な記憶領域を確保する必要がある。   In the debug analysis system 30 in the present embodiment, each simulator outputs controller part trace data 150 and mechanical part trace data 160 to the outside. For this reason, it is necessary to secure a sufficient storage area for storing the trace data in case the amount of data output as the trace data increases.

本実施形態におけるコントローラシミュレータ110及びメカシミュレータ120のデータ処理を説明するフローチャートは、それぞれ、既に説明した図6A及び図11Bに示されたフローチャートと同一であるため、説明を省略する。   The flowcharts for explaining the data processing of the controller simulator 110 and the mechanical simulator 120 in the present embodiment are the same as the flowcharts shown in FIGS. 6A and 11B, respectively, and will not be described.

図14は、本発明の第3の実施形態におけるトレースデータ連携処理装置140のデータ処理を示すフローチャートである。   FIG. 14 is a flowchart showing data processing of the trace data linkage processing apparatus 140 according to the third embodiment of the present invention.

トレースデータ連携処理装置140は、ステップ8000においてメカ部品のシミュレーション時刻を取得し、ステップ8100においてそのシミュレーション時刻に対応するメカ部品のトレースデータを取得し、ステップ8200においてコントローラ部品のシミュレーション時刻を取得する。ステップ8300において、トレースデータ連携処理装置140は、各部品のシミュレーション時刻が一致しているか否かを判定する。この判定は、図6Bのステップ3300と同様に実行される。シミュレーション時刻が一致している場合、トレースデータ連携処理装置140は、ステップ8400においてコントローラ部品のトレースデータを取得した後、ステップ8500においてコントローラ部品及びメカ部品のトレースデータを出力する。シミュレーション時刻が一致していない場合、ステップ8200に処理が戻る。   The trace data linkage processing device 140 acquires the simulation time of the mechanical part in Step 8000, acquires trace data of the mechanical part corresponding to the simulation time in Step 8100, and acquires the simulation time of the controller part in Step 8200. In step 8300, the trace data linkage processing apparatus 140 determines whether or not the simulation times of the parts match. This determination is performed in the same manner as Step 3300 in FIG. 6B. When the simulation times coincide with each other, the trace data linkage processing device 140 acquires the trace data of the controller part in Step 8400, and then outputs the trace data of the controller part and the mechanical part in Step 8500. If the simulation times do not match, the process returns to step 8200.

以上の第3の実施形態によれば、コントローラ部品トレースデータとメカ部品トレースデータの時間スケールの関係にかかわらず、同一の処理によってトレースデータの出力を同期させることができる。更に、本実施形態のトレースデータ連携処理装置140は、コントローラシミュレータ及びメカシミュレータの外部に独立して実装可能であるため、既存のメカシミュレータ及びコントローラシミュレータを改変することなく、容易に本発明のデバッグ解析システムを実現することができる。   According to the third embodiment described above, the output of the trace data can be synchronized by the same processing regardless of the relationship between the time scales of the controller component trace data and the mechanical component trace data. Furthermore, since the trace data linkage processing apparatus 140 according to the present embodiment can be independently mounted outside the controller simulator and the mechanical simulator, the debugging of the present invention can be easily performed without modifying the existing mechanical simulator and the controller simulator. An analysis system can be realized.

10、20、30 デバッグ解析システム
110 コントローラシミュレータ
111 トレースデータ連携処理部
120 メカシミュレータ
121 トレースデータ連携処理部
130 データ解析支援装置
140 トレースデータ連携処理装置
150 コントローラ部品トレースデータ
160 メカ部品トレースデータ
10, 20, 30 Debug analysis system 110 Controller simulator 111 Trace data linkage processing unit 120 Mechanical simulator 121 Trace data linkage processing unit 130 Data analysis support device 140 Trace data linkage processing device 150 Controller component trace data 160 Mechanical component trace data

Claims (13)

計算機システムが実行するデータ解析支援方法であって、
前記計算機システムは、演算装置と、前記演算装置に接続される記憶装置と、前記演算装置に接続されるインタフェースと、前記インタフェースに接続される入力装置と、前記インタフェースに接続される表示装置と、を備え、
前記記憶装置は、前記演算装置によって実行され、各々が互いに通信をして協調したシミュレーションを行う第1シミュレータプログラム及び第2シミュレータプログラムを保持し、
前記データ解析支援方法は、
設定された第1時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行し、前記第1時間内の時刻と、当該時刻に対応する前記第1シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第1手順と、
前記第1時間に含まれ、かつ、前記第1時間より短い第2時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行し、前記第2時間内の時刻と、当該時刻に対応する前記第2シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第2手順と、を含むことを特徴とするデータ解析支援方法。
A data analysis support method executed by a computer system,
The computer system includes an arithmetic device, a storage device connected to the arithmetic device, an interface connected to the arithmetic device, an input device connected to the interface, and a display device connected to the interface. With
The storage device stores a first simulator program and a second simulator program that are executed by the arithmetic device and that perform a simulation in which each communicates and cooperates,
The data analysis support method includes:
The simulation by the first simulator program and the second simulator program is executed at the set first time, and the time within the first time and at least one variable in the first simulator program corresponding to the time are determined. A first procedure for outputting a plurality of sets of values as trace data;
The simulation is executed by the first simulator program and the second simulator program in a second time that is included in the first time and shorter than the first time, and corresponds to the time in the second time and the time And a second procedure for outputting a plurality of sets of at least one variable value in the second simulator program as trace data.
前記第1手順は、
前記第1時間の始点及び終点を、それぞれ、前記シミュレーションの第1実行開始時刻及び第1実行終了時刻として設定する第3手順と、
前記第1時間の始点及び終点を、それぞれ、前記第1シミュレータプログラムに基づく前記トレースデータの第1出力開始時刻及び第1出力終了時刻として設定する第4手順と、
前記第1実行開始時刻から前記第1実行終了時刻までの前記第1シミュレータプログラム及び前記第2シミュレータプログラムに基づく前記シミュレーションを実行する第5手順と、
前記第1出力開始時刻から前記第1出力終了時刻までの前記第1シミュレータプログラムに基づく前記トレースデータを前記表示装置に表示する第6手順と、を含み、
前記第2手順は、
前記入力装置から前記第1時間内の時刻の指定を受ける第7手順と、
前記指定された時刻を含む前記第2時間の始点及び終点を、それぞれ、前記シミュレーションの第2実行開始時刻及び第2実行終了時刻として設定する第8手順と、
前記指定された時刻を含む前記第2時間の始点及び終点を、それぞれ、前記第2シミュレータプログラムに基づく前記トレースデータの第2出力開始時刻及び第2出力終了時刻として設定する第9手順と、
前記第2実行開始時刻から前記第2実行終了時刻までの前記第1シミュレータプログラム及び前記第2シミュレータプログラムに基づく前記シミュレーションを実行する第10手順と、
前記第2出力開始時刻から前記第2出力終了時刻までの前記第2シミュレータプログラムに基づく前記トレースデータを前記表示装置に表示する第11手順と、を含むことを特徴とする請求項1に記載のデータ解析支援方法。
The first procedure includes:
A third procedure for setting a start point and an end point of the first time as a first execution start time and a first execution end time of the simulation, respectively;
A fourth procedure for setting a start point and an end point of the first time as a first output start time and a first output end time of the trace data based on the first simulator program, respectively;
A fifth procedure for executing the simulation based on the first simulator program and the second simulator program from the first execution start time to the first execution end time;
A sixth procedure for displaying the trace data based on the first simulator program from the first output start time to the first output end time on the display device,
The second procedure includes
A seventh procedure for receiving designation of a time within the first time from the input device;
An eighth procedure for setting a start point and an end point of the second time including the designated time as a second execution start time and a second execution end time of the simulation, respectively;
A ninth procedure for setting a start point and an end point of the second time including the specified time as a second output start time and a second output end time of the trace data based on the second simulator program, respectively;
A tenth procedure for executing the simulation based on the first simulator program and the second simulator program from the second execution start time to the second execution end time;
The eleventh procedure of displaying the trace data based on the second simulator program from the second output start time to the second output end time on the display device. Data analysis support method.
前記第2シミュレータプログラムに基づく前記トレースデータに含まれる前記時刻の間隔は、前記第1シミュレータプログラムに基づく前記トレースデータに含まれる前記時刻の間隔より狭く、
前記第6手順は、前記第1シミュレータプログラムに基づく前記トレースデータを、前記時刻に対する前記変数の値がプロットされた第1グラフとして表示する手順を含み、
前記第11手順は、前記第1グラフが表示された画面上に、前記第1グラフより時間分解能が高くなるように、前記第2シミュレータプログラムに基づく前記トレースデータを、前記時刻に対する前記変数の値がプロットされた第2グラフとして表示する手順を含むことを特徴とする請求項2に記載のデータ解析支援方法。
The time interval included in the trace data based on the second simulator program is narrower than the time interval included in the trace data based on the first simulator program,
The sixth procedure includes a procedure of displaying the trace data based on the first simulator program as a first graph in which the values of the variables with respect to the time are plotted,
In the eleventh procedure, the trace data based on the second simulator program is set to the value of the variable with respect to the time so that the time resolution is higher than that of the first graph on the screen on which the first graph is displayed. The data analysis support method according to claim 2, further comprising a step of displaying as a plotted second graph.
前記第10手順は、前記第1シミュレータプログラムに基づくトレースデータに含まれる変数の値に対応する時刻と、前記第2シミュレータプログラムに基づくトレースデータに含まれる変数の値に対応する時刻とが一致するか否かを判定し、一致する場合に、前記時刻と、前記時刻に対応する前記第1シミュレータプログラムに基づくトレースデータに含まれる変数の値と、前記時刻に対応する前記第2シミュレータプログラムに基づくトレースデータに含まれる変数の値と、を対応付けて出力する手順を含むことを特徴とする請求項2に記載のデータ解析支援方法。   In the tenth procedure, the time corresponding to the value of the variable included in the trace data based on the first simulator program matches the time corresponding to the value of the variable included in the trace data based on the second simulator program. The time, the value of the variable included in the trace data based on the first simulator program corresponding to the time, and the second simulator program corresponding to the time. The data analysis support method according to claim 2, further comprising a procedure for outputting the values of variables included in the trace data in association with each other. 前記第1シミュレータプログラム及び前記第2シミュレータプログラムの一方は、機械装置の動作をシミュレートするプログラムであり、もう一方は、前記機械装置を制御する電子機器の動作をシミュレートするプログラムであることを特徴とする請求項1に記載のデータ解析支援方法。   One of the first simulator program and the second simulator program is a program that simulates the operation of a mechanical device, and the other is a program that simulates the operation of an electronic device that controls the mechanical device. The data analysis support method according to claim 1, wherein 計算機システムにおいて実行されるデータ解析支援プログラムであって、
前記計算機システムは、演算装置と、前記演算装置に接続される記憶装置と、前記演算装置に接続されるインタフェースと、前記インタフェースに接続される入力装置と、前記インタフェースに接続される表示装置と、を備え、
前記記憶装置は、前記データ解析支援プログラムと、前記演算装置によって実行され、各々が互いに通信をして協調したシミュレーションを行う第1シミュレータプログラム及び第2シミュレータプログラムを保持し、
前記データ解析支援プログラムは、
設定された第1時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行させ、前記第1時間内の時刻と、当該時刻に対応する前記第1シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第1手順と、
前記第1時間に含まれ、かつ、前記第1時間より短い第2時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行させ、前記第2時間内の時刻と、当該時刻に対応する前記第2シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第2手順と、を前記演算装置に実行させることを特徴とするデータ解析支援プログラム。
A data analysis support program executed in a computer system,
The computer system includes an arithmetic device, a storage device connected to the arithmetic device, an interface connected to the arithmetic device, an input device connected to the interface, and a display device connected to the interface. With
The storage device holds a first simulator program and a second simulator program that are executed by the data analysis support program and the arithmetic unit, and that perform a simulation in which each communicates and cooperates,
The data analysis support program is:
The simulation by the first simulator program and the second simulator program is executed in the set first time, and the time in the first time and at least one variable in the first simulator program corresponding to the time A first procedure for outputting a plurality of sets of values as trace data;
The simulation by the first simulator program and the second simulator program is executed in a second time that is included in the first time and shorter than the first time, and corresponds to the time within the second time and the time A data analysis support program that causes the arithmetic unit to execute a second procedure for outputting a plurality of sets of at least one variable value in the second simulator program as trace data.
前記第1手順は、
前記第1時間の始点及び終点を、それぞれ、前記シミュレーションの第1実行開始時刻及び第1実行終了時刻として設定する第3手順と、
前記第1時間の始点及び終点を、それぞれ、前記第1シミュレータプログラムに基づく前記トレースデータの第1出力開始時刻及び第1出力終了時刻として設定する第4手順と、
前記第1実行開始時刻から前記第1実行終了時刻までの前記第1シミュレータプログラム及び前記第2シミュレータプログラムに基づく前記シミュレーションを実行させる第5手順と、
前記第1出力開始時刻から前記第1出力終了時刻までの前記第1シミュレータプログラムに基づく前記トレースデータを前記表示装置に表示させる第6手順と、を含み、
前記第2手順は、
前記入力装置から前記第1時間内の時刻の指定を受ける第7手順と、
前記指定された時刻を含む前記第2時間の始点及び終点を、それぞれ、前記シミュレーションの第2実行開始時刻及び第2実行終了時刻として設定する第8手順と、
前記指定された時刻を含む前記第2時間の始点及び終点を、それぞれ、前記第2シミュレータプログラムに基づく前記トレースデータの第2出力開始時刻及び第2出力終了時刻として設定する第9手順と、
前記第2実行開始時刻から前記第2実行終了時刻までの前記第1シミュレータプログラム及び前記第2シミュレータプログラムに基づく前記シミュレーションを実行させる第10手順と、
前記第2出力開始時刻から前記第2出力終了時刻までの前記第2シミュレータプログラムに基づく前記トレースデータを前記表示装置に表示させる第11手順と、を含むことを特徴とする請求項6に記載のデータ解析支援プログラム。
The first procedure includes:
A third procedure for setting a start point and an end point of the first time as a first execution start time and a first execution end time of the simulation, respectively;
A fourth procedure for setting a start point and an end point of the first time as a first output start time and a first output end time of the trace data based on the first simulator program, respectively;
A fifth procedure for executing the simulation based on the first simulator program and the second simulator program from the first execution start time to the first execution end time;
A sixth procedure for causing the display device to display the trace data based on the first simulator program from the first output start time to the first output end time,
The second procedure includes
A seventh procedure for receiving designation of a time within the first time from the input device;
An eighth procedure for setting a start point and an end point of the second time including the designated time as a second execution start time and a second execution end time of the simulation, respectively;
A ninth procedure for setting a start point and an end point of the second time including the specified time as a second output start time and a second output end time of the trace data based on the second simulator program, respectively;
A tenth procedure for executing the simulation based on the first simulator program and the second simulator program from the second execution start time to the second execution end time;
The eleventh procedure of causing the display device to display the trace data based on the second simulator program from the second output start time to the second output end time. Data analysis support program.
前記第2シミュレータプログラムに基づく前記トレースデータに含まれる前記時刻の間隔は、前記第1シミュレータプログラムに基づく前記トレースデータに含まれる前記時刻の間隔より狭く、
前記第6手順は、前記第1シミュレータプログラムに基づく前記トレースデータを、前記時刻に対する前記変数の値がプロットされた第1グラフとして表示させる手順を含み、
前記第11手順は、前記第1グラフが表示された画面上に、前記第1グラフより時間分解能が高くなるように、前記第2シミュレータプログラムに基づく前記トレースデータを、前記時刻に対する前記変数の値がプロットされた第2グラフとして表示させる手順を含むことを特徴とする請求項7に記載のデータ解析支援プログラム。
The time interval included in the trace data based on the second simulator program is narrower than the time interval included in the trace data based on the first simulator program,
The sixth procedure includes a procedure of displaying the trace data based on the first simulator program as a first graph in which the values of the variables with respect to the time are plotted,
In the eleventh procedure, the trace data based on the second simulator program is set to the value of the variable with respect to the time so that the time resolution is higher than that of the first graph on the screen on which the first graph is displayed. The data analysis support program according to claim 7, further comprising: a procedure for displaying as a second graph in which is plotted.
演算装置と、前記演算装置に接続される記憶装置と、前記演算装置に接続されるインタフェースと、前記インタフェースに接続される入力装置と、前記インタフェースに接続される表示装置と、を備えるデータ解析支援システムであって、
前記記憶装置は、前記演算装置によって実行され、各々が互いに通信をして協調したシミュレーションを行う第1シミュレータプログラム及び第2シミュレータプログラムを保持し、
前記演算装置は、
設定された第1時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行し、前記第1時間内の時刻と、当該時刻に対応する前記第1シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第1手順と、
前記第1時間に含まれ、かつ、前記第1時間より短い第2時間において前記第1シミュレータプログラム及び前記第2シミュレータプログラムによるシミュレーションを実行し、前記第2時間内の時刻と、当該時刻に対応する前記第2シミュレータプログラム内の少なくとも一つの変数の値と、の複数の組をトレースデータとして出力する第2手順と、を実行することを特徴とするデータ解析支援システム。
Data analysis support comprising: an arithmetic device; a storage device connected to the arithmetic device; an interface connected to the arithmetic device; an input device connected to the interface; and a display device connected to the interface. A system,
The storage device stores a first simulator program and a second simulator program that are executed by the arithmetic device and that perform a simulation in which each communicates and cooperates,
The arithmetic unit is:
The simulation by the first simulator program and the second simulator program is executed at the set first time, and the time within the first time and at least one variable in the first simulator program corresponding to the time are determined. A first procedure for outputting a plurality of sets of values as trace data;
The simulation is executed by the first simulator program and the second simulator program in a second time that is included in the first time and shorter than the first time, and corresponds to the time in the second time and the time A data analysis support system comprising: executing a second procedure of outputting a plurality of sets of at least one variable value in the second simulator program as trace data.
前記第1手順は、
前記第1時間の始点及び終点を、それぞれ、前記シミュレーションの第1実行開始時刻及び第1実行終了時刻として設定する第3手順と、
前記第1時間の始点及び終点を、それぞれ、前記第1シミュレータプログラムに基づく前記トレースデータの第1出力開始時刻及び第1出力終了時刻として設定する第4手順と、
前記第1実行開始時刻から前記第1実行終了時刻までの前記第1シミュレータプログラム及び前記第2シミュレータプログラムに基づく前記シミュレーションを実行する第5手順と、
前記第1出力開始時刻から前記第1出力終了時刻までの前記第1シミュレータプログラムに基づく前記トレースデータを前記表示装置に表示する第6手順と、を含み、
前記第2手順は、
前記入力装置から前記第1時間内の時刻の指定を受ける第7手順と、
前記指定された時刻を含む前記第2時間の始点及び終点を、それぞれ、前記シミュレーションの第2実行開始時刻及び第2実行終了時刻として設定する第8手順と、
前記指定された時刻を含む前記第2時間の始点及び終点を、それぞれ、前記第2シミュレータプログラムに基づく前記トレースデータの第2出力開始時刻及び第2出力終了時刻として設定する第9手順と、
前記第2実行開始時刻から前記第2実行終了時刻までの前記第1シミュレータプログラム及び前記第2シミュレータプログラムに基づく前記シミュレーションを実行する第10手順と、
前記第2出力開始時刻から前記第2出力終了時刻までの前記第2シミュレータプログラムに基づく前記トレースデータを前記表示装置に表示する第11手順と、を含むことを特徴とする請求項9に記載のデータ解析支援システム。
The first procedure includes:
A third procedure for setting a start point and an end point of the first time as a first execution start time and a first execution end time of the simulation, respectively;
A fourth procedure for setting a start point and an end point of the first time as a first output start time and a first output end time of the trace data based on the first simulator program, respectively;
A fifth procedure for executing the simulation based on the first simulator program and the second simulator program from the first execution start time to the first execution end time;
A sixth procedure for displaying the trace data based on the first simulator program from the first output start time to the first output end time on the display device,
The second procedure includes
A seventh procedure for receiving designation of a time within the first time from the input device;
An eighth procedure for setting a start point and an end point of the second time including the designated time as a second execution start time and a second execution end time of the simulation, respectively;
A ninth procedure for setting a start point and an end point of the second time including the specified time as a second output start time and a second output end time of the trace data based on the second simulator program, respectively;
A tenth procedure for executing the simulation based on the first simulator program and the second simulator program from the second execution start time to the second execution end time;
The eleventh procedure of displaying the trace data based on the second simulator program from the second output start time to the second output end time on the display device. Data analysis support system.
前記第2シミュレータプログラムに基づく前記トレースデータに含まれる前記時刻の間隔は、前記第1シミュレータプログラムに基づく前記トレースデータに含まれる前記時刻の間隔より狭く、
前記第6手順は、前記第1シミュレータプログラムに基づく前記トレースデータを、前記時刻に対する前記変数の値がプロットされた第1グラフとして表示する手順を含み、
前記第11手順は、前記第1グラフが表示された画面上に、前記第1グラフより時間分解能が高くなるように、前記第2シミュレータプログラムに基づく前記トレースデータを、前記時刻に対する前記変数の値がプロットされた第2グラフとして表示する手順を含むことを特徴とする請求項10に記載のデータ解析支援システム。
The time interval included in the trace data based on the second simulator program is narrower than the time interval included in the trace data based on the first simulator program,
The sixth procedure includes a procedure of displaying the trace data based on the first simulator program as a first graph in which the values of the variables with respect to the time are plotted,
In the eleventh procedure, the trace data based on the second simulator program is set to the value of the variable with respect to the time so that the time resolution is higher than that of the first graph on the screen on which the first graph is displayed. The data analysis support system according to claim 10, further comprising a procedure for displaying as a plotted second graph.
前記第10手順は、前記第1シミュレータプログラムに基づくトレースデータに含まれる変数の値に対応する時刻と、前記第2シミュレータプログラムに基づくトレースデータに含まれる変数の値に対応する時刻とが一致するか否かを判定し、一致する場合に、前記時刻と、前記時刻に対応する前記第1シミュレータプログラムに基づくトレースデータに含まれる変数の値と、前記時刻に対応する前記第2シミュレータプログラムに基づくトレースデータに含まれる変数の値と、を対応付けて出力する手順を含むことを特徴とする請求項10に記載のデータ解析支援システム。   In the tenth procedure, the time corresponding to the value of the variable included in the trace data based on the first simulator program matches the time corresponding to the value of the variable included in the trace data based on the second simulator program. The time, the value of the variable included in the trace data based on the first simulator program corresponding to the time, and the second simulator program corresponding to the time. The data analysis support system according to claim 10, further comprising a procedure for outputting the values of variables included in the trace data in association with each other. 前記第1シミュレータプログラム及び前記第2シミュレータプログラムの一方は、機械装置の動作をシミュレートするプログラムであり、もう一方は、前記機械装置を制御する電子機器の動作をシミュレートするプログラムであることを特徴とする請求項9に記載のデータ解析支援システム。   One of the first simulator program and the second simulator program is a program that simulates the operation of a mechanical device, and the other is a program that simulates the operation of an electronic device that controls the mechanical device. The data analysis support system according to claim 9, wherein the system is a data analysis support system.
JP2010204015A 2010-09-13 2010-09-13 Data analysis support method, data analysis support program, and data analysis support system Expired - Fee Related JP5610146B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010204015A JP5610146B2 (en) 2010-09-13 2010-09-13 Data analysis support method, data analysis support program, and data analysis support system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010204015A JP5610146B2 (en) 2010-09-13 2010-09-13 Data analysis support method, data analysis support program, and data analysis support system

Publications (2)

Publication Number Publication Date
JP2012059169A true JP2012059169A (en) 2012-03-22
JP5610146B2 JP5610146B2 (en) 2014-10-22

Family

ID=46056158

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010204015A Expired - Fee Related JP5610146B2 (en) 2010-09-13 2010-09-13 Data analysis support method, data analysis support program, and data analysis support system

Country Status (1)

Country Link
JP (1) JP5610146B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5863138B1 (en) * 2015-05-08 2016-02-16 横河ディジタルコンピュータ株式会社 Motion analysis device, motion analysis method, and motion analysis program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008262318A (en) * 2007-04-11 2008-10-30 Fujitsu Ten Ltd Software evaluation apparatus and signal monitoring method therefor
JP2010128722A (en) * 2008-11-26 2010-06-10 Canon Inc Simulation system, simulation method and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008262318A (en) * 2007-04-11 2008-10-30 Fujitsu Ten Ltd Software evaluation apparatus and signal monitoring method therefor
JP2010128722A (en) * 2008-11-26 2010-06-10 Canon Inc Simulation system, simulation method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5863138B1 (en) * 2015-05-08 2016-02-16 横河ディジタルコンピュータ株式会社 Motion analysis device, motion analysis method, and motion analysis program

Also Published As

Publication number Publication date
JP5610146B2 (en) 2014-10-22

Similar Documents

Publication Publication Date Title
US20070074168A1 (en) Automated step type determination
JP4907403B2 (en) Method and apparatus for simulating a microcomputer based system
EP3101547A1 (en) Control system, method, program and information processing device
US9471044B2 (en) Method for debugging of process or manufacturing plant solutions comprising multiple sub-systems
US20080183456A1 (en) Method for Testing an Electronic Control System
US8290755B2 (en) System for testing at least one electronic control unit and method
JP2008170998A (en) System and method for turbine control simulation
WO2013099438A1 (en) Computer system for cooperative simulation, embedded-system authentication method and program
JP5307820B2 (en) Apparatus and method for repair and diagnostic logic scan
US6275955B1 (en) Diagnostic software for facilitating flowchart programming
KR102198204B1 (en) Simulation device
JP6318500B2 (en) Simulation apparatus and simulation program
JP6442131B2 (en) Control system and control device
US8510708B2 (en) Method for optimizing a control program for actuators
JP5610146B2 (en) Data analysis support method, data analysis support program, and data analysis support system
JP4670719B2 (en) Numerical control device and simulation device for performing simulation using data from this numerical control device
JP6392817B2 (en) Simulation device
WO2015181921A1 (en) Programmable display device and rendering software
JP5314959B2 (en) Information processing apparatus, control method therefor, computer program, and storage medium
JP4811678B2 (en) PLC simulator apparatus, simulation program, and recording medium on which the program is recorded
JP5212508B2 (en) Debug device
KR101166128B1 (en) Software testing device and method thereof
JP5723675B2 (en) Simulation apparatus and simulation method
EP4036780A1 (en) Electronic control unit timing emulation
JP2006163657A (en) Playback simulator

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120322

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130220

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140121

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140204

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140313

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140404

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140603

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140707

TRDD Decision of grant or rejection written
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20140731

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140805

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20140731

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140819

R150 Certificate of patent or registration of utility model

Ref document number: 5610146

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees