JP2009193182A - Software development support system, support method, and program - Google Patents

Software development support system, support method, and program Download PDF

Info

Publication number
JP2009193182A
JP2009193182A JP2008031192A JP2008031192A JP2009193182A JP 2009193182 A JP2009193182 A JP 2009193182A JP 2008031192 A JP2008031192 A JP 2008031192A JP 2008031192 A JP2008031192 A JP 2008031192A JP 2009193182 A JP2009193182 A JP 2009193182A
Authority
JP
Japan
Prior art keywords
simulation
block
check
simulation model
block diagram
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
JP2008031192A
Other languages
Japanese (ja)
Other versions
JP5326292B2 (en
JP2009193182A5 (en
Inventor
Tatsunari Toyama
達斎 外山
Fujiya Unno
富士也 海野
Tamotsu Funatsu
有 船津
Akiyoshi Miyatsu
章好 宮津
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP2008031192A priority Critical patent/JP5326292B2/en
Publication of JP2009193182A publication Critical patent/JP2009193182A/en
Publication of JP2009193182A5 publication Critical patent/JP2009193182A5/ja
Application granted granted Critical
Publication of JP5326292B2 publication Critical patent/JP5326292B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To simplify the confirmation operation of a program without performing any actual machine tests of the program created based on a block diagram. <P>SOLUTION: Based on a code piece created as a partial source code corresponding to each block of a block diagram defined by a user, a simulation model is created by a simulation model creation function 2, an initial value is set to the input of a block by a simulation initial value setting function 9, the actual value of a block to be simulated is obtained by a simulation model value acquisition function 10, a value obtained from the simulation model and a value obtained from a target block are used, and simulation operation in block units is performed by a simulation model operation function 11. A simulation execution function 7 simulates the entire block diagram. All blocks of branching and loops are simulated by check blocks. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ソフトウェアの開発支援システムおよび支援方法に係り、特に組込みソフトウェアとしてブロック図を元にして作成するプログラムの動作確認に関する。   The present invention relates to a software development support system and support method, and more particularly to operation confirmation of a program created based on a block diagram as embedded software.

組込みソフトウェア開発では、演算に関する設計図としてブロック図を作成する。ブロック図の要素としてはブロックと線があり、これらが図面上で接続されることで、ソフトウェアとして実現したい内容を表現する。この設計図を元にして実装を行うにあたっては、実装者が設計図から設計情報を読み取りながら、手作業で実装が行われている。   In embedded software development, a block diagram is created as a design drawing related to computation. Elements of the block diagram include blocks and lines, and these are connected on the drawing to express contents to be realized as software. When mounting based on the design drawing, the mounting is performed manually while the implementer reads design information from the design drawing.

例えば、図19に示すように、開発対象の組込み機器が、IN1とIN2を加えて、その和にIN3を掛ける場合、入力から出力まで、加算や乗算を表すブロックを配置し、ブロック間を線で結んで演算順序を表現する。開発者は、作成したブロック図をもとにプログラムを作成し、専用のコンパイラを使用して作成したプログラムをコンパイルし、実機に組み込んで動作を試験する。   For example, as shown in FIG. 19, when an embedded device to be developed adds IN1 and IN2 and multiplies the sum by IN3, blocks representing addition and multiplication are arranged from input to output, and a line between the blocks is shown. The operation order is expressed by connecting with. The developer creates a program based on the created block diagram, compiles the created program using a dedicated compiler, and incorporates it into an actual machine to test the operation.

また、MATLAB/Simulinkに代表されるようなブロック図作成のためのアプリケーションでは、ブロック図を元にソースコードを出力するものもある(例えば、非特許文献1参照)。
MATLAB/Simulink(http://www.cybernet.co.jp/matlab/products/product_listing/simulink/)
Some applications for creating a block diagram, such as MATLAB / Simulink, output source code based on the block diagram (for example, see Non-Patent Document 1).
MATLAB / Simulink (http://www.cybernet.co.jp/matlab/products/product_listing/simlink/)

MATLAB/Simulinkに代表されるような従来のブロック図作成のためのアプリケーションでは、ブロック図の配線情報を元にソースコードを出力する。しかし、組み込みソフトウェアでは、少ないリソースで所望のプログラムとして実現しなければならないため、出力されたソースコードそのものでは組み込みソフトウェアとして利用するのは困難であることが多い。   In a conventional application for creating a block diagram as represented by MATLAB / Simulink, a source code is output based on wiring information in the block diagram. However, since embedded software must be realized as a desired program with few resources, the output source code itself is often difficult to use as embedded software.

例えば、一般的なブロック図を用いて出力されたソースコードには、変数(グローバル変数、ローカル変数など)やレジスタなどを指定するような内容は含まれていない。そのため、ブロック図を元に実装を行う際には、手作業によりコーディング作業が行われることになる。これにより、実装時間が多くかかる。また、手作業によるコーディングではブロック図と実装が乖離しやすくなる。   For example, the source code output using a general block diagram does not include contents for designating variables (global variables, local variables, etc.) and registers. Therefore, when mounting is performed based on the block diagram, coding work is performed manually. This takes a lot of mounting time. Also, manual coding tends to deviate from the block diagram and implementation.

このような課題を解消する手法として、各ブロックのコード片(ブロックに対応する部分的なソースコード)と作成したブロック図から、自動的にプログラムを作成することにより、開発の効率を向上させる手法を、本願出願人は同時に提案している。   As a method to solve such problems, a method to improve development efficiency by automatically creating a program from the code fragment of each block (partial source code corresponding to the block) and the created block diagram The applicant of the present application has proposed at the same time.

例えば、図20に示すように、ブロック図を構成する各ブロックの演算機能についてそれぞれコード片を自動生成し、各コード片の入出力設定によってプログラムを生成する。この場合、加算ブロックのコード片について、$outはブロック図のVAR1に対応し、$sign1は“+”、$in1はIN1、$sign2は“+”、$in2はIN2となり、乗算ブロックのコード片について、$outはOUT1、$in1はVAR1、$in2はIN3となるため、プログラムは図20の右下に示すように自動生成される。   For example, as shown in FIG. 20, code pieces are automatically generated for the arithmetic functions of the blocks constituting the block diagram, and a program is generated according to input / output settings of the code pieces. In this case, for the code fragment of the addition block, $ out corresponds to VAR1 in the block diagram, $ sign1 is "+", $ in1 is IN1, $ sign2 is "+", $ in2 is IN2, and the multiplication block code Since $ out is OUT1, $ in1 is VAR1, and $ in2 is IN3, the program is automatically generated as shown in the lower right of FIG.

このようにして開発されたプログラムは、専用のコンパイラを使用してコンパイルし、実機に組み込んで動作を試験する。この試験で不具合が発生すると、開発者は、図21に例を示すように、ブロック図の不具合箇所を修正し、修正したブロック図に対応するプログラムも修正する。修正したプログラムを再コンパイルして、再度実機に組み込んで試験を行う。あるいは、先にプログラムの不具合箇所を修正して、修正したプログラムに対応するブロック図を修正する。修正したプログラムを再コンパイルして、再度実機に組み込んで試験を行う。   The program developed in this way is compiled using a dedicated compiler, and incorporated into an actual machine to test the operation. When a failure occurs in this test, the developer corrects the failure portion of the block diagram and corrects the program corresponding to the corrected block diagram as shown in FIG. Recompile the modified program and re-install it into the actual machine for testing. Alternatively, the defect portion of the program is corrected first, and the block diagram corresponding to the corrected program is corrected. Recompile the modified program and re-install it into the actual machine for testing.

上記のブロック図とプログラムの両方を修正する作業は、開発対象の規模が大きくなると多くの手間と時間を要する。また、ブロック図とプログラムの両方に整合性を保ちながら修正しなければならないが、ブロック図を修正してもプログラムの修正を忘れてしまうことや、プログラムを修正してもブロック図の修正を忘れてしまうこともある。これは、次に同じような箇所を変更または修正しようとするときに間違いが発生するなどの問題が発生する。   The work for correcting both the block diagram and the program requires a lot of work and time as the scale of the development target increases. In addition, it must be corrected while maintaining consistency in both the block diagram and the program, but if you modify the block diagram, you forget to modify the program, or even if you modify the program, you forget to modify the block diagram. Sometimes. This causes problems such as an error occurring when the next similar part is changed or corrected.

なお、プログラムを自動生成するシステムでは、ブロック図を修正することでプログラムを再自動生成し、再度実機に組み込んで試験を行うことができ、開発者はブロック図を修正するだけで済み、プログラムの修正を行わなくても良い。しかし、再コンパイルと実機による試験作業には相変わらず手間と時間を要する。   In a system that automatically generates a program, the program can be re-generated automatically by correcting the block diagram, and it can be re-installed in the actual machine for testing, and the developer only needs to correct the block diagram. There is no need to make corrections. However, recompilation and testing with a real machine still require time and effort.

本発明の目的は、ブロック図を元にして作成したプログラムの実機試験を行うことなく、プログラムの動作確認を簡単にしたソフトウェアの開発支援システム、支援方法およびプログラムを提供することにある。   An object of the present invention is to provide a software development support system, a support method, and a program that make it easy to check the operation of a program without performing an actual machine test of the program created based on the block diagram.

前記の課題を解決するため、本発明は、以下のシステム、方法およびプログラムを特徴とする。   In order to solve the above problems, the present invention is characterized by the following system, method and program.

(システムの発明)
(1)ユーザがソフトウェアとして組み込もうとする任意の情報処理機能をブロック図として定義し、この定義されたブロック図に対応させたプログラムを自動生成するソフトウェアの開発支援システムであって、
前記プログラムの動作確認をシミュレーションによって行うシミュレーション装置は、
前記ブロック図を構成する各ブロックに対応する部分的なソースコードとして作成したコード片を元にシミュレーションモデルを作成するシミュレーションモデル作成手段と、
シミュレーション対象ブロックの入力に初期値を設定するシミュレーション初期値設定手段と、
前記シミュレーション対象ブロックの実際の値を取得するシミュレーションモデル値取得手段と、
前記シミュレーションモデルから取得した値と、シミュレーション対象ブロックから取得した値を使用してシミュレーション演算するシミュレーションモデル演算手段と、
前記シミュレーション演算結果を外部表示装置に動作確認用として表示する演算結果表示手段と、
を備えたことを特徴とする。
(Invention of the system)
(1) A software development support system in which an arbitrary information processing function that a user intends to incorporate as software is defined as a block diagram, and a program corresponding to the defined block diagram is automatically generated.
A simulation apparatus that performs the operation check of the program by simulation,
Simulation model creating means for creating a simulation model based on a code fragment created as a partial source code corresponding to each block constituting the block diagram;
Simulation initial value setting means for setting an initial value to the input of the simulation target block;
Simulation model value acquisition means for acquiring an actual value of the simulation target block;
A simulation model calculation means for performing a simulation calculation using the value acquired from the simulation model and the value acquired from the simulation target block;
Calculation result display means for displaying the simulation calculation result on the external display device for operation confirmation;
It is provided with.

(2)前記シミュレーションモデルの作成に際し、オペレータモデルに演算対象のシミュレーションモデルを関連付ける演算対象関連付け手段、およびオペランドモデルにブロック図の実際の情報を関連付けるブロック図情報関連付け手段と、
入力される現在値を指定した条件でチェックするチェックブロックを作成するチェックブロック作成手段と、
前記チェックブロックをブロック図のブロック間の接続線に関連付けるチェックブロック関連付け手段と、
前記チェックブロックを含めた前記シミュレーションモデルの全体の入力に初期値を設定するシミュレーション初期値設定手段と、
前記初期値が設定されたシミュレーションモデルのブロック図の線のつながりに従って、シミュレーションを順次実行するシミュレーションモデル実行手段と、
前記チェックブロックが現在値を指定した条件でチェックした結果を外部表示装置に動作確認用として表示するチェック結果表示手段と、
を備えたことを特徴とする。
(2) When creating the simulation model, a calculation target associating means for associating a simulation model as a calculation target with an operator model, and a block diagram information associating means for associating actual information of a block diagram with an operand model;
A check block creation means for creating a check block for checking a current value to be input according to a specified condition;
Check block association means for associating the check block with a connection line between blocks in the block diagram;
Simulation initial value setting means for setting an initial value to the entire input of the simulation model including the check block;
Simulation model execution means for sequentially executing simulations according to the connection of the lines of the block diagram of the simulation model in which the initial values are set;
A check result display means for displaying the result of checking the check block under a condition specifying the current value on the external display device for operation confirmation;
It is provided with.

(3)前記シミュレーションモデルにブレークポイント用チェックブロックを作成するブレークポイント用チェックブロック作成手段と、
シミュレーション実行を前記ブレークポイント用チェックブロックの所で一時停止させるシミュレーション一時停止手段と、
前記一時停止させたブレークポイント用チェックブロックを強調表示するブレークポイント強調表示手段と、
前記一時停止しているときに、シミュレーションモデルの現在値を表示するシミュレーションモデル値表示手段と、
前記一時停止しているときに、シミュレーションを再開するシミュレーション再開手段と、
を備えたことを特徴とする。
(3) Breakpoint check block creation means for creating a breakpoint check block in the simulation model;
Simulation suspension means for temporarily suspending simulation execution at the breakpoint check block;
Breakpoint highlighting means for highlighting the paused breakpoint check block;
Simulation model value display means for displaying the current value of the simulation model when the suspension is in progress;
Simulation restarting means for restarting the simulation when the suspension is in progress;
It is provided with.

(4)前記ブロック図中のすべてのブロックに対して、一括してシミュレーションモデルを作成する全ブロックシミュレーションモデル作成手段を備え、
前記シミュレーションモデル実行手段は、シミュレーションモデルが作成された全ブロック図のうち、各ブロックが単線で接続された単線ブロック図に対応するシミュレーションモデルに対して線単位のシミュレーションを行う手段を備えたことを特徴とする。
(4) For all the blocks in the block diagram, comprising all block simulation model creation means for creating a simulation model at once,
The simulation model execution means includes means for performing line-by-line simulation on a simulation model corresponding to a single line block diagram in which each block is connected by a single line among all block diagrams in which the simulation model is created. Features.

(5)ブロック図のブロック間の通過を確認するための通過用チェックブロックを作成し、この通過用チェックブロックを分岐またはループを含むブロック図中のすべての線に対して配置する通過用チェックブロック作成手段と、
前記シミュレーション実行手段によりシミュレーションを行ったときに、前記通過用チェックブロックのチェック有無を切り替えるチェック有無切替手段と、
前記チェック有無が「無」になる通過用チェックブロックを強調表示するチェック無強調表示手段とを備えたことを特徴とする。
(5) A check block for passage for confirming passage between blocks in the block diagram is created, and this check block for passage is arranged for all lines in the block diagram including branches or loops. Creating means;
When performing simulation by the simulation execution means, check presence / absence switching means for switching presence / absence check of the passing check block;
There is provided a non-check highlighting means for highlighting a check block for passage in which the presence / absence of the check is “none”.

(方法の発明)
(6)ユーザがソフトウェアとして組み込もうとする任意の情報処理機能をブロック図として定義し、この定義されたブロック図に対応させたプログラムを自動生成するソフトウェアの開発支援方法であって、
前記プログラムの動作確認をシミュレーションによって行うシミュレーション装置は、
前記ブロック図を構成する各ブロックに対応する部分的なソースコードとして作成したコード片を元にシミュレーションモデルを作成するシミュレーションモデル作成ステップと、
シミュレーション対象ブロックの入力に初期値を設定するシミュレーション初期値設定ステップと、
前記シミュレーション対象ブロックの実際の値を取得するシミュレーションモデル値取得ステップと、
前記シミュレーションモデルから取得した値と、シミュレーション対象ブロックから取得した値を使用してシミュレーション演算するシミュレーションモデル演算ステップと、
前記シミュレーション演算結果を外部表示装置に動作確認用として表示する演算結果表示ステップと、
を備えたことを特徴とする。
(Invention of method)
(6) A software development support method in which an arbitrary information processing function that a user intends to incorporate as software is defined as a block diagram, and a program corresponding to the defined block diagram is automatically generated,
A simulation apparatus that performs the operation check of the program by simulation,
A simulation model creating step of creating a simulation model based on a code fragment created as a partial source code corresponding to each block constituting the block diagram;
A simulation initial value setting step for setting an initial value to an input of a simulation target block;
A simulation model value acquisition step of acquiring an actual value of the simulation target block;
A simulation model calculation step of performing a simulation calculation using the value acquired from the simulation model and the value acquired from the simulation target block;
A calculation result display step for displaying the simulation calculation result on the external display device for operation confirmation;
It is provided with.

(7)前記シミュレーションモデルの作成に際し、オペレータモデルに演算対象のシミュレーションモデルを関連付ける演算対象関連付けステップ、およびオペランドモデルにブロック図の実際の情報を関連付けるブロック図情報関連付けステップと、
入力される現在値を指定した条件でチェックするチェックブロックを作成するチェックブロック作成ステップと、
前記チェックブロックをブロック図のブロック間の接続線に関連付けるチェックブロック関連付けステップと、
前記チェックブロックを含めた前記シミュレーションモデルの全体の入力に初期値を設定するシミュレーション初期値設定ステップと、
前記初期値が設定されたシミュレーションモデルのブロック図の線のつながりに従って、シミュレーションを順次実行するシミュレーションモデル実行ステップと、
前記チェックブロックが現在値を指定した条件でチェックした結果を外部表示装置に動作確認用として表示するチェック結果表示ステップと、
を備えたことを特徴とする。
(7) When creating the simulation model, an operation target associating step for associating a simulation model to be operated with an operator model, and a block diagram information associating step for associating actual information of a block diagram with an operand model;
A check block creation step for creating a check block for checking a current value to be input according to a specified condition;
Associating the check block with a connection line between blocks in the block diagram;
A simulation initial value setting step for setting an initial value to the entire input of the simulation model including the check block;
A simulation model execution step for sequentially executing simulations according to the connection of lines in the block diagram of the simulation model in which the initial values are set;
A check result display step in which the check block displays a result of checking under a condition in which a current value is specified for operation confirmation on an external display device;
It is provided with.

(8)前記シミュレーションモデルにブレークポイント用チェックブロックを作成するブレークポイント用チェックブロック作成ステップと、
シミュレーション実行を前記ブレークポイント用チェックブロックの所で一時停止させるシミュレーション一時停止ステップと、
前記一時停止させたブレークポイント用チェックブロックを強調表示するブレークポイント強調表示ステップと、
前記一時停止しているときに、シミュレーションモデルの現在値を表示するシミュレーションモデル値表示ステップと、
前記一時停止しているときに、シミュレーションを再開するシミュレーション再開ステップと、
を備えたことを特徴とする。
(8) a breakpoint check block creating step for creating a breakpoint check block in the simulation model;
A simulation pausing step for pausing simulation execution at the breakpoint check block;
A breakpoint highlighting step for highlighting the paused breakpoint check block;
A simulation model value display step for displaying a current value of the simulation model when the suspension is in progress;
A simulation resuming step of resuming a simulation when the pausing is performed;
It is provided with.

(9)前記ブロック図中のすべてのブロックに対して、一括してシミュレーションモデルを作成する全ブロックシミュレーションモデル作成ステップを備え、
前記シミュレーションモデル実行ステップは、シミュレーションモデルが作成された全ブロック図のうち、各ブロックが単線で接続された単線ブロック図に対応するシミュレーションモデルに対して線単位のシミュレーションを行うステップを備えたことを特徴とする。
(9) An all-block simulation model creation step for creating a simulation model at once for all the blocks in the block diagram;
The simulation model execution step includes a step of performing line-by-line simulation on a simulation model corresponding to a single line block diagram in which each block is connected by a single line among all block diagrams in which the simulation model is created. Features.

(10)ブロック図のブロック間の通過を確認するための通過用チェックブロックを作成し、この通過用チェックブロックを分岐またはループを含むブロック図中のすべての線に対して配置する通過用チェックブロック作成ステップと、
前記シミュレーション実行ステップによりシミュレーションを行ったときに、前記通過用チェックブロックのチェック有無を切り替えるチェック有無切替ステップと、
前記チェック有無が「無」になる通過用チェックブロックを強調表示するチェック無強調表示ステップとを備えたことを特徴とする。
(10) A passing check block for creating a passing check block for confirming passage between blocks in the block diagram, and arranging this passing check block for all lines in the block diagram including a branch or loop Creation steps,
When performing a simulation by the simulation execution step, a check presence / absence switching step of switching the presence / absence of the check block for passing,
There is a non-check highlighting step of highlighting a passing check block in which the presence / absence of the check is “None”.

(プログラムの発明)
(11)上記(6)〜(10)に記載のソフトウェアの開発支援方法における処理ステップをコンピュータで実行可能に構成したことを特徴とする。
(Invention of the program)
(11) The processing steps in the software development support method described in the above (6) to (10) are configured to be executed by a computer.

以上のとおり、本発明によれば、ユーザがソフトウェアとして組み込もうとする任意の情報処理機能をブロック図として定義し、この定義されたブロック図の動作確認はブロック単体または全体のシミュレーションを行い、このシミュレーション結果から動作確認するため、ブロック図を元にして作成したプログラムの実機試験を行うことなく、プログラムの動作確認が簡単になる。   As described above, according to the present invention, an arbitrary information processing function that a user intends to incorporate as software is defined as a block diagram, and the operation check of the defined block diagram performs simulation of a single block or the whole, Since the operation is confirmed from the simulation result, the operation of the program can be easily confirmed without performing an actual machine test of the program created based on the block diagram.

(実施形態1)
図1は、本実施形態を示すシミュレーション装置の構成図であり、コンピュータとその資源を利用したソフトウェアで各機能が実現される。
(Embodiment 1)
FIG. 1 is a configuration diagram of a simulation apparatus showing the present embodiment, and each function is realized by software using a computer and its resources.

各機能は、組み込みソフトウェアを構成する各ブロック図について個々に作成されたコード片を保存するブロックデータベース1と、このデータベースに保存するコード片からオペレータモデルとオペランドモデル構成のシミュレーションモデルを作成するシミュレーションモデル作成機能2と、シミュレーションモデルのうち、オペレータモデルに演算対象のシミュレーションモデルを関連付ける演算対象関連付け機能3と、シミュレーションモデルのうち、オペランドモデルにブロック図の実際の情報を関連付けるブロック図情報関連付け機能4と、作成したシミュレーションモデルをデータベース5に保存するシミュレーションモデル保存機能6を備える。   Each function includes a block database 1 for storing individually generated code pieces for each block diagram constituting the embedded software, and a simulation model for generating a simulation model of an operator model and an operand model configuration from the code pieces stored in the database. A creation function 2; a computation object association function 3 for associating a simulation model to be computed with an operator model in a simulation model; and a block diagram information association function 4 for associating actual information of a block diagram with an operand model among simulation models. A simulation model storage function 6 for storing the created simulation model in the database 5 is provided.

シミュレーションモデル実行機能7は、シミュレーションモデル作成機能2で作成したシミュレーションモデル、またはシミュレーションモデルデータベース5から取得機能8が取得するシミュレーションモデルについて、シミュレーションを実行する。このシミュレーションの実行は、後述のように、多数のブロックの接続によって1つのまとまった機能をもたせたプログラムについて、その一連の動作の正常/異常をチェックする場合などに利用する。   The simulation model execution function 7 executes a simulation for the simulation model created by the simulation model creation function 2 or the simulation model acquired by the acquisition function 8 from the simulation model database 5. As will be described later, this simulation is used to check the normal / abnormality of a series of operations for a program having a single function by connecting a large number of blocks.

ブロック単体に対応するプログラムの動作チェックのためのシミュレーションは機能9〜15によって実行される。これら各機能は、シミュレーションモデルデータベース5からシミュレーションモデル取得機能8が取得するシミュレーション対象ブロック単体の入力に初期値を設定するシミュレーション初期値設定機能9と、取得したシミュレーション対象ブロック単体について、ブロックデータベース1から実際の値を取得するシミュレーションモデル値取得機能10と、シミュレーションモデルで取得した値と演算対象から取得した値を使用してシミュレーション演算するシミュレーションモデル演算機能11と、シミュレーション演算結果を演算結果データベース12に保存するシミュレーションモデル演算結果保存機能13と、演算結果データベース12から演算結果の一部またはすべてを取得する演算結果取得機能14と、取得した演算結果を外部表示装置(ディスプレイなど)に表示する演算結果表示機能15で構成される。   A simulation for checking the operation of a program corresponding to a single block is executed by functions 9-15. Each of these functions includes a simulation initial value setting function 9 for setting an initial value for an input of a simulation target block obtained by the simulation model acquisition function 8 from the simulation model database 5 and a block database 1 for the obtained simulation target block alone. A simulation model value acquisition function 10 for acquiring an actual value, a simulation model calculation function 11 for performing a simulation calculation using a value acquired from the simulation model and a value acquired from a calculation target, and a simulation calculation result in the calculation result database 12 A simulation model calculation result storage function 13 for saving, a calculation result acquisition function 14 for acquiring part or all of the calculation results from the calculation result database 12, and the acquired calculation results Part display device composed of a calculation result display function 15 to be displayed on (a display, etc.).

上記の各機能によるブロック単体のシミュレーションについて、詳細に説明する。まず、シミュレーションモデル作成機能2はブロックデータベース1に保存されるブロック単体のコード片からシミュレーションモデルを作成する。このモデルは、図2に示すように、演算内容を指示する記号などのオペレータを表すオペレータモデルと、演算対象となる値や変数などのオペランドを表すオペランドモデルに分離構成する。   The simulation of a single block by the above functions will be described in detail. First, the simulation model creation function 2 creates a simulation model from a code piece of a single block stored in the block database 1. As shown in FIG. 2, this model is divided into an operator model that represents an operator such as a symbol that indicates the content of an operation, and an operand model that represents an operand such as a value or variable to be operated.

オペレータモデルは、例えば、図2の加算ブロックのコード片では、代入を表す=(イコール)オペレータや、加算を表す+(プラス)オペレータが該当する。これら以外のオペレータモデルがあっても良い。オペランドモデルは、例えば、図2の加算ブロックのコード片では、$in1や$in2の変数名が該当する。これら以外のオペランドモデルがあっても良い。   The operator model corresponds to, for example, the = (equal) operator representing substitution and the + (plus) operator representing addition in the code piece of the addition block in FIG. There may be operator models other than these. For example, the operand model corresponds to a variable name of $ in1 or $ in2 in the code fragment of the addition block in FIG. There may be other operand models.

オペレータモデルとオペランドモデルと共に、シミュレーションモデル作成機能2により、ブロック図のブロックが持っているコード片から、図2中に示すように、オペレータを中心にしたツリー形式のシミュレーションモデルを作成する。   Together with the operator model and the operand model, the simulation model creation function 2 creates a simulation model in the form of a tree with the operator at the center, as shown in FIG.

演算対象関連付け機能3は、オペレータモデルに関連する他のオペレータモデルまたはオペランドモデルを関連付ける。例えば、図2の加算ブロックでは、代入を表す=(イコール)オペレータをシミュレーションモデルのツリーのトップに配置し、代入される左辺「$outオペランド」と、代入する右辺の演算結果を持つ「+(プラス)オペレータ」を関連付ける。加算を表す+(プラス)オペレータは、足される左辺「$in1オペランド」と、足す右辺「$in2オペランド」を関連付け、「$in1オペランド」と「$in2オペランド」にはそれぞれ符合を表す「$sign1オペランド」と「$sign2オペランド」を関連付ける。   The operation target association function 3 associates other operator models or operand models related to the operator model. For example, in the addition block of FIG. 2, an = (equal) operator representing substitution is placed at the top of the tree of the simulation model, and the left side “$ out operand” to be substituted and the calculation result of the right side to be substituted “+ ( Associate a “plus) operator”. The + (plus) operator representing addition associates the left side “$ in1 operand” to be added with the right side “$ in2 operand” to be added, and “$ in1 operand” and “$ in2 operand” respectively represent signs. The “sign1 operand” is associated with the “$ sign2 operand”.

さらに、ブロック図情報関連付け機能4は、各オペランドのうち、”$”で始まるオペランドについて、ブロック図の実際の情報(変数や符号など)に関連付ける。例えば、図2の加算ブロックの場合、$outはOUT1、$in1はIN1、$in2はIN2、$sign1は“+”、$sign2は“+”をそれぞれ関連付ける。   Further, the block diagram information associating function 4 associates operands beginning with “$” among the operands with actual information (variables, codes, etc.) in the block diagram. For example, in the addition block of FIG. 2, $ out is associated with OUT1, $ in1 is associated with IN1, $ in2 is associated with IN2, $ sign1 is associated with "+", and $ sign2 is associated with "+".

シミュレーションモデル作成機能2は、コード片の一行毎に、ブロック単体のシミュレーションモデルを作成し、シミュレーションモデル保存機能6により、すべてのステートメントに対するシミュレーションモデルをデータベース5に順番に保存する。例えば、図3の加減算ブロックでは、先ず、一行目“var=$in1+$in2”でシミュレーションモデルをツリーで作成し、次に、二行目“out=var−$in3”でシミュレーションモデルをツリーで作成し、それらを順番にデータベース5に保存する。   The simulation model creation function 2 creates a simulation model of a single block for each line of code pieces, and the simulation model storage function 6 stores the simulation models for all statements in the database 5 in order. For example, in the addition / subtraction block of FIG. 3, first, a simulation model is created with a tree in the first line “var = $ in1 + $ in2”, and then a simulation model is created with a tree in the second line “out = var− $ in3”. They are created and stored in the database 5 in order.

シミュレーションモデル演算機能11は、上記で作成したブロック単体のシミュレーションモデルのシミュレーションを実行する。このシミュレーションは、シミュレーションモデル取得機能8によりデータベース5から取得したシミュレーションモデルの初期値をシミュレーションモデル初期値設定機能9により設定する。一方、シミュレーションモデル値取得機能10は、関連付けられているオペレータモデルまたはオペランドモデルから値を取得する。シミュレーションモデル演算機能11は、シミュレーションモデル初期値とオペランドモデルの値からブロック単体のシミュレーション演算を行う。この演算結果はシミュレーションモデル演算結果保存機能13により、演算結果データベース12に保存する。   The simulation model calculation function 11 executes a simulation of the simulation model of the single block created above. In this simulation, the initial value of the simulation model acquired from the database 5 by the simulation model acquisition function 8 is set by the simulation model initial value setting function 9. On the other hand, the simulation model value acquisition function 10 acquires a value from the associated operator model or operand model. The simulation model calculation function 11 performs a simulation calculation for a single block from the simulation model initial value and the operand model value. This calculation result is stored in the calculation result database 12 by the simulation model calculation result storage function 13.

図4に示すシミュレーションモデルのシミュレーションの場合、シミュレーション対象となる加算ブロックの入力IN1とIN2に初期値を設定し(S1)、シミュレーションモデルツリーの先頭にある「=(イコール)オペレータ」が右辺の「+オペレータ」から演算結果を取得する(S2)。「+オペレータ」は左辺の$in1オペランドと右辺の$in2オペランドの値を取得し(S3)、これら取得した値の和を計算し(S4)、この演算結果を変換結果データベース12に保存する(S5)。   In the simulation of the simulation model shown in FIG. 4, initial values are set for the inputs IN1 and IN2 of the addition block to be simulated (S1), and the “= (equal) operator” at the top of the simulation model tree is “ The calculation result is acquired from “+ operator” (S2). The “+ operator” acquires the values of the $ in1 operand on the left side and the $ in2 operand on the right side (S3), calculates the sum of these acquired values (S4), and stores the calculation result in the conversion result database 12 ( S5).

「=オペレータ」は、左辺の値OUT1に、右辺の「+(プラス)オペレータ」の演算結果を取得して代入し(S6)、「$outオペランド」は代入値を演算結果データベース12に保存する(S7)。このとき、「+オペレータ」は、左辺の値IN1(プラスである)と右辺の値IN2(プラスである)を加え、演算結果のIN1とIN2の和を演算結果データベース12に保存する。   “= Operator” acquires and substitutes the calculation result of “+ (plus) operator” on the right side into the value OUT1 on the left side (S6), and “$ out operand” stores the substitution value in the calculation result database 12. (S7). At this time, the “+ operator” adds the value IN1 (plus) on the left side and the value IN2 (plus) on the right side, and stores the sum of the computation results IN1 and IN2 in the computation result database 12.

同様に、他のシミュレーションモデル(ブロック単体)の動作について演算を実行する。これらの演算結果は、演算結果取得機能14が演算結果データベース12から取得し、演算結果表示機能15により表示する。演算結果をそのまま文字列として表示しても良いし、演算結果をグラフにして表示しても良い。   Similarly, an operation is performed on the operation of another simulation model (block unit). These calculation results are acquired from the calculation result database 12 by the calculation result acquisition function 14 and displayed by the calculation result display function 15. The calculation result may be displayed as a character string as it is, or the calculation result may be displayed as a graph.

したがって、作成されたブロック単体または全体のプログラムに入力を設定して、機能7または11により演算結果を取得するシミュレーションモデルの実行によって、そのブロックの動作を確認することができる。特に、ブロック単体について、開発者がそのブロック図作成段階で個々に動作確認をすることができ、動作に異常があれば当該ブロック図またはプログラムの修正を行うことができ、動作確認には従来の再コンパイルと実機による試験作業という手間と時間を必要としなくなる。   Therefore, the operation of the block can be confirmed by executing the simulation model in which the input is set to the created single block or the entire program and the calculation result is obtained by the function 7 or 11. In particular, for a single block, the developer can check the operation individually at the stage of creating the block diagram, and if the operation is abnormal, the block diagram or program can be modified. Eliminates the time and effort required for recompilation and testing with actual equipment.

(実施形態2)
図5は、本実施形態を示すシミュレーション装置の構成図であり、チェックブロックによる動作チェック機能を付加したシミュレーションを可能にする。なお、各ブロック図は分岐やループのない単純な場合で説明する。
(Embodiment 2)
FIG. 5 is a block diagram of the simulation apparatus showing the present embodiment, which enables simulation with an operation check function using a check block. Note that each block diagram will be described in a simple case with no branches or loops.

同図が図1と異なる機能構成について説明する。ユーザ定義ブロック作成装置21は、ユーザが定義したブロック図について、そのコード片を自動作成する。この装置21で順次作成するブロック図に対し、チェックブロック作成機能22は現在値を指定した条件でチェックするチェックブロックを作成し、チェックブロック関連付け機能23は作成したチェックブロックをブロック図の線に関連付ける。これら機能22,23によるチェックブロックと関連付け情報はブロックデータベース1に保存するブロックと一緒に書き込まれる。また、機能23による関連付け情報はシミュレーションモデル作成機能2によるモデル作成に際して一緒に書き込まれる。   A functional configuration different from that in FIG. 1 will be described. The user-defined block creation device 21 automatically creates a code fragment for a block diagram defined by the user. With respect to the block diagram sequentially created by the device 21, the check block creation function 22 creates a check block to be checked under the condition that the current value is designated, and the check block association function 23 associates the created check block with a line in the block diagram. . The check blocks and association information by these functions 22 and 23 are written together with the blocks stored in the block database 1. Further, the association information by the function 23 is written together with the model creation by the simulation model creation function 2.

機能1〜9は、実施形態1と同様に、ブロック図全体のシミュレーションを行う。このうち、シミュレーション初期値設定機能9はブロック図全体のシミュレーションモデルのうち、ブロック単体別に初期値を設定する。また、シミュレーションモデル実行機能7は、ブロック図全体の入力から、ブロック図の線のつながりに従って、シミュレーションモデルのシミュレーションを順次実行する。   Functions 1 to 9 simulate the entire block diagram as in the first embodiment. Among these, the simulation initial value setting function 9 sets an initial value for each block alone in the simulation model of the entire block diagram. The simulation model execution function 7 sequentially executes simulations of the simulation model in accordance with the connection of the lines in the block diagram from the input of the entire block diagram.

次に、値保存機能24は、シミュレーションモデル取得機能8で取得するモデルに一緒に書き込まれているチェックブロックを抽出し、このチェックブロックに関連付けられている線の現在値を値データベース25に保存する。値取得機能26は値データペース25から値の一部またはすべてを取得し、チェック結果保存機能27はチェックブロックが現在値を指定した条件でチェックした結果をチェック結果データベース28に保存する。チェック結果取得機能29はチェック結果データベース28からチェック結果の一部またはすべてを取得し、取得したチェック結果をチェック結果表示機能30が外部表示装置(ディスプレイなど)に表示する。   Next, the value storage function 24 extracts the check block written together with the model acquired by the simulation model acquisition function 8 and stores the current value of the line associated with this check block in the value database 25. . The value acquisition function 26 acquires a part or all of the values from the value data pace 25, and the check result storage function 27 stores the result checked by the check block under the condition specifying the current value in the check result database 28. The check result acquisition function 29 acquires part or all of the check results from the check result database 28, and the check result display function 30 displays the acquired check results on an external display device (display or the like).

上記の各追加機能によるブロック全体のシミュレーションにおけるチェックブロックについて、詳細に説明する。   The check block in the simulation of the entire block by each of the additional functions will be described in detail.

まず、チェックブロックを作成する。開発者は、ユーザ定義ブロック作成装置21によるブロック作成に際して、ブロック図の線上の値が現在どのような値になっているか、また開発者が指定した条件に合致しているかをチェックする、チェックブロックを用意しておく。   First, create a check block. When a block is created by the user-defined block creation device 21, the developer checks the value on the line of the block diagram at present and checks whether the value matches the condition specified by the developer. Prepare.

このチェック条件は、例えば、図6にチェックブロックとそのコード片を示すように、上限チェックでは現在値が指定した上限を超えたか否かをチェックし、範囲チェックでは現在値が指定した範囲に入っているか否かをチェックする。チェックブロックはこれら以外でも良い。開発者は、チェックブロック作成機能22の実行で、値をチェックしたいブロック図の線上にチェックブロック配置し、チェックブロック関連付け機能23の実行で線とチェックブロックを関連付ける。   For example, as shown in FIG. 6, the check condition is to check whether the current value exceeds the specified upper limit in the upper limit check, and the current value is in the specified range in the range check. Check if it is. The check block may be other than these. The developer places the check block on the line of the block diagram whose value is to be checked by executing the check block creation function 22, and associates the line and the check block by executing the check block association function 23.

シミュレーションモデル作成機能2は、実施形態1と同様に、データベース1に保存されるコード片とブロック図の接続情報とから、シミュレーションモデルを作成する。このモデル作成は、オベレータを表すオペレータモデルを基本に、オペランドを表すオペランドモデルと共に、ツリー形式でシミュレーションモデルを作成する。実施形態1と異なる点は、ブロック図の入力から出力に向かって、線をたどってシミュレーションモデルを作成する点にある。例えば、図7の場合、入力から、加算ブロック、乗算ブロック、出力の順にブロックが存在するので、シミュレーションモデルは、加算ブロックのシミュレーションモデル、乗算ブロックのシミュレーションモデルの順に作成する。   Similar to the first embodiment, the simulation model creation function 2 creates a simulation model from the code pieces stored in the database 1 and the connection information of the block diagram. In this model creation, a simulation model is created in a tree format together with an operand model representing an operand based on an operator model representing an operator. The difference from the first embodiment is that a simulation model is created by following a line from the input to the output of the block diagram. For example, in the case of FIG. 7, since there are blocks in the order of input, addition block, multiplication block, and output, the simulation model is created in the order of the simulation model of the addition block and the simulation model of the multiplication block.

機能7によるシミュレーションモデルの実行は、シミュレーションモデル初期値設定機能9により初期値が入力されたモデルに対して行う。チェックブロックは、値保存機能24がモデル上で関連付けられている線から現在値を取得し、その値を値データベース25に保存しておく。また、チェック結果保存機能27により、チェックの結果(例えば、正常、エラー、警告など)をチェック結果データベース28に保存しておく。外部からは、値取得機能26により値データベース25の一部またはすべての値を取得し、チェック結果取得機能29によりチェック結果データベース28の一部またはすべての値を取得する。   The execution of the simulation model by the function 7 is performed on the model to which the initial value is input by the simulation model initial value setting function 9. In the check block, the value storage function 24 acquires the current value from the line associated on the model, and stores the value in the value database 25. Further, the check result storage function 27 stores the check result (for example, normality, error, warning, etc.) in the check result database 28. From the outside, a part or all of the values in the value database 25 are acquired by the value acquisition function 26, and a part or all of the values of the check result database 28 are acquired by the check result acquisition function 29.

例えば、図8に示すブロック構成に対してチェックブロックC11,C12が追加されている場合、チェックブロックC11は関連付けられている線から値VAR1を取得し(S11)、この値がチェック条件を満たしているか否かをチェックし(S12)、このチェック結果をデータベース29に保存する(S13)。同様に、チェックブロックC12は関連付けられている線から値OUT1を取得し(S14)、この値のチェックと保存を行う(S15、S16)。   For example, when check blocks C11 and C12 are added to the block configuration shown in FIG. 8, the check block C11 acquires the value VAR1 from the associated line (S11), and this value satisfies the check condition. It is checked whether or not (S12), and the check result is stored in the database 29 (S13). Similarly, the check block C12 acquires the value OUT1 from the associated line (S14), and checks and stores this value (S15, S16).

以上のチェックブロックの付加とそのチェック処理は、すべてのシミュレーションモデルについてのシミュレーション時に繰り返し実行し、チェック結果表示機能によりチェック結果を表示する。チェック結果は、そのまま文字列として表示しても良いし、チェック結果をグラフや表形式にして表示しても良い。   The above check block addition and its check processing are repeatedly executed during simulation for all simulation models, and the check result is displayed by the check result display function. The check result may be displayed as a character string as it is, or the check result may be displayed in a graph or table format.

したがって、ブロック図にチェックブロックを設定しておき、順次シミュレーションモデルを実行することで、ブロック単体に設定したチェックブロック部位の値から動作確認が容易になり、さらにブロック図全体のシミュレーションでの動作確認作業が容易になる。   Therefore, by setting the check block in the block diagram and executing the simulation model sequentially, it is easy to check the operation from the value of the check block part set in the single block, and further check the operation in the simulation of the entire block diagram Work becomes easy.

(実施形態3)
図9は、本実施形態を示すシミュレーション装置の要部構成図であり、ブロック図全体のシミュレーションに、ブレークポイントを設定したシミュレーションを可能にする。なお、各ブロック図は分岐やループのない単純な場合で説明する。
(Embodiment 3)
FIG. 9 is a configuration diagram of a main part of the simulation apparatus showing the present embodiment, and enables a simulation in which breakpoints are set in the simulation of the entire block diagram. Note that each block diagram will be described in a simple case with no branches or loops.

ブレークポイント用チェックブロック作成機能31は、特定の位置でシミュレーションの実行を一時停止するために、ブレークポイント用チェックブロックをブロック図に書き込んでおく。このブレークポイント用チェックブロックは、シミュレーション実行時に特定の位置でシミュレーションの実行を一時停止したい位置に配置する。   The breakpoint check block creation function 31 writes a breakpoint check block in the block diagram in order to temporarily stop the execution of the simulation at a specific position. The breakpoint check block is arranged at a position where simulation execution is to be paused at a specific position during simulation execution.

シミュレーション一時停止機能32は、ブレークポイント用チェックブロックが書き込まれたシミュレーションモデルを実行機能7がシミュレーションを実行する時に、ブレークポイント用チェックブロックの抽出でシミュレーションを一時停止させる。この一時停止で、ブレークポイント強調表示機能33は、停止しているブレークポイント用チェックブロックを、例えばフリッカさせて強調表示する。強調表示の方法は、フリッカ以外に、印をつけるなどでも良い。   The simulation pause function 32 temporarily stops the simulation by extracting the breakpoint check block when the execution function 7 executes the simulation of the simulation model in which the breakpoint check block is written. In this temporary stop, the breakpoint highlighting function 33 highlights the stopped breakpoint check block, for example, by flickering. The highlighting method may be a mark other than flicker.

さらに、シミュレーションモデル値表示機能34により、現在値を例えばツールヒントなどに表示する。現在値の表示方法は、ツールヒント以外に、ブロック図に表示しても良い。   Furthermore, the simulation model value display function 34 displays the current value on, for example, a tool hint. The display method of the current value may be displayed on a block diagram in addition to the tool hint.

これら表示に対して、シミュレーション再開機能35は、開発者が再開を指示(例えば、再開用のボタンを押す、再開用のメニューを選択する、など)すると、シミュレーションの実行を一時停止しているブレークポイント用チェックブロックから再開する。   In response to these displays, the simulation resuming function 35, when the developer gives an instruction to resume (for example, pressing a resuming button, selecting a resuming menu, etc.) breaks that temporarily stop execution of the simulation. Resume from the point check block.

例えば、図10に示すブロック構成に対してブレークポイント用チェックブロックC21、C22が追加されている場合、加算ブロックのシミュレーションモデルをシミュレーション実行し(S21)、ブレークポイント用チェックブロックC21に到達すると、そこでシミュレーション実行を一時停止し、ブレークポイント用チェックブロックC21を強調表示し(S22)、現在値を値データベースに保存しているシミュレーションモデルが現在値を表示する(S23)。その後、ユーザがシミュレーション実行の再開を指示すると(S24)、乗算ブロックのシミュレーションモデルをシミュレーションを実行し(S25)、ブレークポイント用チェックブロックC22に到達すると、そこでシミュレーション実行を一時停止し、ブレークポイント用チェックブロックC22を強調表示し(S26)、現在値を値データベースに保存しているシミュレーションモデルが現在値を表示する(S27)。さらに、開発者がシミュレーション実行の再開を指示すると、出力OUT1に到達するため、シミュレーション実行は終了する(S28)。   For example, when breakpoint check blocks C21 and C22 are added to the block configuration shown in FIG. 10, the simulation model of the addition block is simulated (S21), and when the breakpoint check block C21 is reached, there is The simulation execution is paused, the breakpoint check block C21 is highlighted (S22), and the simulation model storing the current value in the value database displays the current value (S23). Thereafter, when the user instructs to resume the simulation execution (S24), the simulation is performed on the simulation model of the multiplication block (S25), and when the breakpoint check block C22 is reached, the simulation execution is temporarily stopped and the breakpoint use is performed. The check block C22 is highlighted (S26), and the simulation model storing the current value in the value database displays the current value (S27). Further, when the developer gives an instruction to resume the simulation execution, the simulation execution is terminated because the output OUT1 is reached (S28).

したがって、ブレークポイント用チェックブロックを適当に配置することにより、シミュレーション実行を特定の位置で一時停止させ、現在値を確認することができ、ブロック図全体のシミュレーションでの動作確認作業が容易になる。   Therefore, by appropriately arranging the check block for breakpoints, the simulation execution can be temporarily stopped at a specific position and the current value can be confirmed, and the operation confirmation work in the simulation of the entire block diagram is facilitated.

(実施形態4)
本実施形態は、複数のブロックが単線で接続された(分岐やループ接続されていない)単線ブロック図の動作確認を行う場合である。
(Embodiment 4)
The present embodiment is a case where the operation of a single-line block diagram in which a plurality of blocks are connected by a single line (not branched or loop-connected) is checked.

前記の実施形態1ではブロック単体の演算シミュレーションを可能にしている。すなわち、シミュレーションモデル作成機能2により作成されたシミュレーションモデルに対して、開発者は各ブロック単位でそれぞれ入力を指定して、シミュレーションモデル演算機能11によりブロック単体のシミュレーションを実行、さらにブロック単位のシミュレーション動作を確認した後にはシミュレーションモデル実行機能7によりブロック全体のシミュレーションを実行する。また、ブロック単体の演算結果は演算結果取得機能14により各シミュレーションモデルの演算結果を取得し、演算結果表示機能15により演算結果を例えば表形式などで表示する。   In the first embodiment, a single block operation simulation is possible. That is, for the simulation model created by the simulation model creation function 2, the developer designates an input for each block, executes the simulation of a single block by the simulation model calculation function 11, and further performs the simulation operation for each block. After confirming the above, the simulation of the entire block is executed by the simulation model execution function 7. Further, the calculation result of each block is acquired by the calculation result acquisition function 14 and the calculation result is displayed in the form of a table, for example, by the calculation result display function 15.

例えば、図11に示す単線ブロック図の場合、ブロック図上のすべてのブロックB1からB3に対して、各ブロックのコード片からシミュレーションモデルを作成し、開発者はブロックB1のシミュレーションモデルから順番に入力を指定して演算シミュレーションを行う。図12はブロック単位の演算シミュレーション手順を示し、ブロック図上の全てのブロックを取得し(S31)、ブロックB1〜B3についてそれぞれシミュレーションモデルを作成し(S32〜S34)、これらシミュレーションモデルへの入力を設定し(S35〜S37)、これら設定した各シミュレーションモデルの演算結果を取得し(S38〜S40)、最後に演算結果を一括表示する(S41)。図13は各シミュレーションモデルの演算結果を表形式で表示する場合を示す。   For example, in the case of the single-line block diagram shown in FIG. 11, for all the blocks B1 to B3 on the block diagram, a simulation model is created from the code piece of each block, and the developer inputs in order from the simulation model of the block B1. Specify to specify the simulation. FIG. 12 shows an operation simulation procedure in units of blocks. All blocks on the block diagram are acquired (S31), simulation models are created for the blocks B1 to B3 (S32 to S34), and inputs to these simulation models are input. Set (S35 to S37), obtain the calculation results of each set simulation model (S38 to S40), and finally display the calculation results collectively (S41). FIG. 13 shows a case where the calculation results of each simulation model are displayed in a table format.

上記のブロック単位のシミュレーションでは、開発者は各ブロックの入力を個々に設定する必要があり、大量のブロック構成となる場合はその作業負担が大きくなる。   In the above-mentioned block unit simulation, the developer needs to set the input of each block individually, and the work load becomes large when a large number of blocks are configured.

そこで、本実施形態は、単線ブロック図では各ブロックが単線で接続されることを利用し、線単位のシミュレーションにより全ブロックの動作確認を容易にする。この全ブロックの動作確認には、ブロック図上のすべてのブロックに対して、各ブロックのコード片から全ブロックシミュレーションモデルを作成しておく。   Therefore, this embodiment uses the fact that each block is connected by a single line in the single line block diagram, and facilitates the operation check of all the blocks by a line unit simulation. For checking the operation of all blocks, an all-block simulation model is created from the code pieces of each block for all the blocks on the block diagram.

図14は単線ブロック図の演算シミュレーションを示し、先頭のブロックの入力に値を設定して演算シミュレーションを行うことで、全ての接続線を通過したシミュレーション結果(出力)を得る。すなわち、単線ブロック図の入力から出力において、ブロック単位の演算シミュレーションを順次実行することで、ブロック図の全ての線を通過したシミュレーション結果を得ることができる。   FIG. 14 shows an operation simulation of a single-line block diagram, and a simulation result (output) passing through all connection lines is obtained by performing an operation simulation by setting a value to the input of the first block. That is, a simulation result that passes through all the lines in the block diagram can be obtained by sequentially executing a block-unit operation simulation from the input to the output of the single-line block diagram.

したがって、単線ブロック図のすべてのブロックについて、入力設定を簡単にした動作試験になる。   Therefore, it becomes an operation test in which input setting is simplified for all the blocks of the single-line block diagram.

(実施形態5)
本実施形態は、複数のブロックが分岐やループを有して接続されたブロック図の動作を確認する場合である。
(Embodiment 5)
This embodiment is a case where the operation of a block diagram in which a plurality of blocks are connected with branches and loops is confirmed.

図15は分岐やループのあるブロック図の例を示し、ブロックB1とB2との接続線は分岐点を有してスイッチブロックSW1に分岐し、ブロックB3の出力線は分岐点を有してブロックB4に分岐し、このブロックB4の出力がブロックB2にループしている。   FIG. 15 shows an example of a block diagram with branches and loops. The connection line between the blocks B1 and B2 has a branch point and branches to the switch block SW1, and the output line of the block B3 has a branch point. Branching to B4, the output of this block B4 loops to block B2.

このブロック図において、ブロック単位の演算シミュレーションでは、実施形態1と同様に、ブロック図上のすべてのブロックに対して、各ブロックのコード片からシミュレーションモデルを作成する(全ブロックシミュレーションモデル作成機能)。このシミュレーションモデルに対して、開発者はそれぞれ入力を指定して、順番にシミュレーションモデル実行機能により演算シミュレーションを行う。また、演算結果取得機能により各シミュレーションモデルの演算結果を取得し、演算結果表示機能により演算結果を表形式などで表示する。   In this block diagram, in the block-unit operation simulation, as in the first embodiment, a simulation model is created from the code pieces of each block for all the blocks on the block diagram (all block simulation model creation function). For this simulation model, the developer designates an input, and sequentially performs an operation simulation using the simulation model execution function. In addition, the calculation result of each simulation model is acquired by the calculation result acquisition function, and the calculation result is displayed in a table format or the like by the calculation result display function.

例えば、図15の場合、ブロック図上のすべてのブロックB1からB5およびスイッチブロックSW1に対して、各ブロックのコード片からシミュレーションモデルを作成する。開発者は、ブロックB1のシミュレーションモデルから順番に入力を指定して演算シミュレーションを行う。各シミュレーションモデルの演算結果を取得して、例えば表形式に表示する。   For example, in the case of FIG. 15, a simulation model is created from the code pieces of each block for all the blocks B1 to B5 and the switch block SW1 on the block diagram. The developer designates inputs in order from the simulation model of the block B1 and performs an operation simulation. The calculation result of each simulation model is acquired and displayed, for example, in a table format.

この場合、ブロック図に、条件によって演算の流れが変わるスイッチブロック(図15のSW1)などがあると、入力から出力までの演算シミュレーションにおいて、ブロック図のすべての線を通過したかどうかは確認できない。   In this case, if there is a switch block (SW1 in FIG. 15) whose operation flow changes depending on conditions in the block diagram, it cannot be confirmed whether all the lines in the block diagram have been passed in the operation simulation from input to output. .

そこで、本実施形態では、図16に要部構成を示すシミュレーション装置とし、ブロック間を接続する全ての線を通過したシミュレーションの実行および動作確認を可能にする。同図において、シミュレーション装置本体41は、図1等に示す各機能を搭載したシミュレーション装置構成とする。また、全ブロックシミュレーションモデル作成機能42は、実施形態4における全ブロックシミュレーションモデル作成手段に相当し、分岐やループを含めた全ブロックのシミュレーションモデルを作成する。   Therefore, in the present embodiment, the simulation apparatus having the main configuration shown in FIG. 16 is used, and the simulation that has passed through all the lines connecting the blocks and the operation check can be performed. In the figure, the simulation apparatus main body 41 has a simulation apparatus configuration equipped with each function shown in FIG. The all block simulation model creation function 42 corresponds to all block simulation model creation means in the fourth embodiment, and creates a simulation model for all blocks including branches and loops.

この装置に追加する機能として、通過用チェックブロック作成機能43は、ブロック間の接続線の全てに配置する通過用チェックブロックを作成する。例えば、図17に示すブロック図では、通過用チェックブロックC1〜C10を配置する。これらの通過用チェックブロックには、演算シミュレーションを行ったかどうかを表すチェック有無フラグを持つ。チェック有無フラグは演算シミュレーション開始前に「無」に初期化しておき、演算シミュレーションを行うとチェック有無切替機能44により「有」にする。チェック無強調表示機能45は、チェック有無切替機能44による切替え結果がチェック「無」の場合にこれを演算シミュレーションしていないチェックブロックとしてフリッカさせるなどで強調表示する。強調表示の方法は、これ以外に色を変えるなどでも良い。   As a function to be added to this apparatus, a passing check block creation function 43 creates a passing check block to be arranged on all connection lines between blocks. For example, in the block diagram shown in FIG. 17, check blocks C1 to C10 for passing are arranged. These check blocks for passage have a check presence / absence flag indicating whether or not an arithmetic simulation has been performed. The check presence / absence flag is initialized to “none” before the start of the operation simulation, and is set to “present” by the check presence / absence switching function 44 when the operation simulation is performed. When the switching result by the check presence / absence switching function 44 is “No”, the unchecked highlighting function 45 highlights the check block by flickering it as a check block that has not been simulated. In addition to this, the highlighting method may be changed.

なお、通過用チェックブロック作成機能43で作成された通過用チェックブロックは、装置本体41にもつブロック図情報関連付け機能4により、ブロック図のすべての線に対して関連付ける。   The passing check block created by the passing check block creating function 43 is associated with all lines in the block diagram by the block diagram information associating function 4 of the apparatus main body 41.

以上の装置構成におけるシミュレーション処理手順を図18に示す。まず、機能43がブロック図上のすべての線に対して通過用チェックブロックを作成する(S41)。次に、機能42がブロック図上のすべてのブロックに対してシミュレーションモデルを作成する(S42)。さらに、機能44が全ての通過用チェックブロックに対してチェック有無フラグを「無」に設定し(S43)、シミュレーションモデル実行機能7により通過用チェックブロックが全て「無」になるルートについて演算シミュレーションを行う(S44)。例えば、図17ではブロックB1→B2→B3のルートで演算シミュレーションを行う。   The simulation processing procedure in the above apparatus configuration is shown in FIG. First, the function 43 creates check blocks for passage for all lines on the block diagram (S41). Next, the function 42 creates a simulation model for all the blocks on the block diagram (S42). Further, the function 44 sets the check presence flag to “none” for all the check blocks for passing (S43), and the simulation model execution function 7 performs the operation simulation for the route where all the check blocks for passing are “no”. Perform (S44). For example, in FIG. 17, a calculation simulation is performed along the route of blocks B1 → B2 → B3.

このシミュレーション実行後、次に実行するシミュレーションモデルを取得する(S45)。次に実行するシミュレーションが存在し、かつ通過用チェックブロックであるときにこのチェックブロックに対してチェックの有無を「有」に設定し(S46)、次に実行するシミュレーションモデルの取得に戻る。この演算シミュレーション終了後、機能45により、すべての通過用チェックブロックのチェック有無を調べ、すべてのチェック有無が「有」の場合、ブロック図の全ての線を演算シミュレーションしたことになる。1つでもチェックブロックが「無」の場合、そのチェックブロックに関連付けられている線は演算シミュレーションしていないことになり、チェック有無が「無」の通過用チェックブロックを強調表示する(S47)。   After executing this simulation, a simulation model to be executed next is acquired (S45). When there is a simulation to be executed next and the check block is a passing check block, the presence / absence of check for this check block is set to “present” (S46), and the process returns to the acquisition of the simulation model to be executed next. After completion of the calculation simulation, the function 45 checks whether or not all the check blocks for passing are checked. If all checks are “Yes”, all the lines in the block diagram are calculated and simulated. If even one check block is “none”, the line associated with the check block has not been subjected to an operation simulation, and a check block for passing with “no” being checked is highlighted (S47).

例えば、図17の場合、ブロック上のすべての線に通過用チェックブロックC1からC10を作成してチェック有無をチェック無に設定しておき、線に関連付ける。開発者は、ブロック図の入力に初期値を指定して演算シミュレーションを行う。このとき、演算シミュレーションを行った通過用チェックブロックC1からC8のチェック有無をチェック「有」にする。スイッチブロックSW1において、ブロックB1からの出力結果が正常の場合、異常の線を通過しないので、その線に関連付けられている通過用チェックブロックC9およびC10をフリッカなどで強調表示する。   For example, in the case of FIG. 17, pass check blocks C1 to C10 are created for all the lines on the block, and the presence / absence of check is set to unchecked and associated with the line. The developer performs an operation simulation by specifying an initial value as an input of the block diagram. At this time, the presence / absence of checking of the check blocks C1 to C8 for which the simulation is performed is set to “Yes”. In the switch block SW1, when the output result from the block B1 is normal, the abnormal line is not passed, so the passing check blocks C9 and C10 associated with the line are highlighted with flicker or the like.

したがって、分岐やループのあるブロック図でも、ブロック図全体について試験したことを簡単に確認することができる。   Therefore, even in a block diagram with branches and loops, it can be easily confirmed that the entire block diagram has been tested.

本発明の実施形態1を示すシミュレーション装置の構成図。The block diagram of the simulation apparatus which shows Embodiment 1 of this invention. ブロック図とコード片とシミュレーションモデルの関係図。Block diagram, code fragment and simulation model relationship diagram. 加減算ブロックのシミュレーションモデル。Simulation model of addition / subtraction block. シミュレーションモデルの実行手順。Execution procedure of simulation model. 本発明の実施形態2を示すシミュレーション装置の構成図。The block diagram of the simulation apparatus which shows Embodiment 2 of this invention. チェックブロックの例。Check block example. 加算と乗算ブロックのシミュレーションモデル。Simulation model for addition and multiplication blocks. チェックブロックの実行手順。Check block execution procedure. 本発明の実施形態3を示すシミュレーション装置の要部構成図。The principal part block diagram of the simulation apparatus which shows Embodiment 3 of this invention. ブレークポイントの実行手順。Breakpoint execution procedure. 単線ブロック図の例。Example of single line block diagram. ブロック単位の演算シミュレーション手順。Block simulation simulation procedure. 演算シミュレーション結果の例。An example of a calculation simulation result. 単線ブロック図の演算シミュレーションの例。Example of operation simulation of single-line block diagram. 分岐やループのあるブロック図の例。Example block diagram with branches and loops. 本発明の実施形態5を示すシミュレーション装置の要部構成図。The principal part block diagram of the simulation apparatus which shows Embodiment 5 of this invention. 分岐やループのあるブロック図の演算シミュレーションの例。An example of a block diagram operation simulation with branches and loops. 分岐やループのあるブロック図の演算シミュレーション処理手順。Calculation simulation procedure for block diagrams with branches and loops. ブロック図の例。Block diagram example. ブロック図とコード片とプログラムの関係図。Block diagram, code fragment and program relationship diagram. 不具合の修正例。Examples of bug fixes.

符号の説明Explanation of symbols

1 ブロックデータベース
2 シミュレーションモデル作成機能
3 演算対象関連付け機能
4 ブロック図情報関連付け機能
7 シミュレーションモデル実行機能
9 シミュレーションモデル初期値設定機能
10 シミュレーションモデル値取得機能
11 シミュレーションモデル演算機能
22 チェックブロック作成機能
23 チェックブロック関連付け機能
24 値保存機能
30 チェック結果表示機能
31 ブレークポイント用チェックブロック作成機能
33 ブレークポイント強調表示機能
43 通過用チェックブロック作成機能
44 チェック有無切替機能
45 チェック無強調表示機能
1 Block Database 2 Simulation Model Creation Function 3 Operation Target Association Function 4 Block Diagram Information Association Function 7 Simulation Model Execution Function 9 Simulation Model Initial Value Setting Function 10 Simulation Model Value Acquisition Function 11 Simulation Model Calculation Function 22 Check Block Creation Function 23 Check Block Association function 24 Value saving function 30 Check result display function 31 Breakpoint check block creation function 33 Breakpoint highlight display function 43 Check block creation function for passing 44 Check presence / absence switching function 45 No check highlighting function

Claims (11)

ユーザがソフトウェアとして組み込もうとする任意の情報処理機能をブロック図として定義し、この定義されたブロック図に対応させたプログラムを自動生成するソフトウェアの開発支援システムであって、
前記プログラムの動作確認をシミュレーションによって行うシミュレーション装置は、
前記ブロック図を構成する各ブロックに対応する部分的なソースコードとして作成したコード片を元にシミュレーションモデルを作成するシミュレーションモデル作成手段と、
シミュレーション対象ブロックの入力に初期値を設定するシミュレーション初期値設定手段と、
前記シミュレーション対象ブロックの実際の値を取得するシミュレーションモデル値取得手段と、
前記シミュレーションモデルから取得した値と、シミュレーション対象ブロックから取得した値を使用してシミュレーション演算するシミュレーションモデル演算手段と、
前記シミュレーション演算結果を外部表示装置に動作確認用として表示する演算結果表示手段と、
を備えたことを特徴とするソフトウェアの開発支援システム。
A software development support system in which an arbitrary information processing function that a user intends to incorporate as software is defined as a block diagram, and a program corresponding to the defined block diagram is automatically generated,
A simulation apparatus that performs the operation check of the program by simulation,
Simulation model creating means for creating a simulation model based on a code fragment created as a partial source code corresponding to each block constituting the block diagram;
Simulation initial value setting means for setting an initial value to the input of the simulation target block;
Simulation model value acquisition means for acquiring an actual value of the simulation target block;
A simulation model computing means for performing a simulation computation using the value obtained from the simulation model and the value obtained from the simulation target block;
Calculation result display means for displaying the simulation calculation result on the external display device for operation confirmation;
Software development support system characterized by comprising
前記シミュレーションモデルの作成に際し、オペレータモデルに演算対象のシミュレーションモデルを関連付ける演算対象関連付け手段、およびオペランドモデルにブロック図の実際の情報を関連付けるブロック図情報関連付け手段と、
入力される現在値を指定した条件でチェックするチェックブロックを作成するチェックブロック作成手段と、
前記チェックブロックをブロック図のブロック間の接続線に関連付けるチェックブロック関連付け手段と、
前記チェックブロックを含めた前記シミュレーションモデルの全体の入力に初期値を設定するシミュレーション初期値設定手段と、
前記初期値が設定されたシミュレーションモデルのブロック図の線のつながりに従って、シミュレーションを順次実行するシミュレーションモデル実行手段と、
前記チェックブロックが現在値を指定した条件でチェックした結果を外部表示装置に動作確認用として表示するチェック結果表示手段と、
を備えたことを特徴とする請求項1に記載のソフトウェアの開発支援システム。
In creating the simulation model, a calculation target associating means for associating a simulation model as a calculation target with an operator model, and a block diagram information associating means for associating actual information of a block diagram with an operand model;
A check block creation means for creating a check block for checking a current value to be input according to a specified condition;
Check block association means for associating the check block with a connection line between blocks in the block diagram;
Simulation initial value setting means for setting an initial value to the entire input of the simulation model including the check block;
Simulation model execution means for sequentially executing simulations according to the connection of lines in the block diagram of the simulation model in which the initial values are set;
A check result display means for displaying the result of checking the check block under a condition specifying the current value on the external display device for operation confirmation;
The software development support system according to claim 1, further comprising:
前記シミュレーションモデルにブレークポイント用チェックブロックを作成するブレークポイント用チェックブロック作成手段と、
シミュレーション実行を前記ブレークポイント用チェックブロックの所で一時停止させるシミュレーション一時停止手段と、
前記一時停止させたブレークポイント用チェックブロックを強調表示するブレークポイント強調表示手段と、
前記一時停止しているときに、シミュレーションモデルの現在値を表示するシミュレーションモデル値表示手段と、
前記一時停止しているときに、シミュレーションを再開するシミュレーション再開手段と、
を備えたことを特徴とする請求項1または2に記載のソフトウェアの開発支援システム。
Breakpoint check block creating means for creating a breakpoint check block in the simulation model;
Simulation suspension means for temporarily suspending simulation execution at the breakpoint check block;
Breakpoint highlighting means for highlighting the paused breakpoint check block;
Simulation model value display means for displaying the current value of the simulation model when the suspension is in progress;
Simulation restarting means for restarting the simulation when the suspension is in progress;
The software development support system according to claim 1 or 2, further comprising:
前記ブロック図中のすべてのブロックに対して、一括してシミュレーションモデルを作成する全ブロックシミュレーションモデル作成手段を備え、
前記シミュレーションモデル実行手段は、シミュレーションモデルが作成された全ブロック図のうち、各ブロックが単線で接続された単線ブロック図に対応するシミュレーションモデルに対して線単位のシミュレーションを行う手段を備えたことを特徴とする請求項1〜3のいずれか1項に記載のソフトウェアの開発支援システム。
For all the blocks in the block diagram, comprising all block simulation model creation means for creating a simulation model at once,
The simulation model execution means includes means for performing line-by-line simulation on a simulation model corresponding to a single line block diagram in which each block is connected by a single line among all block diagrams in which the simulation model is created. The software development support system according to any one of claims 1 to 3.
ブロック図のブロック間の通過を確認するための通過用チェックブロックを作成し、この通過用チェックブロックを分岐またはループを含むブロック図中のすべての線に対して配置する通過用チェックブロック作成手段と、
前記シミュレーション実行手段によりシミュレーションを行ったときに、前記通過用チェックブロックのチェック有無を切り替えるチェック有無切替手段と、
前記チェック有無が「無」になる通過用チェックブロックを強調表示するチェック無強調表示手段とを備えたことを特徴とする請求項1〜4のいずれか1項に記載のソフトウェアの開発支援システム。
A passing check block creating means for creating a passing check block for confirming passage between blocks in the block diagram and arranging the passing check block for all lines in the block diagram including a branch or loop; ,
When performing simulation by the simulation execution means, check presence / absence switching means for switching presence / absence check of the passing check block;
5. The software development support system according to claim 1, further comprising: a check-unemphasized display unit that highlights a check block for passing in which the presence / absence of the check is “none”.
ユーザがソフトウェアとして組み込もうとする任意の情報処理機能をブロック図として定義し、この定義されたブロック図に対応させたプログラムを自動生成するソフトウェアの開発支援方法であって、
前記プログラムの動作確認をシミュレーションによって行うシミュレーション装置は、
前記ブロック図を構成する各ブロックに対応する部分的なソースコードとして作成したコード片を元にシミュレーションモデルを作成するシミュレーションモデル作成ステップと、
シミュレーション対象ブロックの入力に初期値を設定するシミュレーション初期値設定ステップと、
前記シミュレーション対象ブロックの実際の値を取得するシミュレーションモデル値取得ステップと、
前記シミュレーションモデルから取得した値と、シミュレーション対象ブロックから取得した値を使用してシミュレーション演算するシミュレーションモデル演算ステップと、
前記シミュレーション演算結果を外部表示装置に動作確認用として表示する演算結果表示ステップと、
を備えたことを特徴とするソフトウェアの開発支援方法。
A software development support method in which an arbitrary information processing function that a user intends to incorporate as software is defined as a block diagram, and a program corresponding to the defined block diagram is automatically generated,
A simulation apparatus that performs the operation check of the program by simulation,
A simulation model creating step of creating a simulation model based on a code fragment created as a partial source code corresponding to each block constituting the block diagram;
A simulation initial value setting step for setting an initial value to an input of a simulation target block;
A simulation model value acquisition step of acquiring an actual value of the simulation target block;
A simulation model calculation step of performing a simulation calculation using the value acquired from the simulation model and the value acquired from the simulation target block;
A calculation result display step for displaying the simulation calculation result on the external display device for operation confirmation;
A software development support method characterized by comprising:
前記シミュレーションモデルの作成に際し、オペレータモデルに演算対象のシミュレーションモデルを関連付ける演算対象関連付けステップ、およびオペランドモデルにブロック図の実際の情報を関連付けるブロック図情報関連付けステップと、
入力される現在値を指定した条件でチェックするチェックブロックを作成するチェックブロック作成ステップと、
前記チェックブロックをブロック図のブロック間の接続線に関連付けるチェックブロック関連付けステップと、
前記チェックブロックを含めた前記シミュレーションモデルの全体の入力に初期値を設定するシミュレーション初期値設定ステップと、
前記初期値が設定されたシミュレーションモデルのブロック図の線のつながりに従って、シミュレーションを順次実行するシミュレーションモデル実行ステップと、
前記チェックブロックが現在値を指定した条件でチェックした結果を外部表示装置に動作確認用として表示するチェック結果表示ステップと、
を備えたことを特徴とする請求項6に記載のソフトウェアの開発支援方法。
In creating the simulation model, an operation target associating step for associating a simulation model to be operated with an operator model, and a block diagram information associating step for associating actual information of a block diagram with an operand model;
A check block creation step for creating a check block for checking a current value to be input according to a specified condition;
Associating the check block with a connection line between blocks in the block diagram;
A simulation initial value setting step for setting an initial value to the entire input of the simulation model including the check block;
A simulation model execution step for sequentially executing simulations according to the connection of lines in the block diagram of the simulation model in which the initial values are set;
A check result display step in which the check block displays a result of checking under a condition in which a current value is specified for operation confirmation on an external display device;
The software development support method according to claim 6, further comprising:
前記シミュレーションモデルにブレークポイント用チェックブロックを作成するブレークポイント用チェックブロック作成ステップと、
シミュレーション実行を前記ブレークポイント用チェックブロックの所で一時停止させるシミュレーション一時停止ステップと、
前記一時停止させたブレークポイント用チェックブロックを強調表示するブレークポイント強調表示ステップと、
前記一時停止しているときに、シミュレーションモデルの現在値を表示するシミュレーションモデル値表示ステップと、
前記一時停止しているときに、シミュレーションを再開するシミュレーション再開ステップと、
を備えたことを特徴とする請求項6または7に記載のソフトウェアの開発支援方法。
A breakpoint check block creating step for creating a breakpoint check block in the simulation model;
A simulation pausing step for pausing simulation execution at the breakpoint check block;
A breakpoint highlighting step for highlighting the paused breakpoint check block;
A simulation model value display step for displaying a current value of the simulation model when the suspension is in progress;
A simulation resuming step of resuming a simulation when the pausing is performed;
The software development support method according to claim 6 or 7, further comprising:
前記ブロック図中のすべてのブロックに対して、一括してシミュレーションモデルを作成する全ブロックシミュレーションモデル作成ステップを備え、
前記シミュレーションモデル実行ステップは、シミュレーションモデルが作成された全ブロック図のうち、各ブロックが単線で接続された単線ブロック図に対応するシミュレーションモデルに対して線単位のシミュレーションを行うステップを備えたことを特徴とする請求項6〜8のいずれか1項に記載のソフトウェアの開発支援方法。
For all the blocks in the block diagram, comprising all block simulation model creation step for creating a simulation model at once,
The simulation model execution step includes a step of performing line-by-line simulation on a simulation model corresponding to a single line block diagram in which each block is connected by a single line among all block diagrams in which the simulation model is created. The software development support method according to any one of claims 6 to 8.
ブロック図のブロック間の通過を確認するための通過用チェックブロックを作成し、この通過用チェックブロックを分岐またはループを含むブロック図中のすべての線に対して配置する通過用チェックブロック作成ステップと、
前記シミュレーション実行ステップによりシミュレーションを行ったときに、前記通過用チェックブロックのチェック有無を切り替えるチェック有無切替ステップと、
前記チェック有無が「無」になる通過用チェックブロックを強調表示するチェック無強調表示ステップとを備えたことを特徴とする請求項6〜9のいずれか1項に記載のソフトウェアの開発支援方法。
Creating a check block for passing to check the passage between the blocks in the block diagram, and placing the check block for passing on all the lines in the block diagram including branches or loops; ,
When performing a simulation by the simulation execution step, a check presence / absence switching step of switching the presence / absence of the check block for passing,
10. The software development support method according to claim 6, further comprising: a non-check highlighting step of highlighting a check block for passing in which the presence / absence of the check is “none”.
請求項6〜10に記載のソフトウェアの開発支援方法における処理ステップをコンピュータで実行可能に構成したことを特徴とするプログラム。   A program characterized in that the processing steps in the software development support method according to claim 6 can be executed by a computer.
JP2008031192A 2008-02-13 2008-02-13 Software development support system, support method and program Expired - Fee Related JP5326292B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008031192A JP5326292B2 (en) 2008-02-13 2008-02-13 Software development support system, support method and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008031192A JP5326292B2 (en) 2008-02-13 2008-02-13 Software development support system, support method and program

Publications (3)

Publication Number Publication Date
JP2009193182A true JP2009193182A (en) 2009-08-27
JP2009193182A5 JP2009193182A5 (en) 2011-03-03
JP5326292B2 JP5326292B2 (en) 2013-10-30

Family

ID=41075157

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008031192A Expired - Fee Related JP5326292B2 (en) 2008-02-13 2008-02-13 Software development support system, support method and program

Country Status (1)

Country Link
JP (1) JP5326292B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214255A (en) * 2012-04-04 2013-10-17 Meidensha Corp Simulation method in software development support system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04348428A (en) * 1991-03-20 1992-12-03 Hitachi Ltd Design back-up method
JPH0535531A (en) * 1991-07-31 1993-02-12 Toshiba Corp Test device for progress degree visualizing program
JPH05165678A (en) * 1991-12-12 1993-07-02 Mitsubishi Electric Corp Software inspection result display method
JPH05265802A (en) * 1992-03-18 1993-10-15 Shimadzu Corp Software debugging device
JP2003076545A (en) * 2001-08-31 2003-03-14 Mitsubishi Electric Corp Program development assisting device
JP2003076547A (en) * 2001-09-05 2003-03-14 Mitsubishi Electric Corp System and method for automatically generating control software

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04348428A (en) * 1991-03-20 1992-12-03 Hitachi Ltd Design back-up method
JPH0535531A (en) * 1991-07-31 1993-02-12 Toshiba Corp Test device for progress degree visualizing program
JPH05165678A (en) * 1991-12-12 1993-07-02 Mitsubishi Electric Corp Software inspection result display method
JPH05265802A (en) * 1992-03-18 1993-10-15 Shimadzu Corp Software debugging device
JP2003076545A (en) * 2001-08-31 2003-03-14 Mitsubishi Electric Corp Program development assisting device
JP2003076547A (en) * 2001-09-05 2003-03-14 Mitsubishi Electric Corp System and method for automatically generating control software

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013214255A (en) * 2012-04-04 2013-10-17 Meidensha Corp Simulation method in software development support system

Also Published As

Publication number Publication date
JP5326292B2 (en) 2013-10-30

Similar Documents

Publication Publication Date Title
US8627290B2 (en) Test case pattern matching
CN106776334B (en) Comment-based test case generation method and device
US9092565B2 (en) Synchronization point visualization for modified program source code
JP5326292B2 (en) Software development support system, support method and program
US20120331448A1 (en) Coverage measurement apparatus and method and medium
JP2016157289A (en) Operation procedure evaluation device and operation procedure evaluation program
JP2008226090A (en) Plant model development system
JP5374405B2 (en) Model debugging apparatus and model debugging method
JP2010102362A (en) Software development support system, development support method, and program
JP6483507B2 (en) Control program creating apparatus and control program debugging method
KR20190094779A (en) Automatically Generate Device for PLC Instruction Compiler Test-Case
JP2012221394A (en) Test support system, test support method, and program
JP2004070561A (en) Debugging device
JP2009070322A (en) Data processor, system, program and method
JP5181947B2 (en) Embedded software development support system, support method and program
Stürmer et al. Modeling Guidelines and Model Analysis Tools in Embedded Automotive Software Development.
JP2010044577A (en) Debugging device and method
WO2023067806A1 (en) Testing device, testing method, and program
JP2005310056A (en) Program execution control system
Serviss Code generation using GEODE: a CASE study
JP2005316710A (en) Software test support device
JPH0756723A (en) Compiler device
JP5070108B2 (en) Settling calculation condition judgment device
JP5487789B2 (en) Software development support system, support method and program
JP2012022660A (en) Support device for creating visualized test specification and manual

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110118

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20111007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120508

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120709

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20120709

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121127

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130128

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20130625

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130708

R150 Certificate of patent or registration of utility model

Ref document number: 5326292

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees