JP3183952B2 - Judgment waveform compressed data creation and holding device - Google Patents

Judgment waveform compressed data creation and holding device

Info

Publication number
JP3183952B2
JP3183952B2 JP17624592A JP17624592A JP3183952B2 JP 3183952 B2 JP3183952 B2 JP 3183952B2 JP 17624592 A JP17624592 A JP 17624592A JP 17624592 A JP17624592 A JP 17624592A JP 3183952 B2 JP3183952 B2 JP 3183952B2
Authority
JP
Japan
Prior art keywords
data
waveform
compressed data
determination
compressed
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.)
Expired - Fee Related
Application number
JP17624592A
Other languages
Japanese (ja)
Other versions
JPH05344358A (en
Inventor
純一 山浦
明 柳沢
暁生 加藤
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.)
Hioki EE Corp
Original Assignee
Hioki EE 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 Hioki EE Corp filed Critical Hioki EE Corp
Priority to JP17624592A priority Critical patent/JP3183952B2/en
Publication of JPH05344358A publication Critical patent/JPH05344358A/en
Application granted granted Critical
Publication of JP3183952B2 publication Critical patent/JP3183952B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Image Input (AREA)
  • Image Processing (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【産業上の利用分野】本発明は各種の検査装置等におけ
る波形判定用の判定波形圧縮データ作成保持装置に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a judgment waveform compression data generating and holding device for judging a waveform in various inspection apparatuses and the like.

【0002】[0002]

【従来の技術】従来、プリント基板に装着した部品や回
路網等の動作状態を検査する場合、ストレージオシロ、
メモリレコーダ、インサーキットテスタ等を用いて、そ
れ等の部品や回路網に電圧、電流等の信号を印加し、測
定波形データを得て、先に作成しておいた判定波形デー
タと比較し、結果の判断を行っている。通常、それ等の
検査装置にはマイクロコンピュータ等が備えられている
ため、そのCPUの制御でV−RAMにデータを記憶さ
せると、そのデータを表示装置のCRT等の画面上に表
示できる。それ故、判定波形データを作成するには操作
部にあるキー等を操作し、画面上に任意の判定波形を表
示して、その画面イメージと一致する判定波形データを
V−RAMに記憶する。
2. Description of the Related Art Conventionally, when inspecting the operation state of components or a circuit network mounted on a printed circuit board, storage oscilloscopes,
Using a memory recorder, an in-circuit tester, etc., apply signals such as voltage and current to those parts and the circuit network, obtain measurement waveform data, and compare it with the previously created judgment waveform data. Judge the results. Usually, such inspection devices are provided with a microcomputer or the like, and when data is stored in a V-RAM under the control of the CPU, the data can be displayed on a screen such as a CRT of a display device. Therefore, in order to create the judgment waveform data, a user operates a key or the like in the operation section to display an arbitrary judgment waveform on the screen, and stores the judgment waveform data corresponding to the screen image in the V-RAM.

【0003】そこで、V−RAMに記憶されている判定
波形データをそのまま無圧縮で他の記憶装置に記憶して
保持する。その際、表示画面の大きさが図18に示すよ
うな横方向にXピクセル、縦方向にYピクセルのもので
あれば、V−RAMの1ビットを表示画面の斜線で示し
た1ピクセルに対応させると、判定波形データを保持す
る記憶容量としてX×Yビット必要となる。
Therefore, the determination waveform data stored in the V-RAM is stored and held in another storage device without compression. At this time, if the size of the display screen is X pixels in the horizontal direction and Y pixels in the vertical direction as shown in FIG. 18, one bit of the V-RAM corresponds to one pixel indicated by diagonal lines on the display screen. In this case, X × Y bits are required as a storage capacity for holding the determination waveform data.

【0004】[0004]

【発明が解決しようとする課題】このようにして、判定
波形データをそのままの形で保持すると、判定波形の数
がNパターンであればN×X×Yビットの記憶容量が必
要となる。それ故、Nが多くなれば記憶容量も増大し、
大量の記憶容量を備えなければならず問題がある。
If the determination waveform data is held as it is in this way, a storage capacity of N × X × Y bits is required if the number of determination waveforms is N. Therefore, as N increases, the storage capacity also increases,
There is a problem that a large amount of storage capacity must be provided.

【0005】本発明はこのような従来の問題点に着目し
てなされたものであり、判定波形データを変換して少な
い記憶容量で保持可能な判定波形圧縮データを作成し、
保持する装置を提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of such a conventional problem, and converts compressed determination waveform data to create compressed compressed determination waveform data that can be held with a small storage capacity.
An object is to provide a holding device.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
に、本発明による判定波形圧縮データ作成保持装置で
は、図1に示すように前段に表示装置16の表示画面の
ピクセル数からV−RAM18に記憶されている判定波
形データをそのまま無圧縮で記憶するのに必要な記憶容
量のサイズを算出する無圧縮時サイズ算出手段30と、
V−RAM18に記憶されている判定波形データを表示
する表示画面のピクセル行列の列毎に、順次行方向にピ
クセルの色を調べ、色が変化した回数と色が変化するま
でのピクセル数をそれぞれ求めて、総ての列につき判定
波形データから圧縮データを作成する圧縮データ作成手
段32とを備える。
In order to achieve the above-mentioned object, in the apparatus for generating and holding compressed compressed waveform data according to the present invention, as shown in FIG. Uncompressed size calculating means 30 for calculating the size of the storage capacity required to store the judgment waveform data stored in
For each column of the pixel matrix of the display screen that displays the determination waveform data stored in the V-RAM 18, the colors of the pixels are sequentially examined in the row direction, and the number of times the color changes and the number of pixels until the color changes are determined. And a compressed data creating means 32 for creating compressed data from the determined waveform data for all columns.

【0007】そして、中段にそれ等の判定波形データか
ら無圧縮で記憶するのに必要な記憶容量のサイズと判定
波形データから作成した圧縮データを記憶するのに必要
な記憶容量のサイズとを比較する無圧縮時、圧縮時サイ
ズ比較手段34を備えた上で、後段に圧縮時サイズが無
圧縮時サイズ以下の時に圧縮データを判定波形データと
して決定し、保持する判定波形データ決定手段36を備
える。
In the middle stage, a comparison is made between the size of the storage capacity required for storing the determined waveform data without compression and the size of the storage capacity required for storing the compressed data created from the determined waveform data. At the time of non-compression, a compression size comparison means 34 is provided, and at the subsequent stage, when the compression size is equal to or less than the non-compression size, the compression data is determined as determination waveform data, and a determination waveform data determination means 36 is provided. .

【0008】又、図2に示すように前段に上記圧縮デー
タ作成手段32と同一のものを備え、中段にその列毎に
調べた色の変化回数が総ての列につき2以下であるか判
定して再圧縮の可能性を判断する再圧縮可能性判断手段
38を備えた上で、後段に総ての列につき2以下である
と判定された場合、列毎に求めた色が変化するまでのピ
クセル数を示すデータを最初から多くても2回分までに
限定して総ての列につき圧縮データから再圧縮データを
作成する再圧縮データ作成手段40と、その再圧縮デー
タを保持する再圧縮データ保持手段42とを備える。
Further, as shown in FIG. 2, the same unit as the compressed data creating means 32 is provided in the preceding stage, and it is determined in the middle stage whether the number of color changes examined for each column is 2 or less for all columns. After the recompression possibility determining means 38 for judging the possibility of recompression is provided, if it is determined in the subsequent stage that the number is 2 or less for all the columns, until the color obtained for each column changes. A recompressed data generating means 40 for generating recompressed data from compressed data for all columns by limiting data indicating the number of pixels from the beginning to at most two times, and a recompressed data holding the recompressed data Data holding means 42.

【0009】[0009]

【作用】上記のように構成し、無圧縮時サイズ算出手段
30でV−RAM18に記憶されている判定波形データ
をそのまま無圧縮で記憶するのに必要な記憶容量を算出
する。又、圧縮データ作成手段32でV−RAM18に
記憶されている判定波形データから圧縮データを作成す
る。
With the configuration as described above, the uncompressed size calculating means 30 calculates the storage capacity required for storing the judgment waveform data stored in the V-RAM 18 without compression. Further, the compressed data creating means 32 creates compressed data from the determination waveform data stored in the V-RAM 18.

【0010】そして、無圧縮時、圧縮時サイズ比較手段
34で判定波形データを無圧縮で記憶するのに必要な記
憶容量と判定波形データから作成した圧縮データを記憶
するのに必要な記憶容量とを比較する。その上で、判定
波形データ決定手段36で圧縮時サイズが無圧縮時サイ
ズ以下の時に圧縮データを判定波形データと決定し、保
持する。
At the time of non-compression, the storage capacity required for storing the judgment waveform data without compression by the compression size comparison means 34 and the storage capacity necessary for storing the compressed data created from the judgment waveform data. Compare. Then, when the compression size is equal to or less than the non-compression size, the determination data is determined by the determination waveform data determination means 36 as determination waveform data and held.

【0011】又、圧縮データ作成手段32でV−RAM
18に記憶されている判定波形データから圧縮データを
作成した後、再圧縮可能性判断手段38で列毎に調べた
色の変化回数が総ての列につき2以下であるか判定す
る。そして、再圧縮データ作成手段40で総ての列につ
き2以下であると判定された時に、総ての列につき圧縮
データから再圧縮データを作成し、それを保持手段42
で保持する。
The compressed data creating means 32 uses a V-RAM
After the compressed data is created from the determination waveform data stored in 18, it is determined whether the number of color changes examined for each column by the recompression possibility determination unit 38 is 2 or less for all columns. When the recompressed data creation unit 40 determines that the number is 2 or less for all columns, recompressed data is created from the compressed data for all columns, and is stored in the holding unit 42.
Hold with.

【0012】[0012]

【実施例】以下、添付図面に基づいて、本発明の実施例
を説明する。図3は本発明を適用したインサーキットテ
スタ等のマイクロコンピュータを備えた判定波形圧縮デ
ータ作成保持装置の構成を示すブロック図である。図
中、10は操作部、12はマイクロコンピュータ、14
は入出力部、16は表示装置、18はそのV−RAMで
ある。この操作部10にはキーボード、各種スイッチ、
マウス等を備える。それ故、検査者がキー等を適宜操作
すると、表示装置16の画面上に判定波形等を表示でき
る。
Embodiments of the present invention will be described below with reference to the accompanying drawings. FIG. 3 is a block diagram showing a configuration of a determination waveform compressed data creation / holding device including a microcomputer such as an in-circuit tester to which the present invention is applied. In the figure, 10 is an operation unit, 12 is a microcomputer, 14
Is an input / output unit, 16 is a display device, and 18 is its V-RAM. The operation unit 10 includes a keyboard, various switches,
A mouse and the like are provided. Therefore, when the inspector appropriately operates the keys and the like, the determination waveform and the like can be displayed on the screen of the display device 16.

【0013】マイクロコンピュータ12はCPU(中央
処理装置)20、ROM(読出し専用メモリ)22、R
AM(読出し書込み可能メモリ)24、入出力ポート2
6、バスライン28等からなる。このCPU20はコン
ピュータ12の頭脳部に相当し、プログラムの命令に従
って全体に対する制御を実行すると共に算術、論理演算
を行い、その結果も一時的に記憶する。又、周辺装置に
対しても適宜制御を行う。ROM22には全体を制御す
るための制御プログラム等を格納する。
The microcomputer 12 includes a CPU (central processing unit) 20, a ROM (read only memory) 22,
AM (read / write memory) 24, input / output port 2
6, a bus line 28 and the like. The CPU 20 corresponds to the brain of the computer 12, executes control of the whole according to instructions of a program, performs arithmetic and logical operations, and temporarily stores the results. Also, control is appropriately performed on peripheral devices. The ROM 22 stores a control program and the like for controlling the whole.

【0014】又、RAM24には外部から入力した測定
波形データやCPU20で演算したデータ、判定波形デ
ータ等の各種データ、フロッピーディスク等から入力し
た判定波形圧縮データ作成保持処理プログラム等を記憶
する。そして、入出力ポート26には操作部10や入出
力部14に備えた各種機器、表示装置16、V−RAM
18等と接続する。バスライン28はそれ等を接続する
ためのアドレスバスライン、データバスライン、制御バ
スライン等を含み、周辺装置とも適宜結合している。
The RAM 24 stores measurement waveform data input from the outside, data calculated by the CPU 20, various data such as determination waveform data, and a determination waveform compression data creation and holding processing program input from a floppy disk or the like. The input / output port 26 includes various devices provided in the operation unit 10 and the input / output unit 14, the display device 16, and the V-RAM.
18 and so on. The bus line 28 includes an address bus line, a data bus line, a control bus line, and the like for connecting them, and is appropriately connected to a peripheral device.

【0015】又、入出力部14は計測装置、フロッピー
ディスク等の各種機器からなる。そして、表示装置16
にはCRT等の画面があり、V−RAM(ビデオ・ラ
ム)18を備える。それ故、プリント基板等を検査する
場合には先に画面上に判定波形を表示しておき、測定波
形を表示することによって両者を比較し、基板等の良否
を判定することが可能になる。
The input / output unit 14 includes various devices such as a measuring device and a floppy disk. Then, the display device 16
Has a screen such as a CRT and has a V-RAM (video ram) 18. Therefore, when inspecting a printed circuit board or the like, it is possible to display the determination waveform on the screen first and display the measured waveform to compare the two to determine the quality of the board or the like.

【0016】次に、本実施例の動作を説明する。図4は
判定波形圧縮データ作成保持処理プログラムの動作を示
すP1〜P8のステップからなるフローチャートであ
る。先に操作部10にあるキー等を操作して、表示装置
16の画面を見ながら判定波形を作成すると、判定波形
データをV−RAM18に記憶できる。
Next, the operation of this embodiment will be described. FIG. 4 is a flowchart including the steps P1 to P8 showing the operation of the determination waveform compressed data creation and holding processing program. When a determination waveform is created while operating a key or the like in the operation unit 10 and viewing the screen of the display device 16, determination waveform data can be stored in the V-RAM 18.

【0017】そこで、プログラムによる処理を開始す
る。先ず、P1で表示装置16の表示画面のピクセル数
からV−RAM18に記憶されている1パターンの判定
波形データをそのまま無圧縮で記憶する記憶容量のサイ
ズを算出する。その際、表示画面の列方向(横方向)、
行方向(縦方向)のサイズをそれぞれXピクセル、Yピ
クセルにすると、1ピクセルを1ビットに対応させるの
で、一表示画面即ち1判定波形を記憶させて保持するの
に必要な記憶容量はX×Yビットとなる。例えば、X=
400ピクセル、Y=200ピクセルの表示画面ではX
×Y=400×200=80000ビットになる。次に
P2へ行く。
Therefore, processing by the program is started. First, at P1, the size of the storage capacity for storing the one-pattern determination waveform data stored in the V-RAM 18 without any compression is calculated from the number of pixels of the display screen of the display device 16. At that time, the column direction (horizontal direction) of the display screen,
If the size in the row direction (vertical direction) is X pixel and Y pixel, respectively, one pixel corresponds to one bit. Therefore, the storage capacity required to store and hold one display screen, that is, one determination waveform is X × It becomes Y bits. For example, X =
X on a display screen with 400 pixels and Y = 200 pixels
× Y = 400 × 200 = 80000 bits. Next, go to P2.

【0018】P2では判定波形データを圧縮処理して圧
縮データを作成する。図5、6はその判定波形圧縮デー
タ作成処理プログラムの動作を詳細に示すP21〜P4
0のステップからなるフローチャート、図7はV−RA
M18を配列で示した図である。なお、配列の1要素は
8ビットからなり、8ピクセル分のデータを持つ。先
ず、P21でi、j、k、lをそれぞれ0にする。これ
等のi、j、k、l、は配列の添字を示す変数である。
P22ではnを7にする。このnは配列の1要素のnビ
ット目を表わす変数である。なお、本実施例のプログラ
ム言語では7ビット目は配列の1要素の最初のビットで
ある。従って、配列の1要素が8ビットからなる場合は
nを7から0まで変える。P23ではmをiにする。因
みに、iは0である。P24ではchg−countを
0にクリアする。このchg−countは色が変化し
た回数を示す変数である。又、P25ではpix−co
untを0にクリアする。このpix−countは色
が変化するまでのピクセル数を示す変数である。このよ
うにして、初期化を終えたらP26へ行く。
In P2, the judgment waveform data is compressed to create compressed data. FIGS. 5 and 6 show in detail the operation of the judgment waveform compressed data creation processing program.
0, FIG. 7 shows V-RA
It is the figure which showed M18 by arrangement. One element of the array is composed of 8 bits and has data of 8 pixels. First, i, j, k, and l are set to 0 in P21. These i, j, k, l are variables indicating the subscript of the array.
In P22, n is set to 7. This n is a variable representing the n-th bit of one element of the array. In the programming language of this embodiment, the seventh bit is the first bit of one element of the array. Therefore, if one element of the array consists of 8 bits, n is changed from 7 to 0. In P23, m is set to i. Incidentally, i is 0. In P24, chg-count is cleared to 0. This chg-count is a variable indicating the number of times the color has changed. In P25, pix-co
Clear unt to 0. The pix-count is a variable indicating the number of pixels until the color changes. After completing the initialization in this way, the process goes to P26.

【0019】P26ではV−RAM〔m〕のnビット目
のピクセルの色を調べる。このV−RAM〔m〕はV−
RAM18の配列を示す変数である。P27では先に調
べたピクセルと同じ色か判定する。なお、最初は例えば
白と比べる。YESの場合はP28へ行く。P28では
pix−countを1増加する。又、P29ではmに
widthを加算する。このwidthは表示画面の横
方向のピクセル情報例えば400ピクセルなら400/
8=50個の配列を示す変数である。
At P26, the color of the n-th pixel of the V-RAM [m] is checked. This V-RAM [m] is
This is a variable indicating the arrangement of the RAM 18. In P27, it is determined whether the color is the same as that of the pixel examined previously. Note that initially, for example, white is compared. If YES, go to P28. In P28, pix-count is increased by one. In P29, the width is added to m. This width is pixel information in the horizontal direction of the display screen.
8 = 50 variables indicating the array.

【0020】P27でNOと判定された場合はP30へ
行く。P30ではB〔l〕にpix−countを記憶
する。このB〔l〕はピクセル数を記憶する配列を示す
変数である。P31ではlを1増加する。P32ではp
ix−countを1にする。P33ではchg−co
untを1増加する。次にP29へ行く。P34ではi
列の行を総て調べたか判定する。NOの場合はP26へ
戻る。このようにして、1つの列につき順に行方向にY
ピクセル分、ピクセルの色を調べ、色が変わっていたら
chg−countをカウントアップして、pix−c
ountをB配列に記憶し、色が変わっていなかったら
pix−countをカウントアップするという処理を
繰り返して行う。
If P27 is NO, the program goes to P30. In P30, pix-count is stored in B [l]. B [l] is a variable indicating an array for storing the number of pixels. In P31, 1 is increased by one. In P32, p
ix-count is set to 1. In P33, chg-co
Increase unt by 1. Next, go to P29. In P34, i
Determines if all rows in a column have been examined. In the case of NO, the process returns to P26. In this manner, Y is sequentially applied to one column in the row direction.
Check the pixel color for each pixel, and if the color has changed, count up chg-count and pix-c
The process of storing “out” in the B array and counting up pix-count if the color has not changed is repeatedly performed.

【0021】P34でYESと判定された場合はP35
へ行く。P35ではA〔k〕にchg−countを記
憶する。このA〔k〕は色が変化した回数を記憶する配
列である。なお、RAM24の一部をA配列とB配列の
記憶領域にする。P36でB〔l〕にpix−coun
tを記憶する。P37でkを1増加し、lを1増加す
る。P38では総ての列を調べたか判定する。NOの場
合、nから1を減算する。P40ではnが−1か判定す
る。NOの場合はP23へ戻り、8本のピクセル列を形
成する要素群内にある次の列につきピクセルの色を同様
に調べる。YESの場合はP22へ戻り、次の8本のピ
クセル列を形成する要素群内の最初の列につきピクセル
の色を同様に調べる。このようにして、Xピクセル分に
当たる総ての列を調べると、P38でYESと判定され
るので、判定波形圧縮データの作成を終了する。その
際、各列のchg−count値はA配列の1要素に記
憶され、各列のpix−count値はB配列のchg
−count値に1を加算した数の各要素にそれぞれ記
憶される。
When YES is determined in P34, P35
Go to In P35, chg-count is stored in A [k]. A [k] is an array for storing the number of times the color has changed. A part of the RAM 24 is used as a storage area for the A array and the B array. Pix-count on B [l] at P36
Store t. At P37, k is increased by 1 and l is increased by 1. At P38, it is determined whether all the columns have been checked. If NO, subtract 1 from n. In P40, it is determined whether n is -1. If NO, the process returns to P23, and the color of the pixel is similarly examined for the next column in the element group forming the eight pixel columns. If YES, the process returns to P22, and the color of the pixel is similarly examined for the first column in the element group forming the next eight pixel columns. When all the columns corresponding to X pixels are checked in this way, YES is determined in P38, and the creation of the determination waveform compressed data is terminated. At this time, the chg-count value of each column is stored in one element of the A array, and the pix-count value of each column is stored in the chg of the B array.
It is stored in each element of the number obtained by adding 1 to the -count value.

【0022】次にP3へ行く。P3では圧縮データが再
圧縮可能か判定する。図8は再圧縮可能性判定処理プロ
グラムの動作を詳細に示すP31〜P34のステップか
らなるフローチャートである。先ず、P31でiを0に
する。P32でA〔i〕が2以下か判定する。なお、A
〔i〕=0の場合は圧縮されていないので、当然再圧縮
の対象にならない。YESの場合、P33へ行く。P3
3ではiを1増加する。P34ではA配列を全部調べた
か判定する。NOの場合、P32へ戻る。しかし、A配
列の各要素の内容が1つでも3以上であればP32でN
Oと判定され、再圧縮できない。その場合はP4へ行
く。P34でYESと判定された場合、P5へ行く。
Next, go to P3. In P3, it is determined whether the compressed data can be recompressed. FIG. 8 is a flowchart including the steps P31 to P34 showing the operation of the recompression possibility determination processing program in detail. First, i is set to 0 in P31. In P32, it is determined whether A [i] is 2 or less. Note that A
If [i] = 0, it is not compressed, so it is not subject to recompression. If YES, go to P33. P3
At 3, i is increased by one. At P34, it is determined whether the entire A sequence has been checked. In the case of NO, the process returns to P32. However, if the content of each element of the A array is at least 3 or more, N in P32
It is determined as O and cannot be recompressed. In that case, go to P4. If YES is determined in P34, the process proceeds to P5.

【0023】P5では再圧縮データ作成処理をする。図
9はその再圧縮データ作成処理プログラムの動作を詳細
に示すP51〜P57のステップからなるフローチャー
トである。先ず、P51でi、j、kをそれぞれ0にす
る。P52ではC〔k〕にB〔j〕を記憶する。P53
ではkを1増加する。P54ではC〔k〕にB〔j+
1〕を記憶する。すると、B配列の要素をC配列の要素
へ転送し、更にB配列の次の要素をC配列の次の要素へ
転送できる。P55ではjにA〔i〕+1を加算する。
すると、A〔i〕+1は圧縮時に調べた列の判定波形を
表わすのに必要なB配列の要素数を表わすので、B配列
の添字をA配列のA〔i〕の次の要素に対応するB配列
の先頭の要素を示すように決定できる。
At P5, recompressed data creation processing is performed. FIG. 9 is a flowchart including steps P51 to P57 showing the operation of the recompressed data creation processing program in detail. First, i, j, and k are set to 0 in P51. In P52, B [j] is stored in C [k]. P53
Then, k is increased by one. In P54, C [k] is changed to B [j +
1] is stored. Then, the elements of the B array can be transferred to the elements of the C array, and the next element of the B array can be transferred to the next element of the C array. At P55, A [i] +1 is added to j.
Then, A [i] +1 represents the number of elements of the B array required to represent the determination waveform of the column examined at the time of compression, so the subscript of the B array corresponds to the next element of A [i] of the A array. It can be determined to indicate the first element of the B array.

【0024】P56ではiを1増加し、kを1増加す
る。すると、A配列、C配列の添字がそれぞれ次の要素
を示すものに変わる。P57ではA配列の最後に達した
か判定する。NOの場合はP52へ戻る。このようにし
て、P57でYESと判定されるまで、列毎に求めた色
が変化するまでのピクセル数を示すデータを総ての列に
つき最初から多くても2回分までに限定して再圧縮デー
タを作成する。なお、最初から再圧縮データに相当する
ものを作成しようとすると、できない場合には初めから
圧縮データを作成しなければならず、時間が無駄になる
ので、一度圧縮したものを再圧縮する。P57でYES
と判定されると、P6へ行く。
In P56, i is increased by 1 and k is increased by 1. Then, the subscripts of the A array and the C array are changed to indicate the next element, respectively. In P57, it is determined whether the end of the A array has been reached. If NO, the program returns to P52. In this manner, until YES is determined in P57, the data indicating the number of pixels until the color obtained for each column changes is limited to the number of pixels from the beginning to the maximum of two times for all columns and recompressed. Create data. If an attempt is made to create data equivalent to the recompressed data from the beginning, if it is not possible, the compressed data must be created from the beginning and time is wasted. YES at P57
If it is determined, go to P6.

【0025】P4では判定波形データをそのまま無圧縮
で記憶するのに必要な記憶容量のサイズとその判定波形
データから作成した圧縮データを記憶するのに必要な記
憶容量のサイズとを比較する。その際、表示装置16の
画面上に表示する判定波形が例えば図10に示すような
ものであると、その判定波形データから作成した圧縮デ
ータは図11のようになる。それ故、判定波形データを
無圧縮で記憶するのに必要な記憶容量のサイズは20×
12=240ピクセル=240ビットとなる。そこで、
バイトを基本単位として1バイト=8ビットでバイトに
換算すると、240/8=30バイトとなる。
At P4, the size of the storage capacity necessary for storing the judgment waveform data as it is without compression is compared with the size of the storage capacity necessary for storing the compressed data created from the judgment waveform data. At this time, if the determination waveform displayed on the screen of the display device 16 is, for example, as shown in FIG. 10, the compressed data created from the determination waveform data is as shown in FIG. Therefore, the storage capacity required to store the judgment waveform data without compression is 20 ×
12 = 240 pixels = 240 bits. Therefore,
If one byte = 8 bits is converted into a byte using a byte as a basic unit, 240/8 = 30 bytes.

【0026】又、圧縮データを記憶するのに必要な記憶
容量のサイズはA配列のサイズ+B配列のサイズ=20
+100=120バイトとなる。なお、配列の1要素の
サイズを1バイトとする。この結果、P4では圧縮時の
記憶容量のサイズが無圧縮時の記憶容量のサイズより大
きいと判定し、P6へ行く。結局、P2で圧縮データを
作成しても、それを記憶するのに必要な記憶容量のサイ
ズが無圧縮のものより大きくなるため、圧縮データを保
持する効果がなく圧縮が不用となる。
The size of the storage capacity required to store the compressed data is the size of the A array + the size of the B array = 20.
+ 100 = 120 bytes. Note that the size of one element of the array is 1 byte. As a result, in P4, it is determined that the size of the storage capacity at the time of compression is larger than the size of the storage capacity at the time of no compression, and the process goes to P6. As a result, even if the compressed data is created at P2, the size of the storage capacity required for storing the compressed data is larger than that of the uncompressed data, so that there is no effect of holding the compressed data, and the compression becomes unnecessary.

【0027】そこで、P6ではV−RAM18に記憶さ
れた判定波形データをそのまま無圧縮で転送し、RAM
24の他の一部に記憶させて保持する。図12はその判
定波形データ転送処理プログラムの動作を詳細に示すP
61〜P64のステップからなるフローチャートであ
る。先ず、P61でi、kを0にし初期化する。これ等
のi、kは配列の添字を示す変数である。P62ではV
−RAM〔k〕をMEM〔i〕に転送する。このMEM
〔i〕は判定波形データを記憶するRAM24の一部を
示す配列名、又V−RAM〔k〕は判定波形データが記
憶されているV−RAM18を示す配列名である。P6
8ではiを1増加し、kを1増加して、次回の転送元と
転送先を決定する。P64ではV−RAM〔k〕の内容
を総て転送したか判定する。NOの場合にはP62へ戻
り、繰り返して転送を行う。YESの場合には終了す
る。
Therefore, in P6, the judgment waveform data stored in the V-RAM 18 is transferred as it is without compression.
24 and stored in another part. FIG. 12 shows the details of the operation of the judgment waveform data transfer processing program.
It is a flowchart which consists of steps of 61-P64. First, i and k are set to 0 in P61 to initialize. These i and k are variables indicating the subscript of the array. V at P62
-Transfer RAM [k] to MEM [i]. This MEM
[I] is an array name indicating a part of the RAM 24 storing the judgment waveform data, and V-RAM [k] is an array name indicating the V-RAM 18 storing the judgment waveform data. P6
In step 8, i is incremented by 1 and k is incremented by 1 to determine the next transfer source and transfer destination. In P64, it is determined whether all the contents of the V-RAM [k] have been transferred. In the case of NO, the process returns to P62 and the transfer is repeated. If YES, the process ends.

【0028】P4で無圧縮時と圧縮時のサイズを比較す
る際、表示装置16の画面上に表示した判定波形が例え
ば図13に示すようなものであると、無圧縮時の記憶容
量はX×Y=400×200=80000ビットとな
り、バイトに換算すると、80000/8=10000
バイトとなる。又、圧縮時の記憶容量はA配列のサイズ
+B配列のサイズであるから、400+2000=24
00バイトとなる。それ故、圧縮した方がサイズが小さ
くなるので、P7へ行く。P7ではA配列、B配列の内
容(各要素に記憶されているデータ)を転送し、RAM
24の一部に記憶させて保持する。
When comparing the size in the uncompressed state with the size in the compressed state in P4, if the judgment waveform displayed on the screen of the display device 16 is, for example, as shown in FIG. × Y = 400 × 200 = 80000 bits, and converted to bytes, 80000/8 = 10000
It becomes bytes. Since the storage capacity at the time of compression is the size of the A array + the size of the B array, 400 + 2000 = 24
00 bytes. Therefore, the size is smaller when compressed, so the process goes to P7. At P7, the contents of array A and array B (data stored in each element) are transferred to RAM
24 is stored and held.

【0029】P3で再圧縮可能か判定する際、表示装置
16の画面上に表示した判定波形が例えば図14に示す
ようなものであると、その圧縮データは図15のよう
に、又再圧縮データは図16のようになる。この場合、
判定波形データをそのまま無圧縮で記憶するのに必要な
記憶容量のサイズは20×12/8=30バイトである
のに対し、圧縮データを記憶するのに必要な記憶容量の
サイズは20+60=80バイトであり、再圧縮データ
を記憶するのに必要な記憶容量のサイズは20×2=4
0バイトとなる。それ故、判定波形データの圧縮、再圧
縮は意味がなくなる。
When it is determined at P3 whether recompression is possible, if the determination waveform displayed on the screen of the display device 16 is, for example, as shown in FIG. 14, the compressed data is recompressed as shown in FIG. The data is as shown in FIG. in this case,
The storage capacity required to store the judgment waveform data as it is without compression is 20 × 12/8 = 30 bytes, whereas the storage capacity required to store the compressed data is 20 + 60 = 80. And the size of the storage capacity required to store the recompressed data is 20 × 2 = 4
It becomes 0 bytes. Therefore, compression and recompression of the determination waveform data are meaningless.

【0030】ところが、実際には判定波形を表示する画
面の列方向、行方向のピクセル数はずっと多く、例えば
図17のような大きさで、そこに判定波形が描かれてい
る。それ故、判定波形データをそのまま無圧縮で記憶す
るのに必要な記憶容量のサイズが400×200/8=
10000バイトであるのに対し、圧縮データを記憶す
るのに必要な記憶容量のサイズは400+400×3=
1600バイトと小さくなり、判定波形データを圧縮し
て保持した方が記憶容量が少なくて済む。しかも、総て
の列の色の変化する回数が2以下であるので、再圧縮が
可能である。そこで、再圧縮データを記憶するのに必要
な記憶容量のサイズは400×2=800バイトとな
り、更に必要な記憶容量が少なくて済む。
However, actually, the number of pixels in the column direction and the row direction of the screen displaying the judgment waveform is much larger, and the judgment waveform is drawn there, for example, in a size as shown in FIG. Therefore, the size of the storage capacity required to store the judgment waveform data as it is without compression is 400 × 200/8 =
While it is 10,000 bytes, the storage capacity required to store the compressed data is 400 + 400 × 3 =
1600 bytes, the storage capacity is smaller when the determination waveform data is compressed and held. In addition, since the number of times the colors of all columns change is 2 or less, recompression is possible. Therefore, the size of the storage capacity required to store the recompressed data is 400 × 2 = 800 bytes, and the required storage capacity can be further reduced.

【0031】このため、普通は判定波形データの圧縮、
更には再圧縮を行うと、無圧縮時と比べて、少ない記憶
容量で判定波形データを保持することができる。つま
り、同じ数の判定波形を無圧縮で保持するときと、圧
縮、再圧縮を行って保持するときの必要な記憶容量とを
比べると、後者の方が少なく、より多くの判定波形デー
タを保持できる。このような判定波形データを用いて測
定した波形データと比較する場合、圧縮データや再圧縮
データから元の判定波形データを作成して比較する方法
と、圧縮データや再圧縮データのまま比較する方法があ
る。その際、画面上に表示した黒色の部分を有効なエリ
アだとすると、測定した波形データが総てその中に入っ
ていれば完全に一致していなくても、検査結果を「良」
と判断してもよい。
For this reason, usually, compression of the judgment waveform data,
Further, when recompression is performed, the determination waveform data can be held with a smaller storage capacity than when no compression is performed. In other words, when the same number of determination waveforms is stored without compression and when the required storage capacity when storing after compression and recompression is compared, the latter is smaller and holds more determination waveform data. it can. When comparing with waveform data measured using such determination waveform data, a method of creating and comparing original determination waveform data from compressed data or recompressed data, and a method of comparing compressed data or recompressed data as they are There is. At this time, if the black area displayed on the screen is regarded as an effective area, if the measured waveform data is entirely within it, the inspection result will be "good" even if they do not completely match.
May be determined.

【0032】[0032]

【発明の効果】以上説明した本発明によれば、請求項1
記載の発明ではV−RAMに記憶されている判定波形デ
ータを表示する表示画面のピクセル行列毎に、順次行方
向にピクセルの色を調べ、色が変化した回数と色が変化
するまでのピクセル数をそれぞれ求めて、総ての列につ
き判定波形データから圧縮データを作成し、列毎に調べ
た色の変化回数が総ての列につき2以下であるか判定し
て再圧縮の可能性を判断し、総ての列につき2以下であ
ると判定された時に、列毎に求めた色が変化するまでの
ピクセル数を示すデータを最初から多くても2回分まで
に限定して総ての列につき圧縮データから再圧縮データ
を作成し、その再圧縮データを保持するため、判定波形
データを保持するのに必要な記憶容量が圧縮時の場合と
比べて更に少なくて済み、より多くの判定波形データを
保持できる。
According to the present invention described above, claim 1
According to the described invention, for each pixel matrix of the display screen displaying the determination waveform data stored in the V-RAM, the color of the pixel is sequentially examined in the row direction, and the number of times the color changes and the number of pixels until the color changes Are determined, and compressed data is created from the determination waveform data for all columns, and it is determined whether the number of color changes examined for each column is 2 or less for all columns to determine the possibility of recompression. When it is determined that the number of pixels is equal to or less than 2 for all the columns, the data indicating the number of pixels until the color obtained for each column is changed is limited to the number of pixels from the beginning to at most two columns. In order to generate the recompressed data from the compressed data and hold the recompressed data, the storage capacity required to hold the judgment waveform data is even smaller than in the case of compression, and more judgment waveforms Can hold data.

【0033】[0033]

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

【図1】本発明による判定波形圧縮データ作成保持装置
の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a determination waveform compressed data creation and holding device according to the present invention.

【図2】本発明による他の判定波形圧縮データ作成保持
装置の構成を示すブロック図である。
FIG. 2 is a block diagram showing a configuration of another determination waveform compressed data creation and holding device according to the present invention.

【図3】本発明を適用したインサーキットテスタ等のマ
イクロコンピュータを備えた判定波形圧縮データ作成保
持装置の構成を示すブロック図である。
FIG. 3 is a block diagram illustrating a configuration of a determination waveform compressed data generation and holding device including a microcomputer such as an in-circuit tester to which the present invention is applied.

【図4】同マイクロコンピュータのRAMに格納する判
定波形圧縮データ作成保持処理プログラムの動作を示す
フローチャートである。
FIG. 4 is a flowchart showing the operation of a determination waveform compressed data creation / holding processing program stored in a RAM of the microcomputer.

【図5】同判定波形圧縮データ作成保持処理プログラム
における判定波形圧縮データ作成処理プログラムの動作
の一部を詳細に示すフローチャートである。
FIG. 5 is a flowchart showing in detail a part of the operation of the determination waveform compressed data creation processing program in the determination waveform compressed data creation and holding processing program.

【図6】同判定波形圧縮データ作成処理プログラムの動
作の残部を詳細に示すフローチャートである。
FIG. 6 is a flowchart showing in detail the remaining part of the operation of the determination waveform compressed data creation processing program.

【図7】同インサーキットテスタ等に備える表示装置の
V−RAMを配列で示した図である。
FIG. 7 is a diagram showing an array of V-RAMs of a display device provided in the in-circuit tester and the like.

【図8】同判定波形圧縮データ作成保持処理プログラム
における再圧縮可能性判定処理プログラムの動作を詳細
に示すフローチャートである。
FIG. 8 is a flowchart showing in detail the operation of a recompression possibility determination processing program in the determination waveform compressed data creation and holding processing program.

【図9】同判定波形圧縮データ作成保持処理プログラム
における再圧縮データ作成処理プログラムの動作を詳細
に示すフローチャートである。
FIG. 9 is a flowchart showing in detail the operation of the recompressed data creation processing program in the determination waveform compressed data creation and holding processing program.

【図10】同表示装置の画面上に表示した判定波形の圧
縮データの作成が形式的に可能な一例を示す図である。
FIG. 10 is a diagram showing an example in which compressed data of a judgment waveform displayed on the screen of the display device can be formally formed.

【図11】同判定波形データから作成した圧縮データを
示す図である。
FIG. 11 is a diagram showing compressed data created from the determination waveform data.

【図12】同判定波形圧縮データ作成保持処理プログラ
ムにおける判定波形データ転送処理プログラムの動作を
詳細に示すフローチャートである。
FIG. 12 is a flowchart showing in detail the operation of a determination waveform data transfer processing program in the determination waveform compressed data creation and holding processing program.

【図13】同表示装置の画面上に表示した判定波形の圧
縮データの作成が実質的に可能な一例を示す図である。
FIG. 13 is a diagram showing an example in which compressed data of a judgment waveform displayed on the screen of the display device can be substantially created.

【図14】同表示装置の画面上に表示した判定波形の再
圧縮データの作成が形式的に可能な一例を示す図であ
る。
FIG. 14 is a diagram showing an example in which recompressed data of a judgment waveform displayed on the screen of the display device can be formally formed.

【図15】同判定波形データから作成した圧縮データを
示す図である。
FIG. 15 is a diagram showing compressed data created from the same determination waveform data.

【図16】同判定波形データから作成した再圧縮データ
を示す図である。
FIG. 16 is a diagram showing recompressed data created from the same determination waveform data.

【図17】同表示装置の画面上に表示した判定波形の再
圧縮データの作成が実質的に可能な一例を示す図であ
る。
FIG. 17 is a diagram showing an example in which it is substantially possible to create recompressed data of a determination waveform displayed on the screen of the display device.

【図18】V−RAMに記憶されている判定波形データ
を表示する表示装置の画面におけるピクセル行列を示す
図である。
FIG. 18 is a diagram illustrating a pixel matrix on a screen of a display device that displays determination waveform data stored in a V-RAM.

【符号の説明】[Explanation of symbols]

10…操作部 12…マイクロコンピュータ 14…入
出力部 16…表示装置 18…V−RAM 20…C
PU 22…ROM 24…RAM 30…無圧縮時サ
イズ算出手段 32…圧縮データ作成手段 34…無圧
縮時、圧縮時サイズ比較手段 36…判定波形データ決
定手段 38…再圧縮可能性判断手段 40…再圧縮データ作成手段 42…再圧縮データ保持
手段
DESCRIPTION OF SYMBOLS 10 ... Operation part 12 ... Microcomputer 14 ... Input / output part 16 ... Display device 18 ... V-RAM 20 ... C
PU 22 ROM 24 RAM 30 Uncompressed size calculating means 32 Compressed data creating means 34 Uncompressed / compressed size comparing means 36 Identified waveform data deciding means 38 Recomposability deciding means 40 Re Compressed data creation means 42 ... Recompressed data holding means

───────────────────────────────────────────────────── フロントページの続き (56)参考文献 特開 平1−245762(JP,A) 特開 平4−115671(JP,A) 特開 平4−126466(JP,A) (58)調査した分野(Int.Cl.7,DB名) H04N 1/41 - 1/419 G01D 21/00 G09G 5/36 ────────────────────────────────────────────────── ─── Continuation of the front page (56) References JP-A-1-245762 (JP, A) JP-A-4-1155671 (JP, A) JP-A-4-126466 (JP, A) (58) Field (Int.Cl. 7 , DB name) H04N 1/41-1/419 G01D 21/00 G09G 5/36

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】V−RAMに記憶されている判定波形デー
タを表示する表示画面のピクセル行列の列毎に、順次行
方向にピクセルの色を調べ、色が変化した回数と色が変
化するまでのピクセル数をそれぞれ求めて、総ての列に
つき判定波形データから圧縮データを作成する圧縮デー
タ作成手段と、その列毎に調べた色の変化回数が総ての
列につき2以下であるか判定して再圧縮の可能性を判断
する再圧縮可能性判断手段と、総ての列につき2以下で
あると判定された時に、列毎に求めた色が変化するまで
のピクセル数を示すデータを最初から多くても2回分ま
でに限定して総ての列につき圧縮データから再圧縮デー
タを作成する再圧縮データ作成手段と、その再圧縮デー
タを保持する再圧縮データ保持手段とを備えることを特
徴とする判定波形圧縮データ作成保持装置。
1. The color of a pixel is sequentially examined in a row direction for each column of a pixel matrix on a display screen for displaying judgment waveform data stored in a V-RAM, and the number of times the color has changed and the color change. And a compressed data generating means for generating compressed data from the waveform data for all columns, and determining whether the number of color changes examined for each column is 2 or less for all columns. Means for judging the possibility of recompression, and data indicating the number of pixels until the color obtained for each column changes when it is judged that the number is 2 or less for all columns. A recompressed data generating means for generating recompressed data from the compressed data for all columns for at most two times from the beginning; and a recompressed data holding means for holding the recompressed data. Characteristic judgment waveform Shrinkage data created holding device.
JP17624592A 1992-06-10 1992-06-10 Judgment waveform compressed data creation and holding device Expired - Fee Related JP3183952B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17624592A JP3183952B2 (en) 1992-06-10 1992-06-10 Judgment waveform compressed data creation and holding device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17624592A JP3183952B2 (en) 1992-06-10 1992-06-10 Judgment waveform compressed data creation and holding device

Publications (2)

Publication Number Publication Date
JPH05344358A JPH05344358A (en) 1993-12-24
JP3183952B2 true JP3183952B2 (en) 2001-07-09

Family

ID=16010190

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17624592A Expired - Fee Related JP3183952B2 (en) 1992-06-10 1992-06-10 Judgment waveform compressed data creation and holding device

Country Status (1)

Country Link
JP (1) JP3183952B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7135955B2 (en) 2019-03-18 2022-09-13 株式会社デンソー Data compression method, data compression device

Also Published As

Publication number Publication date
JPH05344358A (en) 1993-12-24

Similar Documents

Publication Publication Date Title
CA2210014C (en) Optimized color space conversion
US5862150A (en) Video frame signature capture
JP2888863B2 (en) Image processing device
US4607340A (en) Line smoothing circuit for graphic display units
KR920008585A (en) Video Controller Test Apparatus and Methods
JP2647033B2 (en) Lookup table creation method and lookup table creation device
CA1277788C (en) Emulation attribute mapping for a color video display
US5375198A (en) Process for performing a windowing operation in an array move, a graphics computer system, a display system, a graphic processor and a graphics display system
JP3183952B2 (en) Judgment waveform compressed data creation and holding device
US6693644B1 (en) Graphic accelerator reducing and processing graphics data
JPH0335367A (en) Chunky planar type data storage and method for the same
GB2060182A (en) Signal monitoring apparatus
JPS6015274B2 (en) page boundary display device
US5367616A (en) Isopleth generator for applying isopleths to digital picture data and method therefor
JP3582682B2 (en) Failure analysis method and device
JPH10154139A (en) Fail count method and device therefor
JP3262880B2 (en) Waveform judgment method
JPH0564000A (en) Method for compressing and expanding image data
EP0156598A1 (en) Image processing
JPH06333004A (en) Image processor
JPH0410669B2 (en)
JPH0728444A (en) Method for revising tone of image data
JP2619952B2 (en) Gradation conversion method
JP2703242B2 (en) Drawing data processing device
JPS6041359B2 (en) Character blinking control method in character display devices

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20100427

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120427

Year of fee payment: 11

LAPS Cancellation because of no payment of annual fees