JP2013109706A - Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program - Google Patents

Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program Download PDF

Info

Publication number
JP2013109706A
JP2013109706A JP2011256117A JP2011256117A JP2013109706A JP 2013109706 A JP2013109706 A JP 2013109706A JP 2011256117 A JP2011256117 A JP 2011256117A JP 2011256117 A JP2011256117 A JP 2011256117A JP 2013109706 A JP2013109706 A JP 2013109706A
Authority
JP
Japan
Prior art keywords
version
data
read
setting file
electronic device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2011256117A
Other languages
Japanese (ja)
Inventor
Masaki Goto
巨樹 後藤
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.)
Keyence Corp
Original Assignee
Keyence 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 Keyence Corp filed Critical Keyence Corp
Priority to JP2011256117A priority Critical patent/JP2013109706A/en
Publication of JP2013109706A publication Critical patent/JP2013109706A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a data structure of a configuration file, a configuration file reading device, a configuration file reading method, and a computer program capable of reading a configuration file stored in a file format of a new version even in an electronic apparatus in which software of an old version is installed.SOLUTION: A configuration file includes second version data showing a version of a computer program installed in another electronic apparatus in which a computer program of the version older than a version in one electronic apparatus is installed, and storage location data showing a storage location of one or a plurality of data groups in the configuration file. The one or plurality of data groups include a first data group which can be used in the other electronic apparatus or a second data group which cannot be used.

Description

本発明は、古いバージョンのソフトウエアがインストールされた電子機器であっても、新しいバージョンのファイル形式で記憶されている設定ファイルを読むことが可能な設定ファイルのデータ構造、設定ファイル読出装置、設定ファイル読出方法及びコンピュータプログラムに関する。   The present invention relates to a setting file data structure, a setting file reading device, and a setting capable of reading a setting file stored in a new version file format even in an electronic device in which an old version of software is installed The present invention relates to a file reading method and a computer program.

ソフトウエアの機能は日々進歩しており、バージョンアップは頻繁に行われる。この場合、新しいバージョンのソフトウエアで古いバージョンのファイル形式で作成されたファイルを読むことはできるのに対し、古いバージョンのソフトウエアで新しいバージョンのファイル形式で作成されたファイルを読むことはできない。   Software functions are improving day by day, and version upgrades are frequently performed. In this case, the file created in the old version file format can be read by the new version software, but the file created in the new version file format cannot be read by the old version software.

しかし、例えば同じ動作条件で運用している複数の電子機器にインストールされているソフトウエアのバージョンが異なる場合、動作条件を変更する必要が生じたときであっても容易に変更することができない。電子機器のメンテナンス作業等の利便性を高めるためには、古いバージョンのソフトウエアがインストールされた電子機器であっても、可能な限り新しいバージョンのファイル形式で作成されたファイルを読むことができることが望ましい。   However, for example, when the versions of software installed in a plurality of electronic devices operating under the same operating conditions are different, it is not possible to easily change even when the operating conditions need to be changed. In order to improve the convenience of maintenance work for electronic devices, it is possible to read files created in the file format of the newest version as much as possible, even if the electronic device has an old version of software installed. desirable.

従来は、例えばソフトウエアの開発時に、事前に次のバージョンのファイル形式まで決定しておくことで、新しいバージョンのソフトウエアがインストールされた電子機器であっても、古いバージョンのファイル形式で作成されたファイルを読むことができるようにしていた。また、例えば特許文献1に開示されているように、古いバージョンのファイル形式を新しいバージョンのファイル形式へと変換するファイル変換ツールを提供する方法も開発されている。   Conventionally, for example, when the software is developed, the file format of the next version is determined in advance, so even an electronic device in which a new version of the software is installed is created in the old version of the file format. Was able to read the file. For example, as disclosed in Patent Document 1, a method for providing a file conversion tool for converting an old version file format into a new version file format has been developed.

特表2005−539277号公報JP 2005-539277 A

しかし、ソフトウエアの開発時に、事前に次のバージョンのファイル形式をすべて決定することは現実的には不可能である。したがって、バージョンアップが繰り返されるほど、古いバージョンのファイル形式で作成されたファイルを、新しいバージョンのソフトウエアで読むことができなくなる可能性が高くなるという問題点があった。   However, it is practically impossible to determine all file formats of the next version in advance during software development. Therefore, as the version upgrade is repeated, there is a problem that a file created in an old version file format cannot be read by a new version of software.

また、特許文献1のようにファイル変換ツールを提供する場合、バージョンアップを行う都度、過去の全てのバージョンからのファイル変換ツールを作成する必要が生じ、ユーザ側においては電子機器にインストールされているソフトウエアのバージョンを正しく把握しておく必要がある等、管理コストが増大するおそれがあるという問題点があった。特に、電子機器の動作条件を設定する設定ファイルは、インストールされているソフトウエアのバージョンアップが行われた場合であっても読むことができることが望ましい。   Further, when providing a file conversion tool as in Patent Document 1, it is necessary to create a file conversion tool from all past versions every time a version upgrade is performed, and the user side installs the file conversion tool on an electronic device. There is a problem that the management cost may increase, for example, it is necessary to correctly grasp the software version. In particular, it is desirable that the setting file for setting the operating conditions of the electronic device can be read even when the installed software is upgraded.

本発明は、斯かる事情に鑑みてなされたものであり、古いバージョンのソフトウエアがインストールされた電子機器であっても新しいバージョンのファイル形式で記憶されている設定ファイルを読むことができる設定ファイルのデータ構造、設定ファイル読出装置、設定ファイル読出方法及びコンピュータプログラムを提供することを目的とする。   The present invention has been made in view of such circumstances, and a setting file that can read a setting file stored in a new version file format even in an electronic device in which an old version of software is installed An object of the present invention is to provide a data structure, a setting file reading device, a setting file reading method, and a computer program.

上記目的を達成するために第1発明に係る設定ファイルのデータ構造は、一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、該一の電子機器で使用することが可能な一又は複数のデータ群とを含む設定ファイルのデータ構造であって、前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、前記設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データとを含み、前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むことを特徴とする。   In order to achieve the above object, the data structure of the setting file according to the first invention is used by the first version data indicating the version of the computer program installed in the one electronic device and the one electronic device. A data structure of a setting file including one or a plurality of data groups that can be stored, and a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed Second version data to be displayed and storage position data indicating a position at which the one or more data groups are stored in the setting file, and the one or more data groups are used by the other electronic device The first data group that can be used or the second data group that cannot be used And wherein the Mukoto.

第1発明では、設定ファイルは、一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、該一の電子機器で使用することが可能な一又は複数のデータ群とを含む。そして、一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、設定ファイルにおける一又は複数のデータ群を記憶している位置を示す記憶位置データとを含み、一又は複数のデータ群は、他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含む。設定ファイルの作成時に、作成した電子機器にインストールされているコンピュータプログラム(ソフトウエア)のバージョンを第一のバージョンデータとして記憶するとともに、該電子機器で読み出すことが可能なバージョンを第二のバージョンデータとして記憶するので、追加機能、拡張機能等が存在するか否かをバージョンの相違から判断することができ、設定ファイルからデータ群を読み出すことができるか否かを判断することができる。   In the first invention, the setting file includes first version data indicating a version of a computer program installed in one electronic device, and one or a plurality of data groups that can be used in the one electronic device. including. Second version data indicating the version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed, and one or a plurality of data groups in the setting file are stored. One or a plurality of data groups that can be used by other electronic devices, or a second data group that cannot be used. including. When creating the setting file, the version of the computer program (software) installed in the created electronic device is stored as first version data, and the version that can be read by the electronic device is stored as second version data. Therefore, it can be determined whether there is an additional function, an extended function, or the like based on the version difference, and it can be determined whether the data group can be read from the setting file.

また、第2発明に係る設定ファイルのデータ構造は、第1発明において、前記一又は複数のデータ群はブロック単位で記憶されており、前記記憶位置データは、前記第一のデータ群又は前記第二のデータ群が記憶されたブロックのオフセット量と該ブロックのサイズとで構成されていることを特徴とする。   The data structure of the setting file according to the second invention is the data structure of the first invention, wherein the one or more data groups are stored in block units, and the storage position data is the first data group or the first data group. The second data group is composed of the offset amount of the stored block and the size of the block.

第2発明では、一又は複数のデータ群はブロック単位で記憶されており、記憶位置データは、第一のデータ群又は第二のデータ群が記憶されたブロックのオフセット量と該ブロックのサイズとで構成されているので、一の電子機器より古いバージョンのコンピュータプログラム(ソフトウエア)がインストールされた他の電子機器でも読み出すことが可能な第一のデータ群を確実に読み出すことが可能となる。   In the second invention, one or a plurality of data groups are stored in block units, and the storage position data includes the offset amount of the block storing the first data group or the second data group, the size of the block, and the like. Therefore, it is possible to reliably read the first data group that can be read by other electronic devices in which a computer program (software) of an older version than the one electronic device is installed.

次に、上記目的を達成するために第3発明に係る設定ファイル読出装置は、一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、該一の電子機器で使用することが可能な一又は複数のデータ群と、前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データとを含み、前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むデータ構造を有する設定ファイルを読み出す設定ファイル読出装置において、読み出し対象となる設定ファイルの指定を受け付ける設定ファイル指定受付手段と、指定を受け付けた設定ファイルから前記第一のバージョンデータ、前記第二のバージョンデータ及び前記記憶位置データを読み出すデータ読出手段と、読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断するバージョン判断手段と、該バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、前記記憶位置データに基づいて、指定を受け付けた設定ファイルから前記第一のデータ群を読み出す設定ファイル読出手段とを備えることを特徴とする。   Next, in order to achieve the above object, the setting file reading device according to the third invention uses first version data indicating a version of a computer program installed in one electronic device, and is used in the one electronic device. One or a plurality of data groups that can be performed, second version data indicating a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed, Storage position data indicating a position where the one or more data groups are stored in a setting file, and the one or more data groups are first data that can be used in the other electronic device Read a configuration file with a data structure containing a group or a second group of data that cannot be used In the setting file reading device, setting file designation receiving means for receiving designation of a setting file to be read, and the first version data, the second version data, and the storage location data from the setting file that has received the designation Data reading means to be read, version determination means for determining whether the version indicated by the read second version data is older than the version of the computer program installed in the electronic device to be read, and the version determination means to read Setting file reading means for reading the first data group from the setting file that has received the designation based on the storage position data when it is determined that the version that is the same as the version or the version indicated by the read second version data is older With The features.

また、第4発明に係る設定ファイル読出装置は、第3発明において、前記バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する読出判断手段と、該読出判断手段で、読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力するメッセージ出力手段とを備えることを特徴とする。   The setting file reading device according to the fourth invention is read out in the third invention, when the version determination means determines that the version to be read is the same as the read version or the version indicated by the read second version data is older. The version indicated by the first version data is a read determination unit that determines whether or not it is a readable version. When the read determination unit determines that the version cannot be read, the setting file is And a message output means for outputting a message indicating that the data cannot be read out.

また、第5発明に係る設定ファイル読出装置は、第3又は第4発明において、前記データ群のブロックのサイズが、読み出した前記記憶位置データのブロックのサイズと一致しているか否かを確認するサイズ確認手段を備えることを特徴とする。   The setting file reading device according to a fifth aspect of the present invention is the third or fourth aspect of the present invention, which checks whether or not the block size of the data group matches the size of the read block of the storage location data. A size confirmation means is provided.

次に、上記目的を達成するために第6発明に係る設定ファイル読出方法は、一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、該一の電子機器で使用することが可能な一又は複数のデータ群と、前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データとを含み、前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むデータ構造を有する設定ファイルを読み出す設定ファイル読出装置で実行することが可能な設定ファイル読出方法において、読み出し対象となる設定ファイルの指定を受け付ける工程と、指定を受け付けた設定ファイルから前記第一のバージョンデータ、前記第二のバージョンデータ及び前記記憶位置データを読み出す工程と、読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断する工程と、該バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、前記記憶位置データに基づいて、指定を受け付けた設定ファイルから前記第一のデータ群を読み出す工程とを含むことを特徴とする。   Next, in order to achieve the above object, a setting file reading method according to the sixth aspect of the present invention uses first version data indicating the version of a computer program installed in one electronic device, and is used in the one electronic device. One or a plurality of data groups that can be performed, second version data indicating a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed, Storage position data indicating a position where the one or more data groups are stored in a setting file, and the one or more data groups are first data that can be used in the other electronic device Read a configuration file with a data structure containing a group or a second group of data that cannot be used In a setting file reading method that can be executed by a setting file reading device, a step of receiving designation of a setting file to be read, and the first version data and the second version from the setting file that has received the designation A step of reading data and the storage location data, a step of determining whether the version indicated by the read second version data is older than the version of the computer program installed in the electronic device to be read, and the version determination means However, when it is determined that the version that is the same as the version to be read or the version indicated by the read second version data is older, the step of reading the first data group from the setting file that has received the designation based on the storage position data It is characterized by including.

また、第7発明に係る設定ファイル読出方法は、第6発明において、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する工程と、読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力する工程とを含むことを特徴とする。   Further, in the setting file reading method according to the seventh invention, in the sixth invention, when it is determined that the version to be read is the same as the read version or the version indicated by the read second version data is older, the read first version data is A step of determining whether or not the version to be read is a version that can be read, and a step of outputting a message indicating that the setting file cannot be read when it is determined that the version cannot be read. It is characterized by including.

また、第8発明に係る設定ファイル読出方法は、第6又は第7発明において、前記データ群のブロックのサイズが、読み出した前記記憶位置データのブロックのサイズと一致しているか否かを確認する工程を含むことを特徴とする。   In the setting file reading method according to the eighth invention, in the sixth or seventh invention, it is confirmed whether or not the size of the block of the data group matches the size of the block of the read storage location data. Including a process.

次に、上記目的を達成するために第9発明に係るコンピュータプログラムは、一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、該一の電子機器で使用することが可能な一又は複数のデータ群と、前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データとを含み、前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むデータ構造を有する設定ファイルを読み出す設定ファイル読出装置で実行することが可能なコンピュータプログラムにおいて、前記設定ファイル読出装置を、読み出し対象となる設定ファイルの指定を受け付ける設定ファイル指定受付手段、指定を受け付けた設定ファイルから前記第一のバージョンデータ、前記第二のバージョンデータ及び前記記憶位置データを読み出すデータ読出手段、読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断するバージョン判断手段、及び該バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、前記記憶位置データに基づいて、指定を受け付けた設定ファイルから前記第一のデータ群を読み出す設定ファイル読出手段として機能させることを特徴とする。   Next, in order to achieve the above object, the computer program according to the ninth invention is used by the first version data indicating the version of the computer program installed in the one electronic device and the one electronic device. A second version data indicating a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed, and a setting file Storage position data indicating a position in which the one or more data groups are stored, and the one or more data groups are a first data group that can be used in the other electronic device, Or, read a configuration file having a data structure that includes a second data group that cannot be used. In the computer program that can be executed by the setting file reading device, the setting file reading device includes setting file specification receiving means for receiving specification of a setting file to be read from the setting file that has received the specification. Data reading means for reading the version data, the second version data and the storage location data, and whether the version indicated by the read second version data is older than the version of the computer program installed in the electronic device to be read A setting for accepting designation based on the storage position data when the version judging means for judging and the version judging means judges that the version to be read is the same as the read version or the version indicated by the read second version data is older. Characterized in that the Airu to function as a setting file reading means for reading the first data group.

また、第10発明に係るコンピュータプログラムは、第9発明において、前記設定ファイル読出装置を、前記バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する読出判断手段、及び該読出判断手段で、読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力するメッセージ出力手段として機能させることを特徴とする。   The computer program according to a tenth aspect of the present invention is the computer program according to the ninth aspect, wherein the setting file reading device determines that the version determination means is the same as the version read or the version indicated by the read second version data is older. In this case, the version indicated by the read first version data is determined to be a version that cannot be read by the read determination means that determines whether or not the version is a readable version. In this case, it is made to function as a message output means for outputting a message indicating that the setting file cannot be read.

また、第11発明に係るコンピュータプログラムは、第9又は第10発明において、前記設定ファイル読出装置を、前記データ群のブロックのサイズが、読み出した前記記憶位置データのブロックのサイズと一致しているか否かを確認するサイズ確認手段として機能させることを特徴とする。   According to an eleventh aspect of the present invention, in the ninth or tenth aspect, the computer program causes the setting file reading device to check that the block size of the data group matches the size of the read block of the storage location data. It functions as a size confirmation means for confirming whether or not.

第3発明、第6発明及び第9発明では、上述したデータ構造を有する設定ファイルの指定を受け付け、指定を受け付けた設定ファイルから第一のバージョンデータ、第二のバージョンデータ及び記憶位置データを読み出す。読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断する。読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、記憶位置データに基づいて、指定を受け付けた設定ファイルから第一のデータ群を読み出す。第二のバージョンデータと比較することにより、追加機能、拡張機能等が存在するか否かを判断することができ、特に追加機能、拡張機能等が存在しない場合には、どの第一のデータ群も読み出すことが可能となる。   In the third invention, the sixth invention, and the ninth invention, the specification of the setting file having the above-described data structure is received, and the first version data, the second version data, and the storage location data are read from the setting file that has received the specification. . It is determined whether or not the version indicated by the read second version data is older than the version of the computer program installed in the read electronic device. When it is determined that the version that is the same as the read version or the version indicated by the read second version data is older, the first data group is read from the setting file that has received the designation based on the storage position data. By comparing with the second version data, it is possible to determine whether or not there are additional functions, extended functions, etc. Especially when there are no additional functions, extended functions, etc., which first data group Can also be read out.

第4発明、第7発明及び第10発明では、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する。読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力する。設定ファイルの作成時に、作成した電子機器にインストールされていたコンピュータプログラム(ソフトウエア)のバージョンの方が新しいバージョンである場合、設定ファイルを読み出すことができないときには、その旨を確認することができる。   In the fourth invention, the seventh invention, and the tenth invention, when it is determined that the version indicated by the second version data that is the same as the read version or the read second version data is older, the version indicated by the read first version data is read It is determined whether or not the version is possible. If it is determined that the version cannot be read, a message indicating that the setting file cannot be read is output. When the setting file is created, if the version of the computer program (software) installed in the created electronic device is a newer version, it can be confirmed if the setting file cannot be read.

第5発明、第8発明及び第11発明では、データ群のブロックのサイズが、読み出した記憶位置データのブロックのサイズと一致しているか否かを確認することにより、正しくデータ群を読み出すことができているか否かを確認することが可能となる。   In the fifth, eighth and eleventh inventions, the data group can be read correctly by checking whether the block size of the data group matches the block size of the read storage position data. It is possible to confirm whether or not it is made.

本発明では、設定ファイルの作成時に、作成した電子機器にインストールされているコンピュータプログラム(ソフトウエア)のバージョンを第一のバージョンデータとして記憶するとともに、該電子機器で読み出すことが可能なバージョンを第二のバージョンデータとして記憶するので、追加機能、拡張機能等が存在するか否かをバージョンの相違から判断することができ、設定ファイルからデータ群を読み出すことができるか否かを判断することができる。   In the present invention, when the setting file is created, the version of the computer program (software) installed in the created electronic device is stored as first version data, and a version that can be read by the electronic device is stored in the first version. Since it is stored as the second version data, it can be determined whether there is an additional function, an extended function, or the like based on the difference in version, and it can be determined whether the data group can be read from the setting file. it can.

本発明の実施の形態に係る画像処理センサの構成を示す模式図である。It is a schematic diagram which shows the structure of the image processing sensor which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理センサの撮像装置の構成を示す外形図である。1 is an outline view showing a configuration of an imaging device of an image processing sensor according to an embodiment of the present invention. 本発明の実施の形態に係る画像処理センサの撮像装置のハードウェア構成を示すブロック図である。It is a block diagram which shows the hardware constitutions of the imaging device of the image processing sensor which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理センサの表示装置の構成を示す正面図である。It is a front view which shows the structure of the display apparatus of the image processing sensor which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理センサの表示装置のモード切り替え画面の例示図である。It is an illustration figure of the mode switching screen of the display apparatus of the image processing sensor which concerns on embodiment of this invention. 本発明の実施の形態に係る画像処理センサの表示装置の設定画面の例示図である。It is an illustration figure of the setting screen of the display apparatus of the image processing sensor which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイルのデータ構造を示すブロック図である。It is a block diagram which shows the data structure of the setting file which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイルの例示図である。It is an illustration figure of the setting file which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイル作成時の画面遷移の例示図である。It is an illustration figure of the screen transition at the time of the setting file creation which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイル読出装置の機能ブロック図である。It is a functional block diagram of a setting file reading device according to an embodiment of the present invention. 本発明の実施の形態に係る設定ファイル読出装置のファイル読出処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the file reading process of the setting file reading apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイルの設定データの例示図である。It is an illustration figure of the setting data of the setting file which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイル読出装置の、設定ファイルの読み出し可能バージョンを決定する処理手順を示すフローチャートである。It is a flowchart which shows the process sequence which determines the readable version of a setting file of the setting file reading apparatus which concerns on embodiment of this invention. 本発明の実施の形態に係る設定ファイル読出装置のファイル読出処理の他の手順を示すフローチャートである。It is a flowchart which shows the other procedure of the file reading process of the setting file reading apparatus concerning embodiment of this invention.

以下、本発明の実施の形態について、図面を参照して説明する。なお、本実施の形態の説明で参照する図面を通じて、同一又は同様の構成又は機能を有する要素については、同一又は同様の符号を付して、詳細な説明を省略する。以下の実施の形態では、コンピュータプログラム(ソフトウエア)をインストールする電子機器として、画像処理センサを用い、その一部が設定ファイル読出装置として機能する場合について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. Note that elements having the same or similar configuration or function are denoted by the same or similar reference numerals throughout the drawings referred to in the description of this embodiment, and detailed description thereof is omitted. In the following embodiments, a case will be described in which an image processing sensor is used as an electronic device for installing a computer program (software), and a part thereof functions as a setting file reading device.

図1は、本発明の実施の形態に係る画像処理センサ(電子機器)の構成を示す模式図である。図1に示すように、本実施の形態に係る画像処理センサは、撮像装置1と、撮像装置1とデータ通信することが可能に接続ケーブル3で接続されている表示装置2とで構成されている。もちろん、表示装置2の代わりに、ディスプレイを有する外部コンピュータであっても良い。なお、撮像装置1と表示装置2とが一体として構成されていても良い。   FIG. 1 is a schematic diagram showing a configuration of an image processing sensor (electronic device) according to an embodiment of the present invention. As shown in FIG. 1, the image processing sensor according to the present embodiment includes an imaging device 1 and a display device 2 connected by a connection cable 3 so as to be able to perform data communication with the imaging device 1. Yes. Of course, instead of the display device 2, an external computer having a display may be used. Note that the imaging device 1 and the display device 2 may be configured integrally.

撮像装置1は、内部に画像処理を実行するFPGA、DSP等を備えており、検査対象物を撮像する撮像素子を有するカメラモジュール(撮像部)と、検査対象物に対して光を照射する照明部とを備えている。撮像装置1をコンパクトにするべく、例えば図1に示すように、撮像装置1の正面の中央近傍にレンズ12を配置し、レンズ12の周囲を囲むように、照明部として複数のLED11を配置してある。なお、撮像装置1とは別に外部照明(リング照明等)を設けても良い。   The imaging apparatus 1 includes an FPGA, a DSP, and the like that execute image processing therein, and includes a camera module (imaging unit) having an imaging element that images the inspection target, and illumination that irradiates the inspection target with light. Department. In order to make the imaging device 1 compact, for example, as shown in FIG. 1, a lens 12 is arranged near the center of the front of the imaging device 1, and a plurality of LEDs 11 are arranged as an illumination unit so as to surround the lens 12. It is. Note that external illumination (ring illumination or the like) may be provided separately from the imaging device 1.

図2は、本発明の実施の形態に係る画像処理センサの撮像装置1の構成を示す外形図である。図2(a)は、本発明の実施の形態に係る画像処理センサの撮像装置1の構成を示す正面図を、図2(b)は、本発明の実施の形態に係る画像処理センサの撮像装置1の構成を示す平面図を、図2(c)は、本発明の実施の形態に係る画像処理センサの撮像装置1の構成を示す背面図を、それぞれ示している。   FIG. 2 is an outline view showing the configuration of the imaging device 1 of the image processing sensor according to the embodiment of the present invention. 2A is a front view showing the configuration of the imaging device 1 of the image processing sensor according to the embodiment of the present invention, and FIG. 2B is the imaging of the image processing sensor according to the embodiment of the present invention. FIG. 2C is a plan view showing the configuration of the apparatus 1, and FIG. 2C is a rear view showing the configuration of the imaging apparatus 1 of the image processing sensor according to the embodiment of the present invention.

図2(a)に示すように、撮像装置1はレンズ12を正面の中央近傍に配置しており、レンズ12の周囲を囲むように複数のLED11を配置してある。撮像時には、複数のLED11を点灯させることにより、検査対象物に光を照射し、検査対象物を明瞭に撮像することができる。   As shown in FIG. 2A, the imaging apparatus 1 has a lens 12 disposed in the vicinity of the center of the front surface, and a plurality of LEDs 11 are disposed so as to surround the lens 12. At the time of imaging, by turning on the plurality of LEDs 11, it is possible to irradiate the inspection object with light and to clearly image the inspection object.

図2(b)及び図2(c)に示すように、撮像装置1の背面には、外部の電源から電力の供給を受ける電源ケーブルを接続する電源コネクタ102と、表示装置2とデータ通信する接続ケーブル3を接続することが可能な接続コネクタ103とを備えている。また、手動でフォーカスを調整することができるフォーカス調整ネジ101も背面に備えている。   As shown in FIGS. 2B and 2C, the rear surface of the imaging device 1 is in data communication with the display device 2 and a power connector 102 that connects a power cable that receives power supplied from an external power source. A connection connector 103 to which the connection cable 3 can be connected is provided. A focus adjustment screw 101 that can manually adjust the focus is also provided on the back surface.

図3は、本発明の実施の形態に係る画像処理センサの撮像装置1のハードウェア構成を示すブロック図である。図3において、コネクタ基板16は、電源インタフェース161に設けてある電源コネクタ102(図2(b)及び図2(c)参照)を介して、外部の電源から電力の供給を受ける。電源基板18は、供給された電力を各基板に供給する。本実施の形態では、カメラモジュール14にはメイン基板13を介して電力を供給している。電源基板18のモータドライバ181は、カメラモジュール14のモータ141に駆動電力を供給し、オートフォーカスを実現している。   FIG. 3 is a block diagram showing a hardware configuration of the imaging device 1 of the image processing sensor according to the embodiment of the present invention. In FIG. 3, the connector board 16 is supplied with power from an external power source via a power connector 102 (see FIGS. 2B and 2C) provided in the power interface 161. The power supply board 18 supplies the supplied power to each board. In the present embodiment, power is supplied to the camera module 14 via the main board 13. The motor driver 181 of the power supply board 18 supplies driving power to the motor 141 of the camera module 14 to realize autofocus.

通信基板17は、メイン基板13から出力された欠陥を検出したか否かで検査対象物の良否を示すOK/NG信号(判定信号)、画像データ等を表示装置2へ送信する。判定信号を受信した表示装置2は、判定結果を表示する。なお、本実施の形態では、通信基板17を介してOK/NG信号(判定信号)を出力する構成にしているが、例えばコネクタ基板16を介してOK/NG信号(判定信号)を出力する構成にしても良い。   The communication board 17 transmits an OK / NG signal (determination signal), image data, and the like indicating the quality of the inspection object to the display device 2 based on whether or not a defect output from the main board 13 is detected. The display device 2 that has received the determination signal displays the determination result. In this embodiment, an OK / NG signal (determination signal) is output via the communication board 17, but an OK / NG signal (determination signal) is output via the connector board 16, for example. Anyway.

照明基板15は、検査対象物を撮像する撮像領域に光を照射する、複数のLED11が設けてあり、図示しないリフレクタはLED11の前方に設けてある。また、レンズ12は、短距離用又は長距離用のレンズユニットとして交換可能となっている。   The illumination board 15 is provided with a plurality of LEDs 11 that irradiate light to an imaging region for imaging the inspection object, and a reflector (not shown) is provided in front of the LEDs 11. The lens 12 can be replaced as a lens unit for short distance or long distance.

カメラモジュール14は、モータ141が駆動することにより、オートフォーカス動作の制御を行うことができる。メイン基板13からの撮像指示信号に応じて検査対象物を撮像する。本実施の形態では、撮像素子としてCMOS基板142を備えており、撮像されたカラー画像は、CMOS基板142にてダイナミックレンジを広げる変換特性に基づいてHDR画像へ変換され、メイン基板13のFPGA131へ出力される。   The camera module 14 can control the autofocus operation when the motor 141 is driven. The inspection object is imaged according to the imaging instruction signal from the main board 13. In the present embodiment, a CMOS substrate 142 is provided as an image sensor, and the captured color image is converted into an HDR image based on conversion characteristics that widen the dynamic range in the CMOS substrate 142 and is transferred to the FPGA 131 on the main substrate 13. Is output.

メイン基板13は、接続してある各基板の動作を制御する。例えば照明基板15に対しては、複数のLED11の点灯/消灯を制御する制御信号を、LEDドライバ151へ送信する。LEDドライバ151は、FPGA131からの制御信号に応じて、例えばLED11の点灯/消灯、光量等を調整する。また、カメラモジュール14のモータ141に対しては、電源基板18のモータドライバ181を介してオートフォーカス動作を制御する制御信号を、CMOS基板142に対しては、撮像指示信号等を、それぞれ送信する。   The main board 13 controls the operation of each connected board. For example, a control signal for controlling turning on / off of the plurality of LEDs 11 is transmitted to the LED driver 151 with respect to the illumination board 15. The LED driver 151 adjusts, for example, lighting / extinguishing of the LED 11, the amount of light, and the like according to a control signal from the FPGA 131. Further, a control signal for controlling the autofocus operation is transmitted to the motor 141 of the camera module 14 via the motor driver 181 of the power supply substrate 18, and an imaging instruction signal and the like are transmitted to the CMOS substrate 142. .

メイン基板13のFPGA131は、照明制御、撮像制御をするとともに、撮像した画像データに対して画像処理を実行する。また、メイン基板13のDSP132は、画像データについて、エッジ検出処理、パターン検索処理等を実行する。パターン検索処理の結果として、欠陥を検出したか否かで検査対象物の良否を示すOK/NG信号(判定信号)を通信基板17へ出力する。演算処理結果等はメモリ133に記憶される。なお、本実施の形態では、FPGA131が照明制御、撮像制御等を実行するが、DSP132が実行しても良い。また、FPGA131とDSP132とが一体となった回路、すなわち主制御回路(主制御部)を設けても良い。要するに、複数のLED11の点灯/消灯を制御する制御信号をLEDドライバ151へ送信したり、オートフォーカス動作を制御する制御信号をカメラモジュール14のモータ141へ送信したり、撮像指示信号等をCMOS基板142へ送信したり、FPGA131及びDSP132の双方の機能を有する主制御部を設けても良い。   The FPGA 131 of the main board 13 performs illumination control and imaging control, and executes image processing on the captured image data. In addition, the DSP 132 of the main board 13 performs edge detection processing, pattern search processing, and the like on the image data. As a result of the pattern search process, an OK / NG signal (determination signal) indicating whether the inspection object is good or not is output to the communication board 17 depending on whether a defect is detected. The arithmetic processing result and the like are stored in the memory 133. In the present embodiment, the FPGA 131 executes illumination control, imaging control, and the like, but the DSP 132 may execute it. Further, a circuit in which the FPGA 131 and the DSP 132 are integrated, that is, a main control circuit (main control unit) may be provided. In short, a control signal for controlling turning on / off of the plurality of LEDs 11 is transmitted to the LED driver 151, a control signal for controlling the autofocus operation is transmitted to the motor 141 of the camera module 14, and an imaging instruction signal or the like is transmitted to the CMOS substrate. 142 may be provided, or a main control unit having the functions of both the FPGA 131 and the DSP 132 may be provided.

メモリ133には、動作条件を設定してある設定ファイル100が記憶される。設定ファイル100は、情報を記録したDVD、CD−ROM等の可搬型記録媒体90から、可搬型ディスクドライブ19によりダウンロードされる。もちろん、通信基板17を介して接続されている外部コンピュータからダウンロードしても良い。   The memory 133 stores a setting file 100 in which operating conditions are set. The setting file 100 is downloaded by a portable disk drive 19 from a portable recording medium 90 such as a DVD or CD-ROM in which information is recorded. Of course, you may download from the external computer connected via the communication board 17. FIG.

図4は、本発明の実施の形態に係る画像処理センサの表示装置2の構成を示す正面図である。図4に示すように、表示装置2の前面の中央部分にはタッチパネル21が設けてあり、撮像した検査対象物のカラー画像を画面に表示するとともに、ユーザによる選択入力を受け付ける。   FIG. 4 is a front view showing the configuration of the display device 2 of the image processing sensor according to the embodiment of the present invention. As shown in FIG. 4, a touch panel 21 is provided in the central portion of the front surface of the display device 2, displays a color image of the imaged inspection object on the screen, and accepts a selection input by the user.

また、表示装置2は、外部の電源から電力が供給される電源ケーブルを接続する電源コネクタ24と、撮像装置1とデータ通信する接続ケーブル3を接続することが可能な接続コネクタ25とを備えている。さらにUSBメモリ等と接続することが可能なUSBポート22を前面に設けてある。   The display device 2 includes a power connector 24 that connects a power cable supplied with power from an external power source, and a connection connector 25 that can connect the connection cable 3 that performs data communication with the imaging device 1. Yes. Further, a USB port 22 that can be connected to a USB memory or the like is provided on the front surface.

ユーザは、表示装置2のタッチパネル21の画面に表示されているボタンを選択することにより、画像処理センサの動作を制御する。そして、検査対象物の検査を実行する「検査モード」と、画像処理センサの条件設定を行う「設定モード」との切り替えを行うこともできる。言い換えると、本実施の形態に係る画像処理センサは、検査対象物の良否を判定する検査モード(Runモード)と、検査に用いる各種パラメータ(撮像パラメータ、照明パラメータ、画像処理パラメータ等)の設定を行う設定モード(非Runモード)とを切り替えるためのモード切替部を有している。図5は、本発明の実施の形態に係る画像処理センサの表示装置2のモード切り替え画面の例示図である。   The user controls the operation of the image processing sensor by selecting a button displayed on the screen of the touch panel 21 of the display device 2. It is also possible to switch between an “inspection mode” for inspecting an inspection object and a “setting mode” for setting conditions of the image processing sensor. In other words, the image processing sensor according to the present embodiment sets an inspection mode (Run mode) for determining the quality of an inspection object and various parameters (imaging parameters, illumination parameters, image processing parameters, etc.) used for the inspection. A mode switching unit for switching between setting modes to be performed (non-Run mode) is provided. FIG. 5 is an exemplary view of a mode switching screen of the display device 2 of the image processing sensor according to the embodiment of the present invention.

図5(a)は、「検査モード」の画面表示の例示図である。図5(a)に示すように、検査対象物表示領域51に、撮像装置1が撮像した検査対象物の画像を表示する。左下の「センサ設定」ボタン52がモード切替部として機能し、「センサ設定」ボタン52が選択された場合、「設定モード」へと切り替わり、図5(b)に示す画面へと画面遷移する。   FIG. 5A is a view showing an example of the screen display of “inspection mode”. As shown in FIG. 5A, the inspection object image captured by the imaging apparatus 1 is displayed in the inspection object display area 51. The lower left “sensor setting” button 52 functions as a mode switching unit, and when the “sensor setting” button 52 is selected, the mode is switched to “setting mode”, and the screen transitions to the screen shown in FIG.

図5(b)は、「設定モード」の画面表示の例示図である。図5(b)に示すように、プログラム選択領域53にて、検査対象物の種類又は検査環境を選択する。ここで、「プログラム」とは、検査対象物の種類又は検査環境に応じて設定された一連のデータ群(パラメータ値の組み合わせ)を意味しており、検査対象物の種類又は検査環境ごとに異なるデータ群をプログラムとして記憶することができる。   FIG. 5B is an exemplary view of a screen display of “setting mode”. As shown in FIG. 5B, in the program selection area 53, the type of inspection object or the inspection environment is selected. Here, the “program” means a series of data groups (combination of parameter values) set in accordance with the type of inspection object or the inspection environment, and varies depending on the type of inspection object or the inspection environment. A group of data can be stored as a program.

また、検査対象物と比較する基準となるマスタ画像が記憶されている場合、マスタ画像表示領域54にマスタ画像が表示される。「設定ナビ」ボタン55が選択された場合、詳細な設定を行う設定画面に画面遷移する。図5(b)の「運転開始」ボタン56は切替部として機能し、「運転開始」ボタン56が選択された場合、「検査モード」へと切り替わり、図5(a)に示す画面へと画面遷移する。なお、図5(a)の「検査モード」の画面表示であっても、図5(b)の「設定モード」の画面表示であっても、「USBメモリ」ボタン50が選択された場合、設定ファイルを作成する。設定ファイル作成時の画面遷移については後述する。   When a master image serving as a reference for comparison with the inspection object is stored, the master image is displayed in the master image display area 54. When the “setting navigation” button 55 is selected, the screen transitions to a setting screen for performing detailed settings. The “start operation” button 56 in FIG. 5B functions as a switching unit. When the “start operation” button 56 is selected, the mode is switched to “inspection mode”, and the screen shown in FIG. 5A is displayed. Transition. When the “USB memory” button 50 is selected regardless of whether the “inspection mode” screen display of FIG. 5A or the “setting mode” screen display of FIG. Create a configuration file. Screen transitions when creating a configuration file will be described later.

図6は、本発明の実施の形態に係る画像処理センサの表示装置2の設定画面の例示図である。図6に示す設定画面を通じて、ユーザは、撮像条件の設定(図6(a))、パターンサーチする基準となるマスタ画像の登録(図6(b))、マスタ画像に対する輪郭サーチ等のツール設定(図6(c)〜図6(e))、出力割り当て(図6(f))、という流れで順次設定を行う。以下、詳細に説明する。図5(b)に示す「設定ナビ」ボタン55が選択された場合、まず図6(a)に示す撮像条件設定画面が表示される。撮像条件設定画面では、マスタ画像が記憶されている場合にはマスタ画像が主表示領域61に表示され、画面下部に撮像条件を設定する設定ボタン群が表示されている。例えば「トリガ条件」ボタンが選択された場合には、撮像装置1が検査対象物を撮像するタイミングを特定するトリガ条件を設定することができる。詳細な設定画面は省略するが、それぞれのボタンが選択された場合、それぞれの設定条件に応じて図4に示すタッチパネル21上に表示される。   FIG. 6 is an exemplary view of a setting screen of the display device 2 of the image processing sensor according to the embodiment of the present invention. Through the setting screen shown in FIG. 6, the user can set the imaging conditions (FIG. 6A), register the master image as a reference for pattern search (FIG. 6B), and set tools such as contour search for the master image. The settings are sequentially made in the order of (FIG. 6C to FIG. 6E) and output assignment (FIG. 6F). Details will be described below. When the “setting navigation” button 55 shown in FIG. 5B is selected, first, an imaging condition setting screen shown in FIG. 6A is displayed. On the imaging condition setting screen, when a master image is stored, the master image is displayed in the main display area 61, and a setting button group for setting imaging conditions is displayed at the bottom of the screen. For example, when the “trigger condition” button is selected, it is possible to set a trigger condition that specifies the timing at which the imaging apparatus 1 images the inspection object. Although a detailed setting screen is omitted, when each button is selected, it is displayed on the touch panel 21 shown in FIG. 4 according to each setting condition.

また、より詳細な設定をするには、図6(a)の「拡張機能」ボタン62を選択すれば良い。「拡張機能」ボタン62が選択された場合、詳細な設定を行うためのボタンが別途表示される。このように撮像条件設定画面では、明るさの調整、フォーカスの調整、撮像範囲、照明のオン/オフ、ズームのオン/オフ等を設定することができる。   For more detailed setting, the “extended function” button 62 in FIG. 6A may be selected. When the “extended function” button 62 is selected, a button for performing detailed settings is separately displayed. Thus, on the imaging condition setting screen, brightness adjustment, focus adjustment, imaging range, illumination on / off, zoom on / off, and the like can be set.

図6(a)の「進む」と表示された「画面遷移」ボタン63が選択された場合、図6(b)に示すマスタ画像登録画面が表示される。登録されたマスタ画像上に、以後、検査用の様々なツールを設定する。1つのマスタ画像に対して複数のプログラムを記憶することができる。つまり、同じマスタ画像に対して異なるツールを設定し、異なるプログラムとして記憶しておくことができる。   When the “screen transition” button 63 displayed as “advance” in FIG. 6A is selected, a master image registration screen shown in FIG. 6B is displayed. Thereafter, various tools for inspection are set on the registered master image. A plurality of programs can be stored for one master image. That is, different tools can be set for the same master image and stored as different programs.

マスタ画像は、現在撮像している画像を登録しても良いし、以前に撮像しておいた画像から選択して登録しても良い。現在撮像している画像を登録する場合、ユーザは「Live画像登録」ボタン64を選択すればよい。「Live画像登録」ボタン64が選択された時点で撮像されている画像がマスタ画像として登録される。   As the master image, an image currently captured may be registered, or a master image may be selected and registered from previously captured images. When registering an image currently captured, the user may select a “Live image registration” button 64. An image captured at the time when the “Live image registration” button 64 is selected is registered as a master image.

図6(b)の「進む」と表示された「画面遷移」ボタン65が選択された場合、図6(c)に示すマスタ画像ごとのツール設定画面が表示される。マスタ画像上に、以後、検査用の様々なツールを設定する。   When the “screen transition” button 65 displayed as “advance” in FIG. 6B is selected, a tool setting screen for each master image shown in FIG. 6C is displayed. Thereafter, various tools for inspection are set on the master image.

ツール設定画面では、表示されているマスタ画像に、検査を実行するためのツールを追加設定する。図6(c)に示す「追加」ボタン66が選択された場合、図6(d)に示すツール選択画面が表示される。ツール選択画面で選択されたツールを追加設定する。例えば「輪郭サーチ」ボタン67が選択された場合、図6(e)に示す輪郭サーチ設定画面が表示される。輪郭サーチ設定画面で、マスタ画像のどの輪郭を撮像された検査対象物の画像と照合するのか設定しておくことにより、欠陥を検出したか否かで検査対象物の良否を判定することができる。以下、色面積、位置補正等の設定をすることができる。   On the tool setting screen, a tool for executing inspection is additionally set to the displayed master image. When the “add” button 66 shown in FIG. 6C is selected, a tool selection screen shown in FIG. 6D is displayed. Set additional tools selected on the tool selection screen. For example, when the “contour search” button 67 is selected, a contour search setting screen shown in FIG. 6E is displayed. By setting which contour of the master image is to be checked against the image of the imaged inspection object on the contour search setting screen, the quality of the inspection object can be determined based on whether or not a defect has been detected. . Hereinafter, settings such as color area and position correction can be made.

図6(c)の「進む」と表示された「画面遷移」ボタン68が選択された場合、図6(f)に示す出力割当画面が表示される。出力割当画面では、検査の結果として画面に表示される出力線が何を意味するのか設定することができる。「完了」ボタン69が選択された場合、図5(b)に示す「設定モード」の画面表示に戻る。このように、ユーザは、図6に示す表示装置2のタッチパネル21上で、「進む」と表示された「画面遷移」ボタン63、65、68を順に選択することで、簡単かつ短時間に、検査に用いる各種パラメータを設定することができる。また、画像処理センサに慣れていないユーザであっても、表示装置2上で次の操作へ誘導されるので、各種パラメータを容易に設定することができる。   When the “screen transition” button 68 displayed as “advance” in FIG. 6C is selected, an output assignment screen shown in FIG. 6F is displayed. On the output assignment screen, it is possible to set what the output line displayed on the screen as a result of the inspection means. When the “complete” button 69 is selected, the screen returns to the “setting mode” screen shown in FIG. In this manner, the user can easily and quickly select the “screen transition” buttons 63, 65, and 68 displayed as “forward” on the touch panel 21 of the display device 2 illustrated in FIG. Various parameters used for inspection can be set. Further, even a user who is not familiar with the image processing sensor is guided to the next operation on the display device 2, so that various parameters can be easily set.

本実施の形態では、電子機器である画像処理センサの動作条件を設定する設定ファイルを作成する。例えば、複数の電子機器を同一の動作条件で運用しており、これらの電子機器にインストールされているコンピュータプログラム(ソフトウエア)のバージョンが一律でない場合に、一の設定ファイルを作成し、これらの電子機器に読み込ませることで、動作条件を一斉変更することができる。図7は、本発明の実施の形態に係る設定ファイルのデータ構造を示すブロック図である。   In the present embodiment, a setting file for setting operating conditions of an image processing sensor that is an electronic device is created. For example, if multiple electronic devices are operated under the same operating conditions and the versions of computer programs (software) installed on these electronic devices are not uniform, create one configuration file and Operating conditions can be changed all at once by loading them into electronic equipment. FIG. 7 is a block diagram showing a data structure of the setting file according to the embodiment of the present invention.

図7に示すように、設定ファイルは、少なくとも第一のバージョンデータ701、第二のバージョンデータ702、ブロック単位で記憶される一又は複数のデータ群703、記憶位置データ706で構成されている。   As shown in FIG. 7, the setting file includes at least first version data 701, second version data 702, one or a plurality of data groups 703 stored in block units, and storage location data 706.

第一のバージョンデータ701は、設定ファイルの作成時に、作成した電子機器(一の電子機器)である画像処理センサにインストールされたコンピュータプログラム(ソフトウエア)のバージョンに関する情報であり、設定ファイルを作成したバージョンに関する情報である。したがって、第一のバージョンデータ701のバージョンより古いバージョンで作成されたデータについては、一の電子機器で読み出すことができる。   The first version data 701 is information related to the version of the computer program (software) installed in the image processing sensor that is the created electronic device (one electronic device) when the setting file is created. It is information about the version. Accordingly, data created with a version older than the version of the first version data 701 can be read out by one electronic device.

第二のバージョンデータ702は、他の電子機器である画像処理センサにインストールされているコンピュータプログラム(ソフトウエア)のバージョンに関する情報である。本実施の形態では、第二のバージョンデータ702のバージョンは、第一のバージョンデータ701のバージョンと同じ又は第一のバージョンデータ701のバージョンより古いバージョンであるとしている。   The second version data 702 is information regarding the version of a computer program (software) installed in an image processing sensor that is another electronic device. In the present embodiment, the version of the second version data 702 is assumed to be the same as the version of the first version data 701 or an older version than the version of the first version data 701.

データ群703は、他の電子機器、すなわち一の電子機器より古いバージョンのコンピュータプログラム(ソフトウエア)がインストールされた電子機器で使用することが可能な第一のデータ群704、又は使用することが不可能な第二のデータ群705で構成されている。   The data group 703 may be a first data group 704 that can be used in another electronic device, that is, an electronic device in which a computer program (software) of an older version than one electronic device is installed, or may be used. The second data group 705 is impossible.

記憶位置データ706は、設定ファイルにおいてデータ群703が記憶されている位置に関する情報である。本実施の形態のように、データ群703がブロック単位で記憶されている場合、記憶位置データ706は、第一のデータ群704又は第二のデータ群705が記憶されたブロックのオフセット量と該ブロックのサイズとで構成される。   The storage position data 706 is information regarding the position where the data group 703 is stored in the setting file. As in the present embodiment, when the data group 703 is stored in units of blocks, the storage position data 706 includes the offset amount of the block in which the first data group 704 or the second data group 705 is stored, Consists of the size of the block.

図8は、本発明の実施の形態に係る設定ファイルの例示図である。図8では、画像処理センサにインストールされているコンピュータプログラム(ソフトウエア)のバージョンが、1.0と2.0との2つ存在する場合を想定しており、図8(a)はバージョン1.0で作成した設定ファイルを、図8(b)はバージョン2.0で作成した設定ファイルを、それぞれ示している。   FIG. 8 is an exemplary diagram of a setting file according to the embodiment of the present invention. In FIG. 8, it is assumed that there are two versions of the computer program (software) installed in the image processing sensor, 1.0 and 2.0, and FIG. FIG. 8B shows a setting file created with version 2.0, and FIG. 8B shows a setting file created with version 2.0.

図8(a)に示すように、古いバージョン1.0で作成した設定ファイルは、ファイルサイズ、ファイル形式のバージョン、読出可能バージョン、オフセット付ブロック情報数、オフセット付ブロック情報、及びデータ群で構成されている。記憶位置データの個数は、ブロックAの1個なので、オフセット付ブロック情報数は‘1’となる。そして、ブロックの記憶位置を、オフセット付ブロック情報として記憶している。   As shown in FIG. 8A, the setting file created with the old version 1.0 is composed of the file size, file format version, readable version, number of block information with offset, block information with offset, and data group. Has been. Since the number of storage position data is one in block A, the number of block information with offset is ‘1’. The storage position of the block is stored as offset block information.

図8(a)のブロックAに記憶してあるデータ群は、ファイル形式がバージョン1.0のデータである。したがって、コンピュータプログラム(ソフトウエア)のバージョンが2.0、3.0、・・・と更新された場合であっても、ブロックAに記憶してあるデータ群は、ファイル形式がバージョン1.0のデータであるので読み出すことができる。このように、データ群ごとに記憶されている位置及び作成時のバージョンを記憶しておくことで、読み出すことができるか否かを判断することができる。   The data group stored in the block A in FIG. 8A is data whose file format is version 1.0. Therefore, even if the version of the computer program (software) is updated to 2.0, 3.0,..., The data group stored in the block A has a file format of version 1.0. Since it is the data of, it can be read. Thus, by storing the position stored for each data group and the version at the time of creation, it can be determined whether or not the data group can be read out.

図8(b)に示すように、新しいバージョン2.0で作成した設定ファイルは、バージョン1.0で作成した設定ファイルと同様、ファイルサイズ、ファイル形式のバージョン、読出可能バージョン、オフセット付ブロック情報数、オフセット付ブロック情報及び複数のデータ群で構成されている。そして、記憶位置データの個数は、ブロックAとブロックBとの2個であるので、オフセット付ブロック情報数は‘2’となる。そして、各ブロックの記憶位置を、オフセット付ブロック情報として記憶している。   As shown in FIG. 8 (b), the setting file created in the new version 2.0 is similar to the setting file created in version 1.0, and the file size, file format version, readable version, and block information with offset. Number, block information with offset, and a plurality of data groups. Since the number of storage location data is two, block A and block B, the number of offset block information is “2”. And the storage position of each block is memorize | stored as block information with an offset.

図8(b)のブロックAに記憶してあるデータ群は、ファイル形式がバージョン1.0のデータ群である。したがって、バージョン2.0でも読み出すことができる。ブロックAの記憶位置データは、「オフセット付ブロック情報A」として記憶されている。このように、データ群ごとに記憶されている位置及び作成時のバージョンを記憶しておくことにより、読み出すことができるか否かを判断することができる。   The data group stored in the block A in FIG. 8B is a data group whose file format is version 1.0. Therefore, even version 2.0 can be read. The storage position data of the block A is stored as “block information with offset A”. Thus, by storing the position stored for each data group and the version at the time of creation, it can be determined whether or not the data group can be read out.

つまり、本実施の形態に係る設定ファイルは、設定ファイルの作成時に、作成した画像処理センサにインストールされていたコンピュータプログラム(ソフトウエア)のバージョン(第一のバージョンデータ)以外に、該画像センサで読み出すことが可能なバージョン(第二のバージョンデータ)を記憶するので、追加機能、拡張機能等が存在するか否かをバージョンの相違から判断することができ、設定ファイルからデータ群を読み出すことができるか否かを判断することができる。   In other words, the setting file according to the present embodiment is stored in the image sensor other than the version (first version data) of the computer program (software) installed in the created image processing sensor when the setting file is created. Since the version (second version data) that can be read is stored, it is possible to determine whether there is an additional function, an extended function, or the like from the version difference, and to read the data group from the setting file It can be determined whether or not it is possible.

図9は、本発明の実施の形態に係る設定ファイル作成時の画面遷移の例示図である。図5(a)又は図5(b)の「USBメモリ」ボタン50が選択された場合、まず図9(a)に示す設定ファイル操作画面が表示される。設定ファイル操作画面の「一括バックアップ」ボタン91が選択された場合、次に図9(b)に示す設定ファイル指定画面が表示される。   FIG. 9 is a view showing an example of screen transition when creating a setting file according to the embodiment of the present invention. When the “USB memory” button 50 shown in FIG. 5A or 5B is selected, a setting file operation screen shown in FIG. 9A is displayed first. When the “collective backup” button 91 on the setting file operation screen is selected, a setting file designation screen shown in FIG. 9B is displayed.

設定ファイル指定画面の設定ファイル名設定領域92にて、作成する設定ファイル名の入力を受け付け、「実行」ボタン93が選択された場合、図9(c)に示す書込中画面94が表示される。設定ファイルの書き込みが完了した時点で、図9(d)に示す完了画面が表示される。「OK」ボタン95が選択された場合、図5(a)に示す「検査モード」画面又は図5(b)に示す「設定モード」画面へと戻る。   When the input of the setting file name to be created is accepted in the setting file name setting area 92 of the setting file designation screen and the “execute” button 93 is selected, a writing screen 94 shown in FIG. 9C is displayed. The When the writing of the setting file is completed, a completion screen shown in FIG. 9D is displayed. When the “OK” button 95 is selected, the screen returns to the “inspection mode” screen shown in FIG. 5A or the “setting mode” screen shown in FIG.

図10は、本発明の実施の形態に係る画像処理センサの設定ファイル読出装置10の機能ブロック図である。図10において、設定ファイル読出装置10は、撮像装置1と表示装置2とで構成されている。   FIG. 10 is a functional block diagram of the setting file reading device 10 of the image processing sensor according to the embodiment of the present invention. In FIG. 10, the setting file reading device 10 includes an imaging device 1 and a display device 2.

表示装置2の設定ファイル指定受付部901は、読み出し対象となる設定ファイルの指定を受け付ける。指定を受け付けた設定ファイルに関する情報は、撮像装置1へ送信される。なお、本実施の形態では、タッチパネル21上でユーザから指定を受け付けるようにしているが、例えばPLCからの信号により指定を受け付けても良い。また、撮像装置1から見れば、表示装置2から送られてくる信号に基づいて、設定ファイルの指定を受け付ける。つまり、設定ファイル指定受付部901は、撮像装置1側に設けられていても良い。   A setting file designation receiving unit 901 of the display device 2 receives designation of a setting file to be read. Information regarding the setting file that has received the designation is transmitted to the imaging apparatus 1. In the present embodiment, the designation is accepted from the user on the touch panel 21. However, the designation may be accepted by a signal from the PLC, for example. Further, when viewed from the imaging device 1, the setting file designation is accepted based on a signal sent from the display device 2. That is, the setting file designation receiving unit 901 may be provided on the imaging device 1 side.

撮像装置1のデータ読出部902は、表示装置2で指定を受け付けた設定ファイルから第一のバージョンデータ、第二のバージョンデータ、及び記憶位置データを読み出す。記憶位置データで示す位置は、物理的位置でも良いし、論理的位置でも良い。例えば、データ群がブロック単位で記憶されている場合は、ブロックの開始位置のオフセット量及び該ブロックのサイズで構成することができる。   The data reading unit 902 of the imaging device 1 reads the first version data, the second version data, and the storage position data from the setting file that has been designated by the display device 2. The position indicated by the storage position data may be a physical position or a logical position. For example, when the data group is stored in units of blocks, the data group can be configured by the offset amount of the start position of the block and the size of the block.

この場合、ブロックのサイズを確認することで正しくデータ群を読み出すことができているか否かを判断することができる。サイズ確認部903は、データ群のブロックサイズが、データ読出部902で読み出した記憶位置データのブロックのサイズと一致しているか否かを確認する。一致しない場合には、正しくデータ群を読み出すことができていない。   In this case, it is possible to determine whether or not the data group can be read correctly by checking the block size. The size confirmation unit 903 confirms whether or not the block size of the data group matches the block size of the storage location data read by the data reading unit 902. If they do not match, the data group cannot be read correctly.

バージョン判断部904は、読み出した第二のバージョンデータのバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断する。設定ファイル読出部905は、バージョン判断部904が、読み出すバージョンと同じ又は第二のバージョンデータの方が古いと判断した場合、記憶位置データに基づいて、指定を受け付けた設定ファイルから第一のデータ群を読み出す。   The version determination unit 904 determines whether the version of the read second version data is older than the version of the computer program installed in the electronic device to be read. When the version determining unit 904 determines that the version to be read is the same as or the second version data is older, the setting file reading unit 905 determines the first data from the setting file that has received the designation based on the storage location data. Read a group.

読出判断部906は、バージョン判断部904が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する。読み出すことが可能なバージョンであると判断した場合、指定を受け付けた設定ファイルから第二のデータ群を読み出す。   When the version determination unit 904 determines that the version that is the same as the read version or the version indicated by the read second version data is older, the read determination unit 906 reads the version indicated by the read first version data. It is determined whether or not the version is possible. If it is determined that the version is readable, the second data group is read from the setting file that has received the designation.

読出判断部906で、読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力する指示を表示装置2へ送信する。メッセージ出力部907は、撮像装置1からメッセージの出力指示を受信した場合、設定ファイルを読み出すことができない旨を示すメッセージを、表示装置2にエラーメッセージとして表示出力する。   If the read determination unit 906 determines that the version is not readable, the read determination unit 906 transmits an instruction to the display device 2 to output a message indicating that the setting file cannot be read. When the message output unit 907 receives a message output instruction from the imaging device 1, the message output unit 907 displays a message indicating that the setting file cannot be read out as an error message on the display device 2.

図11は、本発明の実施の形態に係る設定ファイル読出装置10のファイル読出処理の手順を示すフローチャートである。図11において、表示装置2の主制御部は、読み出し対象となる設定ファイルの指定を受け付ける(ステップS1101)。指定を受け付けた設定ファイルに関する情報は、撮像装置1へ送信される。   FIG. 11 is a flowchart showing the procedure of the file reading process of setting file reading apparatus 10 according to the embodiment of the present invention. In FIG. 11, the main control unit of the display device 2 accepts designation of a setting file to be read (step S1101). Information regarding the setting file that has received the designation is transmitted to the imaging apparatus 1.

撮像装置1のDSP132は、表示装置2で指定を受け付けた設定ファイルから第一のバージョンデータ、第二のバージョンデータ、及び記憶位置データを読み出し(ステップS1102)、読み出した記憶位置データで特定される位置に記憶されているデータ群を読み出す(ステップS1103)。記憶位置データで示す位置は、物理的位置でも良いし、論理的位置でも良い。例えば、データ群をブロック単位で記憶している場合は、ブロックのオフセット量及び該ブロックのサイズで構成することができる。   The DSP 132 of the imaging apparatus 1 reads the first version data, the second version data, and the storage position data from the setting file that has been designated by the display device 2 (step S1102), and is specified by the read storage position data. A data group stored at the position is read (step S1103). The position indicated by the storage position data may be a physical position or a logical position. For example, when a data group is stored in units of blocks, the data group can be configured with a block offset amount and a block size.

この場合、ブロックサイズを確認することで正しくデータ群を読み出すことができているか否かを判断することができる。DSP132は、データ群のブロックのサイズが、読み出した記憶位置データのブロックのサイズと一致しているか否かを判断する(ステップS1104)。DSP132が、サイズが一致していないと判断した場合(ステップS1104:NO)、DSP132は、正しくデータ群を読み出すことができていないと判断して、読出エラーメッセージを出力する指示を表示装置2へ送信する(ステップS1105)。読出エラーメッセージを出力する指示を受信した表示装置2の主制御部は、読出エラーメッセージを表示出力する(ステップS1106)。   In this case, it is possible to determine whether or not the data group can be read correctly by checking the block size. The DSP 132 determines whether or not the block size of the data group matches the block size of the read storage position data (step S1104). If the DSP 132 determines that the sizes do not match (step S1104: NO), the DSP 132 determines that the data group has not been correctly read and instructs the display device 2 to output a read error message. Transmit (step S1105). The main control unit of the display device 2 that has received the instruction to output the read error message displays and outputs the read error message (step S1106).

DSP132が、サイズが一致していると判断した場合(ステップS1104:YES)、DSP132は、正しくデータ群を読み出すことができたと判断して、読み出した第一のバージョンデータのバージョンが、読み出す電子機器にインストールされているコンピュータプログラム(ソフトウエア)のバージョンと同じ又は第一のバージョンデータのバージョンの方が古いか否かを判断する(ステップS1107)。   If the DSP 132 determines that the sizes match (step S1104: YES), the DSP 132 determines that the data group has been read correctly, and the read version of the first version data is read out. It is determined whether or not the version of the first version data is the same as or older than the version of the computer program (software) installed in step S1107.

DSP132が、読み出すバージョンと同じ又は第一のバージョンデータのバージョンの方が古いと判断した場合(ステップS1107:YES)、DSP132は、従来と同様の方法でデータ群を読み出す(ステップS1108)。DSP132が、第一のバージョンデータのバージョンの方が新しいと判断した場合(ステップS1107:NO)、DSP132は、読み出すバージョンと第二のバージョンデータのバージョンとを比較する(ステップS1109)。   When the DSP 132 determines that the version to be read is the same as the version to be read or the version of the first version data is older (step S1107: YES), the DSP 132 reads the data group by a method similar to the conventional method (step S1108). When the DSP 132 determines that the version of the first version data is newer (step S1107: NO), the DSP 132 compares the read version with the version of the second version data (step S1109).

DSP132が、第二のバージョンデータのバージョンの方が古いと判断した場合(ステップS1109:古い)、DSP132は、第一のデータ群を読み出す(ステップS1110)。DSP132が、第二のバージョンデータのバージョンと同じと判断した場合(ステップS1109:同じ)、DSP132は、第一のデータ群及び第二のデータ群を読み出す(ステップS1111)。   When the DSP 132 determines that the version of the second version data is older (step S1109: older), the DSP 132 reads the first data group (step S1110). When the DSP 132 determines that the version of the second version data is the same (step S1109: the same), the DSP 132 reads the first data group and the second data group (step S1111).

DSP132が、第二のバージョンデータのバージョンの方が新しいと判断した場合(ステップS1109:新しい)、DSP132は、設定ファイルを読み出すことができない旨を示す読出エラーメッセージを出力する指示を表示装置2へ送信し(ステップS1112)、表示装置2の主制御部は、読出エラーメッセージを表示出力する(ステップS1113)。   When the DSP 132 determines that the version of the second version data is newer (step S1109: newer), the DSP 132 instructs the display device 2 to output a read error message indicating that the setting file cannot be read. Transmitting (step S1112), the main control unit of the display device 2 displays and outputs a read error message (step S1113).

なお、図10に示す機能ブロック図、図11に示すフローチャートは一例であり、他の構成であっても良い。例えば、図10に示す機能ブロック図では、バージョン判断部904及び読出判断部906を撮像装置1側に備えている。しかし、特にこれに限定されるものではなく、例えばバージョン判断部904及び読出判断部906を表示装置2側に備えていても良い。   Note that the functional block diagram shown in FIG. 10 and the flowchart shown in FIG. 11 are examples, and other configurations may be used. For example, in the functional block diagram illustrated in FIG. 10, the version determination unit 904 and the read determination unit 906 are provided on the imaging device 1 side. However, the present invention is not particularly limited to this. For example, the version determination unit 904 and the read determination unit 906 may be provided on the display device 2 side.

バージョン判断部904及び読出判断部906を表示装置2側に備える場合、具体的には、撮像装置1にインストールされているコンピュータプログラム(ソフトウエア)のバージョンに関する情報を事前に表示装置2へ送信しておき、表示装置2でメモリに記憶しておく。そして、設定ファイルの指定をユーザから受け付けた場合、表示装置2内に設けられた制御部(CPU等)は、第一のバージョンデータ、第二のバージョンデータ、記憶位置データ及びデータ群の読み出しを行う。そして、データ群のブロックのサイズが一致しているか否かを判断し、一致していないと判断した場合には、読出エラーメッセージの出力指示及び表示出力を行う(図11のステップS1102〜ステップS1106の処理に対応する処理)。   When the version determination unit 904 and the read determination unit 906 are provided on the display device 2 side, specifically, information related to the version of the computer program (software) installed in the imaging device 1 is transmitted to the display device 2 in advance. The data is stored in the memory by the display device 2. When the designation of the setting file is received from the user, the control unit (CPU or the like) provided in the display device 2 reads the first version data, the second version data, the storage position data, and the data group. Do. Then, it is determined whether or not the sizes of the blocks of the data group match. If it is determined that they do not match, an output instruction and display output of a read error message are performed (steps S1102 to S1106 in FIG. 11). Process corresponding to the process of).

一方、一致していると判断した場合には、表示装置2の制御部は、読み出した第一のバージョンデータのバージョンが、インストールされているコンピュータプログラム(ソフトウエア)のバージョンと同じ又は第一のバージョンデータのバージョンの方が古いか否かを判断し、インストールされているバージョンと同じ又は第一のバージョンデータのバージョンの方が古いと判断した場合には従来と同様の方法でデータ群を読み出して(図11のステップS1107〜ステップS1108の処理に対応する処理)、第一のデータ群を撮像装置1に送信する。一方、第一のバージョンデータのバージョンの方が新しいと判断した場合には、インストールされているコンピュータプログラム(ソフトウエア)のバージョンと第二のバージョンデータのバージョンとを比較する(図11のステップS1109の処理に対応する処理)。   On the other hand, if it is determined that they match, the control unit of the display device 2 has the same version of the read first version data as the version of the installed computer program (software) or the first version data. Determine whether the version of the version data is older or not, and if it is determined that the version of the first version data is the same as the installed version or older, read the data group in the same way as before (Processing corresponding to the processing of step S1107 to step S1108 in FIG. 11), the first data group is transmitted to the imaging apparatus 1. On the other hand, if it is determined that the version of the first version data is newer, the version of the installed computer program (software) is compared with the version of the second version data (step S1109 in FIG. 11). Process corresponding to the process of).

第二のバージョンデータのバージョンの方が古いと判断した場合には、第一のデータ群の読み出し及び撮像装置1への送信を行い、第二のバージョンデータのバージョンと同じと判断した場合には第一のデータ群及び第二のデータ群の読み出し及び撮像装置1への送信を行い、第二のバージョンデータのバージョンの方が新しいと判断した場合には読出エラーメッセージの出力表示及び表示出力を行う(図11のステップS1110〜ステップS1112の処理に対応する処理)。   When it is determined that the version of the second version data is older, the first data group is read out and transmitted to the imaging device 1, and when it is determined that the version is the same as the version of the second version data. The first data group and the second data group are read out and transmitted to the imaging device 1, and when it is determined that the version of the second version data is newer, an output display and display output of a read error message are performed. Performed (a process corresponding to the process of steps S1110 to S1112 in FIG. 11).

図12は、本発明の実施の形態に係る画像処理センサの設定ファイルの設定データの例示図である。説明を簡単にするために、バージョンを1.0、2.0、3.0の3つとし、トリガ条件についても代表的なトリガ周期のみとし、その他の設定値もON/OFFのみとしている。   FIG. 12 is a view showing an example of setting data in the setting file of the image processing sensor according to the embodiment of the present invention. In order to simplify the explanation, the version is assumed to be 1.0, 2.0, and 3.0, the trigger conditions are only representative trigger cycles, and the other set values are only ON / OFF.

図12(a)は最も古いバージョン1.0の設定可能範囲を、図12(b)は次に古いバージョン2.0の設定可能範囲を、図12(c)は最も新しいバージョン3.0の設定可能範囲を、それぞれ示している。バージョンが新しくなるほど、トリガ周期の設定可能範囲が広くなっており、最初のバージョン1.0にはブロックBが存在しない。   12A shows the settable range of the oldest version 1.0, FIG. 12B shows the settable range of the next oldest version 2.0, and FIG. 12C shows the latest set of version 3.0. Each settable range is shown. As the version is newer, the settable range of the trigger period becomes wider, and the block B does not exist in the first version 1.0.

図13は、本発明の実施の形態に係る画像処理センサの、撮像装置1のDSP132の、設定ファイルの読み出し可能バージョンを決定する処理手順を示すフローチャートである。図13では、読み出し対象となる設定ファイルの作成時に、作成した画像処理センサにインストールされていたコンピュータプログラムのバージョンを、最も新しいバージョン3.0とした場合について説明する。便宜上、「バージョンX.0」のバージョンは‘X’で示し、ブロックA、B、・・・を‘1’、‘2’、・・・で示す。   FIG. 13 is a flowchart showing a processing procedure for determining a readable version of the setting file of the DSP 132 of the imaging apparatus 1 of the image processing sensor according to the embodiment of the present invention. FIG. 13 illustrates a case where the version of the computer program installed in the created image processing sensor is the latest version 3.0 when the setting file to be read is created. For convenience, the version of “version X.0” is indicated by “X”, and the blocks A, B,... Are indicated by “1”, “2”,.

図13において、DSP132は、引数iを‘1’、引数jを‘M(最新バージョン数)’に初期化する(ステップS1301)。ここで、引数iはブロックを、引数jはバージョンを示す。図12の例では、ブロックはブロックA、ブロックBの2つなので、引数iは‘1’、‘2’となり、最新バージョンが3.0であるので、引数jは‘3’、‘2’、‘1’となる。   In FIG. 13, the DSP 132 initializes an argument i to “1” and an argument j to “M (latest version number)” (step S1301). Here, the argument i indicates a block, and the argument j indicates a version. In the example of FIG. 12, since the block is two blocks A and B, the argument i is “1” and “2”, and the latest version is 3.0, so the argument j is “3” and “2”. , '1'.

DSP132は、ブロックiのチェックを開始する(ステップS1302)。まず、DSP132は、直前のバージョン(j−1)から追加設定があり、しかも追加設定が初期値以外であるか否かを判断する(ステップS1303)。DSP132が、追加設定があり、しかも追加設定が初期値以外であると判断した場合(ステップS1303:YES)、DSP132は、バージョンjより古いバージョンでは読み出すことができないと判断し、バージョンjを読み出し可能なバージョンとして出力する(ステップS1304)。   The DSP 132 starts checking block i (step S1302). First, the DSP 132 determines whether there is an additional setting from the immediately previous version (j−1) and whether the additional setting is other than the initial value (step S1303). When the DSP 132 determines that there is an additional setting and the additional setting is other than the initial value (step S1303: YES), the DSP 132 determines that the version older than the version j cannot be read and can read the version j. Is output as a new version (step S1304).

DSP132が、追加設定がない、又は追加設定があり、追加設定が初期値であると判断した場合(ステップS1303:NO)、DSP132は、設定データが直前のバージョン(j−1)の設定可能範囲内であるか否かを判断する(ステップS1305)。DSP132が、バージョン(j−1)の設定可能範囲内ではないと判断した場合(ステップS1305:NO)、DSP132は、バージョンjより古いバージョンでは読み出すことができないと判断し、バージョンjを読み出し可能なバージョンとして出力する(ステップS1306)。   When the DSP 132 determines that there is no additional setting or that there is an additional setting and the additional setting is an initial value (step S1303: NO), the DSP 132 sets the setting data in the immediately preceding version (j-1). It is determined whether it is within (step S1305). When the DSP 132 determines that the version (j-1) is not within the settable range (step S1305: NO), the DSP 132 determines that the version older than the version j cannot be read and can read the version j. The version is output (step S1306).

DSP132が、バージョン(j−1)の設定可能範囲内であると判断した場合(ステップS1305:YES)、DSP132は、チェックしているのが最後のブロックであるか否かを判断する(ステップS1307)。DSP132が、最後のブロックではないと判断した場合(ステップS1307:NO)、DSP132は、iを‘1’インクリメントして(ステップS1308)、処理をステップS1302へ戻して、上述した処理を繰り返す。   When the DSP 132 determines that the version (j-1) is within the settable range (step S1305: YES), the DSP 132 determines whether the last block is checked (step S1307). ). When the DSP 132 determines that the block is not the last block (step S1307: NO), the DSP 132 increments i by “1” (step S1308), returns the process to step S1302, and repeats the above-described process.

DSP132が、最後のブロックであると判断した場合(ステップS1307:YES)、DSP132は、jが2以下であるか否かを判断する(ステップS1309)。DSP132が、jが2より大きいと判断した場合(ステップS1309:NO)、DSP132は、jを‘1’デクリメントし、iを‘1’に初期化し(ステップS1310)、処理をステップS1302へ戻して、上述した処理を繰り返す。   When the DSP 132 determines that it is the last block (step S1307: YES), the DSP 132 determines whether j is 2 or less (step S1309). When the DSP 132 determines that j is greater than 2 (step S1309: NO), the DSP 132 decrements j to “1”, initializes i to “1” (step S1310), and returns the process to step S1302. The above process is repeated.

DSP132が、jが2以下であると判断した場合(ステップS1309:YES)、DSP132は、バージョン1を読み出し可能なバージョンとして出力する(ステップS1311)。   When the DSP 132 determines that j is 2 or less (step S1309: YES), the DSP 132 outputs version 1 as a readable version (step S1311).

図12の例で考えると、まずブロックAについてチェックを開始し、直前のバージョンであるバージョン2から追加設定がなく、設定値はすべてバージョン2の設定可能範囲内であるので、ブロックBのチェックへと進む。ブロックBについても、直前のバージョンであるバージョン2から追加設定がなく、設定値がすべてバージョン2の設定可能範囲内であるので、jを‘2’へデクリメントして、ステップS1302へ処理を戻す。   Considering the example of FIG. 12, first, the block A is checked, and since there is no additional setting from the previous version 2 and all the set values are within the settable range of the version 2, the block B is checked. Proceed with Also for block B, since there is no additional setting from version 2, which is the previous version, and all the set values are within the settable range of version 2, j is decremented to ‘2’, and the process returns to step S1302.

ブロックAについて、直前のバージョンであるバージョン1から追加設定がなく、設定値はすべてバージョン1の設定可能範囲内であるので、ブロックBのチェックへと進む。ブロックBについては、直前のバージョンであるバージョン1には存在しないが、ブロックBの設定値がすべて初期値であることから、バージョン1を読み出し可能なバージョンとして出力する。   For block A, since there is no additional setting from version 1, which is the immediately preceding version, and all the setting values are within the settable range of version 1, the process proceeds to checking block B. The block B does not exist in the version 1 that is the immediately preceding version, but since all the setting values of the block B are initial values, the version 1 is output as a readable version.

なお、第一のデータ群を読み出した後で、第一のバージョンデータのバージョンをチェックしても良い。図14は、本発明の実施の形態に係る設定ファイル読出装置10のファイル読出処理の他の手順を示すフローチャートである。図14において、表示装置2の主制御部は、読み出し対象となる設定ファイルの指定を受け付ける(ステップS1401)。指定を受け付けた設定ファイルに関する情報は、撮像装置1へ送信される。   Note that the version of the first version data may be checked after reading the first data group. FIG. 14 is a flowchart showing another procedure of the file reading process of setting file reading apparatus 10 according to the embodiment of the present invention. In FIG. 14, the main control unit of the display device 2 accepts designation of a setting file to be read (step S1401). Information regarding the setting file that has received the designation is transmitted to the imaging apparatus 1.

撮像装置1のDSP132は、表示装置2で指定を受け付けた設定ファイルから第一のバージョンデータ、第二のバージョンデータ、及び記憶位置データを読み出し(ステップS1402)、読み出した記憶位置データで特定される位置に記憶されているデータ群を読み出す(ステップS1403)。記憶位置データで示す位置は、物理的位置でも良いし、論理的位置でも良い。例えば、データ群をブロック単位で記憶している場合は、ブロックのオフセット量及び該ブロックのサイズで構成することができる。   The DSP 132 of the imaging apparatus 1 reads the first version data, the second version data, and the storage position data from the setting file that has been designated by the display device 2 (step S1402), and is specified by the read storage position data. The data group stored at the position is read (step S1403). The position indicated by the storage position data may be a physical position or a logical position. For example, when a data group is stored in units of blocks, the data group can be configured with a block offset amount and a block size.

この場合、ブロックサイズを確認することで正しくデータ群を読み出すことができているか否かを判断することができる。DSP132は、データ群のブロックのサイズが、読み出した記憶位置データのブロックのサイズと一致しているか否かを判断する(ステップS1404)。DSP132が、サイズが一致していないと判断した場合(ステップS1404:NO)、DSP132は、正しくデータ群を読み出すことができていないと判断して、読出エラーメッセージを出力する指示を表示装置2へ送信する(ステップS1405)。読出エラーメッセージを出力する指示を受信した表示装置2の主制御部は、読出エラーメッセージを表示出力する(ステップS1406)。   In this case, it is possible to determine whether or not the data group can be read correctly by checking the block size. The DSP 132 determines whether or not the block size of the data group matches the block size of the read storage position data (step S1404). If the DSP 132 determines that the sizes do not match (step S1404: NO), the DSP 132 determines that the data group has not been correctly read and instructs the display device 2 to output a read error message. Transmit (step S1405). The main control unit of the display device 2 that has received the instruction to output the read error message displays and outputs the read error message (step S1406).

DSP132が、サイズが一致していると判断した場合(ステップS1404:YES)、DSP132は、正しくデータ群を読み出すことができたと判断して、読み出した第二のバージョンデータのバージョンが、読み出す電子機器にインストールされているコンピュータプログラム(ソフトウエア)のバージョンと同じ又は第二のバージョンデータのバージョンの方が古いか否かを判断する(ステップS1407)。   When the DSP 132 determines that the sizes match (step S1404: YES), the DSP 132 determines that the data group has been correctly read, and the version of the read second version data is read out. It is determined whether the version of the version data of the computer program (software) installed in the same or the second version data is older (step S1407).

DSP132が、読み出すバージョンと同じ又は第二のバージョンデータのバージョンの方が古いと判断した場合(ステップS1407:YES)、DSP132は、第一のデータ群を読み出し(ステップS1408)、第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する(ステップS1409)。DSP132が、読み出すことが可能なバージョンであると判断した場合(ステップS1409:YES)、DSP132は、第二のデータ群を読み出す(ステップS1410)。   When the DSP 132 determines that the version to be read is the same as the version to be read or the version of the second version data is older (step S1407: YES), the DSP 132 reads the first data group (step S1408), and the first version data It is determined whether or not the version indicated by is a readable version (step S1409). When the DSP 132 determines that the version is readable (step S1409: YES), the DSP 132 reads the second data group (step S1410).

DSP132が、第二のバージョンデータの方が新しいと判断した場合(ステップS1407:NO)、及び読み出すことができないバージョンであると判断した場合(ステップS1409:NO)、DSP132は、設定ファイルを読み出すことができない旨を示す読出エラーメッセージを出力する指示を表示装置2へ送信し(ステップS1411)、表示装置2の主制御部は、読出エラーメッセージを表示出力する(ステップS1412)。   When the DSP 132 determines that the second version data is newer (step S1407: NO) and when the DSP 132 determines that the version data cannot be read (step S1409: NO), the DSP 132 reads the setting file. An instruction to output a reading error message indicating that the reading cannot be performed is transmitted to the display device 2 (step S1411), and the main control unit of the display device 2 displays and outputs a reading error message (step S1412).

以上のように本実施の形態によれば、設定ファイルの作成時に、作成した電子機器にインストールされていたコンピュータプログラム(ソフトウエア)のバージョンを第一のバージョンデータとして記憶するとともに、該電子機器で読み出すことが可能なバージョンを第二のバージョンデータとして記憶するので、追加機能、拡張機能等が存在するか否かをバージョンの相違から判断することができ、設定ファイルからデータ群を読み出すことができるか否かを判断することができる。したがって、複数の電子機器を同一の動作条件で運用している場合には、設定データの追加設定もなければ、設定データはすべてのバージョンの設定可能範囲内となることから、どのバージョンで設定ファイルを作成したとしても、すべての電子機器において設定ファイルを読み出すことができ、バージョンの相違による誤動作等の障害が発生することを未然に回避することも可能となる。   As described above, according to the present embodiment, when the setting file is created, the version of the computer program (software) installed in the created electronic device is stored as the first version data. Since the version that can be read is stored as the second version data, it can be determined whether there is an additional function, an extended function, or the like based on the version difference, and the data group can be read from the setting file. It can be determined whether or not. Therefore, when multiple electronic devices are operated under the same operating conditions, since there is no additional setting data, the setting data is within the settable range of all versions. Even if created, the setting file can be read out in all electronic devices, and it is possible to avoid the occurrence of a malfunction such as a malfunction due to a difference in version.

なお、本発明は上記実施例に限定されるものではなく、本発明の趣旨の範囲内であれば多種の変更、改良等が可能である。例えば電子機器として画像処理センサを用いる場合に限定されるものではなく、製造ラインで同一の動作条件で運用する電子機器であれば同様の効果が期待できる。また、上記実施例では、撮像装置1と表示装置2とは別体となっているが、両者が一体になった画像処理センサであっても良い。さらに、設定ファイルの読み出しが可能か否かの判断は、撮像装置1で行っても良いし、表示装置2で行っても良い。例えば、表示装置2にて読み出しが可能か否かを判断した後に、読み出し可能なデータ群のみを表示装置2から撮像装置1へ送信しても良い。   The present invention is not limited to the above-described embodiments, and various changes and improvements can be made within the scope of the present invention. For example, the present invention is not limited to the case where an image processing sensor is used as an electronic device, and the same effect can be expected as long as the electronic device is operated under the same operating conditions in the production line. Moreover, in the said Example, although the imaging device 1 and the display apparatus 2 became a different body, the image processing sensor with which both were united may be sufficient. Further, whether or not the setting file can be read can be determined by the imaging device 1 or the display device 2. For example, after determining whether or not reading is possible on the display device 2, only a readable data group may be transmitted from the display device 2 to the imaging device 1.

1 撮像装置
2 表示装置
3 接続ケーブル
13 メイン基板
14 カメラモジュール
21 タッチパネル
100 設定ファイル
131 FPGA
132 DSP
133 メモリ
901 設定ファイル指定受付部
902 データ読出部
903 サイズ確認部
904 バージョン判断部
905 設定ファイル読出部
906 読出判断部
907 メッセージ出力部
DESCRIPTION OF SYMBOLS 1 Imaging device 2 Display device 3 Connection cable 13 Main board 14 Camera module 21 Touch panel 100 Setting file 131 FPGA
132 DSP
133 Memory 901 Setting file designation receiving unit 902 Data reading unit 903 Size confirmation unit 904 Version determining unit 905 Setting file reading unit 906 Reading determining unit 907 Message output unit

Claims (11)

一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、該一の電子機器で使用することが可能な一又は複数のデータ群とを含む設定ファイルのデータ構造であって、
前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、前記設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データとを含み、
前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むことを特徴とする設定ファイルのデータ構造。
A data structure of a setting file including first version data indicating a version of a computer program installed in one electronic device and one or a plurality of data groups that can be used in the one electronic device. And
Second version data indicating a version of a computer program installed in another electronic device in which a computer program of an older version than the one electronic device is installed, and the one or more data groups in the setting file are stored Storage position data indicating the position of
The one or more data groups include a first data group that can be used in the other electronic device or a second data group that cannot be used. data structure.
前記一又は複数のデータ群はブロック単位で記憶されており、
前記記憶位置データは、前記第一のデータ群又は前記第二のデータ群が記憶されたブロックのオフセット量と該ブロックのサイズとで構成されていることを特徴とする請求項1に記載の設定ファイルのデータ構造。
The one or more data groups are stored in block units,
2. The setting according to claim 1, wherein the storage position data includes an offset amount of a block in which the first data group or the second data group is stored and a size of the block. The data structure of the file.
一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、
該一の電子機器で使用することが可能な一又は複数のデータ群と、
前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、
設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データと
を含み、
前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むデータ構造を有する設定ファイルを読み出す設定ファイル読出装置において、
読み出し対象となる設定ファイルの指定を受け付ける設定ファイル指定受付手段と、
指定を受け付けた設定ファイルから前記第一のバージョンデータ、前記第二のバージョンデータ及び前記記憶位置データを読み出すデータ読出手段と、
読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断するバージョン判断手段と、
該バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、前記記憶位置データに基づいて、指定を受け付けた設定ファイルから前記第一のデータ群を読み出す設定ファイル読出手段と
を備えることを特徴とする設定ファイル読出装置。
First version data indicating a version of a computer program installed in one electronic device;
One or a plurality of data groups that can be used in the one electronic device;
Second version data indicating a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed;
Storage location data indicating a location storing the one or more data groups in the setting file, and
The one or more data groups read out a setting file having a data structure including a first data group that can be used by the other electronic device or a second data group that cannot be used. In the setting file reading device,
A setting file designation accepting means for accepting designation of a setting file to be read;
Data reading means for reading the first version data, the second version data, and the storage position data from the setting file that has received the designation;
Version determination means for determining whether the version indicated by the read second version data is older than the version of the computer program installed in the electronic device to be read;
When the version determination means determines that the version that is the same as the read version or the version indicated by the read second version data is older, the first data from the setting file that has received the specification based on the storage location data A setting file reading device comprising: setting file reading means for reading a group.
前記バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する読出判断手段と、
該読出判断手段で、読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力するメッセージ出力手段と
を備えることを特徴とする請求項3記載の設定ファイル読出装置。
When the version determination unit determines that the version indicated by the read second version data is the same as the read version or the version indicated by the read second version data, the version indicated by the read first version data is a readable version. Reading determination means for determining whether or not,
4. The setting file according to claim 3, further comprising: a message output unit that outputs a message indicating that the setting file cannot be read when the reading determining unit determines that the version cannot be read. Reading device.
前記データ群のブロックのサイズが、読み出した前記記憶位置データのブロックのサイズと一致しているか否かを確認するサイズ確認手段を備えることを特徴とする請求項3又は4に記載の設定ファイル読出装置。   5. The setting file read-out according to claim 3, further comprising size checking means for checking whether or not the size of the block of the data group matches the size of the block of the read storage position data. apparatus. 一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、
該一の電子機器で使用することが可能な一又は複数のデータ群と、
前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、
設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データと
を含み、
前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むデータ構造を有する設定ファイルを読み出す設定ファイル読出装置で実行することが可能な設定ファイル読出方法において、
読み出し対象となる設定ファイルの指定を受け付ける工程と、
指定を受け付けた設定ファイルから前記第一のバージョンデータ、前記第二のバージョンデータ及び前記記憶位置データを読み出す工程と、
読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断する工程と、
該バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、前記記憶位置データに基づいて、指定を受け付けた設定ファイルから前記第一のデータ群を読み出す工程と
を含むことを特徴とする設定ファイル読出方法。
First version data indicating a version of a computer program installed in one electronic device;
One or a plurality of data groups that can be used in the one electronic device;
Second version data indicating a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed;
Storage location data indicating a location storing the one or more data groups in the setting file, and
The one or more data groups read out a setting file having a data structure including a first data group that can be used by the other electronic device or a second data group that cannot be used. In a setting file reading method that can be executed by a setting file reading device,
Receiving a specification of a setting file to be read; and
Reading the first version data, the second version data, and the storage location data from the setting file that has received the designation;
Determining whether the version indicated by the read second version data is older than the version of the computer program installed in the electronic device to be read;
When the version determination means determines that the version that is the same as the read version or the version indicated by the read second version data is older, the first data from the setting file that has received the specification based on the storage location data And a step of reading a group.
読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する工程と、
読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力する工程と
を含むことを特徴とする請求項6記載の設定ファイル読出方法。
When it is determined that the version indicated by the read second version data is the same as the read version or the version indicated by the read second version data, it is determined whether or not the version indicated by the read first version data is a readable version. Process,
7. A setting file reading method according to claim 6, further comprising a step of outputting a message indicating that the setting file cannot be read when it is determined that the version cannot be read.
前記データ群のブロックのサイズが、読み出した前記記憶位置データのブロックのサイズと一致しているか否かを確認する工程を含むことを特徴とする請求項6又は7に記載の設定ファイル読出方法。   8. The setting file reading method according to claim 6, further comprising a step of confirming whether or not the size of the block of the data group matches the size of the block of the read storage position data. 一の電子機器にインストールされているコンピュータプログラムのバージョンを示す第一のバージョンデータと、
該一の電子機器で使用することが可能な一又は複数のデータ群と、
前記一の電子機器より古いバージョンのコンピュータプログラムがインストールされた他の電子機器にインストールされているコンピュータプログラムのバージョンを示す第二のバージョンデータと、
設定ファイルにおける前記一又は複数のデータ群を記憶している位置を示す記憶位置データと
を含み、
前記一又は複数のデータ群は、前記他の電子機器で使用することが可能な第一のデータ群、又は使用することが不可能な第二のデータ群を含むデータ構造を有する設定ファイルを読み出す設定ファイル読出装置で実行することが可能なコンピュータプログラムにおいて、
前記設定ファイル読出装置を、
読み出し対象となる設定ファイルの指定を受け付ける設定ファイル指定受付手段、
指定を受け付けた設定ファイルから前記第一のバージョンデータ、前記第二のバージョンデータ及び前記記憶位置データを読み出すデータ読出手段、
読み出した第二のバージョンデータが示すバージョンが、読み出す電子機器にインストールされているコンピュータプログラムのバージョンより古いか否かを判断するバージョン判断手段、及び
該バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、前記記憶位置データに基づいて、指定を受け付けた設定ファイルから前記第一のデータ群を読み出す設定ファイル読出手段
として機能させることを特徴とするコンピュータプログラム。
First version data indicating a version of a computer program installed in one electronic device;
One or a plurality of data groups that can be used in the one electronic device;
Second version data indicating a version of a computer program installed in another electronic device in which a computer program of a version older than the one electronic device is installed;
Storage location data indicating a location storing the one or more data groups in the setting file, and
The one or more data groups read out a setting file having a data structure including a first data group that can be used by the other electronic device or a second data group that cannot be used. In a computer program that can be executed by a setting file reading device,
The setting file reading device;
A setting file designation accepting means for accepting designation of a setting file to be read;
Data reading means for reading the first version data, the second version data, and the storage position data from the setting file that has received the designation;
Version determination means for determining whether the version indicated by the read second version data is older than the version of the computer program installed in the electronic device to be read, and the version determination means is the same as or read out from the version read When it is determined that the version indicated by the second version data is older, based on the storage position data, the setting data reading unit is configured to function as a setting file reading unit that reads the first data group from the setting file that has received the designation. Computer program.
前記設定ファイル読出装置を、
前記バージョン判断手段が、読み出すバージョンと同じ又は読み出した第二のバージョンデータが示すバージョンの方が古いと判断した場合、読み出した第一のバージョンデータが示すバージョンは、読み出すことが可能なバージョンであるか否かを判断する読出判断手段、及び
該読出判断手段で、読み出すことができないバージョンであると判断した場合、設定ファイルを読み出すことができない旨を示すメッセージを出力するメッセージ出力手段
として機能させることを特徴とする請求項9記載のコンピュータプログラム。
The setting file reading device;
When the version determination unit determines that the version indicated by the read second version data is the same as the read version or the version indicated by the read second version data, the version indicated by the read first version data is a readable version. A read determination means for determining whether or not the version is unreadable by the read determination means, and a message output means for outputting a message indicating that the setting file cannot be read. The computer program according to claim 9.
前記設定ファイル読出装置を、前記データ群のブロックのサイズが、読み出した前記記憶位置データのブロックのサイズと一致しているか否かを確認するサイズ確認手段として機能させることを特徴とする請求項9又は10に記載のコンピュータプログラム。   10. The setting file reading device is caused to function as a size check unit for checking whether or not the size of the block of the data group matches the size of the block of the read storage position data. Or the computer program according to 10;
JP2011256117A 2011-11-24 2011-11-24 Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program Pending JP2013109706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011256117A JP2013109706A (en) 2011-11-24 2011-11-24 Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011256117A JP2013109706A (en) 2011-11-24 2011-11-24 Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program

Publications (1)

Publication Number Publication Date
JP2013109706A true JP2013109706A (en) 2013-06-06

Family

ID=48706366

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011256117A Pending JP2013109706A (en) 2011-11-24 2011-11-24 Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program

Country Status (1)

Country Link
JP (1) JP2013109706A (en)

Similar Documents

Publication Publication Date Title
US8745609B2 (en) Imaging system
JP5411049B2 (en) Image processing device
US9729780B2 (en) Imaging apparatus and controller for photographing products
US20150208050A1 (en) Projector, display apparatus, and control method of projector
US20130111464A1 (en) Modular and open platform image capture devices and related methods
EP3142128B1 (en) Method of inspecting wire harness
US9824664B2 (en) Calibration device, calibration method and display device
JP5233887B2 (en) Input key control device, input key control method and program
JP2012248031A (en) Electronic apparatus, endoscopic device, and program module update method of electronic apparatus
JP2008140044A (en) Image projecting device, image projecting program and image correction method
JP2010152429A (en) Gui application test support device and test support method
JP5950548B2 (en) System construction device for image processing device
JP5446413B2 (en) camera
JP2013109706A (en) Data structure of configuration file, configuration file reading device, configuration file reading method, and computer program
JP5317740B2 (en) Digital camera, control method thereof and program
JP4290028B2 (en) IMAGING DEVICE AND ITS CONTROL METHOD, IMAGING SYSTEM, INFORMATION PROCESSING DEVICE, PROGRAM, AND STORAGE MEDIUM
JP2008099875A (en) Electronic endoscope system
JP4935264B2 (en) Automatic photo creation device and automatic photo creation method
US11322058B2 (en) Device management apparatus, device managing method, and program
JP5891095B2 (en) Endoscope device
JP5822631B2 (en) System construction device for camera device
JPWO2016031414A1 (en) Electronic devices and connection methods
JP5826612B2 (en) Image processing apparatus, image processing method, and computer program
JP2009164739A (en) Imaging apparatus
JP5861743B2 (en) Image processing device