JP2023141912A - Measuring device and measuring method - Google Patents

Measuring device and measuring method Download PDF

Info

Publication number
JP2023141912A
JP2023141912A JP2022048492A JP2022048492A JP2023141912A JP 2023141912 A JP2023141912 A JP 2023141912A JP 2022048492 A JP2022048492 A JP 2022048492A JP 2022048492 A JP2022048492 A JP 2022048492A JP 2023141912 A JP2023141912 A JP 2023141912A
Authority
JP
Japan
Prior art keywords
command
remote
file
measuring
commands
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
JP2022048492A
Other languages
Japanese (ja)
Other versions
JP7325566B1 (en
Inventor
恭男 保坂
Yasuo Hosaka
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 JP2022048492A priority Critical patent/JP7325566B1/en
Application granted granted Critical
Publication of JP7325566B1 publication Critical patent/JP7325566B1/en
Publication of JP2023141912A publication Critical patent/JP2023141912A/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Selective Calling Equipment (AREA)
  • Testing Or Calibration Of Command Recording Devices (AREA)
  • Debugging And Monitoring (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

To output a remote command as a coded file.SOLUTION: A measuring device 1 has a function to output a procedure operated on a graphical user interface as a file of an SCPI command by a remote command equivalent to the procedure, and has a measuring instrument unit 2 detachably attached with a plurality of modules 11a performing measurement of a measurement object W by remote control according to the operation on the graphical user interface. A remote command including a switching command of the modules 11a is linked to every widget of the graphical user interface. The measuring device comprises: command recording means 17 that, when the widgets are operated, records the remote commands linked to the widgets and their arguments as the SCPI commands in order the widgets are operated; and file output means 18 that outputs the recorded commands as files obtained by converting the commands into a coded language.SELECTED DRAWING: Figure 1

Description

本発明は、リモートコマンドを用いた外部からの制御により測定を行うことが可能な測定装置および測定方法に関する。 The present invention relates to a measuring device and a measuring method that can perform measurements under external control using remote commands.

従来、複数のモジュールを備えた測定器をリモートコマンドで制御する場合には、その測定器のリモートコマンド取扱説明書を読んでグラフィカルユーザインタフェースの操作にあたるリモートコマンドとその引数を列挙し、かつ制御対象のモジュールを切り替えるリモートコマンドを適宜入れ込むことをユーザで実施していた。なお、この種のリモートコマンドを用いて制御を行う測定装置としては、例えば下記特許文献1に開示される測定器が知られている。 Conventionally, when controlling a measuring instrument with multiple modules using remote commands, read the remote command instruction manual for the measuring instrument, list the remote commands and their arguments for operating the graphical user interface, and then The user was responsible for inserting remote commands to switch between modules. Note that, as a measuring device that performs control using this type of remote command, for example, a measuring device disclosed in Patent Document 1 listed below is known.

特開2002-310736号公報Japanese Patent Application Publication No. 2002-310736

しかしながら、従来の測定装置において、顧客はテキスト形式で出力したSCPIコマンドを、顧客側でプログラムに組み込んだり、出力されてSCPIテキストファイルを読み込んでリモートコマンドとして出力するプログラムを作成するなど、使用するために何らかの手間が必要となっており、またプログラム組み込みに付随するトラブルが生じるおそれがあり、改善が求められていた。 However, with conventional measurement devices, customers can incorporate SCPI commands output in text format into their own programs, or create programs that read the output SCPI text file and output it as remote commands. This requires some effort, and there is a risk of problems associated with program embedding, so improvements have been sought.

そこで、本発明は上記問題点に鑑みてなされたものであって、リモートコマンドをコード化したファイルとして出力することができる測定装置および測定方法を提供することを目的としている。 SUMMARY OF THE INVENTION The present invention has been made in view of the above-mentioned problems, and it is an object of the present invention to provide a measuring device and a measuring method that can output a remote command as a coded file.

上記目的を達成するため、本発明の請求項1に記載された測定装置は、グラフィカルユーザインタフェース上で操作した手順を、それと等価なリモートコマンドによるSCPIコマンドのファイルとして出力する機能を有し、前記グラフィカルユーザインタフェースの操作によるリモート制御で測定対象Wの測定を行う複数のモジュール11aが着脱可能な測定器ユニット2を備えた測定装置1であって、
前記グラフィカルユーザインタフェースのウィジェットごとに前記モジュールの切り替えコマンド込みのリモートコマンドが紐付けられており、
前記ウィジェットを操作したときに、該ウィジェットに紐付けられたリモートコマンドとその引数をSCPIコマンドとして前記ウィジェットが操作された順番に記録するコマンド記録手段17と、
前記記録した記録済みコマンドをコード化した言語に変換したファイルとして出力するファイル出力手段18と、を備えたことを特徴とする。
In order to achieve the above object, the measuring device according to claim 1 of the present invention has a function of outputting a procedure operated on a graphical user interface as a file of SCPI command by a remote command equivalent to the procedure, and A measuring device 1 comprising a measuring instrument unit 2 to which a plurality of modules 11a can be attached and detached for measuring a measurement target W by remote control through operation of a graphical user interface,
A remote command including a command for switching the module is linked to each widget of the graphical user interface,
command recording means 17 for recording remote commands associated with the widget and their arguments as SCPI commands in the order in which the widgets are operated;
The present invention is characterized by comprising a file output means 18 for outputting the recorded command as a file converted into a coded language.

本発明の請求項2に記載された測定装置は、請求項1の測定装置において、
前記コード化した言語がインタプリタ型プログラミング言語であることを特徴とする。
The measuring device according to claim 2 of the present invention is the measuring device according to claim 1, which includes:
The coded language is an interpreted programming language.

本発明の請求項3に記載された測定装置は、請求項1または2の測定装置において、
前記測定器ユニットが複数台からなり、
前記リモートコマンドが前記モジュールおよび前記測定器ユニットの切り替えコマンド込みとして前記グラフィカルユーザインタフェースのウィジェットごとに紐付けられることを特徴とする。
The measuring device according to claim 3 of the present invention is the measuring device according to claim 1 or 2, comprising:
The measuring instrument unit consists of a plurality of units,
The remote command is characterized in that it is linked to each widget of the graphical user interface as a switching command for the module and the measuring instrument unit.

本発明の請求項4に記載された測定方法は、グラフィカルユーザインタフェース上で操作した手順を、それと等価なリモートコマンドによるSCPIコマンドのファイルとして出力し、前記グラフィカルユーザインタフェースの操作によるリモート制御で複数のモジュール11aが着脱可能な測定器ユニット2を備えた測定装置1により測定対象Wの測定を行う測定方法であって、
前記グラフィカルユーザインタフェースのウィジェットごとに前記モジュールの切り替えコマンド込みのリモートコマンドを紐付けるステップと、
前記ウィジェットを操作したときに、該ウィジェットに紐付けられたリモートコマンドとその引数をSCPIコマンドとして前記ウィジェットが操作された順番に記録するステップと、
前記記録した記録済みコマンドをコード化した言語に変換したファイルとして出力するステップと、を含むことを特徴とする。
The measurement method described in claim 4 of the present invention outputs a procedure operated on a graphical user interface as a file of SCPI commands using an equivalent remote command, and performs multiple operations by remote control using the graphical user interface. A measuring method in which a measuring object W is measured by a measuring device 1 equipped with a measuring instrument unit 2 to which a module 11a is detachable,
associating a remote command including a command for switching the module with each widget of the graphical user interface;
when the widget is operated, recording remote commands associated with the widget and their arguments as SCPI commands in the order in which the widget was operated;
The method is characterized in that it includes the step of converting the recorded command into a coded language and outputting it as a file.

本発明の請求項5に記載された測定方法は、請求項4の測定方法において、
前記コード化した言語がインタプリタ型プログラミング言語であることを特徴とする。
The measuring method according to claim 5 of the present invention is the measuring method according to claim 4,
The coded language is an interpreted programming language.

本発明の請求項6に記載された測定方法は、請求項4または5の測定方法において、
前記測定器ユニットを複数台で構成するステップと、
前記リモートコマンドを前記モジュールおよび前記測定器ユニットの切り替えコマンド込みとして前記グラフィカルユーザインタフェースのウィジェットごとに紐付けるステップと、を含むことを特徴とする。
The measuring method according to claim 6 of the present invention is the measuring method according to claim 4 or 5,
configuring a plurality of the measuring instrument units;
The method is characterized by including the step of associating the remote command with each widget of the graphical user interface as a switching command for the module and the measuring instrument unit.

本発明によれば、生成されたファイルがコードそのものとなり、顧客がGUI上で操作した手順を、リモートコマンドとして実行できるようになる。これにより、従来のようにSCPIコマンドを、顧客側でプログラムに組み込んだり、出力されてSCPIテキストファイルを読み込んでリモートコマンドとして出力するプログラムを作成するなどの手間が無くなり、プログラム組み込みに付随するトラブルも解消することが可能となる。 According to the present invention, the generated file becomes the code itself, and the procedure operated by the customer on the GUI can be executed as a remote command. This eliminates the conventional hassle of incorporating SCPI commands into a program on the customer side, or creating a program that reads the output SCPI text file and outputs it as a remote command, and also eliminates the troubles associated with program embedding. It becomes possible to eliminate the problem.

本発明に係る測定装置のブロック構成図である。FIG. 1 is a block configuration diagram of a measuring device according to the present invention. 本発明に係る測定装置の操作画面の一部を示す図である。It is a figure showing a part of operation screen of the measuring device concerning the present invention. 本発明に係る測定装置におけるリモートコマンド生成機能の処理手順を示すフローチャートである。3 is a flowchart showing a processing procedure of a remote command generation function in the measuring device according to the present invention. 保存されるファイルの内容の一例を示す図である。FIG. 3 is a diagram showing an example of the contents of a file to be saved. 本発明に係る測定装置によりコード化されたファイルを出力する処理手順を示すフローチャートである。It is a flowchart which shows the processing procedure which outputs the coded file by the measuring device based on this invention. 本発明に係る測定装置のテンプレートコードの一例を示す図である。It is a figure showing an example of the template code of the measuring device concerning the present invention. 本発明に係る測定装置にて生成されるPython Codeの一例を示す図である。FIG. 3 is a diagram showing an example of Python Code generated by the measuring device according to the present invention. 複数台の測定器ユニットと1台の外部装置の接続例を示す図である。FIG. 3 is a diagram illustrating a connection example between a plurality of measuring instrument units and one external device.

以下、本発明を実施するための形態について、添付した図面を参照しながら詳細に説明する。 DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, embodiments for carrying out the present invention will be described in detail with reference to the attached drawings.

本発明は、リモートコマンドを用いた外部からの制御により測定を行うことが可能な測定装置および測定方法に関するものである。 The present invention relates to a measuring device and a measuring method that can perform measurements under external control using remote commands.

図1に示すように、本実施の形態の測定装置1は、グラフィカルユーザインタフェース(以下、GUIと略称する)の操作と等価なリモートコマンドとその引数をSCPI(Standard Commands for Programmable Instruments)コマンドとして出力するリモートコマンド生成機能を有し、測定器ユニット2と、測定器ユニット2をリモート制御して測定対象Wの各種測定を行うための外部装置(パーソナルコンピュータ)3からなる。 As shown in FIG. 1, the measuring device 1 of this embodiment outputs remote commands and their arguments equivalent to operations on a graphical user interface (hereinafter abbreviated as GUI) as SCPI (Standard Commands for Programmable Instruments) commands. It has a remote command generation function to perform the measurement, and is composed of a measuring instrument unit 2 and an external device (personal computer) 3 for remotely controlling the measuring instrument unit 2 and performing various measurements on the measuring object W.

なお、SCPIは、測定装置のリモート制御コマンド用に策定されたコマンド文法およびデータ構造に関する規格である。 Note that SCPI is a standard regarding command grammar and data structure formulated for remote control commands of measurement devices.

測定器ユニット2は、測定部11、操作表示部12、モード指定手段13、パラメータ選択手段14、測定制御手段15、インタフェース16、コマンド記録手段17、ファイル出力手段18を備えて概略構成される。 The measuring instrument unit 2 is generally configured to include a measuring section 11, an operation display section 12, a mode specifying means 13, a parameter selecting means 14, a measurement controlling means 15, an interface 16, a command recording means 17, and a file outputting means 18.

測定部11は、測定器ユニット2の各スロットに対して任意に組み合わせて着脱可能な複数のモジュール11aを備えて構成され、測定対象Wに対する各種測定を行う。複数のモジュール11aは、例えば測定装置1が誤り率測定装置で構成される場合、信号発生用のPPGモジュール、信号受信用のEDモジュール、クロック信号発生用のシンセサイザモジュールなどで構成される。なお、測定器ユニット2には、ユニットを特定するためのユニットIDが付与されるとともに、複数のモジュール11aにもそれぞれを特定するためのモジュールIDが付与されている。 The measuring section 11 includes a plurality of modules 11a that can be attached to and detached from each slot of the measuring instrument unit 2 in arbitrary combinations, and performs various measurements on the measuring object W. For example, when the measuring device 1 is configured as an error rate measuring device, the plurality of modules 11a are configured of a PPG module for signal generation, an ED module for signal reception, a synthesizer module for clock signal generation, and the like. Note that the measuring instrument unit 2 is given a unit ID for specifying the unit, and the plurality of modules 11a are also given module IDs for specifying each one.

操作表示部12は、GUIとして、例えば電源スイッチ、カーソル移動用のカーソルキー、リモートコマンド生成開始/終了ボタンなどを含んで構成され、リモートコマンドの生成開始/終了の指示、GUIの操作と等価なSCPIコマンドを保存するファイル名の指定、測定内容を決定する各項目のパラメータの選択操作、測定部11の起動操作などを行う際に操作される。 The operation display unit 12 is configured to include, as a GUI, a power switch, cursor keys for moving the cursor, remote command generation start/end buttons, etc. It is operated when specifying a file name in which to save an SCPI command, selecting parameters for each item that determines the measurement content, starting the measuring section 11, etc.

なお、操作表示部12によりリモートコマンドを生成するにあたっては、操作表示部12のGUIのウィジェット(ボタン、テキストボックス、プルダウンメニュー等のインタフェース部品)ごとにモジュール11aの切り替えコマンドを含むリモートコマンドが紐付けられている。 In addition, when generating a remote command by the operation display unit 12, the remote command including the switching command of the module 11a is linked to each GUI widget (interface parts such as buttons, text boxes, pull-down menus, etc.) of the operation display unit 12. It is being

また、操作表示部12は、例えば液晶表示器などの各種表示器を含んで構成され、リモートコマンドの生成開始を通知する画面の表示、測定部11が行う測定内容を決定する各項目のパラメータを設定するための操作画面の表示、測定部11による測定結果の表示などを行う。 The operation display unit 12 includes various displays such as a liquid crystal display, and displays a screen that notifies the start of remote command generation and displays parameters for each item that determines the measurement content to be performed by the measurement unit 11. Displays an operation screen for setting, displays measurement results by the measurement unit 11, etc.

なお、図1では、操作部と表示部が一体化された操作表示部12として図示して説明するが、操作表示部12を別体の操作部と表示部で構成してもよい。 Although FIG. 1 illustrates and describes the operation display section 12 as an integrated operation section and display section, the operation display section 12 may be configured with a separate operation section and display section.

モード指定手段13は、測定器ユニット2の動作モードを測定モードまたはコマンド生成モードの何れかを指定する。測定モードは、測定部11に測定を行わせて測定結果を操作表示部12に表示させるモードである。コマンド生成モードは、外部装置3からインタフェース16を介して測定制御手段15により測定部11をリモート制御して測定を行わせるためのリモートコマンドを生成するモードである。このモード指定手段13は、操作表示部12に対する操作に基づいてモードの指定を行う。 The mode specifying means 13 specifies the operation mode of the measuring instrument unit 2 as either a measurement mode or a command generation mode. The measurement mode is a mode in which the measurement section 11 performs measurement and the measurement results are displayed on the operation display section 12. The command generation mode is a mode in which a remote command for remotely controlling the measurement unit 11 by the measurement control means 15 from the external device 3 via the interface 16 to perform measurement is generated. The mode specifying means 13 specifies a mode based on an operation on the operation display section 12.

例えば、装置起動時(電源投入時)に電源スイッチ以外の特定キーが押されているか否かを調べ、電源スイッチ以外の特定キーが押されていないときには測定モードを指定し、電源スイッチ以外の特定のキー(例えば図3の操作画面13aの開始/終了キー13b)が押されているときにはコマンド生成モードを指定する。 For example, when the device is started up (when the power is turned on), it is checked whether a specific key other than the power switch is pressed, and if a specific key other than the power switch is not pressed, the measurement mode is specified, and a specific key other than the power switch is When the key (for example, the start/end key 13b of the operation screen 13a in FIG. 3) is pressed, the command generation mode is designated.

パラメータ選択手段14は、モード指定手段13によってコマンド生成モードが指定されている状態で、操作表示部12のGUIのウィジェットの操作により設定画面のカーソルの位置に入力して設定されるパラメータを選択する。 The parameter selection means 14 selects parameters to be input and set at the cursor position on the setting screen by operating the widget of the GUI of the operation display unit 12 while the command generation mode is specified by the mode specifying means 13. .

測定制御手段15は、モード指定手段13によって測定モードが指定されている状態で測定を開始する操作がされると、設定画面上で選択された各項目のパラメータにしたがって測定部11を制御して測定対象Wに対する測定を行う。 When the measurement control means 15 performs an operation to start measurement with the measurement mode specified by the mode specification means 13, the measurement control means 15 controls the measurement section 11 according to the parameters of each item selected on the setting screen. The measurement target W is measured.

インタフェース16は、信号が送信されるチャネルであって、チャネルごとにID(インタフェースID)が付与されており、測定器ユニット2をリモート制御するための外部装置(パーソナルコンピュータ)3との間で通信を行うためのものである。モード指定手段13によって測定モードが指定されている状態で、外部装置3からインタフェース16を介してリモートコマンドが測定制御手段15に入力されると、入力されたリモートコマンドにしたがって測定制御手段15が測定部11を制御して測定対象Wに対する測定を行う。 The interface 16 is a channel through which signals are transmitted, an ID (interface ID) is assigned to each channel, and the interface 16 is used for communication with an external device (personal computer) 3 for remotely controlling the measuring instrument unit 2. It is for carrying out. When a remote command is input from the external device 3 to the measurement control means 15 via the interface 16 while the measurement mode is specified by the mode specification means 13, the measurement control means 15 performs measurement according to the input remote command. The unit 11 is controlled to perform measurement on the measurement target W.

コマンド記録手段17は、操作表示部12のGUIのウィジェットを操作してパラメータ選択手段14によりパラメータを選択したときに、そのパラメータを選択したウィジェットに紐付けられたリモートコマンドとその引数をSCPIコマンドとして操作表示部12のGUIのウィジェットを操作した順番に記録する。 When a parameter is selected by the parameter selection means 14 by operating a GUI widget on the operation display unit 12, the command recording means 17 records the remote command and its argument associated with the widget that selected the parameter as an SCPI command. The order in which widgets on the GUI of the operation display section 12 are operated is recorded.

ファイル出力手段18は、出力先がSCPIファイルの場合、コマンド記録手段17により記録されたSCPIコマンドを、操作表示部12のウィジェットを操作した順番でテキスト形式のSCPIファイルとして出力する。 When the output destination is an SCPI file, the file output means 18 outputs the SCPI commands recorded by the command recording means 17 as a text-format SCPI file in the order in which the widgets on the operation display section 12 are operated.

ファイル出力手段18は、出力先がコード化した言語ファイル(インタプリタ型プログラミング言語またはコンバイル型プログラミング言語)、例えばインタプリタ型プログラミング言語のPython Codeファイルの場合、コマンド記録手段17により記録された記録済みコマンドにPythonの送信関数「com.Send Data0」を組み合わせる。そして、テンプレートコード(PythonでSCPI通信部分を記載したコード)にPythonの送信関数を組み合わせた記録済みコマンドを組み込む。さらに、GUIで指定したIPアドレス・ポート番号をテンプレートコードに組み込み、そのテンプレートコードをPython Codeファイルとして出力する。 When the output destination is a coded language file (an interpreted programming language or a combined programming language), for example, a Python code file of an interpreted programming language, the file output means 18 outputs the recorded commands recorded by the command recording means 17. Combine the Python send function “com.Send Data0”. Then, a recorded command that is a combination of a Python transmission function and a template code (a code in which the SCPI communication part is written in Python) is incorporated. Furthermore, the IP address and port number specified on the GUI are incorporated into the template code, and the template code is output as a Python Code file.

次に、上記のように構成された測定装置1によるリモートコマンドの生成方法について図2~図4を参照しながら説明する。 Next, a method for generating a remote command using the measuring device 1 configured as described above will be described with reference to FIGS. 2 to 4.

図2の操作画面13aの開始/終了ボタン13bをクリックすると、不図示のリモートコマンド生成開始を通知するポップアップ画面が現れ、GUIの操作をSCPIファイルに変換する旨が表示される。 When the start/end button 13b of the operation screen 13a in FIG. 2 is clicked, a pop-up screen (not shown) notifying the start of remote command generation appears, and a message indicating that the GUI operation will be converted to an SCPI file appears.

そして、不図示のポップアップ画面内のOKをクリックした後、GUIの操作と等価なSCPIコマンドをコマンド記録手段17に保存するファイル名を指定すると、操作が記録中であることをユーザに示すべく、開始/終了ボタン13bが強調表示(例えば緑色)される。 Then, after clicking OK in a pop-up screen (not shown) and specifying a file name for saving the SCPI command equivalent to the GUI operation in the command recording means 17, to indicate to the user that the operation is being recorded, The start/end button 13b is highlighted (for example, in green).

その後、GUI上での全ての操作が終わり、開始/終了ボタン13bをクリックすると、開始/終了ボタン13bの色が元に戻り、指定したファイル名でGUIの操作と等価なSCPIコマンドがテキスト形式のSCPIファイルとしてGUIのウィジェットを操作した順番にコマンド記録手段17に保存され、操作表示部12の操作により必要に応じてコマンド記録手段17に保存されたテキスト形式のSCPIファイルをファイル出力手段18からGUIのウィジェットが操作された順番で出力する。 After that, when all operations on the GUI are completed and the start/end button 13b is clicked, the color of the start/end button 13b returns to its original color, and the SCPI command equivalent to the GUI operation with the specified file name is displayed in text format. The SCPI file is saved in the command recording means 17 in the order in which the GUI widgets are operated, and the text-format SCPI file saved in the command recording means 17 is outputted from the file output means 18 as needed by the operation of the operation display section 12. The widgets are output in the order in which they are operated.

ここで、GUI上での操作の具体例を示して説明する。図2の操作画面13aの開始/終了キー13bをクリックし(ST1)、リモートコマンド生成機能が開始されると(ST2)、ユーザ操作として、図2の操作画面13aのテキストボックス13cにパラメータ「2.400000」を入力して測定器ユニット2(ユニットID:No.1)のモジュール11a(モジュールID:No.7)の[Bitrate]を設定する(ST3)。これにより、ソフトウエア動作としては、パラメータに紐づけられた切り替えコマンド込みのSCPIコマンド「:UENTry:ID1;:MODule:ID7;」、「:OUTPut:DATA:BITRate」と入力した数値「2.400000」の組み合わせをコマンド記録手段17に記録する(ST4)。 Here, a specific example of the operation on the GUI will be shown and explained. When the start/end key 13b on the operation screen 13a in FIG. 2 is clicked (ST1) and the remote command generation function is started (ST2), the parameter "2" is entered in the text box 13c on the operation screen 13a in FIG. .400000" to set the [Bitrate] of the module 11a (module ID: No. 7) of the measuring instrument unit 2 (unit ID: No. 1) (ST3). As a result, as a software operation, the SCPI command ":UENTry:ID1;:MODule:ID7;" including the switching command linked to the parameter, ":OUTPut:DATA:BITRate" and the input value "2.400000" '' is recorded in the command recording means 17 (ST4).

次に、ユーザ操作として、図2の操作画面13aのボタン13dをクリックして測定器ユニット2(ユニットID:No.1)のモジュール11a(モジュールID:No.6)の[Equalizer]を「ON」にする(ST5)。これにより、ソフトウエア動作としては、ボタン13dに紐づけられた切り替えコマンド込みのSCPIコマンド「:UENTry:ID1;:MODUle:ID6;」、「:INPut:DATA:EQUalizer:LFEQ:SET」と設定の「ON」の組み合わせをコマンド記録手段17に記録する(ST6)。 Next, as a user operation, click the button 13d on the operation screen 13a in FIG. ” (ST5). As a result, the software operations include the SCPI command ":UENTry:ID1;:MODUle:ID6;" including the switching command associated with the button 13d, ":INPut:DATA:EQUalizer:LFEQ:SET" and the settings. The combination of "ON" is recorded in the command recording means 17 (ST6).

次に、ユーザ操作として、図2の操作画面13aのボタン13eをクリックして測定器ユニット2(ユニットID:No.1)のモジュール11a(モジュールID:No.7)の[Data]をプルダウンメニューから「ON」にする(ST7)。これにより、ソフトウエア動作としては、ボタン13eに紐づけられた切り替えコマンド込みのSCPIコマンド「:UENTry:ID1;:MODUle:ID7;」、「:OUTPut:DATA:OUTPut」と設定の「ON」の組み合わせをコマンド記録手段17に記録する(ST8)。 Next, as a user operation, click the button 13e on the operation screen 13a in FIG. to "ON" (ST7). As a result, the software operations include the SCPI commands ":UENTry:ID1;:MODUle:ID7;" and ":OUTPut:DATA:OUTPut" including the switching commands associated with the button 13e, and the setting "ON". The combination is recorded in the command recording means 17 (ST8).

そして、ユーザ操作として、上述したGUI上での全ての操作が終わり、開始/終了ボタン13bをクリックすると(ST9)、ソフトウエア動作としては、コマンド記録手段17に記録した記録済みコマンドを、GUIのウィジェットを操作した順番にテキスト形式のSCPIファイルとしてファイル出力手段18から出力し、リモートコマンド生成機能を終了する(ST10)。 Then, as a user operation, when all operations on the GUI described above are completed and the start/end button 13b is clicked (ST9), the recorded command recorded in the command recording means 17 is transferred to the GUI. The widgets are outputted from the file output means 18 as a text-format SCPI file in the order in which they were operated, and the remote command generation function is terminated (ST10).

ここで、図4はコマンド記録手段17に保存されるファイルの内容の一例を示している。図4のファイルの内容について説明すると、:UENTry:ID 1;は、「コマンド出力先を測定器ユニット2(ユニットID:No.1)に切り替える」を意味し、:MODule:ID 7は、「コマンド出力先をモジュール11a(モジュールID:No.7)に切り替える」を意味し、MODule:ID 6は、「コマンド出力先をモジュール11a(モジュールID:No.6)に切り替える」を意味する。また、:OUTPut:DATA:BITRate、:INPut:DATA:EQUalizer:LFEQ:SET、:OUTPut:DATA:OUTPutは、GUI上のウィジェットに紐付けられた各コマンドを意味する。 Here, FIG. 4 shows an example of the contents of a file stored in the command recording means 17. To explain the contents of the file in Figure 4, :UENTry:ID 1; means "switch the command output destination to measuring instrument unit 2 (unit ID: No. 1)", and :MODule:ID 7 means "switch the command output destination to measuring instrument unit 2 (unit ID: No. 1)". MODule:ID 6 means "switch the command output destination to the module 11a (module ID: No. 6)", and MODule:ID 6 means "switch the command output destination to the module 11a (module ID: No. 6)". Also, :OUTPut:DATA:BITRate, :INPut:DATA:EQUalizer:LFEQ:SET, :OUTPut:DATA:OUTPut mean each command linked to a widget on the GUI.

このように、上述したリモートコマンド生成機能によれば、複数のモジュールを備えた測定器ユニットのGUI上のウィジェット(ボタン・テキストボックス等の各部品)の操作と等価なリモートコマンドとを切り替えコマンド込みで紐づけることにより、GUIの操作と等価なリモートコマンドとその引数を、切り替えコマンドとともにSCPIコマンドとしてGUI上のウィジェットを操作した順番でテキスト形式のSCPIファイルに出力する。これにより、顧客が複数のモジュールを備えた測定器ユニットのGUI上での操作と等価で正確な切り替えコマンド込みのSCPIコマンドが操作した順番で列挙されてファイルに出力されるので、リモートコマンド取扱説明書を読む必要がなく、短時間で測定作業を実施できるうえ、取扱説明書の解釈ミスも発生しないことから、手戻り等の時間損失がなく、ユーザビリティの向上を図ることができる。 In this way, according to the remote command generation function described above, it is possible to switch between the operation of widgets (parts such as buttons and text boxes) on the GUI of a measuring instrument unit equipped with multiple modules and the equivalent remote command. By linking, remote commands equivalent to GUI operations and their arguments are output as SCPI commands together with switching commands to a text-format SCPI file in the order in which widgets on the GUI are operated. This enables customers to enumerate SCPI commands, including accurate switching commands, in the order in which they were operated and output them to a file, which is equivalent to operations on the GUI of a measuring instrument unit equipped with multiple modules, and provides instructions on how to use remote commands. There is no need to read manuals, measurement work can be carried out in a short time, and there is no chance of misinterpretation of the instruction manual, so there is no time loss such as rework, and usability can be improved.

次に、コマンド記録手段17に記録された記録済みコマンドを、プログラムとして完成したファイルとして出力するための処理について図5~7を参照しながら説明する。 Next, a process for outputting the recorded commands recorded in the command recording means 17 as a file completed as a program will be explained with reference to FIGS. 5 to 7.

ファイル出力手段18が出力するコード化した言語がPython Codeの場合、コマンド記録手段17に記録された記録済みコマンドにPythonの送信関数「com.Send Data0」を組み合わせる(ST11)。 If the coded language output by the file output means 18 is Python Code, the recorded command recorded in the command recording means 17 is combined with the Python transmission function "com.Send Data0" (ST11).

次に、テンプレートコード(PythonでSCPI通信部分を記載したコード)にST11の記録済みコマンドを組み込む(ST12)。例えばST11の記録済みコマンドを図6に示すテンプレートコードの「ZZZZ」の部分に組み込む。 Next, the recorded command of ST11 is incorporated into the template code (code in which the SCPI communication part is written in Python) (ST12). For example, the recorded command of ST11 is incorporated into the "ZZZZ" portion of the template code shown in FIG.

続いて、GUIで指定したIPアドレス・ポート番号をST12のテンプレートコードに組み込む(ST13)。例えばGUIで指定したIPアドレス・ポート番号を図6に示すテンプレートコードの「XXXX」、「YYYY」の部分に組み込む。 Next, the IP address and port number specified on the GUI are incorporated into the template code of ST12 (ST13). For example, the IP address and port number specified on the GUI are incorporated into the "XXXX" and "YYYY" portions of the template code shown in FIG.

そして、ST13のテンプレートコードをPython Codeとしてファイルに出力し、処理を終了する。例えば図6に示すテンプレートコードを図7に示すPython Codeファイルとして出力する。この図7のPython Codeファイルにおける図6の「XXXX」、「YYYY」に対応する部分には、GUIで指定したIPアドレス・ポート番号として、「5001」、「127.0.0.1」が組み込まれる。また、図7における図6の「ZZZZ」に対応する部分には、Pythonの送信関数として、「com.SendData(’:UENTry:ID 1;:MODule:ID 7;:OUTPut:DATA:BITRate 2.400000’)、com.SendData(’:UENTry:ID 1;:MODule:ID 6;:INPut:DATA:EQUalizer:LFEQ:SET ON’)、com.SendData(’:UENTry:ID 1;:MODule:ID 7;:OUTPut:DATA:OUTPut ON’)」が組み込まれる。 Then, the template code of ST13 is output to a file as Python code, and the process ends. For example, the template code shown in FIG. 6 is output as a Python Code file shown in FIG. 7. In the Python Code file in Figure 7, the parts corresponding to "XXXX" and "YYYY" in Figure 6 contain "5001" and "127.0.0.1" as the IP address and port number specified on the GUI. Incorporated. In addition, in the part in FIG. 7 corresponding to "ZZZZ" in FIG. 6, "com.SendData(':UENTry:ID 1;:MODule:ID 7;:OUTPut:DATA:BITRate 2. 400000'), com.SendData(':UENTry:ID 1;:MODule:ID 6;:INPut:DATA:EQUalizer:LFEQ:SET ON'), com.SendData(':UENTry:ID 1;:MODule :ID 7;:OUTPut:DATA:OUTPut ON')" is incorporated.

ところで、上述した実施の形態では、複数のモジュール11aを備えた1台の測定器ユニット2を1台の外部装置3でリモート制御する場合を例にとって説明したが、これに限定されるものではない。例えば図5に示すように、複数のモジュール11aを備えた測定器ユニット2を複数台用意し、1台の外部装置3で複数台の測定器ユニット2を同時にリモート制御する構成、1台の外部装置3で複数台の測定器ユニット2を順次切り替えながらリモート制御する構成とすることもできる。この場合、上述したGUIの操作による切り替えコマンド込みのSCPIコマンドの記録およびファイル出力に対応するため、複数台の測定器ユニット2にはそれぞれを特定するユニットIDが付与されるとともに、各測定器ユニット2の測定部11が備えるモジュール11aにもそれぞれを特定するモジュールIDが付与されている。 Incidentally, in the above-described embodiment, the case where one measuring instrument unit 2 including a plurality of modules 11a is remotely controlled by one external device 3 was explained as an example, but the present invention is not limited to this. . For example, as shown in FIG. 5, there is a configuration in which a plurality of measuring instrument units 2 each having a plurality of modules 11a are prepared, and one external device 3 remotely controls the plurality of measuring instrument units 2 at the same time. It is also possible to have a configuration in which the device 3 remotely controls a plurality of measuring instrument units 2 while sequentially switching them. In this case, in order to support recording and file output of SCPI commands including switching commands by operating the GUI described above, each of the plurality of measuring instrument units 2 is given a unit ID that identifies each one, and each measuring instrument unit The modules 11a included in the measurement unit 11 of No. 2 are also assigned module IDs that identify each module.

また、上述した実施の形態では、コード化した言語として、そのままプログラムの実行が可能なインタプリタ型プログラミング言語のPythonを例にとって説明したが、これに限定されるものではない。例えばPythonに代えて、Perl,PHP,Ruby,Java Script,LUA,TCL/TK,Batch,Power Shell,Bourne Shell,TCSH等のインタプリタ型プログラミング言語を用いてもよい。 Furthermore, in the above-described embodiments, Python, an interpreted programming language in which programs can be executed as is, is used as an example of the coded language, but the present invention is not limited to this. For example, instead of Python, an interpreted programming language such as Perl, PHP, Ruby, Java Script, LUA, TCL/TK, Batch, Power Shell, Bourne Shell, TCSH, etc. may be used.

なお、インタプリタ型プログラミング言語に代えてコンバイル型プログラミング言語(例えばC,C++,C#,Java,Pascal,Fortran,COBOL,Basic等)を用いることもできる。この場合、プログラムを実行するにあたってコンパイルが必要となる。 Note that a combined programming language (eg, C, C++, C#, Java, Pascal, Fortran, COBOL, Basic, etc.) may be used instead of the interpreted programming language. In this case, compilation is required to run the program.

このように、本実施の形態では、コマンド記録手段17により記録された記録済みコマンド(指定したファイル名でGUIの操作と等価なSCPIコマンドがテキスト形式のSCPIファイルとしてGUIのウィジェットを操作した順番に記録したコマンド)をインタプリタ型プログラミング言語のデファクトスタンダードとなっている言語であるPython(インタプリタ型プログラミング言語の一例)のコードとして出力する。これにより、生成されたファイルがコードそのものとなり、顧客がGUI上で操作した手順を、リモートコマンドとして実行できるようになる。その結果、従来のようにSCPIコマンドを、顧客側でプログラムに組み込んだり、出力されてSCPIテキストファイルを読み込んでリモートコマンドとして出力するプログラムを作成するなどの手間が無くなり、プログラム組み込みに付随するトラブルも解消することが可能となる。 As described above, in this embodiment, the recorded commands recorded by the command recording means 17 (SCPI commands equivalent to GUI operations with a specified file name) are stored as SCPI files in text format in the order in which GUI widgets are operated. The recorded commands are output as codes in Python (an example of an interpreted programming language), which is a de facto standard for interpreted programming languages. As a result, the generated file becomes the code itself, and the procedure operated by the customer on the GUI can be executed as a remote command. As a result, there is no need for the customer to incorporate SCPI commands into a program, or to create a program that reads the output SCPI text file and outputs it as a remote command, and there are no problems associated with program embedding. It becomes possible to eliminate the problem.

以上、本発明に係る測定装置および測定方法の最良の形態について説明したが、この形態による記述および図面により本発明が限定されることはない。すなわち、この形態に基づいて当業者等によりなされる他の形態、実施例および運用技術などはすべて本発明の範疇に含まれることは勿論である。 Although the best mode of the measuring device and measuring method according to the present invention has been described above, the present invention is not limited to the description and drawings based on this mode. That is, it goes without saying that all other forms, embodiments, operational techniques, etc. made by those skilled in the art based on this form are included in the scope of the present invention.

1 測定装置
2 測定器ユニット
3 外部装置
11 測定部
11a モジュール
12 操作表示部
13 モード指定手段
13a 操作画面
13b 開始/終了ボタン
13c テキストボックス
13d,13e ボタン
14 パラメータ選択手段
15 測定制御手段
16 インタフェース
17 コマンド記録手段
18 ファイル出力手段
W 測定対象
1 Measuring device 2 Measuring instrument unit 3 External device 11 Measuring section 11a Module 12 Operation display section 13 Mode specifying means 13a Operation screen 13b Start/end button 13c Text box 13d, 13e button 14 Parameter selection means 15 Measurement control means 16 Interface 17 Command Recording means 18 File output means W Measurement object

Claims (6)

グラフィカルユーザインタフェース上で操作した手順を、それと等価なリモートコマンドによるSCPIコマンドのファイルとして出力する機能を有し、前記グラフィカルユーザインタフェースの操作によるリモート制御で測定対象(W)の測定を行う複数のモジュール(11a)が着脱可能な測定器ユニット(2)を備えた測定装置(1)であって、
前記グラフィカルユーザインタフェースのウィジェットごとに前記モジュールの切り替えコマンド込みのリモートコマンドが紐付けられており、
前記ウィジェットを操作したときに、該ウィジェットに紐付けられたリモートコマンドとその引数をSCPIコマンドとして前記ウィジェットが操作された順番に記録するコマンド記録手段(17)と、
前記記録した記録済みコマンドをコード化した言語に変換したファイルとして出力するファイル出力手段(18)と、を備えたことを特徴とする測定装置。
A plurality of modules having a function of outputting a procedure operated on a graphical user interface as an SCPI command file using an equivalent remote command, and measuring a measurement target (W) by remote control using the graphical user interface. (11a) is a measuring device (1) equipped with a detachable measuring device unit (2),
A remote command including a command for switching the module is linked to each widget of the graphical user interface,
command recording means (17) for recording remote commands associated with the widget and their arguments as SCPI commands in the order in which the widgets are operated;
A measuring device comprising: file output means (18) for outputting the recorded command as a file converted into a coded language.
前記コード化した言語がインタプリタ型プログラミング言語であることを特徴とする請求項1に記載の測定装置。 2. The measuring device according to claim 1, wherein the coded language is an interpreted programming language. 前記測定器ユニットが複数台からなり、
前記リモートコマンドが前記モジュールおよび前記測定器ユニットの切り替えコマンド込みとして前記グラフィカルユーザインタフェースのウィジェットごとに紐付けられることを特徴とする請求項1または2に記載の測定装置。
The measuring instrument unit consists of a plurality of units,
3. The measuring device according to claim 1, wherein the remote command is linked to each widget of the graphical user interface as a switching command for the module and the measuring instrument unit.
グラフィカルユーザインタフェース上で操作した手順を、それと等価なリモートコマンドによるSCPIコマンドのファイルとして出力し、前記グラフィカルユーザインタフェースの操作によるリモート制御で複数のモジュール(11a)が着脱可能な測定器ユニット(2)を備えた測定装置(1)により測定対象(W)の測定を行う測定方法であって、
前記グラフィカルユーザインタフェースのウィジェットごとに前記モジュールの切り替えコマンド込みのリモートコマンドを紐付けるステップと、
前記ウィジェットを操作したときに、該ウィジェットに紐付けられたリモートコマンドとその引数をSCPIコマンドとして前記ウィジェットが操作された順番に記録するステップと、
前記記録した記録済みコマンドをコード化した言語に変換したファイルとして出力するステップと、を含むことを特徴とする測定方法。
A measuring instrument unit (2) that outputs procedures operated on a graphical user interface as a file of SCPI commands using remote commands equivalent thereto, and that allows a plurality of modules (11a) to be attached and detached by remote control using the graphical user interface. A measurement method for measuring a measurement target (W) with a measurement device (1) comprising:
associating a remote command including a command for switching the module with each widget of the graphical user interface;
when the widget is operated, recording remote commands associated with the widget and their arguments as SCPI commands in the order in which the widget was operated;
A measuring method comprising the step of converting the recorded command into a coded language and outputting it as a file.
前記コード化した言語がインタプリタ型プログラミング言語であることを特徴とする請求項4に記載の測定方法。 5. The measurement method according to claim 4, wherein the coded language is an interpreted programming language. 前記測定器ユニットを複数台で構成するステップと、
前記リモートコマンドを前記モジュールおよび前記測定器ユニットの切り替えコマンド込みとして前記グラフィカルユーザインタフェースのウィジェットごとに紐付けるステップと、を含むことを特徴とする請求項4または5に記載の測定方法。
configuring a plurality of the measuring instrument units;
6. The measuring method according to claim 4, further comprising the step of associating the remote command with each widget of the graphical user interface as a switching command for the module and the measuring instrument unit.
JP2022048492A 2022-03-24 2022-03-24 Measuring device and method Active JP7325566B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022048492A JP7325566B1 (en) 2022-03-24 2022-03-24 Measuring device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022048492A JP7325566B1 (en) 2022-03-24 2022-03-24 Measuring device and method

Publications (2)

Publication Number Publication Date
JP7325566B1 JP7325566B1 (en) 2023-08-14
JP2023141912A true JP2023141912A (en) 2023-10-05

Family

ID=87563187

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022048492A Active JP7325566B1 (en) 2022-03-24 2022-03-24 Measuring device and method

Country Status (1)

Country Link
JP (1) JP7325566B1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6681351B1 (en) 1999-10-12 2004-01-20 Teradyne, Inc. Easy to program automatic test equipment
JP2002310736A (en) 2001-04-19 2002-10-23 Anritsu Corp Measuring apparatus
JP5104724B2 (en) 2008-10-31 2012-12-19 富士通株式会社 Electronics

Also Published As

Publication number Publication date
JP7325566B1 (en) 2023-08-14

Similar Documents

Publication Publication Date Title
JP4388427B2 (en) Numerical control device that can call programs written in script language
WO1999009473A1 (en) Embedded graphical programming system
US10384349B2 (en) Processing robot system in which processing device is connected to robot to perform processing
JP4302146B2 (en) Program creation support device
EP0745927B1 (en) Method of and editing system for setting tool button
JP2010152429A (en) Gui application test support device and test support method
JP2023141912A (en) Measuring device and measuring method
JP5808922B2 (en) Air conditioner control interface device, air conditioner and air conditioner control system
JP7381640B2 (en) Measuring device and method
US6016143A (en) Multi-device direct I/O object that generates transactions capable of controlling multiple instruments and transaction dialog boxes having device and address fields
JP4941674B2 (en) Simulation system
JP2008061246A (en) Remote management system and method for portable electronic device
CN112148611B (en) Cloud architecture-based automatic test intermediate interface method and platform
US7647127B2 (en) Component data managing method
JP2001282329A (en) Device and system for plotting screen of display unit
CN110393014B (en) Data processing unit and information processing apparatus
JP4869559B2 (en) Image signal generator, image display device, and on-line control method of image display device
JP6161835B2 (en) System development device, program development method and development program
JP2001209520A (en) Operating device
JP7241982B1 (en) Image generation program, image generation device, programmable controller system and image generation method
US8132146B2 (en) Input of program instructions in imperative programming languages
JP2005142905A (en) Remote controller and remote control system
JP5928999B2 (en) Editing apparatus and program
EP1168122A2 (en) Analyzer system
Adorno Developing a LabVIEW™ Instrument Driver

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20220816

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230704

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230801

R150 Certificate of patent or registration of utility model

Ref document number: 7325566

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150