JPH05296801A - Measuring apparatus - Google Patents

Measuring apparatus

Info

Publication number
JPH05296801A
JPH05296801A JP4126907A JP12690792A JPH05296801A JP H05296801 A JPH05296801 A JP H05296801A JP 4126907 A JP4126907 A JP 4126907A JP 12690792 A JP12690792 A JP 12690792A JP H05296801 A JPH05296801 A JP H05296801A
Authority
JP
Japan
Prior art keywords
command
measurement
debug
control
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP4126907A
Other languages
Japanese (ja)
Other versions
JP2909685B2 (en
Inventor
Hidekazu Kono
英和 河野
Yuji Kawamori
祐二 川森
Yukari Tanaka
ゆかり 田中
Kenichi Yazawa
健一 矢澤
Yoshihiko Katsuno
良彦 勝野
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.)
Anritsu Corp
Original Assignee
Anritsu 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 Anritsu Corp filed Critical Anritsu Corp
Priority to JP4126907A priority Critical patent/JP2909685B2/en
Publication of JPH05296801A publication Critical patent/JPH05296801A/en
Application granted granted Critical
Publication of JP2909685B2 publication Critical patent/JP2909685B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To easily perform the operating check of a measuring part at the stage of the development of an apparatus and the trouble test of a finished product in a measuring apparatus wherein the measuring part is controlled by a control part which is constituted of a microcomputer. CONSTITUTION:A command signal which is input to a general-purpose interface 21 in a signal generator 20 from an external control device 50 is discriminated, at a command discrimination means 26 in a control part 26, whether it is a command for measurement or a command for debugging. It is converted in corresponding internal commands; they are sent to an execution control means 27. The execution control means 27 sends the received command for measurement to a measurement control and execution means 28; it sends the received command for debugging to a debugging execution means 30. The measurement control and execution means 28 controls a measuring part 40 according to the receiver command for debugging. The debugging execution means 30 executes a debugging operation for each part according to the receiver command for debugging.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、マイクロコンピュータ
によって測定部を制御する測定装置に関する。さらに詳
述すれば、汎用インターフェース(GP−IB等)を介
して外部からコマンドを受領し、マイクロコンピュータ
がそのコマンドに従って測定部を制御する測定装置にお
いて、本来の測定用コマンドの他に、測定装置を試験す
るためのデバッグ用コマンドの受け付けと、その処理を
可能にしたデバッグモニタを備えた測定装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a measuring device for controlling a measuring section by a microcomputer. More specifically, in a measuring device that receives a command from the outside through a general-purpose interface (GP-IB or the like) and the microcomputer controls the measuring unit according to the command, in addition to the original measuring command, the measuring device The present invention relates to a measuring device equipped with a debug monitor capable of accepting a debug command for testing a test and processing the command.

【0002】[0002]

【従来の技術】近年、例えば信号発生器やスペクトラム
アナライザ等の各種の測定装置では、測定機能の多様化
や自動化に対応するために、マイクロコンピュータ構成
の制御部によって測定部を制御している。また、各種の
測定装置を組み合わせて測定の自動化を達成するため
に、例えばGP−IBのような汎用インターフェースを
介して各種測定装置が外部制御装置(コントローラ)に
接続される。各測定装置は、外部制御装置から送出され
る測定用コマンドに従って測定を実行し、測定結果を外
部制御装置に送り返すようにしている。
2. Description of the Related Art In recent years, in various measuring devices such as signal generators and spectrum analyzers, the measuring unit is controlled by a control unit having a microcomputer in order to cope with diversification and automation of measuring functions. Further, in order to achieve automation of measurement by combining various measuring devices, various measuring devices are connected to an external control device (controller) via a general-purpose interface such as GP-IB. Each measuring device executes the measurement in accordance with the measurement command sent from the external control device, and sends the measurement result back to the external control device.

【0003】図9は、マイクロコンピュータ構成の制御
部2によって測定部8が制御される測定装置1の構成を
示すブロック図である。同図を用いて従来例の構成を説
明する。
FIG. 9 is a block diagram showing the structure of a measuring device 1 in which a measuring unit 8 is controlled by a control unit 2 having a microcomputer structure. The configuration of the conventional example will be described with reference to FIG.

【0004】制御部2は、CPU3、ROM4及びRA
M5から構成されており、ROM4内には、操作部6又
は外部制御装置50から入力される測定用コマンドに対
応した測定制御を行うためのプログラムが予め記憶され
ている。また、RAM5は、測定プログラム、測定結
果、演算処理結果等が一時的に格納される。
The control unit 2 includes a CPU 3, a ROM 4 and an RA.
The ROM 4 stores a program for performing measurement control corresponding to a measurement command input from the operation unit 6 or the external control device 50 in advance. Further, the RAM 5 temporarily stores a measurement program, a measurement result, a calculation processing result, and the like.

【0005】操作部6は、キーボードや装置のパネルに
用意されたキースイッチ等であり、操作者が測定項目や
測定条件等のパラメータの入力を行うものである。
The operation unit 6 is a keyboard or key switches prepared on the panel of the apparatus, and the operator inputs parameters such as measurement items and measurement conditions.

【0006】表示部7は、測定部のために設定された測
定条件や、測定部8において得られた測定結果等を表示
する。
The display section 7 displays the measurement conditions set for the measurement section, the measurement results obtained by the measurement section 8 and the like.

【0007】測定部8は、制御部2にバス接続された複
数の入出力制御回路9a〜9nと、測定対象15に接続
される測定回路10とからなり、測定回路10に対する
各種の測定条件の設定や、測定回路10からの測定結果
の出力がそれぞれ入出力制御回路9a〜9nを介してな
される。
The measuring section 8 is composed of a plurality of input / output control circuits 9a to 9n which are bus-connected to the control section 2 and a measuring circuit 10 which is connected to the measuring object 15. Settings and output of measurement results from the measurement circuit 10 are performed via the input / output control circuits 9a to 9n, respectively.

【0008】汎用インターフェース11は、インターフ
ェース・コネクタ12を介して、測定装置1を外部制御
装置50に接続するために用意される。
The universal interface 11 is prepared for connecting the measuring device 1 to the external control device 50 via the interface connector 12.

【0009】次に、以上のように構成された従来装置の
作用を説明する。
Next, the operation of the conventional device constructed as above will be described.

【0010】操作部6から、所定の測定条件を設定する
ためのコマンドと、その測定条件での測定を実行させる
コマンドが入力されると、CPU3はこのコマンドに対
応するプログラムを実行し、各入出力制御回路9a〜9
nを介して所定の測定条件に対応するデータを測定回路
10へ設定し、測定を開始させる。測定回路10で得ら
れた測定結果のデータ等は、RAM5へ記憶され、表示
部7に表示される。なお、前記コマンドは、汎用インタ
ーフェース11を介して外部制御装置50から入力され
ることもある。
When a command for setting a predetermined measurement condition and a command for executing a measurement under the measurement condition are input from the operation unit 6, the CPU 3 executes a program corresponding to this command and each input Output control circuits 9a-9
Data corresponding to a predetermined measurement condition is set in the measurement circuit 10 via n, and measurement is started. The measurement result data and the like obtained by the measurement circuit 10 are stored in the RAM 5 and displayed on the display unit 7. The command may be input from the external control device 50 via the general-purpose interface 11.

【0011】このようなマイクロコンピュータ構成の制
御部によって測定部を制御する測定装置では、測定部8
に障害が発生したとき、その原因を外部から判定するこ
とは困難である。また、この種の測定装置では、プログ
ラム演算等によって、測定値を補正することが多い。こ
のため、測定装置の開発段階では、初めに測定部を完成
させ、その後にその測定部に合致した制御プログラムを
作成するようにしており、開発の初期段階では、制御部
内のROMに格納すべきプログラムが未完成なので、制
御部によって測定部をチェックすることができない。
In the measuring apparatus in which the control unit having such a microcomputer configuration controls the measuring unit, the measuring unit 8
When a failure occurs in the, it is difficult to determine the cause from the outside. Further, in this type of measuring device, the measured value is often corrected by a program calculation or the like. Therefore, in the development stage of the measuring device, the measurement unit is first completed, and then the control program that matches the measurement unit is created. At the initial stage of development, the control program should be stored in the ROM in the control unit. The control part cannot check the measurement part because the program is not completed.

【0012】このため、従来の測定装置では、CPU3
を予めICソケットを介して取り付けるようにしてお
き、測定部の動作チェック、障害の原因探索、或いは測
定部に合致した測定用プログラム作成のときには、CP
U3をICソケットから外し、このICソケットと、イ
ンサーキット・エミュレータ等のデバッグ装置とをケー
ブル接続し、デバッグ装置側から測定部や測定用プログ
ラムの動作チェックを行うようにしている。
Therefore, in the conventional measuring device, the CPU 3
Is attached in advance via the IC socket, and when checking the operation of the measuring unit, searching for the cause of failure, or creating a measuring program that matches the measuring unit, CP
U3 is removed from the IC socket, and the IC socket and a debugging device such as an in-circuit emulator are connected by a cable, and the operation of the measuring unit and the measuring program is checked from the debugging device side.

【0013】[0013]

【発明が解決しようとする課題】しかしながら、装置の
開発の初期段階で測定部の動作チェックをしたり、完成
した製品の測定部に障害が発生した場合にその原因を調
べるために、CPUを外してデバッグ装置をケーブル接
続したり、また、そのために測定装置を分解しなければ
ならず、作業が非常に煩わしい。
However, in order to check the operation of the measuring section in the initial stage of the development of the device and to find out the cause of the failure in the measuring section of the finished product, the CPU is removed. Therefore, it is necessary to connect a debugging device with a cable and disassemble the measuring device for that purpose, which is very troublesome.

【0014】さらに、ケーブルを介してデバッグ装置に
接続された制御部の動作環境は、制御部に直接実装され
たCPUで制御される状態と異なることが多く、信頼性
に欠けるという問題もあった。
Furthermore, the operating environment of the control unit connected to the debug device via a cable is often different from the state in which it is controlled by the CPU directly mounted in the control unit, and there is a problem of lack of reliability. ..

【0015】本発明は、この課題を解決した測定装置を
提供することを目的としている。
An object of the present invention is to provide a measuring device that solves this problem.

【0016】[0016]

【課題を解決するための手段】前記課題を解決するため
に、本発明の測定装置は、被測定対象に接続される測定
部(40)と、外部装置と信号の授受を行う汎用インタ
ーフェース(21)と、前記汎用インターフェースを介
して入力されるコマンド信号が測定用コマンドであるか
デバッグ用コマンドであるかを判別するコマンド判別手
段(26)と、コマンド信号が前記測定用コマンドに対
応するコマンドであるときは、測定用のプログラムを実
行し、前記デバッグ用コマンドであるときはデバッグ用
のプログラムを実行するための実行管理手段(27)と
を具備している。
In order to solve the above-mentioned problems, a measuring apparatus of the present invention comprises a measuring section (40) connected to an object to be measured and a general-purpose interface (21) for exchanging signals with an external device. ), Command determining means (26) for determining whether the command signal input via the general-purpose interface is a measurement command or a debug command, and the command signal is a command corresponding to the measurement command. There is provided an execution management means (27) for executing the measurement program at one time and executing the debug program at the time of the debug command.

【0017】[0017]

【作用】このように構成したため、本発明の測定装置で
は、汎用インターフェースを介してコマンド信号が入力
されると、このコマンド信号はコマンド判別手段におい
て、測定用コマンドであるかデバッグ用コマンドである
かが判別され、実行管理手段からデバッグ実行手段又は
測定制御実行手段へ送られる。デバッグ実行手段は、デ
バッグ用コマンドに対応したデバッグ・プログラムを実
行する。
With this configuration, in the measuring device of the present invention, when a command signal is input through the general-purpose interface, whether the command signal is a measurement command or a debug command in the command discrimination means. Is determined and sent from the execution management means to the debug execution means or the measurement control execution means. The debug executing means executes a debug program corresponding to the debug command.

【0018】[0018]

【実施例】【Example】

1.第1の実施例(測定装置が信号発生器の例) 図1は、測定部40として信号を発生する機能を有した
測定装置の一実施例、すなわち信号発生器20の機能ブ
ロック図である。以下、図1を用いて本発明の実施例を
説明する。なお、信号発生器20のハードウェア構成は
図9と同様であり、特に図1における制御部25のハー
ドウェア構成は、図9における制御部2と同じくCP
U、ROM及びRAMとで構成される。
1. First Embodiment (Example of Measuring Device as Signal Generator) FIG. 1 is a functional block diagram of an embodiment of a measuring device having a function of generating a signal as the measuring unit 40, that is, a signal generator 20. An embodiment of the present invention will be described below with reference to FIG. The hardware configuration of the signal generator 20 is similar to that of FIG. 9, and in particular, the hardware configuration of the control unit 25 in FIG. 1 is similar to that of the control unit 2 in FIG.
It is composed of U, ROM and RAM.

【0019】[構成の説明] (1) 信号発生器20は、パーソナル・コンピュータ
等の外部制御装置50との間でコマンドやデータの授受
を行う汎用インターフェース21及びインターフェース
・コネクタ24、信号発生器20内の各部を制御する制
御部25、マンマシン・インターフェースを受け持つ操
作部38、並びに表示器39、主にアナログ信号の発生
や処理を行う測定部40及び測定対象へ信号を送出する
出力端子45で構成される。
[Description of Configuration] (1) The signal generator 20 includes a general-purpose interface 21 for exchanging commands and data with an external control device 50 such as a personal computer, an interface connector 24, and a signal generator 20. A control unit 25 for controlling each unit inside, an operation unit 38 for handling a man-machine interface, a display 39, a measuring unit 40 mainly for generating and processing an analog signal, and an output terminal 45 for sending a signal to a measurement target. Composed.

【0020】(2) 汎用インターフェース21は汎用
インターフェース回路22とインターフェースコントロ
ーラ23で構成され、外部制御装置50から送出される
コマンドを制御部25へ導き、また、制御部25から送
出されるデータを外部制御装置50に導く。汎用インタ
ーフェースの規格としては、例えば、GP−IBやRS
232C等があるが、測定装置の制御の分野では、複数
の測定装置を容易に接続できることからGP−IBが一
般的である。以下、GP−IBを汎用インターフェース
として採用した例で説明する。
(2) The general-purpose interface 21 is composed of a general-purpose interface circuit 22 and an interface controller 23, which guides a command sent from the external control device 50 to the control unit 25, and sends data sent from the control unit 25 to the outside. It leads to the control device 50. General-purpose interface standards include, for example, GP-IB and RS.
Although there is a H.232C or the like, GP-IB is common in the field of measurement device control because a plurality of measurement devices can be easily connected. An example in which GP-IB is adopted as a general-purpose interface will be described below.

【0021】(3) 制御部25は、コマンド判別手段
26、実行管理手段27、測定制御実行手段28、デー
タ出力手段29、デバッグ実行手段30、ワークエリア
35、レジスタ(R0 〜Rm )退避エリア36、及び表
示制御手段37で構成される。これらの構成要素のう
ち、コマンド判別手段26、実行管理手段27、測定制
御実行手段28、データ出力手段29、及びデバッグ実
行手段30は、CPU、ROM及びRAMで構成されて
いる。また、ワークエリア35は、測定プログラム、測
定結果、演算処理結果等が一時的に格納される。このワ
ークエリア35には7000〜7EFFの番地が割り当
てられているものとする。レジスタ(R0 〜Rm )退避
エリア36は、CPUのレジスタR0 〜Rm の内容を保
存するためのメモリで、7F00〜7F3Fの番地が割
り当てられているものとする。
(3) The control section 25 saves the command discrimination means 26, the execution management means 27, the measurement control execution means 28, the data output means 29, the debug execution means 30, the work area 35, and the registers (R 0 to R m ). It is composed of an area 36 and a display control means 37. Among these components, the command discrimination means 26, the execution management means 27, the measurement control execution means 28, the data output means 29, and the debug execution means 30 are composed of a CPU, a ROM and a RAM. Further, the work area 35 temporarily stores a measurement program, a measurement result, a calculation processing result, and the like. It is assumed that the work area 35 is assigned addresses of 7000 to 7 EFF. The register (R 0 to R m ) save area 36 is a memory for storing the contents of the registers R 0 to R m of the CPU, and is assumed to be assigned addresses 7F00 to 7F3F.

【0022】(4) コマンド判別手段26は、汎用イ
ンターフェース21を介して外部制御装置50から送出
されるコマンド信号を受領したとき、そのコマンド信号
が、 (イ)予め信号発生器20のために定義されているもの
か否かの判別 (ロ)測定用コマンドかデバッグ用コマンドかの判別 を行い、そのコマンド信号を内部コマンドに変換して実
行管理手段27へ送出する。このコマンド判別手段26
は、信号発生器20のために定義されているコマンド
と、そのコマンドが測定用であるかデバッグ用であるか
を、参照テーブルとして予め格納しておき、入力された
コマンドを参照テーブルと比較してコマンドの判別を行
う。コマンド判別手段26が出力する内部コマンドは、
入力されたコマンド信号がデバッグ用コマンドであるか
測定用コマンドであるかの判別結果を含んでいる。な
お、測定用コマンドとデバッグ用コマンドの詳細は後述
する。
(4) When the command discrimination means 26 receives a command signal sent from the external control device 50 via the general-purpose interface 21, the command signal is (a) previously defined for the signal generator 20. (B) It is determined whether the command is a measurement command or a debug command, and the command signal is converted into an internal command and sent to the execution management means 27. This command discrimination means 26
Stores a command defined for the signal generator 20 and whether the command is for measurement or for debugging as a reference table in advance, and compares the input command with the reference table. Command to determine the command. The internal command output by the command discrimination means 26 is
The determination result includes whether the input command signal is a debug command or a measurement command. The details of the measurement command and the debug command will be described later.

【0023】(5) 実行管理手段27は、受領した判
別結果が、測定用コマンドの場合は測定用コマンドを測
定制御実行手段28へ送出し、デバッグ用コマンドの場
合はデバッグ用コマンドをデバッグ実行手段30へ送出
する。
(5) The execution management means 27 sends the measurement command to the measurement control execution means 28 if the received determination result is a measurement command, and sends the debug command to the debug execution means if it is a debug command. Send to 30.

【0024】図2は、実行管理手段27がコマンド判別
手段26からの内部コマンドを受領して実行する手順を
示したフローチャートである。図3は、内部コマンドの
形式を示す図である。内部コマンドは、受け入れ可能な
コマンド(予め定義されたコマンド)をコマンドコード
及び引数に変換したものである。コマンドコードは、測
定用コマンドであるか、デバッグ用コマンドであるかの
種別と、コマンドの種類を表す部分で、その値によっ
て、例えば、 0000〜EFFFの範囲は測定用コマンド F000〜FFFFの範囲はデバッグ用コマンド のように、コマンドの種別が示されている(コマンドコ
ードの値は16進数で表現してある)。
FIG. 2 is a flow chart showing a procedure in which the execution management means 27 receives the internal command from the command discrimination means 26 and executes it. FIG. 3 is a diagram showing the format of the internal command. The internal command is a command code and arguments converted from an acceptable command (predefined command). The command code is a part that indicates the type of the measurement command or the debug command and the type of the command. Depending on the value, for example, the range of 0000 to EFFF is the range of the measurement command F000 to FFFF. Like the debug command, the command type is shown (the value of the command code is expressed in hexadecimal).

【0025】実行管理手段27は、図2のフローチャー
トに示す手順に従って内部コマンドの種別を調べて、受
領したコマンドの処理をデバッグ実行手段30又は測定
制御実行手段28で実行させる。また、信号発生器20
のユーザーが操作部38を操作する場合には、操作情報
がコマンド判別手段26に入力される。
The execution management means 27 checks the type of the internal command according to the procedure shown in the flowchart of FIG. 2, and causes the debug execution means 30 or the measurement control execution means 28 to execute the processing of the received command. In addition, the signal generator 20
When the user operates the operation unit 38, the operation information is input to the command determination unit 26.

【0026】(6) 測定制御実行手段28は、実行管
理手段27から導かれた測定用コマンドに対応して、後
述する測定部40に対する測定条件の設定や測定結果の
読み出しを行う。
(6) The measurement control execution means 28 sets the measurement conditions for the measurement section 40 and reads out the measurement results, which will be described later, in response to the measurement command derived from the execution management means 27.

【0027】(7) データ出力手段29は、汎用イン
ターフェース21を介して与えられる読出コマンドに基
づいて、測定制御実行手段28又は後述するデバッグ実
行手段30から読み出したデータを汎用インターフェー
ス21を介して外部制御装置50へ送出する。
(7) The data output means 29 outputs the data read from the measurement control execution means 28 or the debug execution means 30 described later based on the read command given via the general-purpose interface 21 via the general-purpose interface 21. It is sent to the control device 50.

【0028】(8) デバッグ実行手段30は、デバッ
グ機能制御手段31、メモリアクセス手段32、及びプ
ログラム実行手段33で構成される。デバッグ用コマン
ドは、メモリアクセス情報とプログラム情報とに分類さ
れる。指定されたアドレスにデータを書き込む場合、メ
モリアクセス情報はアドレスとそのアドレスに対応した
メモリに書き込むべきデータを含んでいる。デバッグ機
能制御手段31は、受領したデバッグ用コマンドに従っ
て、メモリアクセス情報をメモリアクセス手段32へ、
また、プログラム情報をプログラム実行手段33へそれ
ぞれ振り分ける。メモリアクセス手段32は、受領した
メモリアクセス情報に従って、ワークエリア35、及び
測定部40内の入出力制御回路41a〜41fに対して
データの読み書きを行う。
(8) The debug executing means 30 comprises a debug function controlling means 31, a memory accessing means 32, and a program executing means 33. Debugging commands are classified into memory access information and program information. When writing data to the specified address, the memory access information includes the address and the data to be written to the memory corresponding to the address. The debug function control means 31 sends the memory access information to the memory access means 32 according to the received debug command.
Further, the program information is distributed to the program execution means 33. The memory access unit 32 reads / writes data from / to the work area 35 and the input / output control circuits 41a to 41f in the measuring unit 40 according to the received memory access information.

【0029】(9) プログラム実行手段33は、ワー
クエリア35に予め格納されたサブルーチンプログラ
ム、又は、測定制御実行手段を構成するプログラム内の
サブルーチンプログラムを実行する。プログラム実行手
段33の機能には、レジスタ(R0 〜Rm )退避エリア
36にデータを書き込む機能、指定アドレスのサブルー
チンプログラムを実行する機能、及び、レジスタ(R0
〜Rm )退避エリア36からデータを読み出す機能の3
つがある。
(9) The program executing means 33 executes a subroutine program stored in advance in the work area 35 or a subroutine program in a program forming the measurement control executing means. The function of the program execution means 33 includes a function of writing data in the register (R 0 to R m ) save area 36, a function of executing a subroutine program of a designated address, and a register (R 0
~ R m ) 3 of the function to read data from the save area 36
There is one.

【0030】レジスタ(R0 〜Rm )退避エリア36の
内容は、プログラム実行手段33がサブルーチンプログ
ラムの実行を開始する直前にCPUのレジスタR0 〜R
m に格納される。そして、サブルーチンプログラムの実
行が終了したとき、プログラム実行手段33は、その時
点のCPUのレジスタR0 〜Rm の内容をレジスタ(R
0 〜Rm )退避エリア36に格納して保存する。
The contents of the register (R 0 to R m ) save area 36 are the registers R 0 to R of the CPU immediately before the program executing means 33 starts executing the subroutine program.
Stored in m . Then, when the execution of the subroutine program is completed, the program execution means 33 stores the contents of the registers R 0 to R m of the CPU at that time in the register (R
0 to R m ) Store and save in the save area 36.

【0031】ワークエリア35にサブルーチンプログラ
ムを格納するためには、外部制御装置50からメモリア
クセス情報を含むデバッグ用コマンドを送出して、前記
(8)に示したメモリアクセス手段32の動作によって
ワークエリア35の指定アドレスにサブルーチンプログ
ラムを格納する。すなわち、指定アドレスにサブルーチ
ンプログラムのオブジェクトコードをデータとして順次
書き込む。
In order to store the subroutine program in the work area 35, a debug command including memory access information is sent from the external control device 50 and the work area is operated by the operation of the memory access means 32 shown in (8). The subroutine program is stored at the designated address of 35. That is, the object code of the subroutine program is sequentially written as data at the designated address.

【0032】(10) 表示制御手段37は、汎用イン
ターフェース21又は操作部38から与えられるコマン
ドやそのコマンドに基づく処理の結果等を、表示器39
に表示させるための制御を行う。
(10) The display control means 37 displays the command given from the general-purpose interface 21 or the operation section 38, the result of processing based on the command, and the like on the display 39.
Control to be displayed on.

【0033】(11) 表示器39は、表示制御手段3
7から与えられる情報に従って各種の表示を行う。
(11) The display 39 is the display control means 3
Various displays are performed according to the information given from 7.

【0034】(12) 測定装置(本実施例では信号発
生器)の使用形態は、 (イ)「REMOTE」:測定用コマンド及びデバッグ
用コマンドを外部制御装置50から与える。 (ロ)「LOCAL」:測定用コマンド及びデバッグ用
コマンドを操作者が操作部38から入力する。 とがある。操作部38は、前記「LOCAL」状態で、
測定用コマンド(測定部40の測定条件等)やデバッグ
用コマンドを入力するために用意されるもので、入力さ
れたコマンドはコマンド判別手段26へ導かれる。
(12) The mode of use of the measuring device (in this embodiment, the signal generator) is as follows: (a) "REMOTE": A measuring command and a debugging command are given from the external control device 50. (B) "LOCAL": The operator inputs a measurement command and a debug command from the operation unit 38. There is. The operation unit 38 is in the “LOCAL” state,
It is prepared for inputting a measurement command (measurement condition of the measurement unit 40 and the like) and a debug command, and the input command is guided to the command discrimination means 26.

【0035】(13) 測定部40は、制御部25のバ
スラインに接続され、それぞれに番地割当てされた入出
力制御回路41a〜41fと、発振回路42、波形選択
回路43及び出力回路44で構成されている。この入出
力制御回路41a〜41fには、それぞれ8010、8
020、…、8060の6個の番地が割り当てられてい
るものとする。
(13) The measuring section 40 is connected to the bus line of the control section 25 and comprises input / output control circuits 41a to 41f assigned to respective addresses, an oscillation circuit 42, a waveform selection circuit 43 and an output circuit 44. Has been done. The input / output control circuits 41a to 41f include 8010 and 8 respectively.
It is assumed that six addresses of 020, ..., 8060 are assigned.

【0036】(14) 発振回路42は、入出力制御回
路41aを介して設定された周波数データに対応した発
振周波数の信号を出力し、その設定済みの周波数データ
を入出力制御回路41bを介してバスラインに出力す
る。
(14) The oscillator circuit 42 outputs a signal having an oscillation frequency corresponding to the frequency data set via the input / output control circuit 41a, and outputs the set frequency data via the input / output control circuit 41b. Output to the bus line.

【0037】(15) 波形選択回路43は、入出力制
御回路41cを介して設定された波形選択データに対応
した波形の信号を選択出力し、その設定済みの波形選択
データを入出力制御回路41dを介してバスラインに出
力する。
(15) The waveform selection circuit 43 selectively outputs a signal having a waveform corresponding to the waveform selection data set via the input / output control circuit 41c, and outputs the set waveform selection data to the input / output control circuit 41d. To the bus line via.

【0038】(16) 出力回路44は、入出力制御回
路41eを介して設定されたオン・オフ・データに応じ
て信号を出力端子45から出力したり、その出力を停止
させ、設定済みのオン・オフ・データを入出力制御回路
41fを介してバスラインに出力する。また、出力回路
44が減衰器や増幅器を含む場合、出力レベルを設定す
るためのデータが入出力制御回路を介して授受される。
(16) The output circuit 44 outputs a signal from the output terminal 45 in accordance with the on / off data set via the input / output control circuit 41e, or stops the output to set the set on-state. The off data is output to the bus line via the input / output control circuit 41f. When the output circuit 44 includes an attenuator and an amplifier, data for setting the output level is exchanged via the input / output control circuit.

【0039】(17) 図4は、この信号発生器20の
制御部25を外部から制御するための外部制御装置50
の構成を示す。外部制御装置50は、パーソナル・コン
ピュータ等によって構成されており、信号発生器20の
汎用インターフェース21と同一機能のインターフェー
ス部51を有している。インターフェース部51は、汎
用インターフェース回路52とインターフェース・コン
トローラ53とで構成され、マイクロコンピュータ構成
の処理部54に接続されている。
(17) FIG. 4 shows an external control device 50 for externally controlling the control unit 25 of the signal generator 20.
Shows the configuration of. The external control device 50 is configured by a personal computer or the like, and has an interface unit 51 having the same function as the general-purpose interface 21 of the signal generator 20. The interface unit 51 includes a general-purpose interface circuit 52 and an interface controller 53, and is connected to a processing unit 54 having a microcomputer configuration.

【0040】(18) 処理部54は、キーボード等の
入力部57から入力されるデータを、信号発生器20側
で定義されているコマンド形式にして出力するコマンド
処理部55と、インターフェース部51から入力される
データをそのまま、あるいは加工して表示器やプリンタ
等の出力部58へ出力するデータ処理部56とから構成
されている。
(18) The processing unit 54 outputs the data input from the input unit 57 such as a keyboard in the command format defined on the signal generator 20 side and outputs it from the interface unit 51. The data processing section 56 outputs the input data as it is or after processing it to an output section 58 such as a display or a printer.

【0041】[測定用コマンドとデバッグ用コマンドの
説明] (1)測定用コマンド 表1は、この信号発生器20のために定義された測定用
コマンドと、その測定用コマンドを受領した測定制御実
行手段28が、測定部40に対して実行する内容の一例
を示している。
[Explanation of Measurement Command and Debug Command] (1) Measurement Command Table 1 shows the measurement command defined for this signal generator 20 and the measurement control execution that received the measurement command. The means 28 shows an example of the contents executed by the measuring unit 40.

【0042】例えば、”A10000”というコマンド
を測定制御実行手段28が受領すると、発振器42の発
振周波数を10000kHzに設定する。
For example, when the measurement control executing means 28 receives the command "A10000", the oscillation frequency of the oscillator 42 is set to 10000 kHz.

【0043】[0043]

【表1】 [Table 1]

【0044】(2)デバッグ用コマンド 表2は、デバッグ用コマンドと、そのデバッグ用コマン
ドを受領したデバッグ実行手段30が実行する内容の一
例を示している。”MAC○○○”,”MWR○○”及
び”MRD○○”はメモリアクセス情報であり、これら
のコマンドの実行はメモリアクセス手段32によって行
われる。”MRUN○○○”,”RCH○○,△△”及
び”RRD”はプログラム情報であり、これらのコマン
ドの実行は、プログラム実行手段33によって行われ
る。
(2) Debug Command Table 2 shows an example of the debug command and the contents executed by the debug executing means 30 which has received the debug command. "MAC ○○○", "MWR ○○" and "MRD ○○" are memory access information, and these commands are executed by the memory access means 32. "MRUN ○○○", "RCH ○○, ΔΔ" and "RRD" are program information, and the execution of these commands is performed by the program executing means 33.

【0045】[0045]

【表2】 [Table 2]

【0046】[動作の説明]図5は、この第1の実施例
の動作を示すフローチャート図である。図5を参照し
て、この信号発生器20の動作を説明する。
[Description of Operation] FIG. 5 is a flow chart showing the operation of the first embodiment. The operation of the signal generator 20 will be described with reference to FIG.

【0047】(1)測定動作 (Step 1)汎用インターフェース21及び51を
介して接続された外部制御装置50又は操作部38か
ら、測定用コマンドとして、例えば、 ”A 10000”・・・(発振周波数を10000kHZに設
定) ”B 00”・・・・・・(出力波形をコード00に対応
した波形に設定) ”C 01”・・・・・・(出力信号をオン) なるコマンドを続けて入力する。
(1) Measurement Operation (Step 1) From the external control device 50 or the operation unit 38 connected via the general-purpose interfaces 21 and 51, a measurement command such as "A 10000" (oscillation frequency) Set to 10000kHZ) "B 00" --- (Set output waveform to waveform corresponding to code 00) "C 01" --- (Output signal turned on) To do.

【0048】(Step 2)それらのコマンドが信号
発生器20に定義されたものか否か、コマンド判別手段
26において、参照テーブルを用いて判別される。コマ
ンドが定義されたものでないときには、エラー処理ルー
チンへ分岐する。図示していないが、例えば、エラー・
メッセージを表示器39に表示させたり或いは外部制御
装置50へ送出したりする。本例では、コマンドが定義
されたものであるからStep3へ分岐する。
(Step 2) Whether or not those commands are defined in the signal generator 20 is discriminated by the command discriminating means 26 using the reference table. If the command is not one defined, it branches to an error handling routine. Although not shown, for example, an error
The message is displayed on the display 39 or sent to the external control device 50. In this example, since the command is defined, the process branches to Step 3.

【0049】(Step 3)さらに、コマンド判別手
段26において、測定用コマンドかデバッグ用コマンド
かの判別が参照テーブルを用いて行われる。判別結果、
すなわち、測定用コマンドかデバッグ用コマンドかの種
別とコマンドの種類を表すコマンドコードと引数とが組
み合わされた内部コマンドが、コマンド判別手段26に
おいて生成され、実行管理手段27へ送出される。
(Step 3) Further, the command discriminating means 26 discriminates between the measurement command and the debug command by using the reference table. Judgment result,
That is, an internal command in which the type of the measurement command or the debug command, the command code indicating the type of the command, and the argument are combined is generated in the command determination means 26 and sent to the execution management means 27.

【0050】(Step 4)実行管理手段27は、与
えられた内部コマンドが測定用コマンドであるとき、そ
のコマンドを測定制御実行手段28へ送出する。処理は
Step5へ分岐する。また、内部コマンドがデバッグ
用コマンドであれば、そのコマンドをデバッグ実行手段
30へ送出する。処理はStep8へ分岐する。本例で
は、測定用コマンドであるからStep5へ分岐する。
(Step 4) When the given internal command is a measurement command, the execution management means 27 sends the command to the measurement control execution means 28. The process branches to Step 5. If the internal command is a debug command, the command is sent to the debug executing means 30. The process branches to Step 8. In this example, since it is a measurement command, it branches to Step 5.

【0051】(Step 5)測定制御実行手段28
は、実行管理手段27から導かれた測定用コマンドに対
応した測定処理を実行する。Step1で例示したコマ
ンドが与えられたとき、 (イ)発振回路42の発振周波数を10000(kH
z)にするための周波数設定データを入出力制御回路4
1aへ出力する。 (ロ)波形をコード00に対応する波形(例えば、正弦
波)に設定するための波形選択データを入出力制御回路
41cへ出力する。 (ハ)出力回路44をオン状態に設定するためのオン・
データを入出力制御回路41eへ出力する。
(Step 5) Measurement control execution means 28
Executes the measurement process corresponding to the measurement command derived from the execution management means 27. When the command illustrated in Step 1 is given, (a) the oscillation frequency of the oscillation circuit 42 is set to 10000 (kH
input / output control circuit 4 for setting the frequency setting data for z).
Output to 1a. (B) The waveform selection data for setting the waveform to the waveform corresponding to the code 00 (for example, sine wave) is output to the input / output control circuit 41c. (C) On to set the output circuit 44 to the on state.
The data is output to the input / output control circuit 41e.

【0052】(Step 6)以上のステップを経て、
測定部40の出力端子45から、周波数10000kH
zの正弦波が測定用信号として出力される。
(Step 6) Through the above steps,
From the output terminal 45 of the measuring unit 40, frequency 10000 kHz
The z sine wave is output as a measurement signal.

【0053】(Step 7)測定制御実行手段28
は、測定プログラムの実行が終了したことを、実行管理
手段27へ通知する。
(Step 7) Measurement control execution means 28
Notifies the execution management means 27 that the execution of the measurement program is completed.

【0054】(2)デバッグ動作 次にデバッグ動作について説明する。例えば、測定制御
実行手段28が未完成のために測定用コマンドが使用で
きない状態で、測定部40のチェックをする場合、図6
に示すように、測定部40の出力端子45に、オシロス
コープ60と周波数カウンタ61とを接続する。
(2) Debug Operation Next, the debug operation will be described. For example, in the case where the measurement unit 40 is checked when the measurement command cannot be used because the measurement control execution unit 28 is incomplete, FIG.
As shown in, the oscilloscope 60 and the frequency counter 61 are connected to the output terminal 45 of the measuring unit 40.

【0055】(Step 1)汎用インターフェース2
1及び51を介して接続された外部制御装置50又は操
作部38から、デバッグ用コマンドとして、例えば、 (イ)”MAC8010,MWR10000”(アドレ
ス8010を指定し、そのアドレスにデータ”1000
0”を書込み、アドレスをデータ・サイズだけ歩進す
る) (ロ)”MAC8020,MRD1”(アドレス802
0を指定し、そのアドレスからデータを1個読出す) (ハ)”MAC8030,MWR0”(アドレス803
0を指定し、そのアドレスにデータ”0”を書込み、ア
ドレスをデータ・サイズだけ歩進する) (ニ)”MAC8040,MRD1”(アドレス804
0を指定し、そのアドレスからデータを1個読出す) (ホ)”MAC8050,MWR1”(アドレス805
0を指定し、そのアドレスにデータ”1”を書込み、ア
アドレスをデータ・サイズだけ歩進する) なるコマンドを続けて入力する。
(Step 1) General-purpose interface 2
From the external control device 50 or the operation unit 38 connected via 1 and 51, as a debug command, for example, (a) "MAC8010, MWR10000" (address 8010 is designated and data "1000"
0 "is written and the address is incremented by the data size.) (B)" MAC8020, MRD1 "(address 802
0 is specified and one data is read from that address.) (C) "MAC8030, MWR0" (address 803
0 is specified, data "0" is written to the address, and the address is incremented by the data size.) (D) "MAC8040, MRD1" (address 804
0 is specified and one data is read from that address.) (E) "MAC8050, MWR1" (address 805
0 is specified, data "1" is written to the address, and the address is incremented by the data size).

【0056】(Step 2)それらのコマンドが信号
発生器20に定義されたものか否か、コマンド判別手段
26において、参照テーブルを用いて判別される。コマ
ンドが定義されたものでないときには、エラー処理ルー
チンへ分岐する。このエラー処理は、図示していない
が、例えば、エラー・メッセージを表示器39に表示さ
せたり或いは外部制御装置50へ送出したりする。本例
では、コマンドが定義されたものであるからStep3
へ分岐する。
(Step 2) Whether or not those commands are defined in the signal generator 20 is discriminated by the command discriminating means 26 using the reference table. If the command is not one defined, it branches to an error handling routine. Although not shown, this error processing is, for example, displaying an error message on the display 39 or sending it to the external control device 50. In this example, since the command is defined, Step3
Branch to.

【0057】(Step 3)さらに、コマンド判別手
段26において、測定用コマンドかデバッグ用コマンド
かの判別が参照テーブルを用いて行われ、その判別結
果、すなわち、測定用コマンドかデバッグ用コマンドか
の種別とコマンドの種類を表すコマンドコードと引数と
が組み合わされた内部コマンドが生成されて、実行管理
手段27へ送出される。
(Step 3) Further, the command discriminating means 26 discriminates between the measurement command and the debug command using the reference table, and the discrimination result, that is, the type of the measurement command or the debug command. And an internal command in which a command code indicating the type of command and an argument are combined is generated and sent to the execution management means 27.

【0058】(Step 4)実行管理手段27は、与
えられた内部コマンドが測定用コマンドであるとき、そ
のコマンドを測定制御実行手段28へ送出する。処理は
Step5へ分岐する。また、内部コマンドがデバッグ
用コマンドであれば、そのコマンドをデバッグ実行手段
30へ送出する。処理はStep8へ分岐する。本例で
は、デバッグコマンドであるからStep8へ分岐す
る。
(Step 4) When the given internal command is a measurement command, the execution management means 27 sends the command to the measurement control execution means 28. The process branches to Step 5. If the internal command is a debug command, the command is sent to the debug executing means 30. The process branches to Step 8. In this example, since it is a debug command, the process branches to Step 8.

【0059】(Step 8)デバッグ機能制御手段3
1は、実行管理手段27から導かれたコマンド信号をメ
モリアクセス情報とプログラム情報に振り分ける。前述
のコマンド信号(イ)〜(ホ)はメモリアクセス情報で
ある。メモリアクセス情報はメモリアクセス手段32
へ、また、プログラム情報はプログラム実行手段33へ
導かれる。
(Step 8) Debug Function Control Unit 3
1 sorts the command signal guided from the execution management means 27 into memory access information and program information. The command signals (a) to (e) described above are memory access information. The memory access information is the memory access means 32.
Further, the program information is guided to the program execution means 33.

【0060】(Step 9)メモリアクセス手段32
は、デバッグ機能制御手段31から導かれたメモリアク
セス情報に従って、アドレスを指定する。
(Step 9) Memory Access Means 32
Specifies an address according to the memory access information derived from the debug function control means 31.

【0061】(Step 10)メモリアクセス手段3
2は、デバッグ機能制御手段31から導かれたプログラ
ム情報に従って指定されたアドレスにデータを読書きす
る。
(Step 10) Memory Access Means 3
2 reads and writes data at an address designated according to the program information derived from the debug function control means 31.

【0062】(Step 11)読み出したデータを外
部制御装置50に送出する。上記(イ)〜(ホ)のコマ
ンドと対応付けてStep9〜Step11の動作をさ
らに詳述する。
(Step 11) The read data is sent to the external controller 50. The operations of Step 9 to Step 11 will be described in more detail in association with the commands (a) to (e).

【0063】(イ)コマンド”MAC8010,MWR
10000”を受領する。メモリアクセス手段32は、
8010番地(入出力制御回路41a)を指定し、その
番地に発振周波数を10000kHzにするためのデー
タ”10000”を書き込む。
(A) Command "MAC8010, MWR
10000 "is received. The memory access means 32
The address 8010 (input / output control circuit 41a) is designated, and the data "10000" for setting the oscillation frequency to 10000 kHz is written to the address.

【0064】(ロ)コマンド”MAC8020,MRD
1”を受領する。メモリアクセス手段32は、8020
番地(入出力制御回路41b)を指定し、その番地のデ
ータを1個読出す。この読み出したデータを外部制御装
置50内の出力部58に表示する。表示されたデータ
が”10000”であれば、入出力制御回路41a、4
1b及び発振回路42の周波数設定部は正常であること
が確認できる。
(B) Command "MAC8020, MRD
1 ”is received.
An address (input / output control circuit 41b) is designated, and one piece of data at that address is read. The read data is displayed on the output unit 58 in the external control device 50. If the displayed data is "10000", the input / output control circuits 41a, 4a, 4a
It can be confirmed that 1b and the frequency setting unit of the oscillation circuit 42 are normal.

【0065】(ハ)コマンド”MAC8030,MWR
0”を受領する。メモリアクセス手段32は、8030
番地(入出力制御回路41c)を指定し、その番地にデ
ータ”0”(正弦波形を指定)を書き込む。
(C) Command "MAC8030, MWR
0 "is received. The memory access means 32 is at 8030.
An address (input / output control circuit 41c) is designated, and data "0" (designating a sine waveform) is written at that address.

【0066】(ニ)コマンド”MAC8040,MRD
1”を受領する。メモリアクセス手段32は、8040
番地(入出力制御回路41d)を指定し、その番地のデ
ータを1個読出す。この読み出したデータを外部制御装
置50内の出力部58に表示する。表示されたデータ
が”0”であれば、入出力制御回路41c、41d及び
波形選択回路43の選択データ設定部は正常であること
が確認できる。
(D) Command "MAC8040, MRD
1 "is received. The memory access means 32 is at 8040.
An address (input / output control circuit 41d) is designated and one piece of data at that address is read. The read data is displayed on the output unit 58 in the external control device 50. If the displayed data is "0", it can be confirmed that the input / output control circuits 41c and 41d and the selection data setting section of the waveform selection circuit 43 are normal.

【0067】(ホ)コマンド”MAC8050,MWR
1”を受領する。メモリアクセス手段32は、8050
番地(入出力制御回路41e)を指定し、その番地に出
力をオンさせるためのデータ”1”を書き込む。
(E) Command "MAC8050, MWR
1 "is received. The memory access means 32 receives 8050.
The address (input / output control circuit 41e) is designated, and the data "1" for turning on the output is written at the address.

【0068】この結果、出力回路44からの信号波形は
オシロスコープ60に表示され、また、その周波数は周
波数カウンタ61に表示される。オシロスコープ60に
表示された波形が正弦波で、周波数カウンタ61の表示
周波数が10000kHzであれば、この測定部40全
体の動作は正常であると確認できる。
As a result, the signal waveform from the output circuit 44 is displayed on the oscilloscope 60, and its frequency is displayed on the frequency counter 61. If the waveform displayed on the oscilloscope 60 is a sine wave and the display frequency of the frequency counter 61 is 10000 kHz, it can be confirmed that the operation of the entire measuring unit 40 is normal.

【0069】なお、このデバッグ動作は、外部制御装置
50から順番に入力されるデバッグ用コマンドに従って
メモリアクセス手段32によるデバッグ動作を1つずつ
行っていたが、デバッグ実行手段30のプログラム実行
手段33を用いてデバッグを実行させることもできる。
この場合、例えば次のような一連のサブルーチンプログ
ラムのオブジェクトコードを外部制御装置50側で作成
する。
In this debugging operation, the debugging operation by the memory access means 32 was performed one by one in accordance with the debugging command sequentially input from the external control device 50. You can also use it to perform debugging.
In this case, for example, the object code of the following series of subroutine programs is created on the external control device 50 side.

【0070】 8010番地にレジスタR0 の内容をWRITEする 8030番地にレジスタR1 の内容をWRITEする 8050番地にデータ1をWRITEする 所定時間待つ 8020番地の内容をREADし、レジスタR1に格納
する 8050番地にデータ0をWRITEする RETURN(サブルーチンからリターンする)
WRITE the contents of register R 0 at address 8010 WRITE the contents of register R 1 at address 8030 WRITE data 1 at address 8050 Wait for a predetermined time READ the contents of address 8020 and store in register R1 8050 WRITE of data 0 to address RETURN (return from subroutine)

【0071】次に、サブルーチンプログラムのオブジェ
クトコードを所定長のデータD1 、D2 、…として、M
AC7600、MWR D1 、MWR D2 、…という
デバッグ用コマンドを、外部制御装置50から入力し
て、この一連のサブルーチンプログラムをワークエリア
35の7600番地以降に書き込む。
Next, the object code of the subroutine program is set as data D 1 , D 2 , ...
AC7600, MWR D 1 , MWR D 2 , ... Debugging commands are input from the external control device 50, and this series of subroutine programs is written to the work area 35 at address 7600 and thereafter.

【0072】次に、外部制御装置50側から、 RCH R0,10000 RCH R1,0 MRUN 7600 なるコマンドを入力する。これらのコマンドを入力する
と、プログラム実行手段33は、レジスタ(R0
m )退避エリア36内のレジスタR0 及びR1 のエリ
アにそれぞれデータ10000及び0を書き込み、さら
に、ワークエリア35の7600番地からサブルーチン
プログラムを実行する。サブルーチン実行開始時には、
レジスタ(R0 〜Rm )退避エリア36の内容がCPU
のレジスタR0〜Rm に移される。このため、入出力制
御回路41aには周波数データ10000が設定され、
入出力制御回路41cには正弦波形に対応するデータ0
が設定され、入出力制御回路41eには、信号を出力さ
せるためのデータ1が設定され、信号が所定の時間出力
される。この所定時間中にオシロスコープ60と周波数
カウンタ61によって、出力波形と周波数の確認が行え
る。
Next, the command RCH R0,10000 RCH R1,0 MRUN 7600 is input from the external controller 50 side. When these commands are input, the program execution means 33 causes the register (R 0 to
R m ) The data 10000 and 0 are written in the areas of the registers R 0 and R 1 in the save area 36, and the subroutine program is executed from the address 7600 of the work area 35. At the start of subroutine execution,
The contents of the register (R 0 to R m ) save area 36 is the CPU
Of registers R 0 to R m . Therefore, the frequency data 10000 is set in the input / output control circuit 41a,
The input / output control circuit 41c has data 0 corresponding to the sine waveform.
Is set, data 1 for outputting a signal is set in the input / output control circuit 41e, and the signal is output for a predetermined time. During this predetermined time, the output waveform and frequency can be confirmed by the oscilloscope 60 and the frequency counter 61.

【0073】所定時間が経過すると、入出力制御回路4
1bからデータがレジスタR1 に転送され、入出力制御
回路41eに対して、信号出力を停止させるためのデー
タ0が設定されてサブルーチンプログラムの実行が終了
する。サブルーチン実行終了時には、レジスタ(R0
m )退避エリア36にCPUのレジスタR0 〜Rm
内容が格納される。ここで、外部制御装置50からコマ
ンドRRDを入力すれば、各レジスタR0 〜Rm のサブ
ルーチン実行終了時の内容がプログラム実行手段33に
よって読出され、外部制御装置50の出力部58に表示
される。この出力部58に表示されたレジスタR0 〜R
m の内容のうち、レジスタR1 の内容が10000であ
れば、入出力制御回路41a、41b及び発振回路42
の周波数設定動作については、正常であることが確認で
きる。
When a predetermined time has passed, the input / output control circuit 4
Data is transferred from 1b to the register R 1 , data 0 for stopping the signal output is set to the input / output control circuit 41e, and the execution of the subroutine program ends. At the end of the subroutine execution, registers (R 0 ~
The contents of the registers R 0 to R m of the CPU are stored in the R m ) save area 36. If a command RRD is input from the external control device 50, the contents of the registers R 0 to R m at the end of the subroutine execution are read by the program execution means 33 and displayed on the output unit 58 of the external control device 50. .. The registers R 0 to R displayed on the output unit 58
If the content of the register R 1 is 10000 among the contents of m , the input / output control circuits 41a and 41b and the oscillation circuit 42
It can be confirmed that the frequency setting operation is normal.

【0074】このようなデバッグの実行は、測定用コマ
ンドを用いずに行うことができるため、この測定装置の
開発初期段階に測定用のプログラムが未完成の状態であ
っても、測定部に関する動作チェックを外部制御装置5
0からデバッグ用コマンドを入力することによって簡単
に行える。また、完成した測定装置が製品として出荷さ
れた後に測定部が故障した場合にも、同様の手順で測定
部に関する動作チェックを行うことにより故障箇所を調
べることができる。
Since such debugging can be executed without using a measurement command, even if the measurement program is incomplete in the initial stage of development of this measurement apparatus, the operation related to the measurement section is performed. Check the external controller 5
This can be easily done by inputting a debug command from 0. Further, even if the measuring section fails after the completed measuring apparatus is shipped as a product, the failure location can be checked by performing an operation check on the measuring section in the same procedure.

【0075】本実施例の測定装置は信号発生器であり、
表1に示した測定用コマンドは信号発生器に特有のもの
であるが、表2に示したデバッグ用コマンドは、他の測
定装置であっても共通に用いられる。図1に示した信号
発生器20の構成において、制御部25を構成する要素
のうち、コマンド判別手段26と測定制御実行手段28
を除く他の要素は、信号発生器以外の他の測定装置に対
しても共通に利用可能である。また、コマンド判別手段
26は、受け入れ可能な測定用コマンドが測定装置ごと
に異なるため、受け入れ可能な測定用コマンドの形式の
定義部分(通常はプログラムとは独立したデータを用い
て定義する)だけは、測定装置ごとに作成されるが、他
の部分は信号発生器以外の他の測定装置に対しても共通
に利用可能である。
The measuring apparatus of this embodiment is a signal generator,
The measurement commands shown in Table 1 are peculiar to the signal generator, but the debug commands shown in Table 2 are commonly used in other measurement devices. In the configuration of the signal generator 20 shown in FIG. 1, among the elements constituting the control unit 25, the command discrimination means 26 and the measurement control execution means 28.
Other elements except for can be commonly used for other measuring devices other than the signal generator. Further, since the command determination means 26 has different acceptable measurement commands for each measuring device, only the definition part of the acceptable measurement command format (usually defined using data independent of the program) is used. , Is created for each measuring device, but other parts can be commonly used for other measuring devices other than the signal generator.

【0076】従って、各種の測定装置に対して制御部2
5をその構成要素の大部分を再利用して容易に組み込む
ことができ、共通のデバッグ用コマンドを用いて測定部
の動作チェックを行うことができる。
Therefore, the control unit 2 is used for various measuring devices.
5 can be easily incorporated by reusing most of its constituent elements, and the operation of the measuring unit can be checked using a common debugging command.

【0077】2.第2の実施例(測定装置がスペクトラ
ムアナライザの例) 図7は、測定部73として被測定信号のスペクトル分析
表示する機能を有した測定装置、即ちスペクトラムアナ
ライザ70の機能ブロック図である。このスペクトラム
アナライザ70のハードウェア構成も、前記従来装置
(図9)と同一であり、CPU、ROMおよびRAMで
構成された制御部71によって測定部73を制御してい
る。以下、図7に基づいて本発明の第2の実施例を説明
する。なお、第1の実施例と同一機能の要素については
同一符号を付して、説明の重複をさける。
2. Second Example (Example where Measurement Device is Spectrum Analyzer) FIG. 7 is a functional block diagram of a measurement device having a function of performing spectrum analysis display of a signal under measurement as the measurement unit 73. The hardware configuration of the spectrum analyzer 70 is also the same as that of the conventional device (FIG. 9), and the measuring unit 73 is controlled by the control unit 71 including a CPU, a ROM and a RAM. The second embodiment of the present invention will be described below with reference to FIG. The elements having the same functions as those in the first embodiment are designated by the same reference numerals to avoid duplication of description.

【0078】〔構成の説明〕 (1) このスペクトラムアナライザ70の制御部71
には、第1の実施例の制御部25の構成要素の他に、ス
ペクトラム表示データを記憶するためのV−RAM72
が設けられている。V−RAM72のアドレスは、例え
ば9000番地以降に割当られていて、測定部73から
ワークエリア35の所定アドレス(例えば7500番地
から7999番地)に記憶される測定データは、表示制
御手段37によってスペクトラム表示データに変換され
て、V−RAM72に記憶され、その記憶データが一連
のスペクトラムデータとして、表示器39の画面上に表
示される。なお、このスペクトラム表示動作は、測定制
御実行手段28の測定プログラムの実行とは独立して行
われる。
[Description of Configuration] (1) Control Unit 71 of Spectrum Analyzer 70
In addition to the components of the control unit 25 of the first embodiment, a V-RAM 72 for storing spectrum display data is included in
Is provided. The address of the V-RAM 72 is assigned, for example, after address 9000, and the measurement data stored from the measuring unit 73 to a predetermined address (for example, address 7500 to 7999) of the work area 35 is displayed by the display control means 37 as a spectrum. The converted data is stored in the V-RAM 72, and the stored data is displayed on the screen of the display 39 as a series of spectrum data. The spectrum display operation is performed independently of the execution of the measurement program by the measurement control execution means 28.

【0079】(2) 測定部73は、入力端子74から
入力される被測定信号と、局発回路75から掃引出力さ
れる局発信号とをミキサ76で混合し、その混合出力の
うち、中間周波フィルタ77を通過する信号のみを検波
回路78で検波し、その検波レベルをA/D変換器79
によってディジタル出力するように構成されている。
(2) The measuring section 73 mixes the signal under measurement input from the input terminal 74 and the local oscillator signal swept and output from the local oscillator circuit 75 in the mixer 76, and outputs the intermediate output of the mixed outputs. Only the signal passing through the frequency filter 77 is detected by the detection circuit 78, and the detection level is detected by the A / D converter 79.
Is configured to output digitally.

【0080】(3) 局発回路75に対する制御部71
からの中心周波数およびスパンの設定および確認は、バ
スラインに接続された入出力制御回路41a〜41dを
介してなされ、局発回路75は、制御部71から設定さ
れる中心周波数データおよびスパンデータに対応した周
波数範囲の局発信号を掃引出力する。
(3) Controller 71 for local oscillator circuit 75
The setting and confirmation of the center frequency and the span are performed through the input / output control circuits 41a to 41d connected to the bus line, and the local oscillator circuit 75 converts the center frequency data and the span data set by the control unit 71. Sweeps out the local oscillator signal in the corresponding frequency range.

【0081】A/D変換器79に対するサンプリング制
御および測定データの出力制御は、入出力制御回路41
e、41fを介してなされる。なお、各入出力制御回路
41a〜41fには、前記実施例と同様に8010、8
020、…、8060のアドレスが割当られている。
The input / output control circuit 41 controls sampling and output of measurement data to the A / D converter 79.
e, 41f. The input / output control circuits 41a to 41f are provided with 8010 and 8
Addresses 020, ..., 8060 are assigned.

【0082】〔測定用コマンドとデバッグ用コマンドの
説明〕表3は、このスペクトラムアナライザ70のため
に定義された測定用コマンドと、その測定用コマンドを
受領した測定制御実行手段28が測定部73に対して実
行する内容の一例を示している。
[Explanation of Measurement Command and Debug Command] Table 3 shows the measurement command defined for the spectrum analyzer 70, and the measurement control execution means 28 which has received the measurement command causes the measurement section 73 to perform measurement. An example of contents to be executed is shown.

【0083】[0083]

【表3】 [Table 3]

【0084】例えば、”B○○○”というコマンドを測
定制御実行手段28が受領すると、測定実行制御手段2
8は、分析中心周波数が○○○となるための中心周波数
データを局発回路75に設定する。
For example, when the measurement control execution means 28 receives the command "B ○○○", the measurement execution control means 2
At 8, the center frequency data for setting the analysis center frequency to XX is set in the local oscillator circuit 75.

【0085】なお、デバッグ用コマンドと、そのデバッ
グ用コマンドを受けたデバッグ実行手段30が実行する
内容は、前記実施例と同一、即ち、表2に記載したもの
と同一であるので、説明を省略する。
Since the debug command and the contents executed by the debug executing means 30 receiving the debug command are the same as those in the above-mentioned embodiment, that is, the same as those shown in Table 2, the description thereof is omitted. To do.

【0086】〔動作の説明〕 (1)測定動作 このスペクトラムアナライザ70の制御部71の処理手
順は、基本的に第1の実施例の制御部25と同一であ
り、図5に示したフローチャートに従っている。以下、
次のコマンドが操作部38あるいは外部制御装置50か
ら入力された場合の測定動作について説明する。
[Description of Operation] (1) Measurement Operation The processing procedure of the control unit 71 of the spectrum analyzer 70 is basically the same as that of the control unit 25 of the first embodiment, and according to the flowchart shown in FIG. There is. Less than,
The measurement operation when the following command is input from the operation unit 38 or the external control device 50 will be described.

【0087】 ”A” ”B 20000” ”C 1000” ”D”“A” “B 20000” “C 1000” “D”

【0088】これらのコマンドが、コマンド判別手段2
6によって、スペクトラムアナライザ70に定義されて
いるものであると判定され、測定用コマンドであると判
定されると、これらに対応する内部コマンドが、実行管
理手段27へ出力される。
These commands are command discrimination means 2
6 determines that the command is defined in the spectrum analyzer 70, and if it is determined that the command is for measurement, the internal commands corresponding to these are output to the execution management means 27.

【0089】実行管理手段27は、これらの測定用の内
部コマンドを測定制御実行手段28へ出力する。
The execution management means 27 outputs these measurement internal commands to the measurement control execution means 28.

【0090】測定制御実行手段28は、上記のコマンド
に対して、 (イ)測定条件を自動設定する (ロ)分析中心周波数を20000kHzにするための
中心周波数データを、アドレス8010の入出力制御回
路41aに送出して、測定部73の局発回路75に設定
する (ハ)スパンを1000kHzにするためのスパンデー
タを、アドレス8030の入出力制御回路41cに送出
して局発回路75に設定する、 (ニ)測定を開始させて、A/D変換器79からの測定
データの取り込みを開始させる という一連の処理を行なう。
In response to the above command, the measurement control executing means 28 (a) automatically sets the measurement condition. (B) The center frequency data for setting the analysis center frequency to 20000 kHz, the input / output control circuit of the address 8010. 41a and set it in the local oscillator circuit 75 of the measuring unit 73. (c) The span data for setting the span to 1000 kHz is sent to the input / output control circuit 41c at the address 8030 and set in the local oscillator circuit 75. (D) A series of processes is performed in which measurement is started and measurement data is taken in from the A / D converter 79.

【0091】この測定制御処理によって、測定データが
ワークエリヤ35に記憶され、この測定データがスペク
トラム表示データに変換され、表示器39には、200
00kHzを中心とする一連のスペクトラム波形が表示
される。
By this measurement control processing, the measurement data is stored in the work area 35, this measurement data is converted into spectrum display data, and the display 39 displays 200
A series of spectral waveforms centered at 00 kHz are displayed.

【0092】(2)デバッグ動作(ハードウェアの診
断) 次にデバッグ動作によってハードウェアを診断する場合
について説明する。
(2) Debugging Operation (Hardware Diagnosis) Next, the case of diagnosing hardware by the debugging operation will be described.

【0093】例えば、故障により表示器39に正常な波
形が表示されない状態で、測定制御実行手段28による
測定が正常に行なわれているかをチェックするために、
外部制御装置50側から次のようなコマンドを入力す
る。
For example, in order to check whether the measurement by the measurement control executing means 28 is normally performed in the state where the normal waveform is not displayed on the display 39 due to a failure,
The following command is input from the external control device 50 side.

【0094】(イ)”A” (ロ)”B 2000” (ハ)”MAC 8020,MRD 1” (ニ)”D” (ホ)”F” (ヘ)”MAC 9000,MRD 32,MRD 3
2,…”
(A) "A" (b) "B 2000" (c) "MAC 8020, MRD 1" (d) "D" (e) "F" (f) "MAC 9000, MRD 32, MRD 3"
2,… ”

【0095】(イ)、(ロ)のコマンドは、コマンド判
定手段26によって、測定用コマンドと判定されて、測
定用の内部コマンドに変換され、実行管理手段27を介
して、測定実行制御手段28へ送られる。このため、測
定部73の測定条件が自動設定された後、分析中心周波
数を2000kHzにするためのデータが局発回路75
に設定される。
The commands (a) and (b) are judged by the command judgment means 26 to be measurement commands and converted into internal measurement commands, and the measurement execution control means 28 is executed via the execution management means 27. Sent to. Therefore, after the measurement conditions of the measurement unit 73 are automatically set, the data for setting the analysis center frequency to 2000 kHz is set to the local oscillation circuit 75.
Is set to.

【0096】(ハ)のコマンドは、コマンド判別手段2
6によって、デバッグ用コマンドと判定されて、デバッ
グ用の内部コマンドに変換され、デバッグ実行手段30
に送られる。(ハ)のコマンドは、メモリアクセス情報
であるため、メモリアクセス手段32に送られる。この
ため、アドレス8020の入出力制御回路41bからデ
ータが読みだされる。このデータは、データ出力手段2
9および汎用インターフェース21を介して外部制御装
置50へ送られ、その出力部58に表示される。表示さ
れたデータが2000であれば、測定用コマンド(ロ)
による中心周波数の設定に関する動作は正常であること
が確認できる。
The command (c) is the command discrimination means 2
6, the command is determined to be a debug command, converted into a debug internal command, and the debug execution means 30
Sent to. Since the command (c) is memory access information, it is sent to the memory access means 32. Therefore, the data is read from the input / output control circuit 41b at the address 8020. This data is the data output means 2
9 and the general-purpose interface 21 to be sent to the external control device 50 and displayed on the output section 58 thereof. If the displayed data is 2000, the measurement command (b)
It can be confirmed that the operation related to the setting of the center frequency by is normal.

【0097】(ニ)の測定用コマンドの実行によって、
測定が開始され、そのときの測定データがワークエリア
35に記憶され、そのスペクトラム表示データがV−R
AM72に記憶される。(ホ)の測定コマンドが実行さ
れると、ワークエリア35の測定データが外部制御装置
50に送られる。
By executing the measurement command (d),
Measurement is started, the measurement data at that time is stored in the work area 35, and the spectrum display data is VR
It is stored in the AM 72. When the measurement command (e) is executed, the measurement data in the work area 35 is sent to the external control device 50.

【0098】(ヘ)のデバッグ用コマンドは、デバッグ
実行手段30によって実行され、9000番地以降のデ
ータ、即ちV−RAM72に記憶されたスペクトラム表
示データが32個ずつ読みだされて、外部制御装置50
へ送られる。
The debug command (f) is executed by the debug executing means 30 and 32 pieces of spectrum display data stored in the V-RAM 72, that is, the data after the address 9000, are read out, and the external control device 50 is read.
Sent to.

【0099】したがって、最初に読出された測定データ
と、V−RAM72からのスペクトラム表示データを、
外部制御装置50の出力部58にともに表示させれば、
測定部73の動作や測定制御実行手段28および表示制
御手段37の動作等が正しく行なわれているかを確認で
きる。
Therefore, the measurement data read first and the spectrum display data from the V-RAM 72 are
If both are displayed on the output unit 58 of the external control device 50,
It is possible to confirm whether the operation of the measurement unit 73, the operation of the measurement control execution unit 28 and the display control unit 37, etc. are performed correctly.

【0100】(3)デバッグ動作(未完成プログラムが
ある状態でのデバッグ動作) 例えば、測定データをスペクトラム表示データに加工し
てV−RAM72へ記憶させるためのプログラムに異常
があるか、またはそのプログラムが未完成状態で、他の
部分のデバッグを行なう場合には、所定の測定条件で測
定を開始させて、ワークエリア35に測定データを記憶
させた後、この記憶データを、デバッグ実行手段30に
よって外部制御装置50側に読出し、外部制御装置50
側でこの記憶データを表示データに変換処理して、V−
RAM72の9000番地以降へ記憶させる。
(3) Debugging operation (debugging operation with an unfinished program) For example, there is an abnormality in the program for processing the measured data into spectrum display data and storing it in the V-RAM 72, or the program. When the other part is to be debugged in the unfinished state, the measurement is started under predetermined measurement conditions, the measurement data is stored in the work area 35, and then the stored data is processed by the debug executing means 30. The external control device 50 is read out and the external control device 50 is read.
Side converts this stored data into display data, and V-
The data is stored in the RAM 72 at and after the address 9000.

【0101】そして、この表示データを測定用コマンド
によってスペクトラムアナライザ70の表示器39に表
示させれば、表示データへの加工動作を除く動作のチェ
ックが行なえる。
Then, if this display data is displayed on the display 39 of the spectrum analyzer 70 by a measurement command, the operation other than the processing operation for the display data can be checked.

【0102】本実施例では、測定用コマンドとデバッグ
用コマンドを組み合わせて用いてハードウェアの診断や
ソフトウェアのデバッグを行う方法を説明した。このよ
うに、測定装置本来の測定用コマンドを活用しながら、
これと組み合せてデバッグ用コマンドを実行してデバッ
グを行うことにより、測定部のハードウェアの診断や開
発中の測定装置におけるプログラムのデバッグを効率的
に行なうことができる。
In the present embodiment, the method of diagnosing hardware and debugging software by using the measurement command and the debug command in combination has been described. In this way, while utilizing the original measurement command of the measuring device,
By executing a debug command in combination with this to perform debugging, it is possible to efficiently diagnose the hardware of the measuring unit and debug the program in the measuring device under development.

【0103】3.第3の実施例 前記2つの実施例では、測定部を1つの制御部(CP
U)で制御する測定装置について説明したが、複数の制
御部によって複数の測定部を制御する測定装置について
も、本発明を適用することができる。図8は、複数の制
御部を有する一実施例の測定装置80の機能ブロック図
である。以下、図8に基づいて第3の実施例を説明す
る。なお、図8では、操作部、表示器を省略している。
3. Third Embodiment In the above two embodiments, the measuring unit is a single control unit (CP).
Although the measuring device controlled in U) is described, the present invention can be applied to a measuring device controlling a plurality of measuring units by a plurality of control units. FIG. 8 is a functional block diagram of the measuring apparatus 80 of one embodiment having a plurality of control units. The third embodiment will be described below with reference to FIG. Note that the operation unit and the display are omitted in FIG.

【0104】〔構成の説明〕この測定装置80は、主C
PU(図示せず)で構成される主制御部81と、副CP
U(図示せず)で構成される複数の副制御部911 、9
2 、…、91nを有しており、各制御部によってそれ
ぞれの測定部89、991 、992 、…99nを制御し
ている。
[Explanation of Configuration] This measuring device 80 comprises a main C
A main control unit 81 including a PU (not shown) and a sub CP
A plurality of sub-control units 91 1 , 9 configured by U (not shown)
1 2, ..., it has a 91n, respectively of the measurement section 89,99 1 by the control unit, 99 2, and controls the ... 99n.

【0105】(1) 主制御部81は、制御部間通信手
段82と、デバッグ実行手段83の副制御部アクセス手
段84を有している以外は、前記した2つの実施例の制
御部と同様に構成されている。
(1) The main control unit 81 is the same as the control units of the above-described two embodiments except that it has inter-control unit communication means 82 and sub-control unit access means 84 of the debug execution means 83. Is configured.

【0106】測定制御実行手段28は、実行管理手段2
7からの測定用コマンドを受け、この測定用コマンドが
主制御部81に対するコマンドの場合には、その測定用
コマンドに対応する測定プログラムを実行し、他の副制
御部911 、912 、…91nに対するコマンドの場合
には、割込み回路等で構成される制御部間通信手段82
へ、そのコマンドを送出する。
The measurement control execution means 28 is the execution management means 2
When the measurement command from the No. 7 is received and the measurement command is a command for the main control unit 81, the measurement program corresponding to the measurement command is executed, and the other sub-control units 91 1 , 91 2 , ... In the case of a command for 91n, the inter-control unit communication means 82 including an interrupt circuit and the like.
To send the command to.

【0107】また、デバッグ実行手段83のデバッグ機
能制御手段31は、実行管理手段27からのデバッグ用
コマンドが、この主制御部81および測定部89に対す
るデバッグ用コマンドの場合には、その属性に応じてメ
モリアクセス手段32とプログラム実行手段32に振り
分け、受領したデバッグ用コマンドが副制御部911
912 、…、91nに対するコマンドの場合には、その
デバッグ用コマンドを副制御部アクセス手段84へ出力
する。副制御部アクセス手段84は、受領したコマンド
を制御部間通信手段82へ送る。
When the debug command from the execution management means 27 is a debug command for the main control section 81 and the measuring section 89, the debug function control section 31 of the debug execution section 83 responds to its attribute. The debug command received by the sub-control unit 91 1 and the memory access unit 32 and the program execution unit 32.
In the case of a command for 91 2 , ..., 91n, the debug command is output to the sub-control unit access means 84. The sub controller access means 84 sends the received command to the inter controller communication means 82.

【0108】制御部間通信手段82は、測定制御実行手
段28または副制御部アクセス手段84からのコマンド
を、共有メモリ85に記憶させた状態で、コマンドの送
り先の副制御部に割り込み制御を行う。
The inter-control unit communication means 82 carries out interrupt control to the sub control unit of the command destination while the command from the measurement control execution unit 28 or the sub control unit access unit 84 is stored in the shared memory 85. ..

【0109】(2) 副制御部911 、912 、…、9
1nは、全て同一に構成されているため、その1つの副
制御部911 についてのみ説明する。
(2) Sub-control units 91 1 , 91 2 , ..., 9
Since all the 1n have the same configuration, only one sub control unit 91 1 will be described.

【0110】副制御部911 の制御部間通信手段92
は、主制御部81からの割り込みを受けて、共有メモリ
85に記憶されているコマンドを実行管理手段94へ送
出する。実行管理手段94は、受けたコマンドが測定用
コマンドのときには、測定制御実行手段95に送り、デ
バッグ用コマンドのときには、デバッグ実行手段93に
送出する。
Inter-control unit communication means 92 of the sub-control unit 91 1.
Receives an interrupt from the main control unit 81, and sends the command stored in the shared memory 85 to the execution management unit 94. When the received command is a measurement command, the execution management means 94 sends it to the measurement control execution means 95, and when it is a debug command, it sends it to the debug execution means 93.

【0111】測定制御実行手段95は、受領した測定用
コマンドに対応する測定用プログラムを実行して、測定
部991 を制御し、その測定データ等を制御部間通信手
段92を介して主制御部81へ送出する。
The measurement control execution means 95 executes the measurement program corresponding to the received measurement command to control the measurement section 99 1 , and the measurement data etc. are main-controlled via the inter-control section communication means 92. It is sent to the section 81.

【0112】デバッグ実行手段93は、受領したデバッ
グ用コマンドの種類をデバッグ機能制御手段31によっ
て分類し、対応するデバッグをメモリアクセス手段32
とプログラム実行手段33によって実行し、読出しデー
タ等のデバッグ結果を主制御部アクセス手段96によっ
て制御部間通信手段92から主制御部81へ送出する。
次段以降の副制御部912 、913 、…、91nの構成
も全く同一なので、説明を省略する。
The debug executing means 93 classifies the types of received debug commands by the debug function control means 31, and the corresponding debugs are accessed by the memory access means 32.
The program execution means 33 executes the program and the debug result such as read data is sent from the inter-control part communication means 92 to the main control part 81 by the main control part access means 96.
Since the sub-control units 91 2 , 91 3 , ..., 91n in the subsequent stages have exactly the same configuration, the description thereof will be omitted.

【0113】〔動作の説明〕次に、この測定装置80の
動作について説明する。
[Explanation of Operation] Next, the operation of the measuring apparatus 80 will be described.

【0114】(1) 外部制御装置50側からあるコマ
ンドが、汎用インターフェース21を介して入力される
と、このコマンドが、この測定装置80に対して定義さ
れているコマンドか否かがコマンド判別手段26で判定
される。
(1) When a command is input from the external control device 50 through the general-purpose interface 21, it is determined whether or not the command is a command defined for the measuring device 80. It is judged at 26.

【0115】入力されたコマンドがこの主制御部81で
定義されている測定用コマンドまたはデバッグ用コマン
ドのときには、そのコマンドは、測定制御実行手段28
またはデバッグ実行手段83で実行される。入力された
コマンドが、例えば副制御部911 に対する測定用コマ
ンドまたはデバッグ用コマンドのときには、このコマン
ドは、測定制御実行手段28または副制御部アクセス手
段84から制御部間通信手段82へ出力される。
When the input command is the measurement command or the debug command defined by the main control section 81, the command is the measurement control execution means 28.
Alternatively, it is executed by the debug executing means 83. When the input command is, for example, a measurement command or a debug command for the sub-control unit 91 1 , this command is output from the measurement control execution unit 28 or the sub-control unit access unit 84 to the inter-control unit communication unit 82. ..

【0116】制御部間通信手段82は、このコマンドを
共有メモリ85に記憶した状態で、コマンドの送り先の
副制御部911 の制御部間通信手段92に割込み制御を
行なう。
The inter-control unit communication means 82, while storing this command in the shared memory 85, controls the inter-control unit communication means 92 of the sub control unit 91 1 to which the command is sent by interrupt control.

【0117】(2) 割込みを受けた副制御部91
1 は、制御部間通信手段92によって、共有メモリ85
に記憶されているコマンドを受け、実行管理手段94へ
送出する。実行管理手段94は、このコマンドが測定用
コマンドかデバッグ用コマンドかを判断して、その属性
に応じた制御を測定制御実行手段95またはデバッグ実
行手段93に実行させる。
(2) Sub-control unit 91 that received the interrupt
1 is a shared memory 85 by the inter-control unit communication means 92.
It receives the command stored in and sends it to the execution management means 94. The execution management means 94 judges whether this command is a measurement command or a debug command, and causes the measurement control execution means 95 or the debug execution means 93 to execute control according to the attribute.

【0118】このコマンドが読出しコマンドであれば、
その測定あるいはデバッグによって読出されたデータ
が、測定制御実行手段95または主制御部アクセス手段
96から、制御部間通信手段92を介して、共有メモリ
85に記憶され、主制御部81に対して割込み制御がな
される。
If this command is a read command,
The data read by the measurement or debug is stored in the shared memory 85 from the measurement control execution means 95 or the main control part access means 96 via the inter-control part communication means 92, and interrupts the main control part 81. Control is made.

【0119】(3)主制御部81が割込み可能な状態に
なると、共有メモリ85に記憶されたデータは、測定制
御実行手段28またはデバッグ実行手段83から、実行
管理手段27、およびデータ出力手段29を介して汎用
インターフェース21へ出力され、外部制御装置50へ
送られる。
(3) When the main control unit 81 becomes in an interruptable state, the data stored in the shared memory 85 is transferred from the measurement control execution unit 28 or the debug execution unit 83 to the execution management unit 27 and the data output unit 29. It is output to the general-purpose interface 21 via the and is sent to the external control device 50.

【0120】(4)このように、複数の制御部を有する
測定装置80の場合でも、デバッグ用コマンドをその送
り先を指定するコードとともに入力すれば、前記2つの
実施例と同様に、各測定部89、991 、992 、…、
99nや各測定制御実行手段28、95に対するデバッ
グが可能である。なお、デバッグ用コマンドの受渡し先
の指定方法として、前記のようにコマンドに送り先を指
定するコードをつけ付け加える方法以外に、送り先の制
御部がどれに指定されているかを示すデバッグモードを
設定し、デバッグ機能制御手段31において、デバッグ
モードが副制御部911 、912 、…、91nのうちの
いずれかを示していれば、受領したデバッグ用コマンド
を副制御部アクセス手段84に渡すという方法を用いる
こともできる。
(4) As described above, even in the case of the measuring device 80 having a plurality of control units, if the debug command is input together with the code designating the destination, each measuring unit can be processed as in the two embodiments. 89, 99 1 , 99 2 , ...
It is possible to debug 99n and each measurement control execution means 28, 95. As a method of designating the destination of the debug command, in addition to the method of adding a code designating the destination to the command as described above, a debug mode indicating which control unit of the destination is designated is set, In the debug function control means 31, if the debug mode indicates any of the sub control units 91 1 , 91 2 , ..., 91n, the received debug command is passed to the sub control unit access means 84. It can also be used.

【0121】[0121]

【発明の効果】以上説明したように、本発明の測定装置
は、汎用インターフェースを介して入力されたコマンド
が測定用コマンドかデバッグ用コマンドかを判定するコ
マンド判別手段と、入力されたコマンドが測定用コマン
ドのときはこの測定用コマンドに従って測定用のプログ
ラムを実行させ、デバッグ用コマンドのときは、このデ
バッグ用コマンドに従ってデバッグ用のプログラムを実
行させる実行管理手段を備えている。
As described above, the measuring apparatus according to the present invention has a command discriminating means for discriminating whether the command inputted through the general-purpose interface is a measuring command or a debugging command, and the inputted command is measured. When the command is a command, the measurement program is executed according to the measurement command, and when the command is a debug command, the program for debugging is executed according to the debug command.

【0122】このため、測定用コマンドだけでなく、デ
バッグ用コマンドによっても測定部の制御およびチェッ
クが可能となり、以下に述べる効果がある。
Therefore, not only the measurement command but also the debug command can be used to control and check the measuring unit, which has the following effects.

【0123】(1)測定装置の開発初期段階に、測定用
のプログラムが未完成の状態であっても、測定部のハー
ドウェアに関する動作チェックができる。また、測定用
のプログラムの未完成部分のかわりにデバッグ用コマン
ドを実行して不足の機能を補うことにより、測定用のプ
ログラムのその他の部分に関する動作チェックができ
る。
(1) In the initial stage of the development of the measuring device, even if the measuring program is incomplete, it is possible to check the operation of the hardware of the measuring section. In addition, by executing a debugging command instead of the unfinished portion of the measurement program to compensate for the insufficient function, it is possible to check the operation of other portions of the measurement program.

【0124】(2)測定装置を製品として出荷した後に
測定部のハードウェアが故障した場合に、測定部のハー
ドウェアに関する動作チェックを行うことにより故障箇
所を調べることができる。
(2) If the hardware of the measuring unit fails after the measuring apparatus is shipped as a product, it is possible to check the faulty part by performing an operation check on the hardware of the measuring unit.

【0125】(3)上記(1)、(2)の動作チェック
が汎用インターフェースを介してデバッグ用コマンドを
測定装置に送るだけで実行でき、従来のインサーキット
エミュレータ等のデバッグ装置を用いる場合のようにC
PUをICコネクタからはずし、このICソケットとデ
バッグ装置を接続するという煩わしい作業が不要であ
る。また、実装されたCPUをそのまま動作させてデバ
ッグ作業を行うので、デバッグ装置をCPUのかわりに
接続した場合に発生する動作条件の不一致や接続状態の
不安定さという問題も避けられる。
(3) The operation check of the above (1) and (2) can be executed only by sending a debug command to the measuring device through a general-purpose interface, and it is the same as when using a conventional debug device such as an in-circuit emulator. To C
It is not necessary to remove the PU from the IC connector and connect the IC socket to the debug device. Further, since the mounted CPU is operated as it is to perform the debugging work, problems such as inconsistency of operation conditions and instability of connection state which occur when the debug device is connected instead of the CPU can be avoided.

【0126】(4)上記(1)、(2)の動作チェック
をデバッグ用コマンドを用いて実行するために測定装置
に組み込まれる制御部は、その大部分が各種の測定器に
対して再利用可能である。そのため、本発明を各種の測
定器に対して容易に実施し、共通のデバッグ用コマンド
を用いて上記(1)、(2)の動作チェックを行うこと
ができる。
(4) Most of the control unit incorporated in the measuring device for executing the operation checks of (1) and (2) above by using the debug command is reused for various measuring instruments. It is possible. Therefore, the present invention can be easily implemented for various measuring instruments and the operation check of the above (1) and (2) can be performed using a common debug command.

【0127】(5)本発明によるデバッグ用コマンド
は、測定装置が持つ本来の測定用コマンドと組み合わせ
て用いることができる。そのため、測定用コマンドの機
能を活用して効率的に測定部のハードウェアの動作チェ
ックを行なうことができる。また、開発中の測定装置に
おけるプログラムのデバッグも効率的に行なうことがで
きる。
(5) The debug command according to the present invention can be used in combination with the original measurement command of the measuring device. Therefore, it is possible to efficiently check the operation of the hardware of the measurement unit by utilizing the function of the measurement command. Further, it is possible to efficiently debug the program in the measuring device under development.

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

【図1】本発明の第1の実施例の機能ブロック図であ
る。
FIG. 1 is a functional block diagram of a first embodiment of the present invention.

【図2】第1の実施例の要部の処理手順を示すフローチ
ャート図である。
FIG. 2 is a flowchart showing a processing procedure of a main part of the first embodiment.

【図3】第1の実施例の内部コマンドの形式を示す図で
ある。
FIG. 3 is a diagram showing a format of an internal command of the first embodiment.

【図4】外部制御装置の機能ブロック図である。FIG. 4 is a functional block diagram of an external control device.

【図5】第1の実施例の制御部の処理手順を示すフロー
チャート図である。
FIG. 5 is a flowchart showing a processing procedure of a control unit of the first embodiment.

【図6】第1の実施例のデバッグ時における各装置の接
続図である。
FIG. 6 is a connection diagram of each device during debugging according to the first embodiment.

【図7】本発明の第2の実施例の機能ブロック図であ
る。
FIG. 7 is a functional block diagram of a second embodiment of the present invention.

【図8】本発明の第3の実施例の機能ブロック図であ
る。
FIG. 8 is a functional block diagram of a third embodiment of the present invention.

【図9】従来装置の構成を示すブロック図である。FIG. 9 is a block diagram showing a configuration of a conventional device.

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

20 信号発生器 21 汎用インターフェース 25 制御部 26 コマンド判別手段 27 実行管理手段 28 測定制御実行手段 29 データ出力手段 30 デバッグ実行手段 31 デバッグ機能制御手段 32 メモリアクセス手段 33 プログラム実行手段 35 ワークエリア 37 表示制御手段 38 操作部 39 表示器 40 測定部 41a〜41f 入出力制御回路 42 発振回路 43 波形選択回路 44 出力回路 20 signal generator 21 general purpose interface 25 control section 26 command discrimination means 27 execution management means 28 measurement control execution means 29 data output means 30 debug execution means 31 debug function control means 32 memory access means 33 program execution means 35 work area 37 display control Means 38 Operation unit 39 Indicator 40 Measuring unit 41a to 41f Input / output control circuit 42 Oscillation circuit 43 Waveform selection circuit 44 Output circuit

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.5 識別記号 庁内整理番号 FI 技術表示箇所 // G01R 13/22 J 8203−2G (72)発明者 矢澤 健一 東京都港区南麻布五丁目10番27号 アンリ ツ株式会社内 (72)発明者 勝野 良彦 神奈川県厚木市中町4丁目16番21号 アン リツエンジニアリング株式会社内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 5 Identification number Reference number within the agency FI technical display location // G01R 13/22 J 8203-2G (72) Inventor Kenichi Yazawa 5-10 Minamiazabu, Minato-ku, Tokyo No. 27 in Anritsu Co., Ltd. (72) Inventor Yoshihiko Katsuno 4-16-21 Nakamachi, Atsugi-shi, Kanagawa Anritsu Engineering Co., Ltd.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】被測定対象に接続される測定部(40)
と、 外部装置と信号の授受を行う汎用インターフェース(2
1)と、 前記汎用インターフェースを介して入力されるコマンド
信号が測定用コマンドであるかデバッグ用コマンドであ
るかを判別するコマンド判別手段(26)と、 コマンド信号が前記測定用コマンドに対応するコマンド
であるときは、測定用のプログラムを実行し、前記デバ
ッグ用コマンドであるときはデバッグ用のプログラムを
実行するための実行管理手段(27)とを具備した測定
装置。
1. A measuring unit (40) connected to an object to be measured.
And a general-purpose interface for exchanging signals with external devices (2
1), command determining means (26) for determining whether the command signal input via the general-purpose interface is a measurement command or a debug command, and a command whose command signal corresponds to the measurement command. The measuring device comprises: an execution management means (27) for executing the measurement program when the above command is executed, and executing the debug program when the above command is the debug command.
【請求項2】被測定対象に接続される測定部(40)
と、 外部装置と信号の授受を行う汎用インターフェース(2
1)と、 前記測定部とバスラインで接続され、前記汎用インター
フェースを介して受領したコマンド信号に応じて、予め
記憶された測定用のプログラムを実行し、前記測定部を
制御する測定制御実行手段(28)を有する制御部(2
5)とを有する測定装置であって、 前記制御部は、前記測定部と前記バスラインで接続さ
れ、デバッグ用コマンドに対応するプログラムを実行し
て前記測定制御実行手段に記憶された測定用のプログラ
ム及び前記測定部をデバッグするデバッグ実行手段(3
0)と、前記汎用インターフェースを介して入力される
コマンド信号が測定用コマンドであるかデバッグ用コマ
ンドであるかを判別するコマンド判別手段(26)を具
備し、 その判別結果を受領して汎用インターフェースを介して
入力したコマンド信号を測定用コマンドとデバッグ用コ
マンドに振り分け、コマンド信号が測定用コマンドであ
るときは、前記測定制御実行手段へ送出して前記測定部
を制御せしめ、 前記コマンド信号がデバッグ用コマンドであるときは前
記デバッグ実行手段へ送出して、デバッグ用コマンドに
対応するプログラムを実行せしめる実行管理手段(2
7)とを備えていることを特徴とする測定装置。
2. A measuring section (40) connected to an object to be measured.
And a general-purpose interface for exchanging signals with external devices (2
1) and a measurement control execution unit that is connected to the measurement unit via a bus line, executes a pre-stored measurement program according to a command signal received via the general-purpose interface, and controls the measurement unit. Control unit (2) having (28)
5) A measuring device comprising: a measuring unit connected to the measuring unit via the bus line, for executing a program corresponding to a debug command, and storing the measurement control execution unit. Debug executing means for debugging the program and the measuring unit (3
0) and a command discriminating means (26) for discriminating whether the command signal input through the general-purpose interface is a measurement command or a debug command, and the general-purpose interface receives the discrimination result. The command signal input via the command is divided into a measurement command and a debug command, and when the command signal is a measurement command, the command signal is sent to the measurement control execution means to control the measurement unit, and the command signal is debugged. If it is a command for execution, it is sent to the debug executing means to execute the program corresponding to the debug command (2)
7) and a measuring device.
JP4126907A 1992-04-20 1992-04-20 measuring device Expired - Lifetime JP2909685B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4126907A JP2909685B2 (en) 1992-04-20 1992-04-20 measuring device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4126907A JP2909685B2 (en) 1992-04-20 1992-04-20 measuring device

Publications (2)

Publication Number Publication Date
JPH05296801A true JPH05296801A (en) 1993-11-12
JP2909685B2 JP2909685B2 (en) 1999-06-23

Family

ID=14946847

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4126907A Expired - Lifetime JP2909685B2 (en) 1992-04-20 1992-04-20 measuring device

Country Status (1)

Country Link
JP (1) JP2909685B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010203996A (en) * 2009-03-05 2010-09-16 Anritsu Corp Measuring device
JP2016012278A (en) * 2014-06-30 2016-01-21 富士通株式会社 Information processing system test method, information processing system, and test program
JP2019176367A (en) * 2018-03-29 2019-10-10 アンリツ株式会社 Apparatus, system and method for mobile terminal test

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010203996A (en) * 2009-03-05 2010-09-16 Anritsu Corp Measuring device
JP2016012278A (en) * 2014-06-30 2016-01-21 富士通株式会社 Information processing system test method, information processing system, and test program
JP2019176367A (en) * 2018-03-29 2019-10-10 アンリツ株式会社 Apparatus, system and method for mobile terminal test

Also Published As

Publication number Publication date
JP2909685B2 (en) 1999-06-23

Similar Documents

Publication Publication Date Title
US6842865B2 (en) Method and system for testing microprocessor based boards in a manufacturing environment
US4551837A (en) High speed operational recurring signature evaluator for digital equipment tester
JP2909685B2 (en) measuring device
JPH10171677A (en) Microprocessor and inspection method thereof
Maunder A universal framework for managed built-in test
JPS59128652A (en) Program testing method using display device
JPH02189476A (en) Measuring method for electronic circuit
CN112666923A (en) Fault diagnosis system for rail transit vehicle-mounted controller
JPS59174994A (en) Tester
JP3084013B2 (en) Gas appliance failure diagnosis method and repair method using the same
CN216927595U (en) Automatic testing device and system of vehicle-mounted equipment
JPH0344708A (en) Plant supervisory operating device
JPS62159243A (en) Automatic test device for electronic computer
CN115098332A (en) Test prototype temperature acquisition method, system, equipment and storage medium
CN114826985A (en) Communication protocol testing method and device, upper computer and testing system
JP2557941Y2 (en) CPU board debug device
JPH05241988A (en) Device and method for analysis of equipment using microcomputer
JPH02148335A (en) Device testing system for data processing system
JPH05340983A (en) Test inspection method
Yi et al. Design and implementation of a process control language for an automated pager manufacturing system
CN112098769A (en) A component testing method, device and system
Murphy AUTOMATED DIAGNOSTIC SUPPORT FOR TMDE
JPH05189263A (en) Manufacturing test device
CN120669670A (en) Device diagnostic system
JPS60118959A (en) Fault analysis system in input/output device