JP5940317B2 - Measurement result recording apparatus and measurement result recording method - Google Patents

Measurement result recording apparatus and measurement result recording method Download PDF

Info

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
Application number
JP2012028589A
Other languages
Japanese (ja)
Other versions
JP2013164798A (en
Inventor
飯島 匡史
匡史 飯島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hioki EE Corp
Original Assignee
Hioki EE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hioki EE Corp filed Critical Hioki EE Corp
Priority to JP2012028589A priority Critical patent/JP5940317B2/en
Publication of JP2013164798A publication Critical patent/JP2013164798A/en
Application granted granted Critical
Publication of JP5940317B2 publication Critical patent/JP5940317B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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.

特開2005−77093号公報(第4−6頁、第1−4図)Japanese Patent Laying-Open No. 2005-77093 (page 4-6, FIG. 1-4)

ところが、従来の分光測定システムには、以下の解決すべき問題点が存在する。すなわち、従来の分光測定システムでは、レポートの作成および印刷に拘わる一連の処理に際して、測定部から出力された測定データのファイル(以下、「データファイル」ともいう)を、作業者によって指定されたディレクトリに、指定されたファイル名で記憶させる構成(方法)が採用されている。この場合、既存のオペレーティングシステムがインストールされたパーソナルコンピュータを処理制御部として備えて構成された従来の分光測定システムでは、データファイルを記憶装置に記憶させる際に、中央制御部が、オペレーティングシステムによって規定されている手順に従って、データファイルを記憶させようとしているディレクトリ内に、そのデータファイルのファイル名と同一のファイル名のファイルが存在するか否かをチェックする処理を実行する。   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 claim 1 includes a control unit that records a data file of the measurement result on an information recording medium, and a storage unit that temporarily stores a calculation result of the control unit. A measurement result recording apparatus provided, wherein 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 any of the information recording medium Comparison of the files recorded on the information recording medium when one of the file names consisting of the file name body and the extension after the rename of the data file recorded in the directory is specified the information can be file name information specifying a file name file name consisting of the main body portion and extension of the file of interest Reads from the recording medium, is recorded a file name the specified in the data file of the one directory of the file name the temporary file name in comparison with the file name specified on the basis of the information as a temporary file name Without storing a file name that is not a comparison target between the first process for determining whether or not the file name is specified based on the file name information and the temporary file name in the first process. for all files that both processing of the second process of storing a file name to be compared with the temporary file name to the file name storage area defined in the storage portion, which is recorded in the one of the directories each run, the data files of the temporary file name is not recorded in any of the above directory When the temporary file name is determined as an official file name, the process A is executed, and when the data file of the temporary file name is recorded in one of the directories, the change rule defined in advance is used. Rename the temporary file name to a new temporary file name and compare the file name in the file name storage area with the temporary file name for the data file whose file name is stored in the file name storage area. It is determined whether or not the data file having the temporary file name is recorded in any one of the directories, and the data file whose file name is not stored in the file name storage area is based on the file name information. Compare the temporary file name with the specified file name and the temporary file name The process B for determining whether or not the data file is recorded in any one of the directories is executed, and either the process A or the process B is executed according to the determination result of the process B.

また、請求項2記載の測定結果記録装置は、請求項1記載の測定結果記録装置において、前記制御部は、前記仮ファイル名の拡張子とは相違する拡張子の前記ファイル名を当該仮ファイル名とは不一致と判別して前記第1の処理おける当該仮ファイル名との比較対象から除外する第3の処理を当該第1の処理に先立って実行すると共に、前記仮ファイル名の拡張子とは相違する拡張子の前記ファイル名を当該仮ファイル名とは不一致と判別して前記処理Bにおける当該仮ファイル名との比較対象から除外する第4の処理を当該処理Bに先立って実行するThe measurement result recording apparatus according to claim 2 is the measurement result recording apparatus according to claim 1, wherein the control unit assigns the file name having an extension different from the extension of the temporary file name to the temporary file. name as well as performed prior to the third process to exclude from comparison with the to determine a mismatch first processing Contact Keru the temporary file name to the first process, the extension of the temporary file name Prior to the process B, the fourth process of determining that the file name having an extension different from that of the child does not match the temporary file name and excluding it from the comparison target with the temporary file name in the process B is executed. To do .

さらに、請求項3記載の測定結果記録装置は、請求項1または2記載の測定結果記録装置において、前記制御部は、指定された文字列と予め規定された生成規則に従って生成した文字列とを予め規定された順序で組み合わせた文字列を前記指定されたファイル名として前記第1の処理を実行すると共に、前記処理Bにおいて、前記生成規則に従って生成した前記文字列を前記変更規則に従って変更して前記仮ファイル名を前記新たな仮ファイル名にリネームする。   Furthermore, in the measurement result recording apparatus according to claim 3, in the measurement result recording apparatus according to claim 1 or 2, the control unit includes a designated character string and a character string generated according to a predetermined generation rule. In the process B, the character string generated according to the generation rule is changed according to the change rule, and the first process is executed with the character string combined in a predetermined order as the specified file name. The temporary file name is renamed to the new temporary file name.

また、請求項4記載の測定結果記録装置は、請求項1から3のいずれかに記載の測定結果記録装置において、前記制御部は、前記第2の処理において前記ファイル名記憶領域の記憶可能容量が予め規定された容量を下回った状態で当該ファイル名記憶領域に新たなファイル名を記憶させるときに、当該ファイル名記憶領域に記憶されているファイル名のうちの最先に記憶させたファイル名が記憶されている領域に前記新たなファイル名を記憶させる。   The measurement result recording apparatus according to claim 4 is the measurement result recording apparatus according to any one of claims 1 to 3, wherein the control unit is capable of storing the file name storage area in the second process. When storing a new file name in the file name storage area in a state where is less than the predetermined capacity, the file name stored at the earliest of the file names stored in the file name storage area The new file name is stored in the area where is stored.

また、請求項5記載の測定結果記録方法は、測定結果のデータファイルを情報記録媒体に記録可能に構成された測定結果記録装置において当該データファイルを当該情報記録媒体に記録させる測定結果記録方法であって、前記情報記録媒体におけるいずれかのディレクトリに記録させる前記データファイルのファイル名本体部および拡張子からなるファイル名、および前記情報記録媒体におけるいずれかのディレクトリに記録されている前記データファイルのリネーム後のファイル名本体部および拡張子からなるファイル名のいずれかが指定されたときに、当該情報記録媒体に記録されているファイルのうちの比較対象とするファイルファイル名本体部および拡張子からなるファイル名を特定可能なファイル名情報を当該情報記録媒体から読み出すと共に前記指定されたファイル名を仮ファイル名として前記ファイル名情報に基づいて特定したファイル名と比較して当該仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているか否かを判別する第1の処理と、前記ファイル名情報に基づいて特定されるファイル名のうちの前記第1の処理における前記仮ファイル名との比較対象ではないファイル名を記憶させることなく当該仮ファイル名と比較対象のファイル名を前記測定結果記録装置の記憶部内に規定されたファイル名記憶領域に記憶させる第2の処理との両処理、前記いずれかのディレクトリに記録されているすべてのファイルについてそれぞれ実行し、前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されていないときに、当該仮ファイル名を正式なファイル名として決定する処理Aを実行し、前記仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているときに、予め規定された変更規則に従って当該仮ファイル名を新たな仮ファイル名にリネームすると共に前記ファイル名記憶領域にファイル名が記憶されている前記データファイルについては当該ファイル名記憶領域内のファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別し、かつ前記ファイル名記憶領域にファイル名が記憶されていない前記データファイルについては前記ファイル名情報に基づいて特定したファイル名および前記仮ファイル名を比較して当該仮ファイル名の前記データファイルが当該いずれかのディレクトリに記録されているか否かを判別する処理Bを実行すると共に、当該処理Bの判別結果に応じて前記処理Aおよび当該処理Bのいずれかを実行する。 The measurement result recording method according to claim 5 is 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 main body and an extension of the data file to be recorded in any directory on the information recording medium, and the data file recorded in any directory on the information recording medium. when one of the filename body portion and a file name composed of extension after renaming is designated, the file name body portion and extension of the file to be compared among the files recorded on the information recording medium from the information recording medium the file name information that can specify a file name consisting of With out look, or the data file 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 is recorded in the one of the directories not The temporary processing is performed without storing a file name that is not a comparison target with the temporary processing file name in the first processing among the first processing for determining whether or not the file name is identified based on the file name information. 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 the running respectively for file, the data file of the temporary file name is recorded in the one of the directories If there is no temporary file name, the process A for determining the temporary file name as an official file name is executed, and when the data file of the temporary file name is recorded in any of the directories, a change rule defined in advance The temporary file name is renamed to a new temporary file name and the data file whose file name is stored in the file name storage area is compared with the file name in the file name storage area and the temporary file name. To determine whether the data file of the temporary file name is recorded in any of the directories, and for the data file whose file name is not stored in the file name storage area, the file name information The temporary file name is compared with the file name specified based on the temporary file name. The process B for determining whether or not the data file with the file name is recorded in any one of the directories is executed, and either the process A or the process B is executed according to the determination result of the process B To do.

請求項1記載の測定結果記録装置、および請求項5記載の測定結果記録方法では、仮ファイル名のデータファイルが「いずれかのディレクトリ」に記録されていないときに、仮ファイル名を正式なファイル名として決定する処理Aを実行し、仮ファイル名のデータファイルが「いずれかのディレクトリ」に記録されているときに、その仮ファイル名を新たな仮ファイル名にリネームすると共に、記憶部内に規定されたファイル名記憶領域にファイル名が記憶されているデータファイルについてはファイル名記憶領域内のファイル名および仮ファイル名を比較し、かつファイル名記憶領域にファイル名が記憶されていないデータファイルについては情報記録媒体から読み出したファイル名情報に基づいて特定したファイル名および仮ファイル名を比較することで、仮ファイル名のデータファイルが「いずれかのディレクトリ」に記録されているかを判別する処理Bを実行し、処理Bの判別結果に応じて処理Aおよび処理Bのいずれかを実行するとの処理を、処理Aの実行によって正式なファイル名が決定されるまで繰り返す。   6. The measurement result recording apparatus according to claim 1, and the measurement result recording method according to claim 5, wherein when the data file of the temporary file name is not recorded in “any directory”, the temporary file name is an official file. When the data file with the temporary file name is recorded in “any directory”, the temporary file name is renamed to a new temporary file name and specified in the storage unit. For data files whose file names are stored in the specified file name storage area, compare the file name and temporary file name in the file name storage area, and for data files whose file name is not stored in the file name storage area Is the file name and temporary file name specified based on the file name information read from the information recording medium By performing the comparison, the process B for determining whether the data file with the temporary file name is recorded in “any directory” is executed, and either the process A or the process B is executed according to the determination result of the process B This process is repeated until a formal file name is determined by executing process A.

したがって、請求項1記載の測定結果記録装置、および請求項5記載の測定結果記録方法によれば、仮ファイル名と同一のファイル名のデータファイルが「いずれかのディレクトリ」に記録されているかをチェックする際に、そのディレクトリに記録されているデータファイルのうちのファイル名記憶領域にファイル名を記憶させることができる数分のデータファイルについては、対応するファイル名情報を情報記録媒体から1回読み出すだけで、その後に他の仮ファイル名との比較を行う際に、ファイル名情報の読み出しよりも短時間で読み出し可能なファイル名記憶領域内のファイル名を比較対象として、仮ファイル名と同一のファイル名のデータファイルが「いずれかのディレクトリ」に記録されているかをチェックすることができる。このため、情報記録媒体に既に記録されているデータファイルのファイル名とは相違するファイル名を短時間で決定することができる結果、既存のデータファイルを失うことなく、新たなデータファイルを短時間で確実に情報記録媒体に記録させることができる。   Therefore, according to the measurement result recording apparatus according to claim 1 and the measurement result recording method according to claim 5, it is determined whether a data file having the same file name as the temporary file name is recorded in "any directory". When checking, for the number of data files whose file names can be stored in the file name storage area of the data files recorded in the directory, the corresponding file name information is stored once from the information recording medium. The same as the temporary file name, with the file name in the file name storage area that can be read in a shorter time than reading the file name information when comparing with other temporary file names after reading. It is possible to check whether the data file with the file name is recorded in "any directory"As a result, a file name different from the file name of the data file already recorded on the information recording medium can be determined in a short time. As a result, a new data file can be created in a short time without losing the existing data file. Thus, it can be surely recorded on the information recording medium.

また、請求項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 claim 3, the character string obtained by combining the designated character string and the character string generated according to the generation rule in a predetermined order is designated as the “specified file name”. In the process B, the character string generated in accordance with the above generation rule is changed and the temporary file name is renamed to a new temporary file name. Unlike the configuration (method) in which the control unit changes everything according to the change rules and sets it as a new temporary file name, no matter how the temporary file name is changed, it includes the first character string specified by the user. Since the file name is generated as a temporary file name, the user is informed of the measurement data data file based on the first character string specified by the user. It is possible to determine the file name that can reliably recognize to as an official file names.

また、請求項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.

測定結果記録装置1の構成図である。2 is a configuration diagram of a measurement result recording apparatus 1. FIG. 記憶部6内に規定された各記憶領域について説明するための説明図である。4 is an explanatory diagram for explaining each storage area defined in a storage unit 6; FIG. ファイル名決定処理20のフローチャートである。10 is a flowchart of file name determination processing 20. ファイル名変更処理40のフローチャートである。10 is a flowchart of file name change processing 40;

以下、測定結果記録装置および測定結果記録方法の実施の形態について、添付図面を参照して説明する。   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 result recording apparatus 1 shown in FIG. 1 includes a measurement unit 2, an operation unit 3, a display unit 4, a control unit 5, and a storage unit 6, and is configured so that a memory card 7 can be attached. Accordingly, the data file (measurement data file D2) indicating the result of the measurement process by the measurement unit 2 can be recorded in the memory card 7. The measurement unit 2 executes measurement processing according to the control of the control unit 5, performs A / D conversion processing on the input signal Si to generate measurement data D 1, and outputs the generated measurement data D 1 to the control unit 5. The operation unit 3 includes operation switches for setting conditions for measurement processing by the measurement unit 2 and for instructing a file name and a directory name when recording a measurement data file D2 in a memory card 7 to be described later. An operation signal corresponding to the operation is output to the control unit 5. The display unit 4 operates according to the control of the control unit 5, an operation condition setting screen for setting the operation condition of the measurement result recording apparatus 1, a measurement result display screen for displaying the result of the measurement process by the measurement unit 2, and a measurement A recording condition instruction screen (none of which is shown) for instructing the recording condition of the data file D2 is displayed.

制御部5は、測定結果記録装置1を総括的に制御する。具体的には、制御部5は、測定部2を制御して測定処理を実行させると共に、測定部2から出力された測定データD1を記憶部6に記憶させる。また、制御部5は、表示部4を制御して測定データD1に基づく測定結果(測定結果表示画面)を表示させる。さらに、制御部5は、一例として、測定部2による測定処理が完了したときや、測定処理の実行中に操作部3の操作によって利用者から指示されたときに、記憶部6に記憶されている測定データD1に基づいて測定データファイルD2を生成してメモリーカード7に記録させるデータ記録処理を実行する。この場合、この測定結果記録装置1では、上記のデータ記録処理の実行時や、メモリーカード7に記録されているファイル(測定データファイルD2等)のファイル名をリネームする操作が行われたときに、制御部5が、図3に示すファイル名決定処理20を実行して、対象のファイルのファイル名を決定する構成が採用されている。   The control unit 5 comprehensively controls the measurement result recording apparatus 1. Specifically, the control unit 5 controls the measurement unit 2 to execute measurement processing, and stores the measurement data D1 output from the measurement unit 2 in the storage unit 6. Further, the control unit 5 controls the display unit 4 to display a measurement result (measurement result display screen) based on the measurement data D1. Further, as an example, the control unit 5 is stored in the storage unit 6 when the measurement process by the measurement unit 2 is completed or when an instruction is given from the user by operating the operation unit 3 during the execution of the measurement process. A data recording process for generating a measurement data file D2 based on the measurement data D1 and recording it on the memory card 7 is executed. In this case, in the measurement result recording apparatus 1, when the above-described data recording process is executed or when an operation for renaming the file name of the file (measurement data file D2, etc.) recorded on the memory card 7 is performed. The control unit 5 executes the file name determination process 20 shown in FIG. 3 to determine the file name of the target file.

記憶部6は、「記憶部」の一例であって、例えば、半導体メモリ(RAM)で構成されて、測定部2から出力された測定データD1や、制御部5の演算結果などを一時的に記憶する。この場合、この測定結果記録装置1では、制御部5がファイル名決定処理20を実行する際に、図2に示すように、重複フラグ記憶領域11、消去数カウンター領域12、読出し完了数カウンター領域13およびファイル名記憶領域14が記憶部6内に規定されて、ファイル名の決定に必要となる各種の情報がこれらの各領域に記憶される。なお、各領域11〜14に記憶される情報の内容や情報が記憶されるタイミングについては、後に詳細に説明する。一方、メモリーカード7は、「情報記録媒体」の一例であって、測定データファイルD2を含む各種のファイルを記憶可能に構成されている。なお、メモリーカード7に代えて、ハードディスクドライブ(ハードディスク)、光ディスクドライブ(光ディスク)および光磁気ディスクドライブ(光磁気ディスク)などの各種の情報記録媒体に測定データファイルD2等を記録させる構成を採用することができる。   The storage unit 6 is an example of a “storage unit”, and is configured by, for example, a semiconductor memory (RAM), and temporarily stores measurement data D1 output from the measurement unit 2, calculation results of the control unit 5, and the like. Remember. In this case, in the measurement result recording apparatus 1, when the control unit 5 executes the file name determination process 20, as shown in FIG. 2, an overlap flag storage area 11, an erase number counter area 12, and a read completion number counter area 13 and a file name storage area 14 are defined in the storage unit 6, and various types of information necessary for determining the file name are stored in these areas. The contents of information stored in the areas 11 to 14 and the timing at which the information is stored will be described in detail later. On the other hand, the memory card 7 is an example of an “information recording medium”, and is configured to be able to store various files including the measurement data file D2. In place of the memory card 7, a configuration is adopted in which the measurement data file D2 and the like are recorded on various information recording media such as a hard disk drive (hard disk), an optical disk drive (optical disk), and a magneto-optical disk drive (magneto-optical disk). be able to.

この測定結果記録装置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 result recording apparatus 1, first, the operating unit 3 is operated to set the conditions for the measurement process by the measuring unit 2. Next, as an example, when a process start switch (not shown) of the operation unit 3 is operated, the control unit 5 controls the measurement unit 2 according to the set conditions to execute measurement processing. At this time, the measurement unit 2 performs A / D conversion processing on the input signal Si to generate measurement data D1, and sequentially outputs the generated measurement data D1 to the control unit 5. Further, the control unit 5 sequentially stores the measurement data D1 output from the measurement unit 2 in a predetermined area (measurement data storage area) in the storage unit 6, and displays the measurement result based on the measurement data D1 on the display unit. 4 is displayed. Thereafter, the control unit 5 satisfies a preset end condition (when the end time arrives, when a set amount of measurement data D1 is obtained, or the like) or a process (not shown) of the operation unit 3 When the end switch is operated, the measurement unit 2 is controlled to end the measurement process, and the storage process of the measurement data D1 in the storage unit 6 and the display process of the measurement result on the display unit 4 are ended.

また、制御部5は、一例として、上記の一連の処理を終了した時点において、記憶部6に記憶されている測定データD1の測定データファイルD2をメモリーカード7に記録させるための記録条件を指示させる記録条件指示画面(図示せず)を表示部4に表示させる。具体的には、制御部5は、記録条件指示画面を表示部4に表示させることにより、測定データファイルD2を記録させるメモリーカード7内のディレクトリと、測定データファイルD2のファイル名に含ませる任意の文字列とを指示させる。この際には、一例として、操作部3のスイッチ操作によって、「data」とのディレクトリ(以下、「/data」 ともいう)に、「USER」との文字列を含むファイル名で測定データファイルD2を記録させるとの条件が指示される(「情報記録媒体における[いずれかのディレクトリ]に記録させるデータファイルのファイル名が指定されたとき」の一例)。また、制御部5は、上記の条件が指示されたときに、図3に示すファイル名決定処理20を開始する。   For example, the control unit 5 instructs a recording condition for recording the measurement data file D2 of the measurement data D1 stored in the storage unit 6 on the memory card 7 at the time when the above series of processing is completed. A recording condition instruction screen (not shown) to be displayed is displayed on the display unit 4. Specifically, the control unit 5 displays a recording condition instruction screen on the display unit 4 so that the directory in the memory card 7 in which the measurement data file D2 is recorded and the file name of the measurement data file D2 are arbitrarily included. The character string of At this time, as an example, the measurement data file D2 with a file name including a character string “USER” in a directory “data” (hereinafter, also referred to as “/ data”) by a switch operation of the operation unit 3 is used. Is specified (an example of “when a file name of a data file to be recorded in [any directory] in the information recording medium is designated”). Further, the control unit 5 starts the file name determination process 20 shown in FIG. 3 when the above conditions are instructed.

このファイル名決定処理20では、制御部5は、まず、記憶部6におけるファイル名記憶領域14等をクリアすると共に、利用者によって指示された「USER」との文字列を使用して測定データファイルD2の仮ファイル名を決定する(ステップ21)。具体的には、制御部5は、重複フラグ記憶領域11および消去数カウンター領域12内にそれぞれ「0」との値を記憶させることにより、重複フラグの値および消去数カウンターの値をリセットすると共に、ファイル名記憶領域14内に予め規定された初期値(一例として、文字列ターミネータ)を記憶させることでこの領域をクリアする。   In this file name determination process 20, the control unit 5 first clears the file name storage area 14 and the like in the storage unit 6, and uses the character string “USER” instructed by the user to measure the data file. The temporary file name of D2 is determined (step 21). Specifically, the control unit 5 resets the value of the duplication flag and the number of erasures counter by storing the value “0” in the duplication flag storage area 11 and the erasure number counter area 12, respectively. The initial value (for example, a character string terminator) defined in advance is stored in the file name storage area 14 to clear this area.

この場合、ファイル名記憶領域14は、メモリーカード7に記録されている各ファイルのファイル名のうちの後述するステップ29においてファイル名の同一性を比較されるファイル名が一時的に記憶される領域であって、一例として、1000個のファイル名を記憶可能に規定されている。また、重複フラグ記憶領域11は、後述するステップ29においてファイル名が同一と判別されたときに値が「0」から「1」に変更される「重複フラグ」の値を記憶する領域であり、消去数カウンター領域12は、後述するステップ27においてファイル名記憶領域14に空き領域が存在しないと判別されて、後述するステップ31においてファイル名記憶領域14内のファイル名が消去されたときにカウントアップされる「消去数カウンター」の値を記憶する領域である。   In this case, the file name storage area 14 is an area in which the file names to be compared for the sameness in the file names in step 29 to be described later are temporarily stored among the file names of the files recorded on the memory card 7. As an example, it is defined that 1000 file names can be stored. The duplication flag storage area 11 is an area for storing a value of “duplication flag” whose value is changed from “0” to “1” when the file names are determined to be the same in step 29 described later. The erasure number counter area 12 is counted up when it is determined that there is no free area in the file name storage area 14 in step 27 described later, and the file name in the file name storage area 14 is deleted in step 31 described later. This is an area for storing the value of the “erasure number counter”.

また、この測定結果記録装置1では、一例として、メモリーカード7等に記録させる際の測定データファイルD2のファイル名における拡張子を「MEM」 とするように規定されている。さらに、この測定結果記録装置1では、一例として、利用者によって指示された文字列(「指定された文字列」の一例:この例では「USER」との文字列)と、「0001」を初期値として、必要に応じて「0002」、「0003」・・と順次カウントアップされる4桁の数値を示す文字列(「予め規定された生成規則に従って生成した文字列」の一例)とをこの順で並べることにより(「予め規定された順序」の一例)、ファイル名における本体部(拡張子を除く部位)を構成する文字列を生成するように規定されている。したがって、上記のステップ21においては、「USER0001.MEM」とのファイル名を「指定されたファイル名」として生成されて、このファイル名が「仮ファイル名」として決定される。なお、この例においては、後述するように、上記の4桁の数値を示す文字列を「0001」から「0002」、「0003」・・と順次カウントアップするとの事項が「予め規定された変更規則」に相当する。   In the measurement result recording apparatus 1, as an example, the extension of the file name of the measurement data file D2 when recording on the memory card 7 or the like is defined as “MEM”. Furthermore, in this measurement result recording apparatus 1, as an example, a character string designated by the user (an example of “designated character string”: a character string “USER” in this example) and “0001” are initialized. As a value, a character string (an example of a “character string generated according to a predetermined generation rule”) indicating a 4-digit numerical value sequentially counted up as “0002”, “0003”... By arranging in order (an example of “predetermined order”), it is defined to generate a character string that constitutes a main body (a part excluding an extension) in a file name. Accordingly, in step 21 described above, the file name “USER0001.MEM” is generated as “specified file name”, and this file name is determined as “temporary file name”. In this example, as described later, the matter that the character string indicating the above four-digit numerical value is sequentially counted up from “0001” to “0002”, “0003”,. Corresponds to "Rule".

次いで、制御部5は、メモリーカード7のディレクトリエントリ領域からファイル名情報を読み出す(ステップ22)。この際に、制御部5は、メモリーカード7における「/data」 に記録されている各ファイル(測定データファイルD2およびその他のファイルを含む全てのファイル)の各ファイル名情報のうちの「ディレクトリエントリ領域内に最初に記録されているファイル名情報(ディレクトリエントリ領域におけるファイル名情報の記録領域における先頭部位に記憶されているファイル名情報)」を読み出す。続いて、制御部5は、読み出したファイル名情報に基づいて特定したファイル名(以下、単に「読み出したファイル名」ともいう)の拡張子と、測定データファイルD2の拡張子として規定されている拡張子(この例では、「MEM」 )とが同一であるか否かを判別する(ステップ23)。この際に、読み出したファイル名が、例えば「aaaa.txt」であったときに、制御部5は、拡張子が一致しないと判別する。   Next, the control unit 5 reads file name information from the directory entry area of the memory card 7 (step 22). At this time, the control unit 5 selects “directory entry” of the file name information of each file (all files including the measurement data file D2 and other files) recorded in “/ data” in the memory card 7. The file name information first recorded in the area (file name information stored in the head part of the file name information recording area in the directory entry area) is read out. Subsequently, the control unit 5 is defined as the extension of the file name specified based on the read file name information (hereinafter also simply referred to as “read file name”) and the extension of the measurement data file D2. It is determined whether or not the extension (“MEM” in this example) is the same (step 23). At this time, when the read file name is “aaaa.txt”, for example, the control unit 5 determines that the extensions do not match.

また、この例では、拡張子が互いに相違するため、読み出したファイル名の本体部、および後に記録させる測定データファイル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 memory card 7, the read file name information file is not erased by overwriting the measurement data file D2. Therefore, the control unit 5 excludes the read file name from the comparison target on the assumption that the two file names do not match without comparing the file name main body units (an example of “third process”). , It is determined whether or not the comparison of the file names for all the files recorded in “/ data” has been completed (step 24).

この際に、「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 control unit 5 sets the information (duplicate flag value) in the duplicate flag storage area 11 to “0”. ”(Step 25), the temporary file name“ USER0001.MEM ”is determined as the official file name (step 26), and the file name determination process 20 is terminated. Next, the control unit 5 reads the measurement data D1 from the storage unit 6 to generate the measurement data file D2, and the generated measurement data file D2 is a directory (in this example, designated by the input operation of the operation unit 3). “/ Data”) is recorded with the file name determined in the file name determination process 20 (in this example, the file name “USER0001.MEM”). Thereby, the recording process of the measurement data file D2 is completed.

一方、ファイル名決定処理20における上記のステップ23において、読み出したファイル名の拡張子と仮ファイル名の拡張子とが同一であると判別したき(一例として、読み出したファイル名が「aaaa0001.MEM」であったとき)には、制御部5は、記憶部6のファイル名記憶領域14に空き領域が存在するか否かを判別する(ステップ27)。この際には、ファイル名記憶領域14に十分な記憶領域が存在すると判別し、制御部5は、読み出したファイル名のうちの本体部を構成する文字列(この例では、「aaaa0001」との文字列)をファイル名記憶領域14に記憶させる(「第2の処理」の一例:ステップ28)。   On the other hand, in step 23 in the file name determination process 20, it is determined that the extension of the read file name is the same as the extension of the temporary file name (for example, the read file name is “aaaa0001.MEM ”), The control unit 5 determines whether or not a free area exists in the file name storage area 14 of the storage unit 6 (step 27). At this time, it is determined that there is a sufficient storage area in the file name storage area 14, and the control unit 5 determines a character string (in this example, “aaaa0001”) that constitutes the main body part of the read file name. (Character string) is stored in the file name storage area 14 (an example of "second processing": step 28).

次いで、制御部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 control unit 5 compares the read file name (the file name specified based on the file name information) with the temporary file name to determine whether or not both file names are the same (“temporary” An example of “first process for determining whether or not a data file with a file name is recorded in [any directory]”: step 29). At this time, since the two file names are not the same, the control unit 5 executes the determination process of step 24 again. At this time, if a file other than the measurement data file D2 having the file name “aaaa0001.MEM” does not exist in “/ data”, the control unit 5 determines that the value is “0” in step 25. The temporary file name “aaaa0001.MEM” is determined as the official file name (an example of “process A”: step 26), and the file name determination process 20 is terminated. As a result, the measurement data file D2 generated based on the measurement data D1 is recorded in “/ data” in the memory card 7 with the file name “aaaa0001.MEM”, and the recording process is completed.

また、ファイル名決定処理20における上記のステップ29において、読み出したファイル名(ファイル名情報に基づいて特定したファイル名)と、仮ファイル名とが同一であると判別したときに、制御部5は、記憶部6における重複フラグ記憶領域11に「1」との値を記憶させる(重複フラグを「1」にする:ステップ30)。次いで、制御部5は、上記のステップ24を実行して、「/data」 に記録されている他のファイルのファイル名と仮ファイル名との比較を完了していないと判別したときに、上記のステップ22に戻ってファイル名情報を読み出す。この際には、メモリーカード7における「/data」 に記録されている各ファイル(測定データファイルD2およびその他のファイルを含む全てのファイル)のファイル名情報のうちの、ディレクトリエントリ領域内に2番目に記録されているファイル名情報を読み出す。次いで、制御部5は、上記のステップ23以降の各ステップを順次実行する。   Further, when it is determined in step 29 of the file name determination process 20 that the read file name (the file name specified based on the file name information) is the same as the temporary file name, the control unit 5 Then, the value “1” is stored in the duplication flag storage area 11 in the storage unit 6 (the duplication flag is set to “1”: step 30). Next, when the control unit 5 executes the above step 24 and determines that the comparison between the file name of the other file recorded in “/ data” and the temporary file name has not been completed, Returning to step 22, the file name information is read. At this time, the file name information of each file (measurement data file D2 and all files including other files) recorded in “/ data” in the memory card 7 is second in the directory entry area. Read the file name information recorded in. Next, the control unit 5 sequentially executes the steps after step 23 described above.

この場合、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 above step 28 is executed 1000 times, an empty area (files already stored in the file name storage area 14). (An area in which a new file name can be stored without deleting the name) disappears (an example of “a state where the storage capacity of the file name storage area falls below a predetermined capacity”). Therefore, when the control unit 5 reads out the file name information about the 1001st measurement data file D2 from the many measurement data files D2 stored in “/ data” from the memory card 7 (step 22). ) After determining that the extension is “MEM” (step 23), it is determined that there is no free area in the file name storage area 14 (step 27).

この際に、制御部5は、ファイル名記憶領域14に記憶されている1000個のファイル名のうちの最先に記憶させたファイル名を消去すると共に、消去数カウンター領域12の値をカウントアップする(ステップ31)。次いで、制御部5は、1001個目の測定データファイルD2についてのファイル名を、上記のステップ31においてファイル名を消去した領域に記憶させる(ステップ28)。なお、最先に記憶させたファイル名をステップ31において消去した後に、新たなファイル名をステップ28において記憶させることで、最先に記憶させたファイル名が記憶されていた領域に新たなファイル名を記憶させる上記の方法に代えて、最先に記憶させたファイル名が記憶されている領域に新たなファイル名を直接上書きする方法を採用することもできる。続いて、制御部5は、1001個目の測定データファイルD2についてのファイル名と仮ファイル名とが同一であるか否かを判別した後に(ステップ29)、上記のステップ30以降の各処理を実行する。   At this time, the control unit 5 erases the file name stored first among the 1000 file names stored in the file name storage area 14 and counts up the value in the erase number counter area 12. (Step 31). Next, the control unit 5 stores the file name for the 1001st measurement data file D2 in the area where the file name has been deleted in step 31 (step 28). In addition, after deleting the file name memorize | stored first in step 31, a new file name is memorize | stored in step 28, and a new file name is stored in the area | region where the file name memorize | stored first is memorize | stored. Instead of the above method of storing the file name, a method of directly overwriting the new file name in the area storing the file name stored first can be employed. Subsequently, the control unit 5 determines whether or not the file name and the temporary file name for the 1001st measurement data file D2 are the same (step 29), and then performs each process after step 30 described above. Run.

一方、前述したように、制御部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 control unit 5 It is determined whether or not the value of the flag is “1” (step 25). At this time, when it is determined that the two file names are not the same in the determination process of step 29 for the file name of each file recorded in “/ data” (that is, the same as the temporary file name). When the measurement data file D2 having the file name does not exist in “/ data”), the process of the above step 30 is not executed, so that the value of the duplicate flag is “0” when the value is cleared in the above step 21. It is a value. Therefore, when the value of the duplication flag is “0”, as described above, the control unit 5 determines the temporary file name as an official file name, and ends the file name determination process 20.

また、仮ファイル名と同一のファイル名の測定データファイル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 above step 30 is executed after the discrimination process in the above step 29, and the value of the duplicate flag is “1”. " In such an example, when the temporary file name is determined as the official file name, the measurement data file D2 newly recorded on the memory card 7 is an existing measurement data file having the same file name as the temporary file name. The existing measurement data file D2 will be overwritten by overwriting D2. Therefore, the control unit 5 executes the file name change process 40 shown in FIG. 4 when determining that the value of the duplication flag is “1” in the above step 24.

このファイル名変更処理40では、上記のステップ21において決定したファイル名を、新たな仮ファイル名に変更する(仮ファイル名のリネーム:ステップ41)。具体的には、制御部5は、ステップ21において決定した「USER0001.MEM」とのファイル名を構成する文字列のうちの「0001」との文字列(「予め規定された生成規則に従って生成した文字列」の一例)を「0002」にカウントアップすると共に、ファイル名決定処理20の開始に先立って利用者によって指示された「USER」との文字列、および「0002」との文字列をこの順で並べてファイル名の本体部とし、かつ、測定データファイルD2の拡張子として予め規定された「MEM」 との文字列を組み合わせて「USER0002.MEM」とのファイル名を生成して、生成したファイル名を新たな仮ファイル名として決定する。これにより、仮ファイル名のリネームが完了する。   In this file name changing process 40, the file name determined in the above step 21 is changed to a new temporary file name (renaming the temporary file name: step 41). Specifically, the control unit 5 generates a character string “0001” of the character strings constituting the file name “USER0001.MEM” determined in step 21 (“generated according to a predetermined generation rule). An example of “character string” is counted up to “0002”, and the character string “USER” and the character string “0002” instructed by the user prior to the start of the file name determination process 20 are A file name “USER0002.MEM” is generated by combining the character string “MEM” defined in advance as an extension of the measurement data file D2 by arranging them in order. The file name is determined as a new temporary file name. Thereby, the renaming of the temporary file name is completed.

次いで、制御部5は、消去数カウンター領域12に記憶されている消去数カウンターの値が「0」であるか否かを判別する(ステップ42)。この際に、メモリーカード7における「/data」 に既存の測定データファイルD2が存在し、その数が1000個以下であるときには、「/data」 に記録されているすべての測定データファイルD2のファイル名をファイル名記憶領域14に記憶させることができるため、上記のステップ27において空き領域が存在しないと判別されてステップ31(ファイル名記憶領域14に記憶されているファイル名の消去、および消去数カウンターのカウントアップ)が実行されることがない。したがって、制御部5は、消去数カウンターの値が「0」のときには、上記のステップ41において変更した(新たに決定した)仮ファイル名と、ファイル名記憶領域14に記憶されているファイル名とを比較して(ステップ43)、両ファイル名が同一であるか否かを判別する(ステップ44)。   Next, the control unit 5 determines whether or not the value of the erase number counter stored in the erase number counter area 12 is “0” (step 42). At this time, when the existing measurement data file D2 exists in “/ data” in the memory card 7 and the number thereof is 1000 or less, all the measurement data files D2 recorded in “/ data” are stored. Since the name can be stored in the file name storage area 14, it is determined in step 27 that there is no free area, and step 31 (deletion of the file name stored in the file name storage area 14 and the number of deletions) (Counter counting up) is never executed. Therefore, when the value of the erasure number counter is “0”, the control unit 5 changes the temporary file name changed (newly determined) in the above step 41 and the file name stored in the file name storage area 14. Are compared (step 43) to determine whether or not both file names are the same (step 44).

この際に、記憶部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 name storage area 14 of the storage unit 6 is the time required for reading the file name information recorded in the directory entry area in the information recording medium such as the memory card 7. Compared with the time required, it is an extremely short time of about several tenths to one hundredths. Therefore, the measurement result recording device for determining whether or not the measurement data file D2 having the temporary file name is recorded in “/ data” by comparing the file name read from the file name storage area 14 with the temporary file name. 1, by comparing the file name specified based on the file name information read from the memory card 7 with the temporary file name, whether or not the measurement data file D2 of the temporary file name is recorded in “/ data”. The file name comparison process can be completed in a very short time compared to determining the file name.

なお、この例では、仮ファイル名を変更する上記のステップ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 above step 41 for changing the temporary file name, the file name in the file name storage area 14 is compared with the temporary file name, so that “/ data” has the same file name as the temporary file name. The process up to step 44 described above for determining whether or not the measurement data file D2 is recorded corresponds to “process B”. When the control unit 5 determines in step 44 that the file name stored in the file name storage area 14 is the same as the temporary file name, the control unit 5 returns to step 41 and returns to the temporary file name. To a new temporary file name. At this time, the file name “USER0003.MEM” is determined as a new file name, and the discrimination process of step 42 is executed (“process B” is executed according to the discrimination result of “process B”). Example). If it is determined in step 44 that the two file names are not the same, the control unit 5 ends the file name changing process 40 and officially determines the file name newly determined in step 41. The file name determination process 20 is terminated (an example in which “process A” is executed according to the determination result of “process B”).

一方、上記のステップ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 step 27 that there is no free space and step 31 is executed, each measurement data file D2 recorded in “/ data” is recorded. As for some of the measurement data files D 2, the file names are not stored in the file name storage area 14. Therefore, when the value of the erase number counter is “1” or more, the control unit 5 first stores the value “0” in the read completion number counter area 13 to reset the value of the read completion number counter. (Step 45). In this case, the read completion number counter area 13 stores the value of the “read completion number counter” that is counted up when the file name information is read from the directory entry area of the memory card 7 or the like in the steps described later. It is an area.

次いで、制御部5は、メモリーカード7のディレクトリエントリ領域からファイル名情報を読み出す(ステップ46)。この際に、制御部5は、前述したステップ22の読出し処理時と同様にして、メモリーカード7における「/data」 に記録されている各ファイル(測定データファイルD2およびその他のファイルを含む全てのファイル)のファイル名情報のうちの「ディレクトリエントリ領域内に最初に記録されているファイル名情報」を読み出す。続いて、制御部5は、読み出したファイル名情報に基づいて特定したファイル名(読み出したファイル名)の拡張子と、測定データファイルD2の拡張子として規定された拡張子(この例では、「MEM」 )とが同一であるか否かを判別する(ステップ47)。   Next, the control unit 5 reads the file name information from the directory entry area of the memory card 7 (step 46). At this time, the control unit 5 performs the same processing as that at the time of the reading process in step 22 described above on each file (measurement data file D2 and all other files including other files) recorded in “/ data” in the memory card 7. "File name information recorded first in the directory entry area" in the file name information of the file) is read. Subsequently, the control unit 5 determines the extension of the file name (read file name) specified based on the read file name information and the extension defined as the extension of the measurement data file D2 (in this example, “ MEM ") is the same (step 47).

この際に、読み出したファイル名の拡張子が「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 memory card 7 Is not erased by overwriting the measurement data file D2. Therefore, the control unit 5 excludes the read file name from the comparison target on the assumption that the file names do not match without comparing the file name main body parts (an example of “fourth process”). Returning to step 46, the “second file name information recorded in the directory entry area” of the file name information of each file recorded in “/ data” is read out, and the discrimination process in step 47 is performed. Execute.

また、上記のステップ47において、読み出したファイル名の拡張子と仮ファイル名の拡張子とが同一であると判別したときには、制御部5は、読み出したファイル名と仮ファイル名とを比較して(ステップ48)、両ファイル名が同一であるか否かを判別する(ステップ49)。この際に、読み出したファイル名と仮ファイル名とが同一のとき(すなわち、仮ファイル名と同一のファイル名の測定データファイルD2が「/data」 に存在するとき)には、その仮ファイル名を正式なファイル名として決定して測定データファイルD2を「/data」 に記録させたときに、ステップ46においてファイル名情報を読み出したファイル(仮ファイル名と同じファイル名の既存の測定データファイルD2)が、新たな測定データファイルD2の記録によって消去されてしまう。したがって、制御部5は、読み出したファイル名と仮ファイル名とが同一のときに、上記のステップ41に戻って、仮ファイル名を新たな仮ファイル名に変更した後に、ステップ42以降の処理を再び実行する。   When it is determined in step 47 that the extension of the read file name is the same as the extension of the temporary file name, the control unit 5 compares the read file name with the temporary file name. (Step 48), it is determined whether or not both file names are the same (Step 49). At this time, when the read file name and the temporary file name are the same (that is, when the measurement data file D2 having the same file name as the temporary file name exists in “/ data”), the temporary file name Is the official file name and the measurement data file D2 is recorded in “/ data”, and the file name information read out in step 46 (the existing measurement data file D2 having the same file name as the temporary file name) ) Is erased by recording a new measurement data file D2. Therefore, when the read file name and the temporary file name are the same, the control unit 5 returns to the above step 41, changes the temporary file name to a new temporary file name, and then performs the processing after step 42. Run again.

一方、上記のステップ49において読み出したファイル名と仮ファイル名とが同一ではないと判別したときに、制御部5は、読出し完了数カウンターの値をカウントアップすると共に(ステップ50)、カウントアップ後の読出し完了数カウンターの値と、消去数カウンターの値とが一致するか否かを判別する(ステップ51)。   On the other hand, when it is determined that the file name read in step 49 is not the same as the temporary file name, the control unit 5 counts up the value of the read completion number counter (step 50) and after the count up It is determined whether or not the value of the read completion number counter matches the value of the erase number counter (step 51).

この場合、一例として、「/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 name storage area 14. Therefore, in this example, the file name information for the 1001st measurement data file D2 is read in the process of step 22, and it is determined in the subsequent step 27 that there is no free area in the file name storage area 14. In step 31, the file name stored first is deleted from the file name storage area 14, and the value of the deletion number counter is counted up.

したがって、「/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 name storage area 14 except for the measurement data files D2 corresponding to the number of erase number counters. Therefore, the control unit 5 sets the file name and the temporary file name specified based on the file name information read from the directory entry area of the memory card 7 for the measurement data files D2 corresponding to the number of erase number counters. By comparing, it is determined whether or not the file name of the measurement data file D2 matches the temporary file name (an example of “processing B for data file whose file name is not stored in the file name storage area”): Step 48 49).

この場合、前述したステップ31において、ファイル名記憶領域14に記憶されているファイル名のうちの最先に記憶させたファイル名に代えて、例えば、最新に記憶させたファイル名を消去する方法を採用したときには、ディレクトリエントリ領域の1001番目のファイル名情報に基づいて特定されるファイル名と仮ファイル名とを比較する際に、ディレクトリエントリ領域の1000番目のファイル名情報に基づいて特定されたファイル名がファイル名記憶領域14から消去されることとなる。したがって、この例では、上記のステップ46において、この1000番目のファイル名情報をディレクトリエントリ領域から読み出す必要が生じる。このため、1000番目のファイル名情報を読み出すために、999個の不要なファイル名情報(対応するファイル名がファイル名記憶領域14に記憶されているファイル名情報)を読み飛ばす処理が必要となってしまう。   In this case, in step 31 described above, instead of the file name stored first in the file names stored in the file name storage area 14, for example, a method of erasing the file name stored last is used. When adopted, when comparing the file name specified based on the 1001st file name information in the directory entry area with the temporary file name, the file specified based on the 1000th file name information in the directory entry area The name is deleted from the file name storage area 14. Therefore, in this example, it is necessary to read out the 1000th file name information from the directory entry area in step 46 described above. Therefore, in order to read out the 1000th file name information, it is necessary to skip 999 unnecessary file name information (file name information in which the corresponding file name is stored in the file name storage area 14). End up.

これに対して、前述したステップ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 name storage area 14 is deleted in the above-described step 31, 1001 measurements are made in “/ data”. In the above example in which the data file D2 exists, the file name of the measurement data file D2 corresponding to the file name information initially recorded in the directory entry area is not stored in the file name storage area 14. Therefore, in the above step 46, the file name of the measurement data file D2 whose file name is not stored in the file name storage area 14 can be specified by reading the first file name information from the directory entry area. For this reason, unlike the above-described example in which the latest stored file name is deleted in step 31, the file name comparison for the measurement data file D2 is performed by the amount corresponding to the unnecessary skipping of the file name information. Processing can be performed in a short time.

一方、消去数カウンターの値の数分だけ上記のステップ48,49を実行することで、その後に実行されるステップ50において読出し完了数カウンターの値が消去数カウンターの値と一致する状態となったとき(すなわち、消去数カウンターの値の数分のファイル名の比較処理が完了したとき)には(ステップ51)、制御部5は、前述したステップ43,44の処理を実行する。これにより、「/data」 に記録されている測定データファイルD2のうちの消去数カウンターの値の数分を除く測定データファイルD2については、ファイル名記憶領域14内に記録されているファイル名と仮ファイル名とが比較されることで、その測定データファイルD2のファイル名が仮ファイル名と一致するかが判別される(「ファイル名記憶領域にファイル名が記憶されているデータファイルについての処理B」の一例)。   On the other hand, by executing the above-described steps 48 and 49 for the number of erase number counters, the read completion number counter value coincides with the erase number counter value in the subsequent step 50. At that time (that is, when the file name comparison process has been completed for the number of erasure counters) (step 51), the control unit 5 executes the processes of steps 43 and 44 described above. As a result, for the measurement data file D2 excluding the number of erasure count counter values in the measurement data file D2 recorded in “/ data”, the file name recorded in the file name storage area 14 and By comparing the temporary file name with the temporary file name, it is determined whether or not the file name of the measurement data file D2 matches the temporary file name ("Processing for data file in which file name is stored in file name storage area" An example of “B”).

この後、制御部5は、上記のステップ44においてファイル名記憶領域14内のファイル名と仮ファイル名とが同一ではないと判別したときに、このファイル名変更処理40を終了して、仮ファイル名を正式なファイル名として決定する(ステップ26)。次いで、制御部5は、記憶部6から測定データD1を読み出して測定データファイルD2を生成すると共に、生成した測定データファイルD2を、操作部3の入力操作によって指示されたディレクトリに、上記のファイル名決定処理20で決定したファイル名で記録させる。これにより、測定データファイルD2の記録処理が完了する。   Thereafter, when the control unit 5 determines that the file name in the file name storage area 14 and the temporary file name are not the same in the above step 44, the control unit 5 ends the file name changing process 40 and the temporary file. The name is determined as the official file name (step 26). Next, the control unit 5 reads out the measurement data D1 from the storage unit 6 to generate the measurement data file D2, and stores the generated measurement data file D2 in the directory specified by the input operation of the operation unit 3 in the above file. The file name determined in the name determination process 20 is recorded. Thereby, the recording process of the measurement data file D2 is completed.

なお、新たな測定データファイルD2をメモリーカード7に記録させる際の処理に関して説明したが、メモリーカード7内の「いずれかのディレクトリ」に記録されている測定データファイルD2(既存の測定データファイルD2)のリネームに際しても、リネーム後のファイル名が指定されたときに、上記のファイル名決定処理20が実行されて、ファイル名の重複チェック、および正式なファイル名の決定が行われる。これにより、既存の測定データファイルD2のファイル名がファイル名決定処理20によって決定された新たなファイル名にリネームされる。   The process for recording a new measurement data file D2 on the memory card 7 has been described. However, the measurement data file D2 recorded in “any directory” in the memory card 7 (the existing measurement data file D2 When the file name after the renaming is designated, the above file name determination process 20 is executed to check the duplication of the file name and determine the official file name. As a result, the file name of the existing measurement data file D2 is renamed to a new file name determined by the file name determination process 20.

このように、この測定結果記録装置1、および測定結果記録装置1における測定結果記録方法では、仮ファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されていないときに、仮ファイル名を正式なファイル名として決定する「処理A」を実行し、仮ファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されているときに、その仮ファイル名を新たな仮ファイル名にリネームすると共に、記憶部6内に規定されたファイル名記憶領域14にファイル名が記憶されている測定データファイルD2についてはファイル名記憶領域14内のファイル名および仮ファイル名を比較し、かつファイル名記憶領域14にファイル名が記憶されていない測定データファイルD2についてはメモリーカード7から読み出したファイル名情報に基づいて特定したファイル名および仮ファイル名を比較することで、仮ファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されているかを判別する「処理B」を実行し、「処理B」の判別結果に応じて「処理A」および「処理B」のいずれかを実行するとの処理を、「処理A」の実行によって正式なファイル名が決定されるまで繰り返す。   As described above, in the measurement result recording apparatus 1 and the measurement result recording method in the measurement result recording apparatus 1, the temporary file name is obtained when the measurement data file D2 having the temporary file name is not recorded in "any directory". Is executed as a formal file name, and when the measurement data file D2 of the temporary file name is recorded in “any directory”, the temporary file name is changed to a new temporary file name. In addition to renaming, for the measurement data file D2 whose file name is stored in the file name storage area 14 defined in the storage unit 6, the file name and temporary file name in the file name storage area 14 are compared, and the file For the measurement data file D2 whose file name is not stored in the name storage area 14, from the memory card 7. “Processing B” for determining whether the measurement data file D2 of the temporary file name is recorded in “any directory” by comparing the file name specified based on the extracted file name information and the temporary file name. And repeat the process of executing either “process A” or “process B” according to the determination result of “process B” until the formal file name is determined by executing “process A”. .

したがって、この測定結果記録装置1、およびその測定結果記録方法によれば、仮ファイル名と同一のファイル名の測定データファイルD2が「いずれかのディレクトリ」(上記の例では「/data」 )に記録されているかをチェックする際に、そのディレクトリに記録されている測定データファイルD2のうちのファイル名記憶領域14にファイル名を記憶させることができる数分の測定データファイルD2については、対応するファイル名情報をメモリーカード7から1回読み出すだけで、その後に他の仮ファイル名との比較を行う際に、ファイル名情報の読み出しよりも短時間で読み出し可能なファイル名記憶領域14内のファイル名を比較対象として、仮ファイル名と同一のファイル名の測定データファイルD2が「いずれかのディレクトリ」に記録されているかをチェックすることができる。このため、メモリーカード7に既に記録されている測定データファイルD2のファイル名とは相違するファイル名を短時間で決定することができる結果、既存の測定データファイルD2を失うことなく、新たな測定データファイルD2を短時間で確実にメモリーカード7に記録させることができる。   Therefore, according to the measurement result recording apparatus 1 and the measurement result recording method, the measurement data file D2 having the same file name as the temporary file name is stored in “any directory” (“/ data” in the above example). When checking whether it is recorded, the number of measurement data files D2 that can be stored in the file name storage area 14 in the measurement data file D2 recorded in the directory corresponds. A file in the file name storage area 14 that can be read out in a shorter time than reading out the file name information when the file name information is read once from the memory card 7 and then compared with other temporary file names. As a comparison target, the measurement data file D2 having the same file name as the temporary file name is “any directory. It is possible to check whether it is recorded in the Li ". For this reason, a file name different from the file name of the measurement data file D2 already recorded in the memory card 7 can be determined in a short time. As a result, a new measurement can be performed without losing the existing measurement data file D2. The data file D2 can be reliably recorded on the memory card 7 in a short time.

また、この測定結果記録装置1によれば、仮ファイル名の拡張子とは相違する拡張子のファイル名を仮ファイル名とは不一致と判別して「第1の処理」および「処理B」における仮ファイル名との比較対象から除外することにより、新たに記録させる測定データファイルD2とは拡張子が相違することで、その測定データファイルD2の記録によって消去されることのないファイルについての不要な処理(ファイル名の本体部の比較処理やファイル名記憶領域14への記憶処理)を行わない分だけ、メモリーカード7に既に記録されている測定データファイルD2のファイル名とは相違するファイル名を一層短時間で特定することができる。   Further, according to the measurement result recording apparatus 1, it is determined that the file name having an extension different from the extension of the temporary file name does not match the temporary file name, and the “first process” and “process B” are performed. By excluding it from the comparison target with the temporary file name, the extension of the measurement data file D2 to be newly recorded is different, so that the file that is not deleted by the recording of the measurement data file D2 is unnecessary. A file name that differs from the file name of the measurement data file D2 already recorded in the memory card 7 by the amount not subjected to the processing (comparison processing of the main body of the file name or storage processing in the file name storage area 14). It can be specified in a shorter time.

さらに、この測定結果記録装置1によれば、利用者によって指定された文字列(上記の例では、「USER」との文字列)と生成規則に従って生成した文字列(上記の例では、「0001」等の4桁の数値を表す文字列)とを予め規定された順序で組み合わせた文字列(この例では、「USER0001」などの文字列)を「指定されたファイル名」として「第1の処理」を実行すると共に、「処理B」において、上記の生成規則に従って生成した文字列を変更して仮ファイル名を新たな仮ファイル名にリネームすることにより、例えば、ファイル名における本体部を構成する文字列のすべてを制御部5が変更規則に従って変更して新たな仮ファイル名とする構成(方法)とは異なり、仮ファイル名をどのように変更したとしても、利用者が最初に指定した文字列を含んだファイル名が仮ファイル名として生成されるため、利用者が最初に指定した文字列に基づき、どのような測定データについての測定データファイルD2であるかを利用者に対して確実に認識させ得るファイル名を正式なファイル名として決定することができる。   Further, according to the measurement result recording apparatus 1, a character string specified by the user (in the above example, a character string “USER”) and a character string generated according to the generation rule (in the above example, “0001”). A character string (in this example, a character string such as “USER0001”) that is combined with a four-digit numerical value such as “” in a predetermined order is designated as the “specified file name”. In the “Process B”, the character string generated according to the above generation rule is changed and the temporary file name is renamed to a new temporary file name. Unlike the configuration (method) in which the control unit 5 changes all the character strings to be changed in accordance with the change rule to make a new temporary file name, the user first designates no matter how the temporary file name is changed. String Since the included file name is generated as a temporary file name, the user is surely recognized what measurement data file D2 is based on the character string initially specified by the user. The file name to be obtained can be determined as the official file name.

また、この測定結果記録装置1によれば、「第2の処理」においてファイル名記憶領域14の記憶可能容量が予め規定された容量を下回った状態(空き領域が存在しなくなった状態)でファイル名記憶領域14に新たなファイル名を記憶させるときに、ファイル名記憶領域14に記憶されているファイル名のうちの最先に記憶させたファイル名が記憶されている領域に新たなファイル名を記憶させることにより、新たな測定データファイルD2を記録させるディレクトリ内に記録されている各測定データファイルD2のうちの、ファイル名記憶領域14にファイル名が記録されていない測定データファイルD2のファイル名と仮ファイル名とを比較する際に、ファイル名記憶領域14にファイル名が記憶されている測定データファイルD2についてのファイル名情報を読み飛ばすという不要な処理(ディレクトリエントリ領域からファイル名情報を読み出すが、比較処理等を行わずにそのまま破棄して、次のファイル名情報を読み出すとの処理)を行うことなく、ディレクトリエントリ領域におけるファイル名情報の記録領域の先頭部位に記録されているファイル名情報から順に読み出して仮ファイル名と比較することができるため、メモリーカード7に既に記録されている測定データファイルD2のファイル名とは相違するファイル名を一層短時間で特定することができる。   Further, according to the measurement result recording apparatus 1, the file is stored in a state where the storable capacity of the file name storage area 14 is less than a predetermined capacity in the “second processing” (the free area no longer exists). When a new file name is stored in the name storage area 14, a new file name is stored in the area storing the file name stored first among the file names stored in the file name storage area 14. By storing, the file name of the measurement data file D2 in which the file name is not recorded in the file name storage area 14 among the measurement data files D2 recorded in the directory in which the new measurement data file D2 is recorded. And the temporary file name are compared with the measurement data file D2 in which the file name is stored in the file name storage area 14. To perform unnecessary processing (reading file name information from the directory entry area but discarding it without performing comparison processing and reading the next file name information). Since the file name information recorded in the head part of the file name information recording area in the directory entry area can be read out sequentially and compared with the temporary file name, the measurement data file already recorded in the memory card 7 can be obtained. A file name different from the file name of D2 can be specified in a shorter time.

なお、「測定結果記録装置」の構成、および「測定結果記録方法」の具体的な手順は、上記の測定結果記録装置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 result recording device 1 and the example of the measurement result recording method. For example, in the file name determination process 20 described above, the “first process (step 29)” is executed after the “second process (step 28)” is executed. The “second process” for storing the “file name” in the “file name storage area” is after the completion of the “first process” (specifically, after executing the above steps 29 and 30). It may be performed before step 24). Further, instead of step 28 in the file name determination process 20, not only a character string constituting the main body part in the file name but also a character string including an extension in the file name is stored in the file name storage area 14 (method). Can also be adopted. Further, the measurement result recording apparatus 1 including the measurement unit 2 has been described as an example, but the “measurement result recording apparatus” is configured only by the constituent elements other than the measurement unit 2 in the measurement result recording apparatus 1. The configuration in which the measurement data D1 in the above example is received from the measurement device as an external device configured similarly to the measurement unit 2 in the measurement result recording device 1 and the measurement data file D2 is recorded in the memory card 7 is adopted. You can also. Even when such a configuration is adopted, the same effects as those of the measurement result recording apparatus 1 can be obtained.

1 測定結果記録装置
5 制御部
6 記憶部
7 メモリーカード
11 重複フラグ記憶領域
12 消去数カウンター領域
13 読出し完了数カウンター領域
14 ファイル名記憶領域
20 ファイル名決定処理
40 ファイル名変更処理
D1 測定データ
D2 測定データファイル
DESCRIPTION OF SYMBOLS 1 Measurement result recording apparatus 5 Control part 6 Memory | storage part 7 Memory card 11 Duplicate flag storage area 12 Erase number counter area 13 Reading completion number counter area 14 File name storage area 20 File name determination process 40 File name change process D1 Measurement data D2 measurement data file

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の処理おける当該仮ファイル名との比較対象から除外する第3の処理を当該第1の処理に先立って実行すると共に、前記仮ファイル名の拡張子とは相違する拡張子の前記ファイル名を当該仮ファイル名とは不一致と判別して前記処理Bにおける当該仮ファイル名との比較対象から除外する第4の処理を当該処理Bに先立って実行する請求項1記載の測定結果記録装置。 Wherein the control unit, compared with the temporary file name extension to the file name the temporary file name to the first processing Contact Keru the temporary file name to determine the mismatch extension that is different from the The third process to be excluded from the file is executed prior to the first process, and 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. The measurement result recording apparatus according to claim 1 , wherein a fourth process to be excluded from a comparison target with the temporary file name in the process B is executed prior to the process B. 前記制御部は、指定された文字列と予め規定された生成規則に従って生成した文字列とを予め規定された順序で組み合わせた文字列を前記指定されたファイル名として前記第1の処理を実行すると共に、前記処理Bにおいて、前記生成規則に従って生成した前記文字列を前記変更規則に従って変更して前記仮ファイル名を前記新たな仮ファイル名にリネームする請求項1または2記載の測定結果記録装置。   The control unit executes the first process using a character string obtained by combining a designated character string and a character string generated according to a predefined generation rule in a predetermined order as the specified file name. The measurement result recording apparatus according to claim 1, wherein, in the process B, the character string generated according to the generation rule is changed according to the change rule, and the temporary file name is renamed to the new temporary file name. 前記制御部は、前記第2の処理において前記ファイル名記憶領域の記憶可能容量が予め規定された容量を下回った状態で当該ファイル名記憶領域に新たなファイル名を記憶させるときに、当該ファイル名記憶領域に記憶されているファイル名のうちの最先に記憶させたファイル名が記憶されている領域に前記新たなファイル名を記憶させる請求項1から3のいずれかに記載の測定結果記録装置。   When the control unit stores a new file name 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, the file name The measurement result recording apparatus according to any one of claims 1 to 3, wherein the new file name is stored in an area in which a file name stored first among file names stored in a storage area is stored. . 測定結果のデータファイルを情報記録媒体に記録可能に構成された測定結果記録装置において当該データファイルを当該情報記録媒体に記録させる測定結果記録方法であって、
前記情報記録媒体におけるいずれかのディレクトリに記録させる前記データファイルのファイル名本体部および拡張子からなるファイル名、および前記情報記録媒体におけるいずれかのディレクトリに記録されている前記データファイルのリネーム後のファイル名本体部および拡張子からなるファイル名のいずれかが指定されたときに、当該情報記録媒体に記録されているファイルのうちの比較対象とするファイルファイル名本体部および拡張子からなるファイル名を特定可能なファイル名情報を当該情報記録媒体から読み出すと共に前記指定されたファイル名を仮ファイル名として前記ファイル名情報に基づいて特定したファイル名と比較して当該仮ファイル名の前記データファイルが前記いずれかのディレクトリに記録されているか否かを判別する第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.
JP2012028589A 2012-02-13 2012-02-13 Measurement result recording apparatus and measurement result recording method Active JP5940317B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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 processor
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

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
US7499930B2 (en) Data processing apparatus, data processing method, and data processing program
US10133568B2 (en) Embedding code anchors in software documentation
US7624275B2 (en) Disk drive, control method thereof and disk-falsification detection method
JP5370744B2 (en) Measuring system
US7676760B1 (en) Methods and apparatus for analysis of access logs
US10359903B2 (en) Method of evaluating an electronic device involving display of a characteristic parameter item or a characteristic graph item in a data sheet format, apparatus therefor, and recording medium therefor
JP5940317B2 (en) Measurement result recording apparatus and measurement result recording method
JP2011258064A (en) Data collecting and recording apparatus, and data collecting and recording method
Burghardt et al. Using the HFS+ journal for deleted file recovery
JP2011100419A (en) File browser
JP4281220B2 (en) Data management device for analytical instruments
JP6943128B2 (en) Analytical database registration device, analytical data collection system, analytical system and analytical database registration method
JP5543324B2 (en) Waveform analyzer
JP4829367B1 (en) Status display control apparatus, method, and status display control system
JP5109469B2 (en) Waveform measuring device
JP5493348B2 (en) Data management apparatus and waveform measuring apparatus
US20240045416A1 (en) Logging support apparatus, logging system, method for logging support, and recording medium
JP2019106093A (en) Computer, method of reproducing log, and storage medium
JP5076621B2 (en) Patent analysis program, patent analysis method and patent analysis apparatus
JP4770532B2 (en) Waveform display device and program
JP6910916B2 (en) Data recording device and measurement system
JP2005345392A (en) Measured data saving method, and measured data saving device
JP6213305B2 (en) Information processing program, information processing apparatus, and information processing method
JPH0588958A (en) File erasing device

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