JPH08328908A - Program monitoring device and device driven by program - Google Patents
Program monitoring device and device driven by programInfo
- Publication number
- JPH08328908A JPH08328908A JP7130010A JP13001095A JPH08328908A JP H08328908 A JPH08328908 A JP H08328908A JP 7130010 A JP7130010 A JP 7130010A JP 13001095 A JP13001095 A JP 13001095A JP H08328908 A JPH08328908 A JP H08328908A
- Authority
- JP
- Japan
- Prior art keywords
- signal
- program
- video signal
- driven
- monitoring device
- 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.)
- Withdrawn
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
(57)【要約】
【目的】 プログラム監視装置およびプログラムにより
駆動される装置において、短時間でかつ簡単にプログラ
ムの暴走を検出する。
【構成】 プログラムにより駆動され表示装置に画像を
表示する装置からの同期信号をカウントすることで時間
を計測する計測手段15Bと、同期信号の周期毎に映像
信号を記憶する記憶手段15Dと、記憶手段15Dで記
憶した映像信号と次の周期の映像信号を比較する比較手
段15Eと、比較手段15Eが出力する信号の変化を検
出したとき計測手段15Bの計測を停止させる信号変化
検出手段15Cを備える。
(57) [Abstract] [Purpose] A program monitoring device and a device driven by a program detect a program runaway easily in a short time. A measuring unit 15B that measures time by counting a synchronization signal from a device that is driven by a program and that displays an image on a display device, a storage unit 15D that stores a video signal at each period of the synchronization signal, and a storage unit The comparison means 15E for comparing the video signal stored in the means 15D with the video signal of the next cycle, and the signal change detection means 15C for stopping the measurement of the measurement means 15B when the change of the signal output by the comparison means 15E is detected. .
Description
【0001】[0001]
【産業上の利用分野】本発明は、プログラムの暴走など
を監視するプログラム監視装置およびこれを内蔵したプ
ログラムにより駆動される装置に関する。プログラムに
より駆動される装置、例えばパーソナルコンピュータや
ワークステーションなどにおいては、プログラムの無限
ループ、応答なし、暴走などを検出するためにテストプ
ログラムを設けている。しかしながら、装置毎に固有の
テストプログラムを開発して、組み込む必要があるた
め、装置の開発期間が長くなっていた。このような不具
合をなくし、装置の開発期間を短縮することができるプ
ログラム監視装置の開発が要望されている。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program monitoring device for monitoring a program runaway and the like and a device driven by a program incorporating the program monitoring device. In a device driven by a program, such as a personal computer or a workstation, a test program is provided to detect an endless loop of the program, no response, runaway, etc. However, since it is necessary to develop and incorporate a unique test program for each device, the device development period is long. There is a demand for the development of a program monitoring device that can eliminate such problems and shorten the development period of the device.
【0002】[0002]
【従来の技術】従来のプログラムにより駆動される装置
としては、例えば図11に示すようなコンピュータ装置
がある。図11において、1はコンピュータ装置2のR
AMであり、RAM1はCPU3により制御される。R
AM1内にはデータが一時的に格納され、RAM1はワ
ーク領域としての機能を有する。2. Description of the Related Art As a conventional device driven by a program, there is a computer device as shown in FIG. In FIG. 11, 1 is R of the computer device 2.
It is AM, and the RAM 1 is controlled by the CPU 3. R
Data is temporarily stored in the AM1, and the RAM1 has a function as a work area.
【0003】4はROMであり、ROM4はCPU3に
より制御される。ROM4内にはコンピュータ装置2を
駆動するプログラム5とデバック用のテストプログラム
6がそれぞれ格納されている。CPU3はプログラム5
に従ってプログラム5に書き込まれた処理を実行する。
また、テストプログラム6により、CPU3の暴走など
が検出され、デバックが行われる。Reference numeral 4 is a ROM, and the ROM 4 is controlled by the CPU 3. A program 5 for driving the computer device 2 and a test program 6 for debugging are stored in the ROM 4, respectively. CPU3 is program 5
Then, the processing written in the program 5 is executed according to.
Further, the test program 6 detects a runaway of the CPU 3 or the like, and debugs.
【0004】7はディスプレイであり、ディスプレイ7
はCPU3により制御される。ディスプレイ7には、C
PU3によるプログラム5の実行により変化する画面や
静止した画面がそれぞれ表示される。8はキーボードで
あり、キーボード8よりデータがCPU3に入力する。
このように、テストプログラム6により、プログラム5
のテストが行われるが、ロジックアナライザーによりハ
ード的にプログラム5の内容を測定することもできる。
ロジックアナライザーを用いる場合には、LSIから画
像信号などを検出するための信号線を引き出していた。Reference numeral 7 denotes a display, and the display 7
Are controlled by the CPU 3. C on the display 7
A screen that is changed by the execution of the program 5 by the PU 3 and a still screen are displayed. Reference numeral 8 is a keyboard, and data is input to the CPU 3 from the keyboard 8.
In this way, the test program 6 causes the program 5
However, the contents of the program 5 can be measured by hardware using a logic analyzer.
When a logic analyzer is used, a signal line for detecting an image signal or the like has been drawn from the LSI.
【0005】[0005]
【発明が解決しようとする課題】しかしながら、このよ
うな従来のプログラムにより駆動される装置にあって
は、プログラムのデバッグのためにテストプログラムを
組み込む必要があった。テストプログラムは装置毎に開
発して組み込む必要があり、汎用性がないため、装置の
開発時間がかかるという問題があった。However, in a device driven by such a conventional program, it is necessary to incorporate a test program for debugging the program. Since the test program needs to be developed and incorporated for each device and has no versatility, there is a problem that it takes time to develop the device.
【0006】また、ロジックアナライザーを用いる場合
には、映像信号の変化をとらえることができても、映像
信号が変化するまでの時間を測定することはできず、プ
ログラムの暴走などを検出することはできなかった。ま
た、ロジックアナライザーを用いる場合にはLSIから
画像信号などを検出するための信号線を引き出さなけれ
ばならないため、手間と時間がかかるという問題もあっ
た。Further, when the logic analyzer is used, even if the change of the video signal can be detected, the time until the change of the video signal cannot be measured, and the runaway of the program cannot be detected. could not. Further, when a logic analyzer is used, a signal line for detecting an image signal or the like has to be drawn out from the LSI, which causes a problem that it takes time and effort.
【0007】本発明は、このような従来の問題点に鑑み
てなされたものであって、テストプログラムやロジック
アナライザーを用いることなく、短時間でかつ簡単にプ
ログラムの暴走を検出することができるプログラム監視
装置およびプログラムにより駆動される装置を提供する
ことを目的とする。The present invention has been made in view of such conventional problems, and is a program capable of easily detecting runaway of a program in a short time without using a test program or a logic analyzer. An object is to provide a monitoring device and a device driven by a program.
【0008】[0008]
【課題を解決するための手段】図1は本発明の原理説明
図である。本発明のプログラム監視装置は、プログラム
により駆動され表示装置に画像を表示する装置からの同
期信号をカウントすることで時間を計測する計測手段1
5Bと、同期信号の周期毎に映像信号を記憶する記憶手
段15Dと、記憶手段15Dで記憶した映像信号と次の
周期の映像信号を比較する比較手段15Eと、比較手段
15Eが出力する信号の変化を検出したとき計測手段1
5Bの計測を停止させる信号変化検出手段15Cと、を
備えたことを特徴とする。FIG. 1 is a diagram illustrating the principle of the present invention. The program monitoring device of the present invention is a measuring means 1 for measuring time by counting synchronization signals from a device which is driven by a program and which displays an image on a display device.
5B, a storage unit 15D that stores a video signal for each cycle of the synchronization signal, a comparison unit 15E that compares the video signal stored in the storage unit 15D with a video signal of the next cycle, and a signal that the comparison unit 15E outputs. When a change is detected, measuring means 1
The signal change detecting means 15C for stopping the measurement of 5B is provided.
【0009】また、本発明のプログラムの監視装置にお
いては、信号変化検出手段15Cで映像信号が異なる繰
り返しの信号パターンから一定の信号パターンに変化し
たことを検出したときその時間を計測手段15Bで計測
する。また、本発明のプログラム監視装置においては、
信号変化検出手段15Cで映像信号が一定の信号パター
ンから異なる繰り返しの信号パターンに変化したことを
検出したときその時間を計測手段15Bで計測する。Further, in the program monitoring apparatus of the present invention, when the signal change detection means 15C detects that the video signal has changed from a repeated signal pattern different from a fixed signal pattern, the time is measured by the measuring means 15B. To do. Further, in the program monitoring device of the present invention,
When the signal change detecting means 15C detects that the video signal has changed from a constant signal pattern to a different repeating signal pattern, the measuring means 15B measures the time.
【0010】また、本発明のプログラム監視装置におい
ては、プログラムにより駆動される装置の出力コネクタ
より同期信号および映像信号を入力する。また、本発明
のプログラムにより駆動される装置は、プログラム監視
装置を、内蔵した。さらに、本発明のプログラムにより
駆動される装置は、プログラム監視装置を、拡張ボード
として使用する。Further, in the program monitoring apparatus of the present invention, the synchronizing signal and the video signal are inputted from the output connector of the apparatus driven by the program. Further, the device driven by the program of the present invention has a built-in program monitoring device. Further, the device driven by the program of the present invention uses the program monitoring device as an expansion board.
【0011】[0011]
【作用】このような構成を備えた本発明のプログラム監
視装置によれば、プログラムにより駆動され表示装置に
画像を表示する装置からの同期信号をカウントすること
で時間を計測し、同期信号の周期毎に映像信号を記憶
し、記憶した映像信号と次の周期の映像信号を比較し、
比較出力された信号の変化を検出したとき計測を停止さ
せるので、短時間でかつ簡単にプログラムの暴走などを
検出することができ、その結果、装置の開発期間を短縮
することができる。According to the program monitoring device of the present invention having such a configuration, the time is measured by counting the synchronization signals from the device which is driven by the program and which displays the image on the display device, and the period of the synchronization signal is measured. The video signal is stored for each, and the stored video signal is compared with the video signal of the next cycle,
Since the measurement is stopped when a change in the signal output by comparison is detected, a program runaway or the like can be detected in a short time and easily, and as a result, the development period of the device can be shortened.
【0012】また、本発明のプログラムの監視装置にお
いては、信号変化検出手段15Cで映像信号が異なる繰
り返しの信号パターンから一定の信号パターンに変化し
たことを検出したときその時間を計測手段15Bで計測
するので、画像が変化する場合にプログラムの暴走など
を検出することができる。また、本発明のプログラム監
視装置においては、信号変化検出手段15Cで映像信号
が一定の信号パターンから異なる繰り返しの信号パター
ンに変化したことを検出したときその時間を計測手段1
5Bで計測するので、画像が静止している場合にプログ
ラムの暴走などを検出することができる。Further, in the program monitoring apparatus of the present invention, when the signal change detecting means 15C detects that the video signal has changed from a repeating signal pattern different from one another to a constant signal pattern, the measuring means 15B measures the time. Therefore, when the image changes, it is possible to detect a program runaway or the like. Further, in the program monitoring apparatus of the present invention, when the signal change detecting means 15C detects that the video signal changes from a constant signal pattern to a different repeating signal pattern, the time is measured by the measuring means 1
Since the measurement is performed at 5B, it is possible to detect a program runaway or the like when the image is stationary.
【0013】また、本発明のプログラム監視装置におい
ては、プログラムにより駆動される装置の出力コネクタ
より同期信号および映像信号を入力するので、接続する
のに手間をかけずにプログラムの暴走などを検出するこ
とができる。また、本発明のプログラムにより駆動され
る装置においては、プログラム監視装置を内蔵するよう
にしたので、テストプログラムによらずに短時間でかつ
簡単にプログラムの暴走などを検出することができる。Further, in the program monitoring apparatus of the present invention, since the synchronizing signal and the video signal are inputted from the output connector of the apparatus driven by the program, the program runaway or the like can be detected without troublesome connection. be able to. Further, since the apparatus driven by the program of the present invention has the built-in program monitoring apparatus, it is possible to easily detect runaway of the program in a short time without depending on the test program.
【0014】さらに、本発明のプログラムにより駆動さ
れる装置においては、プログラム監視装置を、拡張コネ
クタに接続する拡張ボードとして使用するので、接続す
るのに手間をかけずにプログラムの暴走などを検出する
ことができる。Further, in the apparatus driven by the program of the present invention, since the program monitoring apparatus is used as an expansion board connected to the expansion connector, the program runaway or the like can be detected without any trouble in connection. be able to.
【0015】[0015]
【実施例】図2は本発明の一実施例を示すブロック図で
ある。図2において、11はプログラムにより駆動され
る装置、例えばコンピュータ装置を示す。12はプログ
ラムにより駆動される装置11の本体であり、本体12
にはRAM13、ROM14、プログラム監視装置15
およびCPU16が設けられている。プログラム監視装
置15は、本体12内に内蔵されている。FIG. 2 is a block diagram showing an embodiment of the present invention. In FIG. 2, 11 indicates a device driven by a program, for example, a computer device. Reference numeral 12 denotes a main body of the device 11 driven by a program, and the main body 12
RAM 13, ROM 14, program monitoring device 15
And a CPU 16 is provided. The program monitoring device 15 is built in the main body 12.
【0016】RAM13はCPU16により制御され、
データが一時的に格納され、ワーク領域としての機能を
有する。ROM14はCPU16により制御され、RO
M14内には装置11を駆動するプログラム14Aが格
納されている。プログラム14Aに従ってCPU16は
プログラム14Aに書き込まれた処理を実行する。プロ
グラム監視装置15は、プログラム14Aの暴走などを
検出する。The RAM 13 is controlled by the CPU 16,
The data is temporarily stored and has a function as a work area. ROM14 is controlled by CPU16, RO
A program 14A for driving the device 11 is stored in M14. According to the program 14A, the CPU 16 executes the processing written in the program 14A. The program monitoring device 15 detects runaway of the program 14A.
【0017】また、17はディスプレイであり、ディス
プレイ17はCPU16により制御される。ディスプレ
イ17にはプログラム14Aに従って書き込まれた処理
を実行するCPU16により変化する画面または静止し
た画面が表示される。18はキーボードであり、キーボ
ード18はCPU16により制御される。キーボード1
8の操作により、データがCPU16に入力する。Reference numeral 17 is a display, and the display 17 is controlled by the CPU 16. On the display 17, a screen changed or a still screen is displayed by the CPU 16 which executes the processing written according to the program 14A. Reference numeral 18 is a keyboard, and the keyboard 18 is controlled by the CPU 16. Keyboard 1
Data is input to the CPU 16 by the operation of 8.
【0018】次に、図3はプログラム監視装置15の構
成例を示す図である。図3において、15Aは受信回路
であり、受信回路15AはCPU16より同期信号およ
び映像信号を受信する。同期信号は、図4のPに示すよ
うに、一定間隔のパルス信号よりなり、1つのパルス信
号が入力して、次のパルス信号が入力するまでの時間を
1周期とする。Next, FIG. 3 is a diagram showing a configuration example of the program monitoring device 15. In FIG. 3, 15A is a receiving circuit, and the receiving circuit 15A receives a synchronizing signal and a video signal from the CPU 16. As shown in P of FIG. 4, the synchronization signal is composed of pulse signals at regular intervals, and the period from the input of one pulse signal to the input of the next pulse signal is one cycle.
【0019】t1で示す周期には、aで示す映像信号が
入力し、周期t2ではbで示す映像信号が入力し、周期
t1〜t5では同じ信号パターンの映像信号cが入力す
る。図5の場合には、周期t1〜t3では同じ信号パタ
ーンの映像信号dが入力し、周期t4,t5では異なる
信号パターンの映像信号e,fが入力する。再び図3に
おいて、15Bは計測手段としてのカウンタであり、カ
ウンタ15Bは入力する同期信号を順次カウントして、
時間を計測する。すなわち、カウンタ15Bは、プログ
ラム14Aの駆動により受信回路15Aからの同期信号
のカウントを開始し、信号変化検出手段としての信号変
化検出回路15Cからの信号によりカウントを停止し、
プログラム14Aが駆動されてから信号が変化するまで
の時間を計測する。In the period shown by t1, the video signal shown by a is inputted, the video signal shown by b is inputted in the period t2, and the video signal c having the same signal pattern is inputted in the periods t1 to t5. In the case of FIG. 5, video signals d having the same signal pattern are input in the cycles t1 to t3, and video signals e and f having different signal patterns are input in the cycles t4 and t5. In FIG. 3 again, 15B is a counter as a measuring means, and the counter 15B sequentially counts the input synchronizing signals,
Time is measured. That is, the counter 15B starts counting the synchronization signal from the receiving circuit 15A by driving the program 14A, and stops counting by the signal from the signal change detecting circuit 15C as the signal change detecting means,
The time from when the program 14A is driven until the signal changes is measured.
【0020】15Dは記憶手段としてのメモリであり、
メモリ15Dには同期信号の周期毎に映像信号が格納さ
れる。15Eは比較手段としての比較回路であり、比較
回路15Eはメモリ15Dに格納された映像信号と次の
周期の映像信号を比較し、一致信号または不一致信号を
信号変化検出回路15Cに出力する。図4の場合、周期
t1では映像信号aがメモリ15Dに入力し、比較回路
15Eは、周期t2でメモリ15Dからの映像信号aと
受信回路15Aでは周期t2の映像信号bを比較し、不
一致信号を出力し、また、周期t2では映像信号bがメ
モリ15Dに入力する。周期t3で比較回路15Eはメ
モリ15Dからの映像信号bと受信回路15Aからの周
期t3の映像信号cを比較し、不一致信号を出力し、ま
た、周期t3では映像信号cがメモリ15Dに入力す
る。周期t4で比較回路15Eはメモリ15Dからの映
像信号cと受信回路15Aからの周期t4の映像信号c
を比較し、一致信号を出力する。信号変化検出回路15
Cは、不一致信号から一致信号に信号が変化したことを
検出し、カウンタ15Bを停止させる。Reference numeral 15D is a memory as a storage means,
A video signal is stored in the memory 15D for each cycle of the synchronization signal. Reference numeral 15E is a comparison circuit as a comparison means. The comparison circuit 15E compares the video signal stored in the memory 15D with the video signal of the next cycle, and outputs a coincidence signal or a non-coincidence signal to the signal change detection circuit 15C. In the case of FIG. 4, the video signal a is input to the memory 15D at the cycle t1, and the comparison circuit 15E compares the video signal a from the memory 15D at the cycle t2 with the video signal b at the cycle t2 at the reception circuit 15A to obtain a mismatch signal. And the video signal b is input to the memory 15D in the cycle t2. At the cycle t3, the comparison circuit 15E compares the video signal b from the memory 15D with the video signal c at the cycle t3 from the receiving circuit 15A and outputs a non-coincidence signal, and at the cycle t3, the video signal c is input to the memory 15D. . At the cycle t4, the comparison circuit 15E causes the video signal c from the memory 15D and the video signal c at the cycle t4 from the receiving circuit 15A.
Are compared and a coincidence signal is output. Signal change detection circuit 15
C detects that the signal has changed from the mismatch signal to the match signal, and stops the counter 15B.
【0021】図5の場合、周期t1では映像信号dがメ
モリ15Dに入力し、周期t2で比較回路15Eはメモ
リ15Dからの映像信号dと受信回路15Aからの周期
t2の映像信号dを比較し、一致信号を出力し、また、
周期t2では映像信号dがメモリ15Dに入力する。周
期t3で比較回路15Eはメモリ15Dからの映像信号
dと受信回路15Aからの周期t3の映像信号dを比較
し、一致信号を出力し、また、周期t3では映像信号d
がメモリ15Dに入力する。周期t4で比較回路15E
はメモリ15Dからの映像信号dと受信回路15Aから
の周期t4の映像信号cを比較し、不一致信号を出力す
る。信号変化検出回路15Cは、一致信号から不一致信
号に信号が変化したことを検出し、カウンタ15Bを停
止させる。In the case of FIG. 5, the video signal d is input to the memory 15D at the cycle t1, and the comparison circuit 15E compares the video signal d from the memory 15D with the video signal d at the cycle t2 from the receiving circuit 15A at the cycle t2. , Output a match signal,
At the cycle t2, the video signal d is input to the memory 15D. At the cycle t3, the comparison circuit 15E compares the video signal d from the memory 15D with the video signal d at the cycle t3 from the receiving circuit 15A, and outputs a coincidence signal, and at the cycle t3, the video signal d.
Input to the memory 15D. Comparison circuit 15E at cycle t4
Compares the video signal d from the memory 15D with the video signal c having the cycle t4 from the receiving circuit 15A and outputs a non-coincidence signal. The signal change detection circuit 15C detects that the signal has changed from the coincidence signal to the non-coincidence signal, and stops the counter 15B.
【0022】次に、動作を説明する。図6は画面が変化
するプログラム14Aの例を説明するフローチャートで
ある。まず、ステップS1でプログラム14Aが駆動さ
れ、CPU16がプログラム14Aに書き込まれて処理
を開始したとする。CPU16からの同期信号および映
像信号は、プログラム監視装置15の受信回路15Aで
受信される。Next, the operation will be described. FIG. 6 is a flowchart illustrating an example of the program 14A whose screen changes. First, it is assumed that the program 14A is driven in step S1 and the CPU 16 writes the program 14A and starts the process. The synchronizing signal and the video signal from the CPU 16 are received by the receiving circuit 15A of the program monitoring device 15.
【0023】次に、ステップS2でカウンタ15Bは受
信回路15Aからの同期信号のカウントを開始し、同時
にステップS3では受信回路15Aからの映像信号がメ
モリ15Dに入力する。図4の場合を例にとって説明す
ると、周期t1において、映像信号aがメモリ15Dに
入力する。次に、ステップS4で比較回路15Eは、メ
モリ15Dからの映像信号aと受信回路15Aからの周
期t2の映像信号bを比較する。メモリ15Dからの映
像信号aと受信回路15Aからの映像信号bはまったく
違う信号パターンであるため、比較回路15Eは不一致
信号を信号変化検出回路15Cに出力する。周期t3で
も比較回路15Eは不一致信号を信号変化検出回路15
Cに出力する。Next, in step S2, the counter 15B starts counting the synchronizing signal from the receiving circuit 15A, and at the same time, in step S3, the video signal from the receiving circuit 15A is input to the memory 15D. Taking the case of FIG. 4 as an example, the video signal a is input to the memory 15D in the cycle t1. Next, in step S4, the comparison circuit 15E compares the video signal a from the memory 15D with the video signal b having the cycle t2 from the reception circuit 15A. Since the video signal a from the memory 15D and the video signal b from the reception circuit 15A have completely different signal patterns, the comparison circuit 15E outputs a mismatch signal to the signal change detection circuit 15C. Also in the cycle t3, the comparison circuit 15E outputs the mismatch signal to the signal change detection circuit 15
Output to C.
【0024】周期t4では、比較回路15Eはメモリ1
5Dからの映像信号cと受信回路15Aからの周期t4
の映像信号cを比較する。この場合には、信号パターン
が同一であるため、比較回路15Eは一致信号を信号変
化検出回路15Cに出力する。このため、ステップS5
で信号変化検出回路15Cは不一致信号から一致信号へ
の信号変化を検出し、カウンタ15Bを停止させる。In the cycle t4, the comparison circuit 15E causes the memory 1
The video signal c from 5D and the cycle t4 from the receiving circuit 15A
The video signals c of are compared. In this case, since the signal patterns are the same, the comparison circuit 15E outputs the coincidence signal to the signal change detection circuit 15C. Therefore, step S5
Then, the signal change detection circuit 15C detects the signal change from the mismatch signal to the match signal and stops the counter 15B.
【0025】このように、映像信号が周期毎にまったく
違う信号パターンとなっていたが、ある周期になると、
一定のパターンを繰り返すときは、一定パターンとなる
時間をカウンタ15Bで計測する。次に、図7は画面が
静止しているプログラム14Aの例を説明するフローチ
ャートである。As described above, the video signal had a completely different signal pattern for each cycle, but at a certain cycle,
When repeating a fixed pattern, the time for the fixed pattern is measured by the counter 15B. Next, FIG. 7 is a flowchart illustrating an example of the program 14A whose screen is stationary.
【0026】ステップS11〜ステップS13までは、
図6のステップS1〜ステップS3と同じであるため説
明を省略する。ステップS14で比較回路15Eはメモ
リ15Dからの映像信号と受信回路15Aからの次の周
期の映像信号を比較する。図5の場合を例にとって説明
すると、周期t2で比較回路15Eはメモリ15Dから
の映像信号dと受信回路15Aからの周期t2の映像信
号dを比較する。この場合には、同一の信号パターンで
あるため、比較回路15Eは一致信号を信号変化検出回
路15Cに出力する。周期t3でも比較回路15Eは一
致信号を信号変化検出回路15Cに出力する。周期t4
では比較回路15Eはメモリ15Dからの映像信号dと
受信回路15Aからの周期t4の映像信号eを比較す
る。この場合は、信号パターンが違っているので比較回
路15Eは不一致信号を信号変化検出回路15Cに出力
する。From step S11 to step S13,
Since it is the same as step S1 to step S3 in FIG. 6, description thereof will be omitted. In step S14, the comparison circuit 15E compares the video signal from the memory 15D with the video signal of the next cycle from the reception circuit 15A. Taking the case of FIG. 5 as an example, the comparison circuit 15E compares the video signal d from the memory 15D with the video signal d from the reception circuit 15A at the cycle t2 at the cycle t2. In this case, since the signal patterns are the same, the comparison circuit 15E outputs a coincidence signal to the signal change detection circuit 15C. Also in the cycle t3, the comparison circuit 15E outputs the coincidence signal to the signal change detection circuit 15C. Cycle t4
Then, the comparison circuit 15E compares the video signal d from the memory 15D with the video signal e of the cycle t4 from the reception circuit 15A. In this case, since the signal patterns are different, the comparison circuit 15E outputs a mismatch signal to the signal change detection circuit 15C.
【0027】したがって、ステップS15で信号変化検
出回路15Cは一致信号から不一致信号への信号変化を
検出し、カウンタ15Bを停止させる。カウンタ15B
は、映像信号が一定の信号パターンを繰り返していた
が、ある周期で繰り返しをやめた時間を計測する。この
ように、テストプログラムやロジックアナライザーを用
いることなく、プログラム14Aの暴走などを短時間で
かつ簡単に検出することができる。その結果、装置の開
発期間を短縮することができる。Therefore, in step S15, the signal change detection circuit 15C detects the signal change from the coincidence signal to the non-coincidence signal and stops the counter 15B. Counter 15B
, The video signal repeats a constant signal pattern, but measures the time when it stops repeating at a certain cycle. Thus, the runaway of the program 14A can be detected easily in a short time without using a test program or a logic analyzer. As a result, the development period of the device can be shortened.
【0028】次に、図8は本発明の他の実施例を示す斜
視図である。図8において、12はプログラムにより駆
動される装置11の本体を示し、本体12内にはプログ
ラム監視装置である拡張ボード19が内蔵されている。
本体12内にはプログラムが設けられ、プログラムに従
ってCPUが処理を実行する。本体12には拡張コネク
タ20が設けられ、拡張コネクタ20には拡張ボード1
9が接続される。Next, FIG. 8 is a perspective view showing another embodiment of the present invention. In FIG. 8, reference numeral 12 denotes a main body of the device 11 driven by a program, and an expansion board 19 which is a program monitoring device is built in the main body 12.
A program is provided in the main body 12, and the CPU executes processing according to the program. The main body 12 is provided with an extension connector 20, and the extension connector 20 has an extension board 1
9 is connected.
【0029】拡張ボード19は、プログラム監視装置を
構成しており、図3に示すように拡張コネクタ20から
同期信号と映像信号を受信する受信回路15Aと、受信
回路15Aで受信した同期信号をカウントし、信号パタ
ーンが変化するまでの時間を計測するカウンタ15B
と、受信回路15Aで受信した画像信号を周期毎に格納
するメモリ15Dと、メモリ15Dに格納した映像信号
と受信回路15Aからの次の周期の映像信号を比較して
一致信号または不一致信号を出力する比較回路15E
と、比較回路15Eが出力する信号の変化を検出してカ
ウンタ15Bを停止させる信号変化検出回路15Cによ
り構成される。本実施例においても、プログラムの暴走
などを短時間でかつ簡単に検出することができ、装置の
開発時間を短縮することができる。The expansion board 19 constitutes a program monitoring device, and as shown in FIG. 3, the reception circuit 15A for receiving the synchronization signal and the video signal from the expansion connector 20 and the synchronization signal received by the reception circuit 15A are counted. Counter 15B that measures the time until the signal pattern changes
And a memory 15D that stores the image signal received by the receiving circuit 15A for each cycle, and a video signal stored in the memory 15D and the video signal of the next cycle from the receiving circuit 15A are compared to output a match signal or a mismatch signal. Comparing circuit 15E
And a signal change detection circuit 15C that detects a change in the signal output from the comparison circuit 15E and stops the counter 15B. Also in this embodiment, a program runaway or the like can be detected easily in a short time, and the development time of the device can be shortened.
【0030】次に、図9は本発明のさらに他の実施例を
示すブロック図である。本実施例においては、プログラ
ム監視装置がプログラムにより駆動される装置から独立
した装置として構成されている。図9において、21は
プログラムにより駆動される装置、22は変化する画像
または検出した画像が表示される表示装置であり、これ
らの装置21と表示装置22の間にはプログラム監視装
置23が接続される。Next, FIG. 9 is a block diagram showing still another embodiment of the present invention. In this embodiment, the program monitoring device is configured as a device independent of the device driven by the program. In FIG. 9, 21 is a device driven by a program, 22 is a display device for displaying a changing image or a detected image, and a program monitoring device 23 is connected between these devices 21 and 22. It
【0031】プログラム監視装置23は、図10に示す
ように、装置21の本体21Aに設けられた出力コネク
タ21Bに接続され、出力コネクタ21Bから同期信号
と映像信号を受信する。プログラム監視装置23は、図
3に示すように、受信回路15A、カウンタ15B、メ
モリ15D、比較回路15Eおよび信号変化検出回路1
5Cにより構成される。プログラム監視装置23は、図
4に示すように、映像信号がまったく違うパターンとな
っているが、ある周期になると一定の信号パターンを繰
り返すようなとき、一定のパターンを繰り返す時間を計
測する。As shown in FIG. 10, the program monitoring device 23 is connected to an output connector 21B provided on the main body 21A of the device 21, and receives a synchronizing signal and a video signal from the output connector 21B. As shown in FIG. 3, the program monitoring device 23 includes a reception circuit 15A, a counter 15B, a memory 15D, a comparison circuit 15E, and a signal change detection circuit 1.
It is composed of 5C. As shown in FIG. 4, the program monitoring device 23 has a completely different pattern of the video signal. However, when a certain signal pattern is repeated at a certain cycle, the program monitoring device 23 measures the time for repeating the certain pattern.
【0032】また、プログラム監視回路23は、図5に
示すように、映像信号が一定の信号パターンを繰り返し
ているが、ある周期になると、繰り返しをやめているよ
うなときの信号パターンが変化するまでの時間を計測す
る。したがって、プログラムの暴走などを短時間でかつ
簡単に検出することができる。本実施例のプログラム監
視装置23は、独立した装置であり、プログラムにより
駆動される装置21の本体21Aの出力コネクタ21B
に接続するだけで、簡単にプログラムの監視を行うこと
ができる。As shown in FIG. 5, the program monitoring circuit 23 repeats a signal pattern in which the video signal is constant. However, at a certain period, the signal pattern at the time when the repetition is stopped changes. To measure the time. Therefore, a program runaway or the like can be detected easily in a short time. The program monitoring device 23 of this embodiment is an independent device, and is an output connector 21B of the main body 21A of the device 21 driven by a program.
You can easily monitor the program just by connecting to.
【0033】[0033]
【発明の効果】以上説明してきたように、本発明によれ
ば、記憶手段に記憶した映像信号と次の周期の映像信号
を比較し、映像信号の信号パターンが変化したとき、こ
れを検出して信号が変化するまでの時間を計測するよう
にしたため、テストプログラムやロジックアナライザー
を用いることなく、短時間で簡単にプログラムの暴走な
どを検出することができ、その結果、開発期間を短縮す
ることができる。As described above, according to the present invention, the video signal stored in the storage means is compared with the video signal of the next cycle, and when the signal pattern of the video signal changes, it is detected. Since it measures the time until the signal changes, it is possible to easily detect program runaway etc. in a short time without using a test program or logic analyzer, resulting in shortening the development period. You can
【図1】本発明の原理説明図FIG. 1 is a diagram illustrating the principle of the present invention.
【図2】本発明の一実施例を示すブロック図FIG. 2 is a block diagram showing an embodiment of the present invention.
【図3】プログラム監視装置の構成例を示す図FIG. 3 is a diagram showing a configuration example of a program monitoring device.
【図4】同期信号と映像信号を示すグラフFIG. 4 is a graph showing a sync signal and a video signal.
【図5】他の同期信号と映像信号を示すグラフFIG. 5 is a graph showing another sync signal and a video signal.
【図6】動作を説明するフローチャートFIG. 6 is a flowchart illustrating the operation.
【図7】他の動作を説明するフローチャートFIG. 7 is a flowchart illustrating another operation.
【図8】本発明の他の実施例を示す斜視図FIG. 8 is a perspective view showing another embodiment of the present invention.
【図9】本発明のさらに他の実施例を示すブロック図FIG. 9 is a block diagram showing still another embodiment of the present invention.
【図10】プログラム監視装置の接続を示す図FIG. 10 is a diagram showing connection of a program monitoring device.
【図11】従来例を示す図FIG. 11 is a diagram showing a conventional example.
11,21:プログラムにより駆動される装置 12,21A:本体 13:RAM 14:ROM 14A:プログラム 15,23:プログラム監視装置 15A:受信回路 15B:カウンタ(計測手段) 15C:信号変化検出回路(信号変化検出手段) 15D:メモリ(記憶手段) 15E:比較回路(比較手段) 16:CPU 17:ディスプレイ(表示装置) 18:キーボード 19:拡張ボード 20:拡張コネクタ 21B:出力コネクタ 22:表示装置 11, 21: Device driven by program 12, 21A: Main body 13: RAM 14: ROM 14A: Program 15, 23: Program monitoring device 15A: Reception circuit 15B: Counter (measuring means) 15C: Signal change detection circuit (signal Change detection means) 15D: Memory (storage means) 15E: Comparison circuit (comparison means) 16: CPU 17: Display (display device) 18: Keyboard 19: Expansion board 20: Expansion connector 21B: Output connector 22: Display device
Claims (6)
を表示する装置からの同期信号をカウントすることで時
間を計測する計測手段と、 同期信号の周期毎に映像信号を記憶する記憶手段と、 該記憶手段で記憶した映像信号と次の周期の映像信号を
比較する比較手段と、 該比較手段が出力する信号の変化を検出したとき前記計
測手段の計測を停止させる信号変化検出手段と、を備え
たことを特徴とするプログラム監視装置。1. A measuring means for measuring time by counting a synchronizing signal from a device which is driven by a program and which displays an image on a display device, and a storing means for storing a video signal at each period of the synchronizing signal. Comparing means for comparing the video signal stored in the storage means with the video signal of the next cycle, and signal change detecting means for stopping the measurement of the measuring means when a change in the signal output by the comparing means is detected. A program monitoring device characterized in that
なる繰り返しの信号パターンから一定の信号パターンに
変化したことを検出したときその時間を前記計測手段で
計測することを特徴とする請求項1記載のプログラム監
視装置。2. The measuring means measures the time when the signal change detecting means detects that the video signal has changed from a different repeated signal pattern to a constant signal pattern. The program monitoring device described.
定の信号パターンから異なる繰り返しの信号パターンに
変化したことを検出したときその時間を前記計測手段で
計測することを特徴とする請求項1記載のプログラム監
視装置。3. The measuring unit measures the time when the signal change detecting unit detects that the video signal has changed from a constant signal pattern to a different repeating signal pattern. The program monitoring device described.
ネクタより前記同期信号および前記映像信号を入力する
ことを特徴とする請求項1〜3記載のプログラム監視装
置。4. The program monitoring device according to claim 1, wherein the synchronizing signal and the video signal are input from an output connector of a device driven by a program.
を、プログラム駆動され表示装置に画像を表示する装置
に内蔵したことを特徴とするプログラムにより駆動され
る装置。5. An apparatus driven by a program, characterized in that the program monitoring apparatus according to any one of claims 1 to 3 is incorporated in an apparatus which is program driven and displays an image on a display device.
を、拡張コネクタを有する装置の拡張ボードとして使用
することを特徴とするプログラムにより駆動される装
置。6. An apparatus driven by a program, wherein the program monitoring apparatus according to claim 1 is used as an expansion board of an apparatus having an expansion connector.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7130010A JPH08328908A (en) | 1995-05-29 | 1995-05-29 | Program monitoring device and device driven by program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP7130010A JPH08328908A (en) | 1995-05-29 | 1995-05-29 | Program monitoring device and device driven by program |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH08328908A true JPH08328908A (en) | 1996-12-13 |
Family
ID=15023924
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP7130010A Withdrawn JPH08328908A (en) | 1995-05-29 | 1995-05-29 | Program monitoring device and device driven by program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH08328908A (en) |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001097034A1 (en) * | 2000-06-14 | 2001-12-20 | Seiko Epson Corporation | Automatic evaluation method and automatic evaluation system and storage medium storing automatic evaluation program |
| WO2001097035A1 (en) * | 2000-06-14 | 2001-12-20 | Seiko Epson Corporation | Automatic evaluation method and automatic evaluation system and storage medium storing automatic evaluation program |
| WO2007077604A1 (en) * | 2005-12-28 | 2007-07-12 | Fujitsu Limited | Information processor and method of monitoring hang-up |
| JP2008146387A (en) * | 2006-12-11 | 2008-06-26 | Hitachi Ltd | Fault detection system and fault detection method |
-
1995
- 1995-05-29 JP JP7130010A patent/JPH08328908A/en not_active Withdrawn
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2001097034A1 (en) * | 2000-06-14 | 2001-12-20 | Seiko Epson Corporation | Automatic evaluation method and automatic evaluation system and storage medium storing automatic evaluation program |
| WO2001097035A1 (en) * | 2000-06-14 | 2001-12-20 | Seiko Epson Corporation | Automatic evaluation method and automatic evaluation system and storage medium storing automatic evaluation program |
| WO2007077604A1 (en) * | 2005-12-28 | 2007-07-12 | Fujitsu Limited | Information processor and method of monitoring hang-up |
| JP2008146387A (en) * | 2006-12-11 | 2008-06-26 | Hitachi Ltd | Fault detection system and fault detection method |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH08328908A (en) | Program monitoring device and device driven by program | |
| KR100221027B1 (en) | A computer monitoring apparatus and a method of controlling the same | |
| CN113032197A (en) | Equipment fault detection method and equipment | |
| US5508721A (en) | Display unit having automatic testing function | |
| JP2006064395A (en) | Critical path test method, integrated circuit device, critical path test method, and integrated circuit device manufacturing method | |
| CN112992023A (en) | Self-checking method and self-checking circuit of input signal | |
| US20040088638A1 (en) | Method and apparatus for isolating faulty semiconductor devices in a multiple format graphics system | |
| JP2005092430A (en) | Watchdog timer | |
| KR19980016365A (en) | Self-diagnosis method of mobile phone | |
| JPH03118644A (en) | Program execution monitor | |
| JPH02143116A (en) | Sensor controller system | |
| JP2513888B2 (en) | Microprocessor | |
| JP3158425B2 (en) | Microcomputer | |
| Youngsik et al. | Software abort and multiprocessor debugging | |
| SU660053A1 (en) | Microprocessor checking arrangement | |
| KR20090081962A (en) | Image information test unit and imaging device having same, image information test method using same | |
| JP3523059B2 (en) | Horizontal synchronization signal frequency detection method and horizontal synchronization signal frequency detection circuit | |
| SU1767503A1 (en) | Device for solving problems in graphs | |
| JP3284443B2 (en) | Ultrasonic Doppler device | |
| JP2000112839A (en) | Bus analyzer | |
| KR200286832Y1 (en) | Apparatus for Debugging of exterior bus interface in a system unit | |
| JPS612091A (en) | Seam tape detector | |
| KR970049663A (en) | Bus Analysis System and Method for Multiprocessor System | |
| JPH10326210A (en) | Logic circuit | |
| JP2001051912A (en) | Serial data transfer system and abnormality detecting method |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A300 | Withdrawal of application because of no request for examination |
Free format text: JAPANESE INTERMEDIATE CODE: A300 Effective date: 20020806 |