JP5940317B2 - Measurement result recording apparatus and measurement result recording method - Google Patents
Measurement result recording apparatus and measurement result recording method Download PDFInfo
- Publication number
- JP5940317B2 JP5940317B2 JP2012028589A JP2012028589A JP5940317B2 JP 5940317 B2 JP5940317 B2 JP 5940317B2 JP 2012028589 A JP2012028589 A JP 2012028589A JP 2012028589 A JP2012028589 A JP 2012028589A JP 5940317 B2 JP5940317 B2 JP 5940317B2
- Authority
- JP
- Japan
- Prior art keywords
- file name
- file
- temporary
- recorded
- data
- 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.)
- Active
Links
Images
Landscapes
- Recording Measured Values (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Description
本発明は、測定結果のデータファイルを情報記録媒体に記録可能に構成された測定結果記録装置、およびデータファイルを情報記録媒体に記録する測定結果記録方法に関するものである。 The present invention relates to a measurement result recording apparatus configured to be able to record a measurement result data file on an information recording medium, and to a measurement result recording method for recording a data file on an information recording medium.
例えば、特開2005−77093号公報には、分光測定処理を実行する分光測定部(以下、「測定部」ともいう)と、測定部を制御すると共に測定部から出力された測定データをデータ処理するデータ処理・制御部(以下、「処理制御部」ともいう)とを備えて、未知試料に関する定量測定の結果(レポート)を印刷物として出力可能に構成された分光測定システムが開示されている。この場合、処理制御部は、測定部の制御やデータ処理を実行する中央制御部と、中央制御部の演算結果等を一時的に記憶するメモリと、測定データや各種プログラムを記憶する記憶装置(ハードディスク駆動装置)とを備えると共に、操作部、表示部および印刷部などが接続されて構成されている。具体的には、この分光測定システムでは、既存のオペレーティングシステムがインストールされたパーソナルコンピュータで処理制御部が構成されている。 For example, Japanese Patent Laid-Open No. 2005-77093 discloses a spectroscopic measurement unit (hereinafter also referred to as a “measurement unit”) that executes spectroscopic measurement processing, and data processing of measurement data output from the measurement unit while controlling the measurement unit. There is disclosed a spectroscopic measurement system that includes a data processing / control unit (hereinafter also referred to as a “processing control unit”) that can output a result (report) of a quantitative measurement regarding an unknown sample as a printed matter. In this case, the processing control unit includes a central control unit that executes control of the measurement unit and data processing, a memory that temporarily stores calculation results of the central control unit, and a storage device that stores measurement data and various programs ( A hard disk drive device), and an operation unit, a display unit, a printing unit, and the like are connected. Specifically, in this spectroscopic measurement system, the processing control unit is configured by a personal computer in which an existing operating system is installed.
この分光測定システムによるレポートの作成および印刷に際しては、まず、処理制御部における中央制御部が、作業者によって選択された処理条件に従って、測定部を制御して分析対象の未知試料を対象とするスペクトル測定処理を実行させる。この際に、測定部は、未知試料を対象とするスキャン測定を実行して、予め定められた波長ステップ毎に測光値を取得すると共に、取得した測光値を測定データとして処理制御部に出力する。また、測定部から出力された測定データは、処理制御部のメモリに記憶される。次いで、中央制御部は、所定のダイアログボックスを表示部に表示させることによって、メモリに記憶された測定データを記憶装置に保存する際のファイル名および保存場所(保存先のディレクトリ(フォルダ)等)などを指示する入力操作を要求する。 When creating and printing a report by this spectroscopic measurement system, first, the central control unit in the processing control unit controls the measurement unit according to the processing conditions selected by the operator, and the spectrum for the unknown sample to be analyzed is targeted. Run the measurement process. At this time, the measurement unit performs scan measurement for an unknown sample, acquires a photometric value for each predetermined wavelength step, and outputs the acquired photometric value to the processing control unit as measurement data. . In addition, the measurement data output from the measurement unit is stored in the memory of the processing control unit. Next, the central control unit displays a predetermined dialog box on the display unit, thereby saving the measurement data stored in the memory to the storage device in a file name and a storage location (storage directory (folder), etc.) Request an input operation to indicate
また、入力操作によってファイル名や保存場所が指示されたときに、中央制御部は、メモリに記憶されている測定データのファイルを生成すると共に、生成したファイルを、記憶装置内の指示された保存場所に、指示されたファイル名で記憶させる。次いで、中央制御部は、上記のスペクトル測定処理時と同様にして、測定部にフォトメトリック測定処理を実行させて、その測定データのファイルを、記憶装置内の指示された保存場所に、指示されたファイル名で記憶させる。続いて、中央制御部は、記憶装置に記憶させた各測定データに基づいてレポートを作成する。また、中央制御部は、作成したレポートのデータファイルを記憶装置に記憶させると共に、印刷部を制御してレポートの内容を印刷させる。これにより、未知試料に関する定量測定の結果(レポート)の印刷物が得られる。 In addition, when the file name and storage location are instructed by the input operation, the central control unit generates a measurement data file stored in the memory and stores the generated file in the storage device instructed in the storage device. The location is stored with the specified file name. Next, the central control unit causes the measurement unit to execute the photometric measurement process in the same manner as in the spectrum measurement process described above, and the measurement data file is instructed to the designated storage location in the storage device. Remember the file name. Subsequently, the central control unit creates a report based on each measurement data stored in the storage device. The central control unit stores the created report data file in the storage device, and controls the printing unit to print the contents of the report. Thereby, a printed matter of the result (report) of the quantitative measurement regarding the unknown sample is obtained.
ところが、従来の分光測定システムには、以下の解決すべき問題点が存在する。すなわち、従来の分光測定システムでは、レポートの作成および印刷に拘わる一連の処理に際して、測定部から出力された測定データのファイル(以下、「データファイル」ともいう)を、作業者によって指定されたディレクトリに、指定されたファイル名で記憶させる構成(方法)が採用されている。この場合、既存のオペレーティングシステムがインストールされたパーソナルコンピュータを処理制御部として備えて構成された従来の分光測定システムでは、データファイルを記憶装置に記憶させる際に、中央制御部が、オペレーティングシステムによって規定されている手順に従って、データファイルを記憶させようとしているディレクトリ内に、そのデータファイルのファイル名と同一のファイル名のファイルが存在するか否かをチェックする処理を実行する。 However, the conventional spectroscopic measurement system has the following problems to be solved. That is, in a conventional spectroscopic measurement system, a measurement data file (hereinafter also referred to as a “data file”) output from a measurement unit in a series of processes related to report creation and printing is a directory specified by an operator. In addition, a configuration (method) for storing with a specified file name is adopted. In this case, in a conventional spectroscopic measurement system configured to include a personal computer with an existing operating system installed as a processing control unit, when the data file is stored in the storage device, the central control unit is defined by the operating system. According to the procedure, a process for checking whether or not a file having the same file name as the data file exists in the directory in which the data file is to be stored is executed.
具体的には、従来の分光測定システムでは、データファイルのファイル名および保存先のディレクトリが指示されたときに、中央制御部が、記憶装置のディレクトリエントリ領域からファイル名情報を読み出すと共に、ファイル名情報に基づいて特定したファイル名(記憶装置に記憶されているファイルのファイル名)と、指示されたファイル名(記憶装置に記憶させるデータファイルのファイル名)とを比較することにより、指示されたディレクトリ内に、指示されたファイル名のファイルが存在するか否かを判別する。この際に、指示されたファイル名のファイルが存在しないときには、その時点において記憶装置に記憶されているファイルが、新たに記憶させるデータファイルによって上書きされる(すなわち、既に記憶されているファイルが消去される)ことがないため、中央制御部は、指示されたディレクトリに指示されたファイル名でデータファイルを記憶させる。 Specifically, in the conventional spectroscopic measurement system, when the file name of the data file and the storage destination directory are instructed, the central control unit reads the file name information from the directory entry area of the storage device, and The file name specified based on the information (the file name of the file stored in the storage device) is compared with the specified file name (the file name of the data file to be stored in the storage device). It is determined whether or not a file with the designated file name exists in the directory. At this time, if there is no file with the designated file name, the file stored in the storage device at that time is overwritten by the data file to be newly stored (that is, the already stored file is erased). The central control unit stores the data file with the designated file name in the designated directory.
一方、指示されたファイル名のファイルが既に存在するときには、その時点において記憶装置に記憶されているファイルが、新たに記憶させるデータファイルによって上書きされるおそれがあるため、中央制御部は、新たに記憶させるデータファイルのファイル名および保存先のディレクトリのいずれかの変更を要求する表示を表示部に表示させる。この際に、ファイル名および保存先のディレクトリのいずれかが変更されたときには、中央制御部は、変更後のファイル名またはディレクトリを対象として上記のチェック処理を再び実行する。また、ファイル名および保存先のディレクトリの双方が変更されることなく、これらを確定する操作が行われたとき(すなわち、既に記憶されているファイルを新たなデータファイルで上書きすることを作業者が容認したとき)には、中央制御部は、確定されたディレクトリに確定されたファイル名でデータファイルを記憶させる。 On the other hand, when a file with the designated file name already exists, the file stored in the storage device at that time may be overwritten by the data file to be newly stored. A display requesting to change either the file name of the data file to be stored or the storage destination directory is displayed on the display unit. At this time, when either the file name or the storage destination directory is changed, the central control unit executes the above check process again for the changed file name or directory. In addition, when an operation for confirming these is performed without changing both the file name and the save destination directory (that is, the operator overwrites an already stored file with a new data file). If accepted, the central control unit stores the data file with the determined file name in the determined directory.
このように、従来の分光測定システムでは、記憶装置へのデータファイルの記憶に際して、中央制御部が、新たに記憶させるデータファイルのファイル名と、記憶装置に既に記憶されているファイル(以下、「既存のファイル」ともいう)のファイル名とを比較する処理を実行することにより、作業者が容認したときを除き、既存のファイルが新たなデータファイルで上書きされる(既存のファイルが消去される)事態が回避される。この場合、測定データのデータファイルを記録対象とするこの種の装置では、1つの測定対象体に関して複数回の測定処理が実行されることで同種の測定データが多数生成される機会が多く、また、各データファイルのファイル名として測定対象の名前や測定日等を示す文字列が指示されることが多いため、1つのディレクトリ内に、同様のファイル名のデータファイルが多数記憶された状態となり易い。したがって、この種の装置では、データファイルの記憶装置への記憶に際して、指示されたディレクトリ内に、指示されたファイル名のファイルが既に記憶されていることが多く、これに起因して、複数回に亘ってファイル名を変更する必要が生じることがある。 As described above, in the conventional spectroscopic measurement system, when the data file is stored in the storage device, the central control unit newly stores the file name of the data file to be stored and the file already stored in the storage device (hereinafter, “ The existing file is overwritten with a new data file (except when the operator accepts it) by executing the process of comparing the file name with the existing file (also called “existing file”). ) The situation is avoided. In this case, in this type of apparatus that records measurement data data files, there are many opportunities to generate a large number of the same type of measurement data by executing a plurality of measurement processes on one measurement object. In many cases, a character string indicating the name of a measurement target, a measurement date, or the like is indicated as the file name of each data file, so that a number of data files having the same file name are likely to be stored in one directory. . Therefore, in this type of device, when storing the data file in the storage device, the file with the specified file name is often stored in the specified directory, and as a result, a plurality of times. It may be necessary to change the file name over a period of time.
しかしながら、オペレーティングシステムによって規定された手順に従ってファイル名の重複をチェックする上記の処理では、記憶装置(情報記録媒体)からのファイル名情報の読み出しにある程度の時間を要するため、指定されたファイル名と、既存のファイルのファイル名との比較に長時間を要することとなる。このため、従来の分光測定システムでは、新たなデータファイルで既存のファイルを上書きすることなく(既存のファイルを消去することなく)、データファイルを所望のディレクトリに記憶させ得るファイル名を決定するのに長時間を要する結果、データファイルの記憶を短時間で完了させるのが困難となっているという問題点が存在する。 However, in the above processing for checking the duplication of the file name according to the procedure defined by the operating system, it takes a certain amount of time to read the file name information from the storage device (information recording medium). Therefore, it takes a long time to compare with the file name of an existing file. Therefore, in the conventional spectroscopic measurement system, a file name that can store the data file in a desired directory is determined without overwriting the existing file with a new data file (without deleting the existing file). As a result, it takes a long time to complete the storage of the data file in a short time.
本発明は、かかる問題点に鑑みてなされたものであり、情報記録媒体に記録されている既存のデータファイルを失うことなく、新たなデータファイルを短時間で確実に情報記録媒体に記録させ得る測定結果記録装置および測定結果記録方法を提供することを主目的とする。 The present invention has been made in view of such a problem, and a new data file can be reliably recorded on an information recording medium in a short time without losing an existing data file recorded on the information recording medium. It is a main object to provide a measurement result recording apparatus and a measurement result recording method.
上記目的を達成すべく、請求項1記載の測定結果記録装置は、測定結果のデータファイルを情報記録媒体に記録させる制御部と、当該制御部の演算結果を一時的に記憶する記憶部とを備えた測定結果記録装置であって、前記制御部は、前記情報記録媒体におけるいずれかのディレクトリに記録させる前記データファイルのファイル名本体部および拡張子からなるファイル名、および前記情報記録媒体におけるいずれかのディレクトリに記録されている前記データファイルのリネーム後のファイル名本体部および拡張子からなるファイル名のいずれかが指定されたときに、当該情報記録媒体に記録されているファイルのうちの比較対象とするファイルのファイル名本体部および拡張子からなるファイル名を特定可能なファイル名情報を当該情報記録媒体から読み出すと共に、前記指定されたファイル名を仮ファイル名として前記ファイル名情報に基づいて特定したファイル名と比較して当該仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているか否かを判別する第1の処理と、前記ファイル名情報に基づいて特定されるファイル名のうちの前記第1の処理における前記仮ファイル名との比較対象ではないファイル名を記憶させることなく当該仮ファイル名との比較対象のファイル名を前記記憶部内に規定されたファイル名記憶領域に記憶させる第2の処理との両処理を、前記いずれかのディレクトリに記録されているすべてのファイルについてそれぞれ実行し、前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されていないときに、当該仮ファイル名を正式なファイル名として決定する処理Aを実行し、前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているときに、予め規定された変更規則に従って当該仮ファイル名を新たな仮ファイル名にリネームすると共に前記ファイル名記憶領域にファイル名が記憶されている前記データファイルについては当該ファイル名記憶領域内のファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別し、かつ前記ファイル名記憶領域にファイル名が記憶されていない前記データファイルについては前記ファイル名情報に基づいて特定したファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別する処理Bを実行すると共に、当該処理Bの判別結果に応じて前記処理Aおよび当該処理Bのいずれかを実行する。
In order to achieve the above object, a measurement result recording apparatus according to
また、請求項2記載の測定結果記録装置は、請求項1記載の測定結果記録装置において、前記制御部は、前記仮ファイル名の拡張子とは相違する拡張子の前記ファイル名を当該仮ファイル名とは不一致と判別して前記第1の処理おける当該仮ファイル名との比較対象から除外する第3の処理を当該第1の処理に先立って実行すると共に、前記仮ファイル名の拡張子とは相違する拡張子の前記ファイル名を当該仮ファイル名とは不一致と判別して前記処理Bにおける当該仮ファイル名との比較対象から除外する第4の処理を当該処理Bに先立って実行する。
The measurement result recording apparatus according to
さらに、請求項3記載の測定結果記録装置は、請求項1または2記載の測定結果記録装置において、前記制御部は、指定された文字列と予め規定された生成規則に従って生成した文字列とを予め規定された順序で組み合わせた文字列を前記指定されたファイル名として前記第1の処理を実行すると共に、前記処理Bにおいて、前記生成規則に従って生成した前記文字列を前記変更規則に従って変更して前記仮ファイル名を前記新たな仮ファイル名にリネームする。
Furthermore, in the measurement result recording apparatus according to
また、請求項4記載の測定結果記録装置は、請求項1から3のいずれかに記載の測定結果記録装置において、前記制御部は、前記第2の処理において前記ファイル名記憶領域の記憶可能容量が予め規定された容量を下回った状態で当該ファイル名記憶領域に新たなファイル名を記憶させるときに、当該ファイル名記憶領域に記憶されているファイル名のうちの最先に記憶させたファイル名が記憶されている領域に前記新たなファイル名を記憶させる。
The measurement result recording apparatus according to
また、請求項5記載の測定結果記録方法は、測定結果のデータファイルを情報記録媒体に記録可能に構成された測定結果記録装置において当該データファイルを当該情報記録媒体に記録させる測定結果記録方法であって、前記情報記録媒体におけるいずれかのディレクトリに記録させる前記データファイルのファイル名本体部および拡張子からなるファイル名、および前記情報記録媒体におけるいずれかのディレクトリに記録されている前記データファイルのリネーム後のファイル名本体部および拡張子からなるファイル名のいずれかが指定されたときに、当該情報記録媒体に記録されているファイルのうちの比較対象とするファイルのファイル名本体部および拡張子からなるファイル名を特定可能なファイル名情報を当該情報記録媒体から読み出すと共に、前記指定されたファイル名を仮ファイル名として前記ファイル名情報に基づいて特定したファイル名と比較して当該仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているか否かを判別する第1の処理と、前記ファイル名情報に基づいて特定されるファイル名のうちの前記第1の処理における前記仮ファイル名との比較対象ではないファイル名を記憶させることなく当該仮ファイル名との比較対象のファイル名を前記測定結果記録装置の記憶部内に規定されたファイル名記憶領域に記憶させる第2の処理との両処理を、前記いずれかのディレクトリに記録されているすべてのファイルについてそれぞれ実行し、前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されていないときに、当該仮ファイル名を正式なファイル名として決定する処理Aを実行し、前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているときに、予め規定された変更規則に従って当該仮ファイル名を新たな仮ファイル名にリネームすると共に前記ファイル名記憶領域にファイル名が記憶されている前記データファイルについては当該ファイル名記憶領域内のファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別し、かつ前記ファイル名記憶領域にファイル名が記憶されていない前記データファイルについては前記ファイル名情報に基づいて特定したファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別する処理Bを実行すると共に、当該処理Bの判別結果に応じて前記処理Aおよび当該処理Bのいずれかを実行する。
The measurement result recording method according to
請求項1記載の測定結果記録装置、および請求項5記載の測定結果記録方法では、仮ファイル名のデータファイルが「いずれかのディレクトリ」に記録されていないときに、仮ファイル名を正式なファイル名として決定する処理Aを実行し、仮ファイル名のデータファイルが「いずれかのディレクトリ」に記録されているときに、その仮ファイル名を新たな仮ファイル名にリネームすると共に、記憶部内に規定されたファイル名記憶領域にファイル名が記憶されているデータファイルについてはファイル名記憶領域内のファイル名および仮ファイル名を比較し、かつファイル名記憶領域にファイル名が記憶されていないデータファイルについては情報記録媒体から読み出したファイル名情報に基づいて特定したファイル名および仮ファイル名を比較することで、仮ファイル名のデータファイルが「いずれかのディレクトリ」に記録されているかを判別する処理Bを実行し、処理Bの判別結果に応じて処理Aおよび処理Bのいずれかを実行するとの処理を、処理Aの実行によって正式なファイル名が決定されるまで繰り返す。
6. The measurement result recording apparatus according to
したがって、請求項1記載の測定結果記録装置、および請求項5記載の測定結果記録方法によれば、仮ファイル名と同一のファイル名のデータファイルが「いずれかのディレクトリ」に記録されているかをチェックする際に、そのディレクトリに記録されているデータファイルのうちのファイル名記憶領域にファイル名を記憶させることができる数分のデータファイルについては、対応するファイル名情報を情報記録媒体から1回読み出すだけで、その後に他の仮ファイル名との比較を行う際に、ファイル名情報の読み出しよりも短時間で読み出し可能なファイル名記憶領域内のファイル名を比較対象として、仮ファイル名と同一のファイル名のデータファイルが「いずれかのディレクトリ」に記録されているかをチェックすることができる。このため、情報記録媒体に既に記録されているデータファイルのファイル名とは相違するファイル名を短時間で決定することができる結果、既存のデータファイルを失うことなく、新たなデータファイルを短時間で確実に情報記録媒体に記録させることができる。
Therefore, according to the measurement result recording apparatus according to
また、請求項2記載の測定結果記録装置によれば、仮ファイル名の拡張子とは相違する拡張子のファイル名を仮ファイル名とは不一致と判別して第1の処理および処理Bにおける仮ファイル名との比較対象から除外する第3の処理および第4の処理を実行することにより、新たに記録させるデータファイルとは拡張子が相違することで、そのデータファイルの記録によって消去されることのないファイルについての不要な比較処理を行わない分だけ、情報記録媒体に既に記録されているデータファイルのファイル名とは相違するファイル名を一層短時間で特定することができる。 According to the measurement result recording apparatus of the second aspect, the file name having an extension different from the extension of the temporary file name is determined to be inconsistent with the temporary file name, and the temporary process in the first process and the process B is determined. By executing the third process and the fourth process excluded from the comparison target with the file name, the extension is different from that of the newly recorded data file, so that the file is erased by recording the data file. As long as unnecessary comparison processing is not performed on a file having no data, a file name different from the file name of the data file already recorded on the information recording medium can be specified in a shorter time.
さらに、請求項3記載の測定結果記録装置によれば、指定された文字列と生成規則に従って生成した文字列とを予め規定された順序で組み合わせた文字列を「指定されたファイル名」として第1の処理を実行すると共に、処理Bにおいて、上記の生成規則に従って生成した文字列を変更して仮ファイル名を新たな仮ファイル名にリネームすることにより、例えば、ファイル名を構成する文字列のすべてを制御部が変更規則に従って変更して新たな仮ファイル名とする構成(方法)とは異なり、仮ファイル名をどのように変更したとしても、利用者が最初に指定した文字列を含んだファイル名が仮ファイル名として生成されるため、利用者が最初に指定した文字列に基づき、どのような測定データについてのデータファイルであるかを利用者に対して確実に認識させ得るファイル名を正式なファイル名として決定することができる。
Furthermore, according to the measurement result recording apparatus of
また、請求項4記載の測定結果記録装置によれば、第2の処理においてファイル名記憶領域の記憶可能容量が予め規定された容量を下回った状態でファイル名記憶領域に新たなファイル名を記憶させるときに、ファイル名記憶領域に記憶されているファイル名のうちの最先に記憶させたファイル名が記憶されている領域に新たなファイル名を記憶させることにより、新たなデータファイルを記録させるディレクトリ内に記録されている各データファイルのうちの、ファイル名記憶領域にファイル名が記録されていないデータファイルのファイル名と仮ファイル名とを比較する際に、ファイル名記憶領域にファイル名が記憶されているデータファイルについてのファイル名情報を読み飛ばすという不要な処理(ディレクトリエントリ領域からファイル名情報を読み出すが、比較処理等を行わずにそのまま破棄して、次のファイル名情報を読み出すとの処理)を行うことなく、ディレクトリエントリ領域におけるファイル名情報の記録領域の先頭部位に記録されているファイル名情報から順に読み出して仮ファイル名と比較することができるため、情報記録媒体に既に記録されているデータファイルのファイル名とは相違するファイル名を一層短時間で特定することができる。 According to the measurement result recording apparatus of the fourth aspect, a new file name is stored in the file name storage area in a state where the storable capacity of the file name storage area falls below a predetermined capacity in the second process. A new data file is recorded by storing the new file name in the area where the file name stored first among the file names stored in the file name storage area is stored. Among the data files recorded in the directory, when comparing the file name of a data file whose file name is not recorded in the file name storage area with the temporary file name, the file name is stored in the file name storage area. Unnecessary processing of skipping file name information for stored data files (from directory entry area The file name information is read out, but it is discarded without performing comparison processing, etc., and the next file name information is read out, and recorded at the head part of the file name information recording area in the directory entry area. Since the file name information can be read out sequentially and compared with the temporary file name, a file name different from the file name of the data file already recorded on the information recording medium can be specified in a shorter time. it can.
以下、測定結果記録装置および測定結果記録方法の実施の形態について、添付図面を参照して説明する。 Hereinafter, embodiments of a measurement result recording apparatus and a measurement result recording method will be described with reference to the accompanying drawings.
図1に示す測定結果記録装置1は、測定部2、操作部3、表示部4、制御部5および記憶部6を備えると共にメモリーカード7を装着可能に構成されて、後述する測定結果記録方法に従って、測定部2による測定処理の結果を示すデータファイル(測定データファイルD2)をメモリーカード7に記録させることができるように構成されている。測定部2は、制御部5の制御に従って測定処理を実行し、入力信号SiをA/D変換処理して測定データD1を生成すると共に、生成した測定データD1を制御部5に出力する。操作部3は、測定部2による測定処理の条件を設定したり、後述するメモリーカード7への測定データファイルD2の記録に際してファイル名やディレクトリ名を指示したりするための操作スイッチを備え、スイッチ操作に応じた操作信号を制御部5に出力する。表示部4は、制御部5の制御に従い、測定結果記録装置1の動作条件を設定するための動作条件設定画面、測定部2による測定処理の結果を表示するための測定結果表示画面、および測定データファイルD2の記録条件を指示するための記録条件指示画面(いずれも図示せず)などを表示する。
A measurement
制御部5は、測定結果記録装置1を総括的に制御する。具体的には、制御部5は、測定部2を制御して測定処理を実行させると共に、測定部2から出力された測定データD1を記憶部6に記憶させる。また、制御部5は、表示部4を制御して測定データD1に基づく測定結果(測定結果表示画面)を表示させる。さらに、制御部5は、一例として、測定部2による測定処理が完了したときや、測定処理の実行中に操作部3の操作によって利用者から指示されたときに、記憶部6に記憶されている測定データD1に基づいて測定データファイルD2を生成してメモリーカード7に記録させるデータ記録処理を実行する。この場合、この測定結果記録装置1では、上記のデータ記録処理の実行時や、メモリーカード7に記録されているファイル(測定データファイルD2等)のファイル名をリネームする操作が行われたときに、制御部5が、図3に示すファイル名決定処理20を実行して、対象のファイルのファイル名を決定する構成が採用されている。
The
記憶部6は、「記憶部」の一例であって、例えば、半導体メモリ(RAM)で構成されて、測定部2から出力された測定データD1や、制御部5の演算結果などを一時的に記憶する。この場合、この測定結果記録装置1では、制御部5がファイル名決定処理20を実行する際に、図2に示すように、重複フラグ記憶領域11、消去数カウンター領域12、読出し完了数カウンター領域13およびファイル名記憶領域14が記憶部6内に規定されて、ファイル名の決定に必要となる各種の情報がこれらの各領域に記憶される。なお、各領域11〜14に記憶される情報の内容や情報が記憶されるタイミングについては、後に詳細に説明する。一方、メモリーカード7は、「情報記録媒体」の一例であって、測定データファイルD2を含む各種のファイルを記憶可能に構成されている。なお、メモリーカード7に代えて、ハードディスクドライブ(ハードディスク)、光ディスクドライブ(光ディスク)および光磁気ディスクドライブ(光磁気ディスク)などの各種の情報記録媒体に測定データファイルD2等を記録させる構成を採用することができる。
The
この測定結果記録装置1による測定データファイルD2の記録処理に際しては、まず、操作部3を操作して、測定部2による測定処理の条件を設定する。次いで、一例として、操作部3の図示しない処理開始スイッチが操作されたときに、制御部5は、設定された条件に従って測定部2を制御して測定処理を実行させる。この際に、測定部2は、入力信号SiをA/D変換処理して測定データD1を生成すると共に、生成した測定データD1を制御部5に順次出力する。また、制御部5は、測定部2から出力された測定データD1を記憶部6内の予め規定された領域(測定データ記憶領域)に順次記憶させると共に、測定データD1に基づく測定結果を表示部4に表示させる。この後、制御部5は、予め設定された終了条件(終了時刻の到来や、設定された量の測定データD1が得られたときなど)が満たされるか、または、操作部3の図示しない処理終了スイッチが操作されたときに、測定部2を制御して測定処理を終了させると共に、記憶部6への測定データD1の記憶処理、および表示部4への測定結果の表示処理を終了する。
In the recording process of the measurement data file D2 by the measurement
また、制御部5は、一例として、上記の一連の処理を終了した時点において、記憶部6に記憶されている測定データD1の測定データファイルD2をメモリーカード7に記録させるための記録条件を指示させる記録条件指示画面(図示せず)を表示部4に表示させる。具体的には、制御部5は、記録条件指示画面を表示部4に表示させることにより、測定データファイルD2を記録させるメモリーカード7内のディレクトリと、測定データファイルD2のファイル名に含ませる任意の文字列とを指示させる。この際には、一例として、操作部3のスイッチ操作によって、「data」とのディレクトリ(以下、「/data」 ともいう)に、「USER」との文字列を含むファイル名で測定データファイルD2を記録させるとの条件が指示される(「情報記録媒体における[いずれかのディレクトリ]に記録させるデータファイルのファイル名が指定されたとき」の一例)。また、制御部5は、上記の条件が指示されたときに、図3に示すファイル名決定処理20を開始する。
For example, the
このファイル名決定処理20では、制御部5は、まず、記憶部6におけるファイル名記憶領域14等をクリアすると共に、利用者によって指示された「USER」との文字列を使用して測定データファイルD2の仮ファイル名を決定する(ステップ21)。具体的には、制御部5は、重複フラグ記憶領域11および消去数カウンター領域12内にそれぞれ「0」との値を記憶させることにより、重複フラグの値および消去数カウンターの値をリセットすると共に、ファイル名記憶領域14内に予め規定された初期値(一例として、文字列ターミネータ)を記憶させることでこの領域をクリアする。
In this file
この場合、ファイル名記憶領域14は、メモリーカード7に記録されている各ファイルのファイル名のうちの後述するステップ29においてファイル名の同一性を比較されるファイル名が一時的に記憶される領域であって、一例として、1000個のファイル名を記憶可能に規定されている。また、重複フラグ記憶領域11は、後述するステップ29においてファイル名が同一と判別されたときに値が「0」から「1」に変更される「重複フラグ」の値を記憶する領域であり、消去数カウンター領域12は、後述するステップ27においてファイル名記憶領域14に空き領域が存在しないと判別されて、後述するステップ31においてファイル名記憶領域14内のファイル名が消去されたときにカウントアップされる「消去数カウンター」の値を記憶する領域である。
In this case, the file
また、この測定結果記録装置1では、一例として、メモリーカード7等に記録させる際の測定データファイルD2のファイル名における拡張子を「MEM」 とするように規定されている。さらに、この測定結果記録装置1では、一例として、利用者によって指示された文字列(「指定された文字列」の一例:この例では「USER」との文字列)と、「0001」を初期値として、必要に応じて「0002」、「0003」・・と順次カウントアップされる4桁の数値を示す文字列(「予め規定された生成規則に従って生成した文字列」の一例)とをこの順で並べることにより(「予め規定された順序」の一例)、ファイル名における本体部(拡張子を除く部位)を構成する文字列を生成するように規定されている。したがって、上記のステップ21においては、「USER0001.MEM」とのファイル名を「指定されたファイル名」として生成されて、このファイル名が「仮ファイル名」として決定される。なお、この例においては、後述するように、上記の4桁の数値を示す文字列を「0001」から「0002」、「0003」・・と順次カウントアップするとの事項が「予め規定された変更規則」に相当する。
In the measurement
次いで、制御部5は、メモリーカード7のディレクトリエントリ領域からファイル名情報を読み出す(ステップ22)。この際に、制御部5は、メモリーカード7における「/data」 に記録されている各ファイル(測定データファイルD2およびその他のファイルを含む全てのファイル)の各ファイル名情報のうちの「ディレクトリエントリ領域内に最初に記録されているファイル名情報(ディレクトリエントリ領域におけるファイル名情報の記録領域における先頭部位に記憶されているファイル名情報)」を読み出す。続いて、制御部5は、読み出したファイル名情報に基づいて特定したファイル名(以下、単に「読み出したファイル名」ともいう)の拡張子と、測定データファイルD2の拡張子として規定されている拡張子(この例では、「MEM」 )とが同一であるか否かを判別する(ステップ23)。この際に、読み出したファイル名が、例えば「aaaa.txt」であったときに、制御部5は、拡張子が一致しないと判別する。
Next, the
また、この例では、拡張子が互いに相違するため、読み出したファイル名の本体部、および後に記録させる測定データファイルD2のファイル名の本体部がどのような文字列で構成されていたとしても、その測定データファイルD2をメモリーカード7に記録したときに、読み出したファイル名情報のファイルが、測定データファイルD2の上書きによって消去される事態を招くことがない。したがって、制御部5は、ファイル名の本体部同士の比較を行うことなく、両ファイル名が不一致であるとして、読み出したファイル名を比較対象から除外すると共に(「第3の処理」の一例)、「/data」 に記録されているすべてのファイルについてのファイル名の比較が完了したか否かを判別する(ステップ24)。
In this example, since the extensions are different from each other, no matter what character string the body part of the read file name and the body part of the file name of the measurement data file D2 to be recorded later are configured. When the measurement data file D2 is recorded on the
この際に、「aaaa.txt」とのファイル名のファイル以外のファイルが「/data」 に存在しないときには、制御部5は、重複フラグ記憶領域11内の情報(重複フラグの値)が「0」であると判別した後に(ステップ25)、「USER0001.MEM」との仮ファイル名を正式なファイル名として決定して(ステップ26)、このファイル名決定処理20を終了する。次いで、制御部5は、記憶部6から測定データD1を読み出して測定データファイルD2を生成すると共に、生成した測定データファイルD2を、操作部3の入力操作によって指示されたディレクトリ(この例では、「/data」 )に、上記のファイル名決定処理20で決定したファイル名(この例では、「USER0001.MEM」とのファイル名)で記録させる。これにより、測定データファイルD2の記録処理が完了する。
At this time, if a file other than the file with the file name “aaaa.txt” does not exist in “/ data”, the
一方、ファイル名決定処理20における上記のステップ23において、読み出したファイル名の拡張子と仮ファイル名の拡張子とが同一であると判別したき(一例として、読み出したファイル名が「aaaa0001.MEM」であったとき)には、制御部5は、記憶部6のファイル名記憶領域14に空き領域が存在するか否かを判別する(ステップ27)。この際には、ファイル名記憶領域14に十分な記憶領域が存在すると判別し、制御部5は、読み出したファイル名のうちの本体部を構成する文字列(この例では、「aaaa0001」との文字列)をファイル名記憶領域14に記憶させる(「第2の処理」の一例:ステップ28)。
On the other hand, in
次いで、制御部5は、読み出したファイル名(ファイル名情報に基づいて特定したファイル名)と、仮ファイル名とを比較して、両ファイル名が同一であるか否かを判別する(「仮ファイル名のデータファイルが、[いずれかのディレクトリ]に記録されているか否かを判別する第1の処理」の一例:ステップ29)。この際には、両ファイル名が同一ではないため、制御部5は、上記のステップ24の判別処理を再び実行する。この際に、「aaaa0001.MEM」とのファイル名の測定データファイルD2以外のファイルが「/data」 に存在しないときには、制御部5は、ステップ25において値が「0」であると判別した後に、「aaaa0001.MEM」との仮ファイル名を正式なファイル名として決定して(「処理A」の一例:ステップ26)、このファイル名決定処理20を終了する。これにより、測定データD1に基づいて生成された測定データファイルD2がメモリーカード7における「/data」 に「aaaa0001.MEM」とのファイル名で記録されて記録処理が完了する。
Next, the
また、ファイル名決定処理20における上記のステップ29において、読み出したファイル名(ファイル名情報に基づいて特定したファイル名)と、仮ファイル名とが同一であると判別したときに、制御部5は、記憶部6における重複フラグ記憶領域11に「1」との値を記憶させる(重複フラグを「1」にする:ステップ30)。次いで、制御部5は、上記のステップ24を実行して、「/data」 に記録されている他のファイルのファイル名と仮ファイル名との比較を完了していないと判別したときに、上記のステップ22に戻ってファイル名情報を読み出す。この際には、メモリーカード7における「/data」 に記録されている各ファイル(測定データファイルD2およびその他のファイルを含む全てのファイル)のファイル名情報のうちの、ディレクトリエントリ領域内に2番目に記録されているファイル名情報を読み出す。次いで、制御部5は、上記のステップ23以降の各ステップを順次実行する。
Further, when it is determined in
この場合、1000個以上の測定データファイルD2が「/data」 に記録されているときには、上記のステップ28を1000回実行した時点において、ファイル名記憶領域14の空き領域(既に記憶されているファイル名を消去することなく新たなファイル名を記憶可能な領域)がなくなる(「ファイル名記憶領域の記憶可能容量が予め規定された容量を下回った状態」の一例)。したがって、制御部5は、「/data」 に記憶されている多数の測定データファイルD2のうちの1001個目の測定データファイルD2についてのファイル名情報をメモリーカード7から読み出したときに(ステップ22)、その拡張子が「MEM」 であると判別した後に(ステップ23)、ファイル名記憶領域14に空き領域が存在しないと判別する(ステップ27)。
In this case, when 1000 or more measurement data files D2 are recorded in “/ data”, when the
この際に、制御部5は、ファイル名記憶領域14に記憶されている1000個のファイル名のうちの最先に記憶させたファイル名を消去すると共に、消去数カウンター領域12の値をカウントアップする(ステップ31)。次いで、制御部5は、1001個目の測定データファイルD2についてのファイル名を、上記のステップ31においてファイル名を消去した領域に記憶させる(ステップ28)。なお、最先に記憶させたファイル名をステップ31において消去した後に、新たなファイル名をステップ28において記憶させることで、最先に記憶させたファイル名が記憶されていた領域に新たなファイル名を記憶させる上記の方法に代えて、最先に記憶させたファイル名が記憶されている領域に新たなファイル名を直接上書きする方法を採用することもできる。続いて、制御部5は、1001個目の測定データファイルD2についてのファイル名と仮ファイル名とが同一であるか否かを判別した後に(ステップ29)、上記のステップ30以降の各処理を実行する。
At this time, the
一方、前述したように、制御部5は、「/data」 に記録されているすべてのファイルのファイル名と仮ファイル名との比較を完了したか否かの判別の後に(ステップ24)、重複フラグの値が「1」であるか否かを判別する(ステップ25)。この際に、「/data」 に記録されている各ファイルのファイル名を対象する上記のステップ29の判別処理において、両ファイル名が同一ではないと判別されたとき(すなわち、仮ファイル名と同一のファイル名の測定データファイルD2が「/data」 に存在しないとき)には、上記のステップ30の処理が実行されないため、重複フラグの値が、上記のステップ21においてクリアされた際の「0」との値となっている。したがって、重複フラグの値が「0」のときには、前述したように、制御部5は、仮ファイル名を正式なファイル名として決定して、このファイル名決定処理20を終了する。
On the other hand, as described above, after determining whether or not the comparison between the file names of all the files recorded in “/ data” and the temporary file names has been completed (step 24), the
また、仮ファイル名と同一のファイル名の測定データファイルD2が「/data」 に存在するときには、上記のステップ29の判別処理の後に上記のステップ30が実行されて、重複フラグの値が「1」となる。このような例においては、仮ファイル名を正式なファイル名として決定したときに、メモリーカード7に新たに記録される測定データファイルD2が、仮ファイル名と同一のファイル名の既存の測定データファイルD2に上書きされて、既存の測定データファイルD2が消去されることとなる。したがって、制御部5は、上記のステップ24において重複フラグの値が「1」であると判別したときに、図4に示すファイル名変更処理40を実行する。
When the measurement data file D2 having the same file name as the temporary file name exists in “/ data”, the
このファイル名変更処理40では、上記のステップ21において決定したファイル名を、新たな仮ファイル名に変更する(仮ファイル名のリネーム:ステップ41)。具体的には、制御部5は、ステップ21において決定した「USER0001.MEM」とのファイル名を構成する文字列のうちの「0001」との文字列(「予め規定された生成規則に従って生成した文字列」の一例)を「0002」にカウントアップすると共に、ファイル名決定処理20の開始に先立って利用者によって指示された「USER」との文字列、および「0002」との文字列をこの順で並べてファイル名の本体部とし、かつ、測定データファイルD2の拡張子として予め規定された「MEM」 との文字列を組み合わせて「USER0002.MEM」とのファイル名を生成して、生成したファイル名を新たな仮ファイル名として決定する。これにより、仮ファイル名のリネームが完了する。
In this file
次いで、制御部5は、消去数カウンター領域12に記憶されている消去数カウンターの値が「0」であるか否かを判別する(ステップ42)。この際に、メモリーカード7における「/data」 に既存の測定データファイルD2が存在し、その数が1000個以下であるときには、「/data」 に記録されているすべての測定データファイルD2のファイル名をファイル名記憶領域14に記憶させることができるため、上記のステップ27において空き領域が存在しないと判別されてステップ31(ファイル名記憶領域14に記憶されているファイル名の消去、および消去数カウンターのカウントアップ)が実行されることがない。したがって、制御部5は、消去数カウンターの値が「0」のときには、上記のステップ41において変更した(新たに決定した)仮ファイル名と、ファイル名記憶領域14に記憶されているファイル名とを比較して(ステップ43)、両ファイル名が同一であるか否かを判別する(ステップ44)。
Next, the
この際に、記憶部6のファイル名記憶領域14に記憶されているファイル名の読み出しに要する時間は、メモリーカード7等の情報記録媒体におけるディレクトリエントリ領域に記録されているファイル名情報の読み出しに要する時間と比較して、数十分の1から数百分の1程度の極く短い時間となっている。したがって、ファイル名記憶領域14から読み出したファイル名と仮ファイル名とを比較することで「/data」 に仮ファイル名の測定データファイルD2が記録されているか否かを判別するこの測定結果記録装置1では、メモリーカード7から読み出したファイル名情報に基づいて特定されるファイル名と仮ファイル名とを比較することで「/data」 に仮ファイル名の測定データファイルD2が記録されているか否かを判別するのと比べて、極く短時間でファイル名の比較処理を完了させることが可能となっている。
At this time, the time required for reading the file name stored in the file
なお、この例では、仮ファイル名を変更する上記のステップ41から、ファイル名記憶領域14内のファイル名と仮ファイル名とを比較することで「/data」 に仮ファイル名と同一のファイル名の測定データファイルD2が記録されているか否かを判別する上記のステップ44までの処理が「処理B」に相当する。また、制御部5は、上記のステップ44において、ファイル名記憶領域14に記憶されているファイル名と仮ファイル名とが同一であると判別したときに、上記のステップ41に戻って仮ファイル名を新たな仮ファイル名に変更する。この際には「USER0003.MEM」とのファイル名が新たなファイル名として決定されて、ステップ42の判別処理が実行される(「処理B」の判別結果に応じて「処理B」が実行される例)。また、上記のステップ44において、両ファイル名が同一ではないと判別したときに、制御部5は、このファイル名変更処理40を終了して、上記のステップ41において新たに決定したファイル名を正式なファイル名として決定して(ステップ26)、ファイル名決定処理20を終了する(「処理B」の判別結果に応じて「処理A」が実行される例)。
In this example, from the
一方、上記のステップ42において消去数カウンターの値が「1」以上のとき(すなわち、「/data」 に記録されている1001個以上の測定データファイルD2のファイル名の一部がファイル名記憶領域14に記憶されていないとき)には、上記のステップ27において空き領域が存在しないと判別されて上記のステップ31が実行されているため、「/data」 に記録されている各測定データファイルD2のうちの一部の測定データファイルD2については、そのファイル名がファイル名記憶領域14に記憶されていないこととなる。したがって、制御部5は、消去数カウンターの値が「1」以上のときには、まず、読出し完了数カウンター領域13に「0」との値を記憶させることによって、読出し完了数カウンターの値をリセットする(ステップ45)。この場合、読出し完了数カウンター領域13は、後述するステップにおいてメモリーカード7等のディレクトリエントリ領域からのファイル名情報の読み出しを実行したときにカウントアップされる「読出し完了数カウンター」の値を記憶する領域である。
On the other hand, when the value of the erasure number counter is “1” or more in the above step 42 (that is, part of the file names of 1001 or more measurement data files D2 recorded in “/ data” is a file name storage area) 14), since it is determined in
次いで、制御部5は、メモリーカード7のディレクトリエントリ領域からファイル名情報を読み出す(ステップ46)。この際に、制御部5は、前述したステップ22の読出し処理時と同様にして、メモリーカード7における「/data」 に記録されている各ファイル(測定データファイルD2およびその他のファイルを含む全てのファイル)のファイル名情報のうちの「ディレクトリエントリ領域内に最初に記録されているファイル名情報」を読み出す。続いて、制御部5は、読み出したファイル名情報に基づいて特定したファイル名(読み出したファイル名)の拡張子と、測定データファイルD2の拡張子として規定された拡張子(この例では、「MEM」 )とが同一であるか否かを判別する(ステップ47)。
Next, the
この際に、読み出したファイル名の拡張子が「MEM」 ではなかったとき(すなわち、上記のステップ46において測定データファイルD2以外のファイルのファイル名を読み出したとき)には、読み出したファイル名の本体部、および後に記録させる測定データファイルD2のファイル名の本体部がどのような文字列で構成されていたとしても、測定データファイルD2をメモリーカード7に記録したときに、読み出したファイル名情報のファイルが、測定データファイルD2の上書きによって消去される事態を招くことがない。したがって、制御部5は、ファイル名の本体部同士の比較を行うことなく、両ファイル名が不一致であるとして、読み出したファイル名を比較対象から除外すると共に(「第4の処理」の一例)、ステップ46に戻って、「/data」 に記録されている各ファイルのファイル名情報のうちの「ディレクトリエントリ領域内に2番目に記録されてファイル名情報」を読み出して、ステップ47の判別処理を実行する。
At this time, when the extension of the read file name is not “MEM” (that is, when the file name of the file other than the measurement data file D2 is read in the above step 46), the read file name Regardless of what character string is used for the main body and the main body of the file name of the measurement data file D2 to be recorded later, the file name information read when the measurement data file D2 is recorded on the
また、上記のステップ47において、読み出したファイル名の拡張子と仮ファイル名の拡張子とが同一であると判別したときには、制御部5は、読み出したファイル名と仮ファイル名とを比較して(ステップ48)、両ファイル名が同一であるか否かを判別する(ステップ49)。この際に、読み出したファイル名と仮ファイル名とが同一のとき(すなわち、仮ファイル名と同一のファイル名の測定データファイルD2が「/data」 に存在するとき)には、その仮ファイル名を正式なファイル名として決定して測定データファイルD2を「/data」 に記録させたときに、ステップ46においてファイル名情報を読み出したファイル(仮ファイル名と同じファイル名の既存の測定データファイルD2)が、新たな測定データファイルD2の記録によって消去されてしまう。したがって、制御部5は、読み出したファイル名と仮ファイル名とが同一のときに、上記のステップ41に戻って、仮ファイル名を新たな仮ファイル名に変更した後に、ステップ42以降の処理を再び実行する。
When it is determined in
一方、上記のステップ49において読み出したファイル名と仮ファイル名とが同一ではないと判別したときに、制御部5は、読出し完了数カウンターの値をカウントアップすると共に(ステップ50)、カウントアップ後の読出し完了数カウンターの値と、消去数カウンターの値とが一致するか否かを判別する(ステップ51)。
On the other hand, when it is determined that the file name read in
この場合、一例として、「/data」 に1001個の測定データファイルD2が記録されているときには、1001個目の測定データファイルD2についてのファイル名情報の読み出しに先立って実行された1000個の測定データファイルD2についてのファイル名の記憶(ステップ28)によって、1000個のファイル名がファイル名記憶領域14に記憶された状態となる。このため、この例では、ステップ22の処理において1001個目の測定データファイルD2についてのファイル名情報が読み出されて、その後のステップ27においてファイル名記憶領域14に空き領域が存在しないと判別されて、ステップ31において、最先に記憶させたファイル名がファイル名記憶領域14から消去され、かつ消去数カウンターの値がカウントアップされることとなる。
In this case, as an example, when 1001 measurement data files D2 are recorded in “/ data”, 1000 measurements executed prior to reading the file name information for the 1001st measurement data file D2 By storing the file name for the data file D2 (step 28), 1000 file names are stored in the file
したがって、「/data」 に記憶されている各測定データファイルD2については、消去数カウンターの値の数分の測定データファイルD2を除いて、そのファイル名がファイル名記憶領域14に記憶されているため、制御部5は、消去数カウンターの値の数分の測定データファイルD2については、メモリーカード7のディレクトリエントリ領域から読み出したファイル名情報に基づいて特定されるファイル名と仮ファイル名とを比較することで、その測定データファイルD2のファイル名が仮ファイル名と一致するかを判別する(「ファイル名記憶領域にファイル名が記憶されていないデータファイルについての処理B」の一例:ステップ48,49)。
Therefore, with respect to each measurement data file D2 stored in “/ data”, the file names are stored in the file
この場合、前述したステップ31において、ファイル名記憶領域14に記憶されているファイル名のうちの最先に記憶させたファイル名に代えて、例えば、最新に記憶させたファイル名を消去する方法を採用したときには、ディレクトリエントリ領域の1001番目のファイル名情報に基づいて特定されるファイル名と仮ファイル名とを比較する際に、ディレクトリエントリ領域の1000番目のファイル名情報に基づいて特定されたファイル名がファイル名記憶領域14から消去されることとなる。したがって、この例では、上記のステップ46において、この1000番目のファイル名情報をディレクトリエントリ領域から読み出す必要が生じる。このため、1000番目のファイル名情報を読み出すために、999個の不要なファイル名情報(対応するファイル名がファイル名記憶領域14に記憶されているファイル名情報)を読み飛ばす処理が必要となってしまう。
In this case, in
これに対して、前述したステップ31において、ファイル名記憶領域14に記憶されているファイル名のうちの最先に記憶させたファイル名を消去する本例では、「/data」 に1001個の測定データファイルD2が存在する上記の例において、ディレクトリエントリ領域に最初に記録されているファイル名情報に対応する測定データファイルD2のファイル名がファイル名記憶領域14に記憶されていないこととなる。したがって、上記のステップ46においては、ディレクトリエントリ領域から最初のファイル名情報を読み出すことで、ファイル名記憶領域14にファイル名が記憶されていない測定データファイルD2のファイル名を特定することができる。このため、ステップ31において、最新に記憶させたファイル名を消去する上記の例とは異なり、不要なファイル名情報を読み飛ばす処理が不要となる分だけ、測定データファイルD2についてのファイル名の比較処理を短時間で実施することが可能となっている。
On the other hand, in this example in which the file name stored first in the file names stored in the file
一方、消去数カウンターの値の数分だけ上記のステップ48,49を実行することで、その後に実行されるステップ50において読出し完了数カウンターの値が消去数カウンターの値と一致する状態となったとき(すなわち、消去数カウンターの値の数分のファイル名の比較処理が完了したとき)には(ステップ51)、制御部5は、前述したステップ43,44の処理を実行する。これにより、「/data」 に記録されている測定データファイルD2のうちの消去数カウンターの値の数分を除く測定データファイルD2については、ファイル名記憶領域14内に記録されているファイル名と仮ファイル名とが比較されることで、その測定データファイルD2のファイル名が仮ファイル名と一致するかが判別される(「ファイル名記憶領域にファイル名が記憶されているデータファイルについての処理B」の一例)。
On the other hand, by executing the above-described
この後、制御部5は、上記のステップ44においてファイル名記憶領域14内のファイル名と仮ファイル名とが同一ではないと判別したときに、このファイル名変更処理40を終了して、仮ファイル名を正式なファイル名として決定する(ステップ26)。次いで、制御部5は、記憶部6から測定データD1を読み出して測定データファイルD2を生成すると共に、生成した測定データファイルD2を、操作部3の入力操作によって指示されたディレクトリに、上記のファイル名決定処理20で決定したファイル名で記録させる。これにより、測定データファイルD2の記録処理が完了する。
Thereafter, when the
なお、新たな測定データファイルD2をメモリーカード7に記録させる際の処理に関して説明したが、メモリーカード7内の「いずれかのディレクトリ」に記録されている測定データファイルD2(既存の測定データファイルD2)のリネームに際しても、リネーム後のファイル名が指定されたときに、上記のファイル名決定処理20が実行されて、ファイル名の重複チェック、および正式なファイル名の決定が行われる。これにより、既存の測定データファイルD2のファイル名がファイル名決定処理20によって決定された新たなファイル名にリネームされる。
The process for recording a new measurement data file D2 on the
このように、この測定結果記録装置1、および測定結果記録装置1における測定結果記録方法では、仮ファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されていないときに、仮ファイル名を正式なファイル名として決定する「処理A」を実行し、仮ファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されているときに、その仮ファイル名を新たな仮ファイル名にリネームすると共に、記憶部6内に規定されたファイル名記憶領域14にファイル名が記憶されている測定データファイルD2についてはファイル名記憶領域14内のファイル名および仮ファイル名を比較し、かつファイル名記憶領域14にファイル名が記憶されていない測定データファイルD2についてはメモリーカード7から読み出したファイル名情報に基づいて特定したファイル名および仮ファイル名を比較することで、仮ファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されているかを判別する「処理B」を実行し、「処理B」の判別結果に応じて「処理A」および「処理B」のいずれかを実行するとの処理を、「処理A」の実行によって正式なファイル名が決定されるまで繰り返す。
As described above, in the measurement
したがって、この測定結果記録装置1、およびその測定結果記録方法によれば、仮ファイル名と同一のファイル名の測定データファイルD2が「いずれかのディレクトリ」(上記の例では「/data」 )に記録されているかをチェックする際に、そのディレクトリに記録されている測定データファイルD2のうちのファイル名記憶領域14にファイル名を記憶させることができる数分の測定データファイルD2については、対応するファイル名情報をメモリーカード7から1回読み出すだけで、その後に他の仮ファイル名との比較を行う際に、ファイル名情報の読み出しよりも短時間で読み出し可能なファイル名記憶領域14内のファイル名を比較対象として、仮ファイル名と同一のファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されているかをチェックすることができる。このため、メモリーカード7に既に記録されている測定データファイルD2のファイル名とは相違するファイル名を短時間で決定することができる結果、既存の測定データファイルD2を失うことなく、新たな測定データファイルD2を短時間で確実にメモリーカード7に記録させることができる。
Therefore, according to the measurement
また、この測定結果記録装置1によれば、仮ファイル名の拡張子とは相違する拡張子のファイル名を仮ファイル名とは不一致と判別して「第1の処理」および「処理B」における仮ファイル名との比較対象から除外することにより、新たに記録させる測定データファイルD2とは拡張子が相違することで、その測定データファイルD2の記録によって消去されることのないファイルについての不要な処理(ファイル名の本体部の比較処理やファイル名記憶領域14への記憶処理)を行わない分だけ、メモリーカード7に既に記録されている測定データファイルD2のファイル名とは相違するファイル名を一層短時間で特定することができる。
Further, according to the measurement
さらに、この測定結果記録装置1によれば、利用者によって指定された文字列(上記の例では、「USER」との文字列)と生成規則に従って生成した文字列(上記の例では、「0001」等の4桁の数値を表す文字列)とを予め規定された順序で組み合わせた文字列(この例では、「USER0001」などの文字列)を「指定されたファイル名」として「第1の処理」を実行すると共に、「処理B」において、上記の生成規則に従って生成した文字列を変更して仮ファイル名を新たな仮ファイル名にリネームすることにより、例えば、ファイル名における本体部を構成する文字列のすべてを制御部5が変更規則に従って変更して新たな仮ファイル名とする構成(方法)とは異なり、仮ファイル名をどのように変更したとしても、利用者が最初に指定した文字列を含んだファイル名が仮ファイル名として生成されるため、利用者が最初に指定した文字列に基づき、どのような測定データについての測定データファイルD2であるかを利用者に対して確実に認識させ得るファイル名を正式なファイル名として決定することができる。
Further, according to the measurement
また、この測定結果記録装置1によれば、「第2の処理」においてファイル名記憶領域14の記憶可能容量が予め規定された容量を下回った状態(空き領域が存在しなくなった状態)でファイル名記憶領域14に新たなファイル名を記憶させるときに、ファイル名記憶領域14に記憶されているファイル名のうちの最先に記憶させたファイル名が記憶されている領域に新たなファイル名を記憶させることにより、新たな測定データファイルD2を記録させるディレクトリ内に記録されている各測定データファイルD2のうちの、ファイル名記憶領域14にファイル名が記録されていない測定データファイルD2のファイル名と仮ファイル名とを比較する際に、ファイル名記憶領域14にファイル名が記憶されている測定データファイルD2についてのファイル名情報を読み飛ばすという不要な処理(ディレクトリエントリ領域からファイル名情報を読み出すが、比較処理等を行わずにそのまま破棄して、次のファイル名情報を読み出すとの処理)を行うことなく、ディレクトリエントリ領域におけるファイル名情報の記録領域の先頭部位に記録されているファイル名情報から順に読み出して仮ファイル名と比較することができるため、メモリーカード7に既に記録されている測定データファイルD2のファイル名とは相違するファイル名を一層短時間で特定することができる。
Further, according to the measurement
なお、「測定結果記録装置」の構成、および「測定結果記録方法」の具体的な手順は、上記の測定結果記録装置1の構成、およびその測定結果記録方法の例に限定されない。例えば、上記のファイル名決定処理20では、「第2の処理(ステップ28)」を実行した後に「第1の処理(ステップ29)」を実行しているが、「仮ファイル名と比較されるファイル名」を「ファイル名記憶領域」に記憶する「第2の処理」については、「第1の処理」の完了後(具体的には、上記のステップ29,30を実行した後であってステップ24の実行前)に実施してもよい。また、ファイル名決定処理20におけるステップ28に代えて、ファイル名における本体部を構成する文字列だけでなく、ファイル名における拡張子を含む文字列をファイル名記憶領域14に記憶させる構成(方法)を採用することもできる。さらに、測定部2を備えて構成された測定結果記録装置1を例に挙げて説明したが、測定結果記録装置1における測定部2を除く構成要素だけで「測定結果記録装置」を構成すると共に、測定結果記録装置1における測定部2と同様に構成された外部装置としての測定装置から上記の例における測定データD1を受信してメモリーカード7に測定データファイルD2を記録させる構成を採用することもできる。このような構成を採用した場合においても、上記の測定結果記録装置1と同様の効果を奏することができる。
The configuration of the “measurement result recording device” and the specific procedure of the “measurement result recording method” are not limited to the configuration of the measurement
1 測定結果記録装置
5 制御部
6 記憶部
7 メモリーカード
11 重複フラグ記憶領域
12 消去数カウンター領域
13 読出し完了数カウンター領域
14 ファイル名記憶領域
20 ファイル名決定処理
40 ファイル名変更処理
D1 測定データ
D2 測定データファイル
DESCRIPTION OF
Claims (5)
前記制御部は、前記情報記録媒体におけるいずれかのディレクトリに記録させる前記データファイルのファイル名本体部および拡張子からなるファイル名、および前記情報記録媒体におけるいずれかのディレクトリに記録されている前記データファイルのリネーム後のファイル名本体部および拡張子からなるファイル名のいずれかが指定されたときに、当該情報記録媒体に記録されているファイルのうちの比較対象とするファイルのファイル名本体部および拡張子からなるファイル名を特定可能なファイル名情報を当該情報記録媒体から読み出すと共に、前記指定されたファイル名を仮ファイル名として前記ファイル名情報に基づいて特定したファイル名と比較して当該仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているか否かを判別する第1の処理と、前記ファイル名情報に基づいて特定されるファイル名のうちの前記第1の処理における前記仮ファイル名との比較対象ではないファイル名を記憶させることなく当該仮ファイル名との比較対象のファイル名を前記記憶部内に規定されたファイル名記憶領域に記憶させる第2の処理との両処理を、前記いずれかのディレクトリに記録されているすべてのファイルについてそれぞれ実行し、
前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されていないときに、当該仮ファイル名を正式なファイル名として決定する処理Aを実行し、
前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているときに、予め規定された変更規則に従って当該仮ファイル名を新たな仮ファイル名にリネームすると共に前記ファイル名記憶領域にファイル名が記憶されている前記データファイルについては当該ファイル名記憶領域内のファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別し、かつ前記ファイル名記憶領域にファイル名が記憶されていない前記データファイルについては前記ファイル名情報に基づいて特定したファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別する処理Bを実行すると共に、当該処理Bの判別結果に応じて前記処理Aおよび当該処理Bのいずれかを実行する測定結果記録装置。 A measurement result recording apparatus including a control unit that records a data file of a measurement result on an information recording medium, and a storage unit that temporarily stores a calculation result of the control unit,
The control unit includes a file name including a file name main body and an extension of the data file to be recorded in any directory on the information recording medium, and the data recorded in any directory on the information recording medium. When either the file name body part after the file rename or the file name consisting of the extension is specified, the file name body part of the file to be compared among the files recorded on the information recording medium, and the file name can be specified file name information comprising an extension reads from the information recording medium, the temporary compared to the file name specified on the basis of the file name information a file name the specified as temporary file name The data file with the file name is recorded in one of the directories A first process of determining whether it is, and stores the file name is not a comparison with the temporary file name in said first processing from among the file name specified on the basis of the file name information the both processes of the second process of storing a file name to be compared in the file name storage area defined in the storage portion of the temporary file name, all recorded in the one of the directories without Run for each file ,
When the data file of the temporary file name is not recorded in any of the directories, a process A for determining the temporary file name as an official file name is executed ,
When the data file of the temporary file name is recorded in one of the directories, the temporary file name is renamed to a new temporary file name according to a predetermined change rule, and the file is stored in the file name storage area. Whether or not the data file having the temporary file name is recorded in any one of the directories by comparing the file name in the file name storage area with the temporary file name for the data file in which the name is stored And for the data file whose file name is not stored in the file name storage area, the file name specified based on the file name information is compared with the temporary file name, and the data of the temporary file name is compared. Whether the file is recorded in one of the directories And it executes another processing B, the measurement result recording unit to perform any of the processing A and the processing B in accordance with the discrimination result of the processing B.
前記情報記録媒体におけるいずれかのディレクトリに記録させる前記データファイルのファイル名本体部および拡張子からなるファイル名、および前記情報記録媒体におけるいずれかのディレクトリに記録されている前記データファイルのリネーム後のファイル名本体部および拡張子からなるファイル名のいずれかが指定されたときに、当該情報記録媒体に記録されているファイルのうちの比較対象とするファイルのファイル名本体部および拡張子からなるファイル名を特定可能なファイル名情報を当該情報記録媒体から読み出すと共に、前記指定されたファイル名を仮ファイル名として前記ファイル名情報に基づいて特定したファイル名と比較して当該仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているか否かを判別する第1の処理と、前記ファイル名情報に基づいて特定されるファイル名のうちの前記第1の処理における前記仮ファイル名との比較対象ではないファイル名を記憶させることなく当該仮ファイル名との比較対象のファイル名を前記測定結果記録装置の記憶部内に規定されたファイル名記憶領域に記憶させる第2の処理との両処理を、前記いずれかのディレクトリに記録されているすべてのファイルについてそれぞれ実行し、
前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されていないときに、当該仮ファイル名を正式なファイル名として決定する処理Aを実行し、
前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているときに、予め規定された変更規則に従って当該仮ファイル名を新たな仮ファイル名にリネームすると共に前記ファイル名記憶領域にファイル名が記憶されている前記データファイルについては当該ファイル名記憶領域内のファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別し、かつ前記ファイル名記憶領域にファイル名が記憶されていない前記データファイルについては前記ファイル名情報に基づいて特定したファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別する処理Bを実行すると共に、当該処理Bの判別結果に応じて前記処理Aおよび当該処理Bのいずれかを実行する測定結果記録方法。 A measurement result recording method for recording the data file on the information recording medium in a measurement result recording apparatus configured to be able to record the data file of the measurement result on the information recording medium,
A file name consisting of a file name body part and an extension of the data file to be recorded in any directory in the information recording medium, and after renaming the data file recorded in any directory in the information recording medium when any of the file name composed from the file name the body portion and extension is specified, the file consisting of the filename body portion and extension of the file to be compared among the files recorded on the information recording medium file name information that can specify the name reads from the information recording medium, the data of the temporary file name in comparison with the file name specified on the basis of the file name information a file name the specified as temporary file name Whether the file is recorded in one of the above directories First processing and the file name the in said first processing from among the file name specified on the basis of information temporary file name and the provisional without storing a file name that is not by the comparison of determining whether all both process and second process of storing a file name to be compared with the file name in the file name storage area defined in the storage portion of the measurement result recording unit, is recorded in the one of the directories For each of the files
When the data file of the temporary file name is not recorded in any of the directories, a process A for determining the temporary file name as an official file name is executed ,
When the data file of the temporary file name is recorded in one of the directories, the temporary file name is renamed to a new temporary file name according to a predetermined change rule, and the file is stored in the file name storage area. Whether or not the data file having the temporary file name is recorded in any one of the directories by comparing the file name in the file name storage area with the temporary file name for the data file in which the name is stored And for the data file whose file name is not stored in the file name storage area, the file name specified based on the file name information is compared with the temporary file name, and the data of the temporary file name is compared. Whether the file is recorded in one of the directories And it executes another processing B, the measurement result recording method for performing any of the processing A and the processing B in accordance with the discrimination result of the processing B.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012028589A JP5940317B2 (en) | 2012-02-13 | 2012-02-13 | Measurement result recording apparatus and measurement result recording method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012028589A JP5940317B2 (en) | 2012-02-13 | 2012-02-13 | Measurement result recording apparatus and measurement result recording method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2013164798A JP2013164798A (en) | 2013-08-22 |
| JP5940317B2 true JP5940317B2 (en) | 2016-06-29 |
Family
ID=49176098
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012028589A Active JP5940317B2 (en) | 2012-02-13 | 2012-02-13 | Measurement result recording apparatus and measurement result recording method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5940317B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105630900A (en) * | 2015-12-18 | 2016-06-01 | 浪潮(北京)电子信息产业有限公司 | Data storage method and system |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2006215639A (en) * | 2005-02-01 | 2006-08-17 | Matsushita Electric Ind Co Ltd | Data control method and information processing apparatus |
| JP4982990B2 (en) * | 2005-09-29 | 2012-07-25 | セイコーエプソン株式会社 | Copy apparatus and method |
| JP2007249613A (en) * | 2006-03-16 | 2007-09-27 | Rigaku Corp | Thermal analysis measurement system, and method of automatically setting measurement data file name |
-
2012
- 2012-02-13 JP JP2012028589A patent/JP5940317B2/en active Active
Also Published As
| Publication number | Publication date |
|---|---|
| JP2013164798A (en) | 2013-08-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4388078B2 (en) | Method for generating symbolic link maintaining compatibility with file system, method and apparatus for accessing file / directory using symbolic link | |
| JP5370744B2 (en) | Measuring system | |
| US7499930B2 (en) | Data processing apparatus, data processing method, and data processing program | |
| US20080005460A1 (en) | Disk drive, control method thereof and disk-falsification detection method | |
| CN103109264A (en) | Creating a configuration file template | |
| US8407588B1 (en) | Large columnar text file editor | |
| JP5940317B2 (en) | Measurement result recording apparatus and measurement result recording method | |
| JP2011258064A (en) | Data collecting and recording apparatus, and data collecting and recording method | |
| JP2011095946A (en) | Prediction error-evaluating device, prediction error-evaluating method, and prediction error-evaluating program | |
| JP2019106093A (en) | Computer, method of reproducing log, and storage medium | |
| JP2011100419A (en) | File browser | |
| JP4281220B2 (en) | Data management device for analytical instruments | |
| JP2019101769A (en) | Image data output device and program | |
| JP5543324B2 (en) | Waveform analyzer | |
| JP5109469B2 (en) | Waveform measuring device | |
| JP5493348B2 (en) | Data management apparatus and waveform measuring apparatus | |
| US20110307737A1 (en) | State display apparatus, program and state display system | |
| JP6943128B2 (en) | Analytical database registration device, analytical data collection system, analytical system and analytical database registration method | |
| US20240045416A1 (en) | Logging support apparatus, logging system, method for logging support, and recording medium | |
| JP5076621B2 (en) | Patent analysis program, patent analysis method and patent analysis apparatus | |
| JP2008226137A (en) | File management method and file management system | |
| JP2011141645A (en) | Information processing apparatus, method and program for processing access | |
| JP2005345392A (en) | Measurement data storage method and measurement data storage device | |
| JP4770532B2 (en) | Waveform display device and program | |
| JP6910916B2 (en) | Data recording device and measurement system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150123 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20151013 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20151020 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20151209 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20160517 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20160518 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 5940317 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |