JPH03103935A - Numerical calculation processing verifying device dependent upon computer - Google Patents

Numerical calculation processing verifying device dependent upon computer

Info

Publication number
JPH03103935A
JPH03103935A JP1242539A JP24253989A JPH03103935A JP H03103935 A JPH03103935 A JP H03103935A JP 1242539 A JP1242539 A JP 1242539A JP 24253989 A JP24253989 A JP 24253989A JP H03103935 A JPH03103935 A JP H03103935A
Authority
JP
Japan
Prior art keywords
data
arithmetic processing
numerical calculation
calculation processing
program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP1242539A
Other languages
Japanese (ja)
Inventor
Koichi Takahashi
公一 高橋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yokogawa Electric Corp
Original Assignee
Yokogawa Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Yokogawa Electric Corp filed Critical Yokogawa Electric Corp
Priority to JP1242539A priority Critical patent/JPH03103935A/en
Publication of JPH03103935A publication Critical patent/JPH03103935A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To easily verify the error of arithmetic processing by providing a selecting switch means which stores data, which is left in an interface means and is related to the intermediate progress, and retrieval information data in a data preserving means in accordance with an external indication and a printing means which reads out and prints these data. CONSTITUTION:Intermediate data of operation is transferred from an arithmetic processing program 1 to an interface means 2 and is held this means 2. When a selecting switch means 4 is turned on by the external indication, data of the intermediate progress left in the interface means 2 is preserved in a data preserving means 3. Since data is preserved in the data preserving means 3 while rewriting old data, data does not overflow though being endless to exceed the capacity of the means 3. A printing means 5 prints data preserved in the data preserving means 3. Thus, the intermediate progress is outputted independently of a program by a generally usable method to easily verify the numerical calculation processing.

Description

【発明の詳細な説明】 く産業上の利用分野〉 本発明は、計算機システムにおいて、リアルタイムに数
値演算処理を行うソフl・ウェアを作或する際に、デー
タの正当性を検証したり、処理の誤りを発見するのに有
効な数値計算処理の検証装置に関する。
[Detailed Description of the Invention] Industrial Application Fields The present invention is useful for verifying the validity of data and processing data when creating software/ware that performs numerical arithmetic processing in real time in a computer system. The present invention relates to a verification device for numerical calculation processing that is effective in discovering errors in numerical calculations.

く従来の技術〉 第3図は、計算機で行われる数値演算処理の流れを示す
概念図である。第1の数値演算1は例えば複数のデータ
X1〜Xiを人力し、計算処理して例えば演算結果01
.,02を出力し、第2の数値演算2は、この演算結果
01,02を用いてさらに別の計算処理を行い、また第
3の数値演算3は演算結果、例えば02とデータXnを
用いて計算処理するといったように、計算処理の演算結
果を次の計算処理の入力データとして、次々にデタを連
鎖的に使用して、最終的に演算結果Yを得るようにして
いる。
BACKGROUND ART FIG. 3 is a conceptual diagram showing the flow of numerical calculation processing performed by a computer. In the first numerical calculation 1, for example, a plurality of data X1 to Xi are manually processed, and the calculation result is 01.
.. . As in the case of calculation processing, the calculation result of the calculation process is used as the input data for the next calculation process, and the data is used one after another in a chain, so that the calculation result Y is finally obtained.

このために、例えば第1の数値演算1において、1 2 誤りが混入すると、その誤りは連鎖的にそれ以後の演算
結果を誤りとしてしまう。
For this reason, for example, if a 1 2 error is introduced in the first numerical calculation 1, the error causes a chain reaction that causes subsequent calculation results to be incorrect.

従来、最終的な演算結果Yが正しくない場合、どこの段
階で誤りが混入したかを検証するために、各演算処理毎
に途中演算結果を印字させ、記録にとっておくことが行
われている。
Conventionally, when the final calculation result Y is incorrect, in order to verify at what stage the error was introduced, intermediate calculation results are printed for each calculation process and kept as a record.

〈発明が解決しようとする課題〉 しかしながら、このような途中の演算結果の全てを記録
にとることは、そのためのプログラム作成に多くの工数
を要する外、大量の演算処理を行うような場合、逆に誤
り部分を見つけることが容易でないという問題点がある
。また、稼動後、誤りを見つけるためには、リアルタイ
ムで動作するプログラムを一旦停止させ、印字等の経過
出力を行う処理を挿入しなければならず、非常に不便で
ある等の問題点がある。
<Problem to be solved by the invention> However, recording all the results of such intermediate calculations not only requires a lot of man-hours to create a program for this purpose, but also causes problems when a large amount of calculation processing is to be performed. There is a problem that it is not easy to find the error part. Furthermore, in order to find errors after operation, it is necessary to temporarily stop the program running in real time and insert a process for printing or other progress output, which is very inconvenient.

本発明は、これらの点に鑑みてなされたもので、演算処
理を行う際に、プログラムに依存せず一般的に利用でき
る手法により途中経過を出力することが可能で、数値計
算処理の検証を容易に行える装置を提供することを目的
とする。
The present invention has been made in view of these points, and when performing arithmetic processing, it is possible to output the intermediate progress using a method that can be generally used without depending on the program, and it is possible to verify the numerical calculation processing. The purpose is to provide a device that can be easily used.

〈課題を解決するための手段〉 第1図は、本発明の原理的な構成ブロック図である。〈Means for solving problems〉 FIG. 1 is a basic configuration block diagram of the present invention.

図において、1は計算機に搭載した演算処理プログラム
、2は演算処理プログラム1に容易に組み込み可能であ
って、演算の途中経過に関するデータと解析に供しやす
い単位で定義した名称とを残せるように構成したインタ
ーフェイス手段である。3は途中経過データを格納する
データ保存手段、4は外部からの指示に従ってインター
フェイス手段3に残された途中経過に関するデータおよ
び名称データをデータ保存手段3に格納する選択スイッ
チ手段、5は保存手段3に格納されたデタを印字する印
字手段である。
In the figure, 1 is an arithmetic processing program installed in the computer, and 2 is a structure that can be easily incorporated into the arithmetic processing program 1, and can retain data regarding the progress of the calculation and names defined in units that are easy to analyze. This is an interface means. 3 is a data storage means for storing intermediate progress data; 4 is a selection switch means for storing, in the data storage means 3, data related to the intermediate progress and name data left in the interface means 3 according to instructions from the outside; 5 is a storage means 3; This is a printing means that prints the data stored in the .

く作用〉 前記した各手段は、次のように作用する。Effect〉 Each of the above-mentioned means operates as follows.

インターフェイス手段2は、演算処理プログラムから演
算の途中データが渡され、そのデータを保持している。
The interface means 2 receives data during the calculation from the calculation processing program and holds the data.

選択スイッチ手段4を外部からの指示によりオンにする
と、インターフエイス手段2に残されていた途中経過の
データが、データ保存手段3に保存される。データ保存
手段3での保存は、エンドレスにその容量を越えても、
古いデータを書き替えながら行われており、オーバーフ
ローすることはない。印字手段5は、データ保存手段3
に保存されていたデータを印字し、解析に供する。
When the selection switch means 4 is turned on by an external instruction, the intermediate data left in the interface means 2 is stored in the data storage means 3. Even if the storage in data storage means 3 exceeds its capacity endlessly,
This is done while rewriting old data, so there will be no overflow. The printing means 5 is the data storage means 3
The data stored in the computer will be printed and submitted for analysis.

〈実施例〉 以下図面を用いて、本発明の実施例を詳細に説明する。<Example> Embodiments of the present invention will be described in detail below with reference to the drawings.

第2図は、本発明の一実施例を示す構戊ブロック図であ
る。図において、第1図と同じものには同一符号を付し
て示す。演算処理プログラム1は、本発明を適用利用す
る側の任意のソフトウエアで、演算処理を多量に行うア
プリケーションプログラムを表している。ここでは内部
に例えば、i番目とi+1番目にAl,A2で示される
演算処理のサブソフトウエアを含み、各サブソフトウェ
アA1,A2には、それぞれの演算処理の入力データと
、出力データを残すために必要なインターフェイス手段
21.22がそれぞれ結合している。これらのインター
フエイス手段は、いずれも演算処理プログラム1に組み
込まれる関数(サブルーチン)として動作しており、入
力データ、出力データを渡すだけの処理を行うもので、
演算処理自体の実行時間を延長することはほとんどない
FIG. 2 is a structural block diagram showing one embodiment of the present invention. In the figure, the same parts as in FIG. 1 are denoted by the same reference numerals. The arithmetic processing program 1 is arbitrary software on the side that applies and utilizes the present invention, and represents an application program that performs a large amount of arithmetic processing. Here, for example, the i-th and i+1-th sub-software for arithmetic processing indicated by Al and A2 are included, and each sub-software A1 and A2 retains the input data and output data of the respective arithmetic processing. The necessary interface means 21, 22 are respectively coupled thereto. These interface means all operate as functions (subroutines) incorporated in the arithmetic processing program 1, and perform processing that only passes input data and output data.
The execution time of the arithmetic processing itself is rarely extended.

23は各インターフエイス手段21.22から渡された
データを収集する途中経過データ収集手段である。選択
スイッチ手段4は、データ収集手段23とデータ保存手
段3の間に設けられていて、格納有無選択変更プログラ
ム40によって指示されるオン/オフ指示で、データ格
納の動作を実行したり、しなかったりしている。
Reference numeral 23 represents progress data collection means for collecting data passed from each interface means 21 and 22. The selection switch means 4 is provided between the data collection means 23 and the data storage means 3, and executes or deactivates the data storage operation in response to an on/off instruction given by the storage/non-storage selection change program 40. I'm doing it.

50はデータ保存手段3と印字装置5との間に設けられ
た検索機能を有するデータ印字実行プログラムで、デー
タ保存手段3に格納された途中経過データを検索しなが
ら取り出して、印字装置5に該当データを転送するよう
に構成してある。
Reference numeral 50 denotes a data printing execution program having a search function provided between the data storage means 3 and the printing device 5. The data printing execution program 50 retrieves intermediate progress data stored in the data storage means 3 while searching, and prints data corresponding to the printing device 5. It is configured to transfer data.

6はキーボード60を有するCRT端末で、マ5 6 ンマシンインターフェイスとして機能しており、格納有
無選択変更プログラム40およびデータ印字実行プログ
ラム50の起動を指示したりする。
Reference numeral 6 denotes a CRT terminal having a keyboard 60, which functions as a machine interface, and instructs to start the storage/presence selection change program 40 and the data printing execution program 50.

この様に構威した装置の動作を説明すれば以下の通りで
ある。
The operation of the device constructed in this manner will be explained as follows.

演算処理プログラム]内部のザブソフトウェアAI,A
2は、それそれの演算処理の入力データを前の演算処理
のサブソフ1・ウェアからインタフエイス手段21を介
して受け、そこに設定してある所定の演算式に従う演算
処理を行う。この時、インターフェイス手段21.22
にはそれぞれ入力データと出力データが残される。
Arithmetic processing program] Internal software AI, A
2 receives input data for each arithmetic process from the sub-software 1 of the previous arithmetic process via the interface means 21, and performs the arithmetic process according to a predetermined arithmetic expression set therein. At this time, the interface means 21.22
Input data and output data are left respectively.

演算処理が終了後あるいは演算の途中において、演算処
理の結果を検証するような場合、CRT端末6から、選
択変更プログラム40の起動、データ印字実行プログラ
ム50の起動を指示する。
When the results of the arithmetic processing are to be verified after the arithmetic processing is completed or during the arithmetic processing, the CRT terminal 6 instructs the activation of the selection change program 40 and the data printing execution program 50.

データ収集手段23は、CRT端末6からの指示で選択
スイッチ4がオンとなると、各インターフェイス手段2
].,22に残された人力データと出力データとを収集
し、これらのデータに検索情報、例えば演算名称、経過
時間等を{−1加してデタ保存手段3に転送し、格納す
る。なお、選択スイッチ4がオフである場合、何もしな
いで収集したデータを捨てる。
When the selection switch 4 is turned on in response to an instruction from the CRT terminal 6, the data collection means 23 controls each interface means 2.
]. , 22 are collected, search information such as calculation name, elapsed time, etc. is added to these data by {-1, and the data is transferred to the data storage means 3 and stored. Note that when the selection switch 4 is off, the collected data is discarded without doing anything.

データ保存手段3は、選択スイッチ4を介して転送され
たデータを、検索情報にしたがって取り出し可能なよう
に格納する。
The data storage means 3 stores the data transferred via the selection switch 4 so that it can be retrieved according to the search information.

CRT端末6からの指示で、データ印字実行プログラム
50の起動が行われると、データ印字実行プログラム5
0は、データ保存手段3に格納されているデータを、検
索情報に従って読みたし、これを印字装置5に転送する
。印字装置5は、プログラム単位で例えば演算名称と、
その人力データ、出力データ、経過時刻を様式を整えて
印字する。
When the data printing execution program 50 is started in response to an instruction from the CRT terminal 6, the data printing execution program 5
0 reads the data stored in the data storage means 3 according to the search information and transfers it to the printing device 5. The printing device 5 prints, for example, an operation name and
The manual data, output data, and elapsed time are formatted and printed.

従って、この印字結果を検討することにより、容易に演
算途中経過を知ることができ、数値言1算処理を検証で
きる。
Therefore, by examining the printed results, it is possible to easily know the progress of the calculation, and to verify the numerical calculation process.

く発明の効果〉 以上詳細に説明したように、本発明によれば演算処理プ
ログラムに対して、試験中及び稼動中の有無にかかわら
ず、その処理を停止すること無く、CRT端末からの指
示で、データ保存の有無、演算処理の途中経過の印字結
果を得ることができるもので、演算処理の誤りを容易に
検証することができる。また、この様な検証は、漬算処
理の終了後においてもてきる。従って、演算処理プログ
ラムの作成工数を大幅に削減することができるという極
めて実用的な効果がある。
Effects of the Invention> As described in detail above, according to the present invention, instructions from a CRT terminal can be applied to an arithmetic processing program without stopping its processing, regardless of whether it is being tested or running. , whether or not data is saved, and printed results of the progress of arithmetic processing can be obtained, making it possible to easily verify errors in arithmetic processing. Further, such verification is also performed after the completion of the calculation process. Therefore, there is an extremely practical effect that the number of man-hours required for creating an arithmetic processing program can be significantly reduced.

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

第1図は本発明の原理的な構成ブロック図、第2図は本
発明の一実施例を示す構或ブロック図、第3図は計算機
で行われる数値演算処理の流れを示す概念図である。 1・・・演算処理プログラム 2・・・インターフエイス手段 3・・・データ保存手段、4・・・選択スイッチ手段5
・・・印字手段、   6・・・CRT端末23・・・
途中経過データ収集手段 40・・・格納有無選択変更プログラム50・・・デー
タ印字プログラム 9 10
Fig. 1 is a block diagram of the basic configuration of the present invention, Fig. 2 is a block diagram showing an embodiment of the invention, and Fig. 3 is a conceptual diagram showing the flow of numerical calculation processing performed by a computer. . 1... Arithmetic processing program 2... Interface means 3... Data storage means, 4... Selection switch means 5
...Printing means, 6...CRT terminal 23...
Intermediate progress data collection means 40...Storage presence/absence selection change program 50...Data printing program 9 10

Claims (1)

【特許請求の範囲】 計算機に搭載した演算処理プログラムに従って数値計算
処理を行う場合の数値計算処理の検証装置おいて、 前記演算処理プログラムに容易に組み込み可能であって
、演算の途中経過に関するデータと解析に供しやすい単
位で定義した名称とを残せるように構成したインターフ
ェイス手段と、 途中経過データを格納するデータ保存手段と、外部から
の指示に従って前記インターフェイス手段に残された途
中経過に関するデータおよび検索情報データを前記デー
タ保存手段に格納する選択スイッチ手段と、 前記保存手段に格納されたデータを検索情報に従って読
みだし印字する印字手段と を設けたことを特徴とする計算機による数値計算処理の
検証装置。
[Scope of Claims] A verification device for numerical calculation processing when performing numerical calculation processing according to an arithmetic processing program installed in a computer, which can be easily incorporated into the arithmetic processing program and includes data regarding the intermediate progress of the calculation. interface means configured to leave names defined in units that are easy to analyze, data storage means for storing intermediate progress data, and data and search information regarding intermediate progress left in the interface means according to instructions from the outside. A verification device for numerical calculation processing by a computer, comprising: a selection switch means for storing data in the data storage means; and a printing means for reading and printing the data stored in the storage means according to search information.
JP1242539A 1989-09-19 1989-09-19 Numerical calculation processing verifying device dependent upon computer Pending JPH03103935A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1242539A JPH03103935A (en) 1989-09-19 1989-09-19 Numerical calculation processing verifying device dependent upon computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1242539A JPH03103935A (en) 1989-09-19 1989-09-19 Numerical calculation processing verifying device dependent upon computer

Publications (1)

Publication Number Publication Date
JPH03103935A true JPH03103935A (en) 1991-04-30

Family

ID=17090616

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1242539A Pending JPH03103935A (en) 1989-09-19 1989-09-19 Numerical calculation processing verifying device dependent upon computer

Country Status (1)

Country Link
JP (1) JPH03103935A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6431087B1 (en) 1998-06-29 2002-08-13 Shima Seiki Mfg., Ltd. System table with coordinate-input device incorporated

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6431087B1 (en) 1998-06-29 2002-08-13 Shima Seiki Mfg., Ltd. System table with coordinate-input device incorporated

Similar Documents

Publication Publication Date Title
JPH03103935A (en) Numerical calculation processing verifying device dependent upon computer
IE79236B1 (en) Apparatus and method for recovering from page faults in vector data processing operations
JP3179353B2 (en) Program test automation system
JP2885907B2 (en) Online processing time analysis method
JPH05143422A (en) Updated journal managing system
JP3018674B2 (en) Parts development processing equipment
JPH08286950A (en) Information processor and trace information storage method
JPS63191243A (en) Collection system for jump history data
JPS60217467A (en) Data collecting processing unit
JPH0468446A (en) Debugging supporting device
JPH02144721A (en) Batch processing system for plural batch files
JPH05233231A (en) Method for managing library
JPS63201841A (en) Program debugging system
JPS63201740A (en) Data editing system for service processor
JPH08286778A (en) Job execution management method and device therefor
JPS6353654A (en) System for continuously executing and processing program in case of occurrence of exception
JPH01305446A (en) Program debug support processing system
JPS6112295B2 (en)
JPH01119837A (en) Program evaluating system
JPH0358144A (en) System for gathering program run history information
JPH064348A (en) Program debugging system
JPH0520051A (en) Software conversion operation controller
JPS59119953A (en) Automation system for testing
JPH05233349A (en) Automatic test tool for program module
JPH05276225A (en) Communication fault analyzer