CN105404623A - Measurement equipment with file reading function and file reading device - Google Patents

Measurement equipment with file reading function and file reading device Download PDF

Info

Publication number
CN105404623A
CN105404623A CN201410424880.5A CN201410424880A CN105404623A CN 105404623 A CN105404623 A CN 105404623A CN 201410424880 A CN201410424880 A CN 201410424880A CN 105404623 A CN105404623 A CN 105404623A
Authority
CN
China
Prior art keywords
file
internal memory
directory
fileinfo
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410424880.5A
Other languages
Chinese (zh)
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.)
Suzhou Rigol Precision Electric Technologies Co Ltd
Original Assignee
Suzhou Rigol Precision Electric Technologies Co Ltd
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 Suzhou Rigol Precision Electric Technologies Co Ltd filed Critical Suzhou Rigol Precision Electric Technologies Co Ltd
Priority to CN201410424880.5A priority Critical patent/CN105404623A/en
Publication of CN105404623A publication Critical patent/CN105404623A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The invention provides a file reading device for measurement equipment and the measurement equipment with a file reading function. The device comprises a reading unit, a display unit and a judging unit, wherein the reading unit is used for reading file information under the current directory from a memory to an internal memory of the measurement equipment when entering the current directory; the display unit is used for displaying subdirectories under the current directory on a display on the measurement equipment according to the file information in the internal memory; the subdirectories are files and/or file holders; the judging unit is used for judging whether the internal memory is enough when the reading unit reads the file information to the internal memory; when the judging unit judges that the internal memory is enough, the reading unit continues the reading until all the file information under the current directory is read into the internal memory; and the file information under the former directory is cached in the internal memory. According to the file reading device, corresponding file information is directly read from the internal memory to display when the former directory is visited for the next time, so that the reading time is saved and the users can check conveniently and rapidly.

Description

There is measuring equipment and the document reading apparatus of file read functions
Technical field
The present invention relates to thermometrically technical field, particularly relate to a kind of document reading apparatus for measuring equipment and a kind of measuring equipment with file read functions.
Background technology
Measuring equipment can read the file that storer stores and show, and this storer can be the storer of measuring equipment therein, can be also external memory storage, as USB flash disk etc.First; current directory is entered from the display interface of measuring equipment; fileinfo under current directory is read in the internal memory of operation from storer; the filename, file size, file attribute etc. of the first order sub-directory (file and/or file) of this fileinfo normally under current directory; then; from internal memory, read described fileinfo show; operations such as checking to facilitate user, select, open, shown content can show disk, file or folder identifier, filename, file size etc. in the mode be similar on PC usually.
Measuring equipment on existing market, provide the similar button entering file, user can check the fileinfo of certain file inside (its first order son file or file) by selection key, simultaneously, these fileinfos are cached in internal memory, when user selects to exit current file folder, system all can be deleted the fileinfo of this file inside from internal memory.When user enters this file again, system needs the fileinfo again reading this file inside from storer in internal memory, and the file adding each access file folder reads the time.That is, when user switches catalogue on display interface, selecting to launch catalogue just reads the fileinfo under current directory in internal memory, under being switched to other catalogue, or when exiting current directory, fileinfo in internal memory before can be deleted, during catalogue before access again, the required time is longer.
In addition, also there is a problem in existing measuring equipment: the size of internal memory is limited, can not deposit too many data in internal memory.When the file under a catalogue and/or number of folders too many time, all files information under this catalogue cannot be read in internal memory, but the fileinfo of the partial document selecting to read under this catalogue and/or file, other part does not show.That is, if when the number of the file under current directory and file exceeds a maximum limits value, then can not all be shown on interface.Such as, limits value is 50, if the file under current directory and/or the number of file are more than 50, only the fileinfo of 50 files and/or file is read in internal memory, accordingly, display interface only shows the fileinfo of 50 files and/or file, the fileinfo of other file and/or file does not show.
Summary of the invention
Technical matters to be solved by this invention is: when switching the catalogue of current display on the display interface of measuring equipment, the slow problem of file reading.
In order to solve the problem, the invention discloses a kind of document reading apparatus for measuring equipment, comprising:
Reading unit, for when entering current directory, reads the fileinfo under current directory in the internal memory of described measuring equipment from storer;
Display unit, the sub-directory under the display of the fileinfo in foundation internal memory on described measuring equipment displays the name of the current directory; Described sub-directory is file and/or file;
Judging unit, for while reading unit file reading information to internal memory, judges that whether internal memory is sufficient;
Described reading unit, when judging unit judges that internal memory is sufficient, continues to read, until all files information under current directory reads in internal memory; The fileinfo under last catalogue is cached with in described internal memory.
The present invention before exit a catalogue, when entering current directory, under the condition of internal memory abundance, do not delete the fileinfo under last catalogue, fileinfo then under last catalogue is also kept in internal memory, during the last catalogue of access next time, directly to read corresponding fileinfo and to show from internal memory, without the need to again from storer file reading information to internal memory, save the reading time, convenient and swift when user checks.
Illustrate as one, described device also comprises: delete cells, for when judging unit judges low memory, delete the fileinfo under other catalogues in internal memory except the fileinfo under current directory, then triggering reading unit and judging unit work simultaneously, make judging unit while reading unit file reading information to internal memory, again judge that whether internal memory is sufficient, reading unit is when judging unit judges that internal memory is sufficient again, continue to read, until all files information under current directory reads in internal memory.Then, when the sub-directory under current directory is more, by deleting the fileinfo under other catalogues, the fileinfo of the whole sub-directories under also can displaying the name of the current directory.
Illustrate as one, described reading unit is also for after deleting the fileinfo under other catalogues in internal memory except the fileinfo under current directory, when judging unit judges low memory again, no longer continue to read, make to be cached with in described internal memory the partial document information under current directory.
Illustrate as one, the continuation reading command of described delete cells also for triggering according to user, delete the described partial document information in internal memory under current directory wherein part or all, then trigger described reading unit read current directory under the alternative document information except described partial document information; The display of fileinfo in described display unit foundation internal memory on described measuring equipment upgrades the sub-directory under displaying the name of the current directory.
Then, continuing reading command by repeatedly triggering to produce, repeatedly can access storer file reading information, the fileinfo viewing all sub-directories under current directory that user is complete can be made.In addition, the maximum file number supported due to internal memory is limited, and after all deleting described partial document information, the alternative document information that reading unit reads will be many, needs less number of times just can travel through all files information of current directory.Delete the wherein part in described partial document information, in order that when behind the bottom that user views directory listing towards a direction or top, check in the opposite direction again, can not, again from storer to internal memory file reading information, avoid repeating to read; Further, when the maximum file number of internal memory support is very large, only deletes a part, compare whole deletion, when reading unit reads alternative document information to internal memory, the time needed for reading can be reduced.
Illustrate as one, described continuation reading command is: the continuation reading command of checking backward, a wherein part for described partial document information in the internal memory that described delete cells is deleted under current directory is: according to putting in order of the file corresponding with described partial document information and/or file, delete the fileinfo of a part of file and/or the file put in order up front; The alternative document information except described partial document information except under the current directory that described reading unit reads is: according to putting in order of the file corresponding with described partial document information and/or file, the file after putting in order described in reading follows closely and/or the fileinfo of file.
Illustrate as one, described continuation reading command is: the continuation reading command of checking forward, a wherein part for described partial document information in the internal memory that described delete cells is deleted under current directory is: according to putting in order of the file corresponding with described partial document information and/or file, delete put in order in the end a part of file in face and/or the fileinfo of file; The alternative document information except described partial document information except under the current directory that described reading unit reads is: according to putting in order of the file corresponding with described partial document information and/or file, the file before putting in order described in reading follows closely and/or the fileinfo of file.
Illustrate as one, described judging unit judges whether abundance is internal memory: judge whether the number of the sub-directory that the fileinfo of buffer memory is corresponding in internal memory is less than a predetermined threshold value, if be less than described predetermined threshold value, then internal memory is sufficient; If be more than or equal to described predetermined threshold value, then low memory.
Accordingly, the invention also discloses a kind of measuring equipment with file read functions, there is aforesaid document reading apparatus.
Illustrate as one, described measuring equipment also comprises:
Catalogue options button, chooses a sub-directory of current directory over the display for user;
When the interval of last sub-directory of current directory is less than a first predetermined directory number on chosen sub-directory and display, trigger the continuation reading command that generation one is checked backward; Or, when the interval of first sub-directory of current directory on chosen sub-directory and display is less than a second predetermined directory number, trigger the continuation reading command that generation one is checked forward.
Then, utilize catalogue options button to the selection of sub-directory, when find user check the trend of other sub-directories time, just can produce continuation reading command, be convenient to user view current directory in advance under other sub-directory.
Illustrate as one, described measuring equipment also comprises:
First function key, for when user triggers described first function key, produces a continuation reading command of checking backward;
And/or the second function key, for when user triggers described second function key, produces a continuation reading command of checking forward.
Then, utilize above-mentioned first function key, the second function key, when user does not trigger this two shortcut functions, document reading apparatus just direct access memory all the time, reads the fileinfo under current directory, can fast finding fileinfo corresponding to display; When other sub-directory under user needs to check current directory, click above-mentioned functions key, compare the mode that employing button chooses sub-directory to trigger, convenient and swift.
Accompanying drawing explanation
Fig. 1 is a kind of structural representation with the measuring equipment 100 of file read functions that the embodiment of the present invention provides;
Fig. 2 is the schematic diagram of a kind of display interface of measuring equipment 100;
Fig. 3 is the process flow diagram of the method for work of document reading apparatus 103;
Fig. 4 is the schematic diagram of the another kind of display interface of measuring equipment 100;
Fig. 5 is the schematic diagram of the another kind of display interface of measuring equipment 100;
Fig. 6 is the schematic diagram of the another kind of display interface of measuring equipment 100;
Fig. 7 is the schematic diagram of the another kind of display interface of measuring equipment 100.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, and below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
With reference to Fig. 1, show a kind of structural representation with the measuring equipment 100 of file read functions that the embodiment of the present invention provides, described measuring equipment 100 comprises:
Storer 101, for storage file and/or file, storer 101 can store multiple file, also can store multiple file, not only can also store file but also store file.File generally adopts multi-level tree structure, in such an embodiment, each disk on storer has a root folder, root folder comprises some files and first order sub-folder, first order sub-folder not only can include file, but also next stage sub-folder and file can be comprised, by that analogy.Can say, a file is equivalent to a catalogue, and catalogue can comprise sub-directory again, and described sub-directory is file and/or file.File and file all have fileinfo, and the fileinfo of file and file comprises: filename, file size, file attribute, and described file attribute is for characterizing file or file.
Internal memory 102, carries out buffer memory for the fileinfo read document reading apparatus 103.
Document reading apparatus 103, for file reading information from storer 101 in internal memory 102, and show according to described fileinfo, document reading apparatus 103 comprises further:
Reading unit 1031, for when entering current directory, reads fileinfo under current directory in internal memory 102 from storer 101; And when judging unit 1032 judges that internal memory 102 is sufficient, continue to read, until all files information under current directory reads in internal memory 102, now, in internal memory 102, be cached with the fileinfo under last catalogue.Fileinfo under current directory refers to the fileinfo of the first order sub-directory (file and/or file) self under current directory.
Judging unit 1032, for while reading unit 1031 file reading information to internal memory 102, judges that whether internal memory 102 is sufficient.Illustrate as one, judging unit 1032 judges whether abundance is internal memory 102: judge whether the number of the sub-directory that the fileinfo of buffer memory in internal memory 102 is corresponding is less than a predetermined threshold value, if be less than described predetermined threshold value, then judges that internal memory 102 is sufficient; If be more than or equal to described predetermined threshold value, then judge that internal memory 102 is not enough.
Display unit 1033, for according to the sub-directory under the display of the fileinfo in internal memory 102 on described measuring equipment 100 displays the name of the current directory.Shown sub-directory can comprise the identifier of the file or folder according to file attribute display, can also comprise the information such as filename, file size.
Illustrating as one, with reference to Fig. 2, is the schematic diagram of a kind of display interface of measuring equipment 100.This display interface can comprise three parts: path block 201, for showing which grade catalogue belonging to which disk of the current directory entered, is similar to the address field on PC, shows complete path and the current filename chosen; DirListBox 202, for the first order sub-directory list under displaying the name of the current directory; Menu 203, for carrying out various operation to file or file, the catalogue in directory listing can be chosen up or down by the upper and lower directionkeys of the keyboard of measuring equipment 100 or knob key, can pass through upper " entering ", " returning " key of keyboard, or left and right directionkeys enters or exits current directory.
Illustrate as one, with reference to Fig. 2, combine with reference to Fig. 1, when entering current directory " 144 " by right direction key, namely when file is called the file of 144, reading unit 1031 can be read in the internal memory 102 of operation the fileinfo under this catalogue, when internal memory 102 abundance, all files information under current directory " 144 " (comprising: filename, file size and the file attribute of its next stage catalogue " 1.TRN " and " 45.TRN " self) all reads in internal memory 102.Display unit 1033 is according to the sub-directory " 1.TRN " under the display of the fileinfo in internal memory 102 on measuring equipment 100 displays the name of the current directory " 144 " and " 45.TRN ".By the different sub-directories under current directory " 144 " can be chosen during upper and lower directionkeys.Enter one of them sub-directory, or when exiting catalogue " 144 ", fileinfo under catalogue " 144 " is also kept in internal memory 102, so that during access next time catalogue " 144 ", directly from internal memory 102, read corresponding fileinfo, without the need to again from storer 101 file reading information, save the reading time, convenient and swift when user checks.
Illustrate as one, as shown in Figure 1, document reading apparatus 103 can also comprise: delete cells 1034, during for judging that at judging unit 1032 internal memory 102 is not enough, deletes the fileinfo under other catalogues in internal memory 102 except the fileinfo under current directory; Then, triggering reading unit 1031 and judging unit 1032 work simultaneously, make judging unit 1032 while reading unit 1031 file reading information to internal memory, again judge that whether internal memory is sufficient, reading unit 1031 is when judging unit 1032 judges that internal memory 102 is sufficient again, continue to read, until all files information under current directory reads in internal memory.Then, when the sub-directory under current directory is more, by deleting the fileinfo under other catalogues, the fileinfo of the whole sub-directories under also can displaying the name of the current directory.It should be noted that, when deleting the fileinfo under other catalogues, also need the fileinfo of each node retaining current path, be i.e. the fileinfo of each higher level's catalogue of current directory itself.
In originally illustrating, as an example, catalogue " 11 " comprises catalogue " 141 " ~ catalogue " 150 " totally 10 first order sub-directories, when entering catalogue " 11 ", by the fileinfo under current directory " 11 " (namely, the file name, file size, file attribute etc. of catalogue " 141 " ~ catalogue " 150 ") read in internal memory 102, display unit 1033 is according to sub-directory " 141 " ~ " 150 " under the display of the fileinfo in internal memory 102 on measuring equipment 100 displays the name of the current directory " 11 ".With reference to Fig. 2, when pressing right direction key and entering catalogue " 144 ", reading unit 1031 can be read in internal memory 102 the fileinfo under current directory " 144 ", simultaneously, judging unit 1023 judges that whether internal memory 102 is sufficient, read while judge, when judging unit 1023 judges that internal memory 102 is not enough, namely, in internal memory 102, the number of the sub-directory that the fileinfo of buffer memory is corresponding reaches described predetermined threshold value, such as, the buffer memory fileinfo of 1024 files and/or file in internal memory 102, file and/or the number of folders of buffer memory are too many, internal memory 102 is not enough, fileinfo under then delete cells 1034 will delete except the fileinfo under catalogue " 144 " other catalogues automatically, be used for releasing memory 102, the information of deleting comprises: when entering catalogue " 11 ", catalogue " 141 " ~ " 143 " under the catalogue " 11 " of institute's buffer memory, the fileinfo of " 145 " ~ " 150 " self, retain the fileinfo of each higher level's catalogue of current directory " 144 " itself simultaneously, the i.e. fileinfo of file " 11 " itself, and the fileinfo of D dish itself.Then, reading unit 1031 continues to read fileinfo under current directory 143 again in internal memory 102, if in reading process, judging unit 1032 judges that internal memory 102 is sufficient always, then continue to read, until all files information under current directory " 143 " reads in internal memory 102, now, display unit 1033 can display the name of the current directory according to the fileinfo in internal memory 102 the whole sub-directories under " 144 ".
Illustrate as one, described reading unit 1031 is also for after deleting the fileinfo under other catalogues in internal memory except the fileinfo under current directory at delete cells 1034, when judging unit 1032 judges that internal memory 102 is not enough again, no longer continue to read, make to be cached with in described internal memory 102 the partial document information under current directory.
As an example, after delete cells 1034 deletes the fileinfo under other catalogues except the fileinfo under catalogue " 144 ", fileinfo under reading unit 1032 continuation reading current directory " 144 " is in internal memory 102, simultaneously, judging unit 1032 continues to judge that whether internal memory 102 is sufficient, when after the fileinfo that reading unit 1032 have read 1022 files and/or file, judging unit 1032 judges that internal memory 102 is not enough again, no longer continue to read, make to be cached with in described internal memory 102 fileinfo of 1022 sub-directories under current directory " 144 ".Now, display unit also can only show 1022 sub-directories over the display.
Illustrate as one, described measuring equipment 100 also comprises: catalogue options button, chooses a sub-directory of current directory for user on display unit 1033; Catalogue options button can be physical button, also can be entity knob key, can also be the virtual key on display interface.When the interval of last sub-directory of current directory is less than a first predetermined directory number on chosen sub-directory and display, trigger the continuation reading command that generation one is checked backward; Or, when the interval of first sub-directory of current directory on chosen sub-directory and display is less than a second predetermined directory number, trigger the continuation reading command that generation one is checked forward.First predetermined directory number can be identical with the first predetermined directory number, also can be different.
Usually at the fixed sub-directory of last several document that scroll bar is corresponding, or the fixed sub-directory of the several document in foremost, choose this sub-directory to trigger and produce and continue reading command, can according to current supported maximum sub-directory number or concrete requirement, configure the first predetermined directory number and the second predetermined directory number, thus determine that specifically choosing which sub-directory to trigger reads automatically.Utilize catalogue options button to the selection of sub-directory, when find user check the trend of other sub-directories time, just can produce continuation reading command, be convenient to user view current directory in advance under other sub-directory.
Illustrate as another, described measuring equipment 100 can also comprise: the first function key, for when user triggers described first function key, produces a continuation reading command of checking backward.Illustrate as another, described measuring equipment 100 can also comprise: the second function key, for when user triggers described second function key, produces a continuation reading command of checking forward.Adopt above-mentioned first function key and the second function key, when user does not trigger this two shortcut functions, document reading apparatus 103 just direct access memory 102 all the time, reads the fileinfo under current directory, can fast finding fileinfo corresponding to display; When other sub-directory under user needs to check current directory, click above-mentioned functions key, compare the mode that employing button chooses sub-directory to trigger, convenient and swift.It should be noted that, measuring equipment 100 can have the wherein one in above-mentioned first function key or the second function key, also can both possess.First function key, the second function key can be physical buttons, also can be the virtual keys on display interface.
Illustrate as one, the continuation reading command of described delete cells 1034 also for triggering according to user, delete the whole of the described partial document information in internal memory 102 under current directory, then trigger described reading unit 1031 read current directory under the alternative document information except described partial document information.Reading unit 1031 is when file reading information, progress bar can be ejected, to point out user's current device just at work, after reading completes, described display unit 1033 is according to the display of the fileinfo in internal memory 102 on described measuring equipment 100 upgrading the sub-directory under displaying the name of the current directory.The maximum file number supported due to internal memory 102 is limited, all deletes described partial document information, then the alternative document information that reading unit 1031 reads will be many, needs less number of times just can travel through all files information of current directory.
Illustrate as another, the continuation reading command of described delete cells 1034 also for triggering according to user, delete a wherein part for the described partial document information in internal memory 102 under current directory, then trigger described reading unit 1031 read current directory under the alternative document information except described partial document information.Accordingly, described display unit 1033 is according to the display of the fileinfo in internal memory 102 on described measuring equipment 100 upgrading the sub-directory under displaying the name of the current directory.
Completely the described partial document information under current directory in internal memory 102 is not all deleted, also retains a part, in order that when behind the bottom that user views directory listing towards a direction or top, check in the opposite direction again, can not, again from storer to internal memory 102 file reading information, avoid repeating to read.Such as, user looks into each sub-directory (totally 1000) from the top down in directory listing, in elected during the 10th sub-directory reciprocal, delete the fileinfo of 600 sub-directories in foremost in internal memory 102, retains the fileinfo of rear 400 sub-directories; User upwards checks again subsequently, then the fileinfo of rear 400 sub-directories can directly read and show from internal memory 102.Further, when the maximum file number of internal memory 102 support is very large, only deletes a part, compare whole deletion, when reading unit 1031 reads alternative document information to internal memory 102, the time needed for reading can be reduced.
Illustrate as one, described continuation reading command is: during the continuation reading command of checking backward, a wherein part for described partial document information in the internal memory 102 that described delete cells 1034 is deleted under current directory is: according to putting in order of the file corresponding with described partial document information and/or file, delete the fileinfo of a part of file and/or the file put in order up front; The alternative document information except described partial document information under the current directory that described reading unit 1031 reads is: according to putting in order of the file corresponding with described partial document information and/or file, read the file after putting in order described in following closely and/or the fileinfo of file successively, until read the fileinfo of last file or folder, or until when internal memory 102 is not enough, no longer read.
Illustrate as another, described continuation reading command is: during the continuation reading command of checking forward, a wherein part for described partial document information in the internal memory 102 that described delete cells 1034 is deleted under current directory is: according to putting in order of the file corresponding with described partial document information and/or file, deletes a part of file in the in the end face of putting in order and/or fileinfo corresponding to file; The alternative document information except described partial document information under the current directory that described reading unit 1031 reads is: according to putting in order of the file corresponding with described partial document information and/or file, read the file before putting in order described in following closely and/or the fileinfo of file successively, until read the fileinfo of first file or folder, or until when internal memory 102 is not enough, no longer read.
Below, illustrate in conjunction with above-mentioned, be specifically described the method for work of document reading apparatus 103, with reference to Fig. 3, described method comprises:
Step 301, enters current directory; Composition graphs 4, enter the file " 1*** " by name of current directory, its path is " E: more_file 1*** ", and in this example, the sub-directory of current directory " 1*** " is file, does not comprise file.
Step 302, reads the fileinfo under current directory, judges that whether internal memory 102 is sufficient simultaneously; When judging that internal memory 102 is sufficient, perform step 303; When judging that internal memory 102 is not enough, perform step 305;
Step 303, continues to read, until all files information under current directory reads in internal memory 102; Perform step 304 afterwards;
Step 304, the sub-directory under displaying the name of the current directory over the display according to the fileinfo in internal memory 102;
Step 305, deletes the fileinfo under other catalogues in internal memory 102 except the fileinfo under current directory;
Step 306, reads the fileinfo under current directory, judges that whether internal memory 102 is sufficient simultaneously; When judging that internal memory 102 is sufficient, perform step 303; When judging that internal memory 102 is not enough, perform step 307;
Step 307, no longer continues to read, is cached with the partial document information under current directory in internal memory 102;
Quantity of documents under current directory " 1*** " is too many, after deleting the fileinfo in internal memory 102 under other catalogue, suppose to have read the fileinfo of 1000 files under current directory " 1*** " to internal memory 102, now, internal memory 102 is not enough, no longer continues to read.
It should be noted that, during owing to entering current directory, need the fileinfo of each node retaining current path, the i.e. fileinfo of each higher level's catalogue of current directory itself, therefore, in internal memory 102 buffer memory current directory under the number of sub-directory corresponding to partial document information can be unfixed.Such as, the maximum number of the sub-directory that internal memory 102 is supported is 1024, when entering E dish, and the fileinfo of 1002 sub-directories under the E dish of the maximum support of internal memory 102; When entering E: more_file, internal memory 102 also needs the fileinfo retaining E dish itself, the fileinfo of 1002-1=1001 sub-directory under " more_file " file of the maximum support of internal memory 102; When entering E: more_file 1***, internal memory 102 also needs the fileinfo of reserved folder " more_file " itself, the fileinfo of 1001-1=1000 sub-directory under " 1*** " file of the maximum support of internal memory 102; Along with the file hierarchy entered is darker, internal memory 102 supports that the number of the sub-directory that the partial document information under current directory is corresponding is fewer.
Step 308, judges whether to produce and continues reading command; If so, then step 310 is performed; If not, then step 309 is performed;
With reference to Fig. 5, user chooses each sub-directory under current directory " 1*** " downwards successively by turning knob, scroll bar on the right side of DirListBox rolls downwards thereupon, in elected during the 990th file, the sub-directory " 22 (120) .txt " chosen is 9 with the catalogue space-number of last sub-directory " 22 (157) .txt " (the 1000th file), be less than the first predetermined directory number 10, now, the continuation reading command that generation one is checked backward is triggered.
Step 309, exits current directory, reads and terminates;
Step 310, deletes a wherein part for the described partial document information in internal memory 102 under current directory;
Delete cells 1034 is according to the continuation reading command of checking backward, according to putting in order of 1000 files corresponding with described partial document information, delete the fileinfo of a part of file put in order up front, the quantity of institute's deleted file can pre-set, in this example, delete the fileinfo of front 600 files.
Step 311, reads the alternative document information except described partial document information under current directory.
Reading unit 1031 puts in order according to 1000 files corresponding with described partial document information, read the 1001st (catalogue " 22 (158) .txt "), the 1002nd file that follow closely after order successively ... fileinfo, corresponding sequence is added successively backward, until when having read All Files backward, or, when continuing to find that internal memory 102 is not enough in reading process, no longer read, the quantity of documents in internal memory 102 reaches 1000 again.With reference to Fig. 6, reading unit 1031, when file reading information, display interface can eject progress bar, is reading with in display update to point out user.
Step 312, the display of the fileinfo in foundation internal memory 102 on described measuring equipment upgrades the sub-directory under displaying the name of the current directory, then returns step 308.
Owing to deleting the fileinfo of front 600 files, therefore, after upgrading display, the sequence number of the file of original 601st ~ 1000 becomes 1 ~ 400, namely, original 601st file update is first file, original 990th file (catalogue " 22 (120) .txt ") is updated to the 390th file, original 1000th file (catalogue " 22 (157) .txt ") is updated to the 400th file, original 1001st file (catalogue " 22 (158) .txt ") is updated to the 401st file, the progress of scroll bar is also thereupon corresponding, as shown in Figure 7.Can find out, continue reading command by repeatedly triggering to produce, repeatedly can access storer file reading information, all fileinfos viewed under current directory that user is complete can be made.
Be understandable that, after display update, if user upwards chooses each sub-directory under current directory " 1*** " successively by turning knob, in elected during the 10th file, the catalogue space-number of the sub-directory chosen and first sub-directory is 9, be less than the second predetermined directory number 10, then return step 308, trigger the continuation reading command that generation one is checked forward, delete cells 1034 is according to the continuation reading command of checking forward, according to putting in order of 1000 files corresponding with partial document information in internal memory 102, delete the fileinfo of the in the end a part of file in face of putting in order, the quantity of institute's deleted file can pre-set, in this example, delete the fileinfo of rear 600 files.Then, reading unit 1031 puts in order according to the file shown in Fig. 6, read the fileinfo of each file before putting in order described in following closely successively, namely the 600th original file, the original the 599th file ... fileinfo, corresponding sequence is added forward, successively until when having read forward All Files.
It should be noted that, each file and file have index, file reading or file fileinfo and when showing, searched for and log file or file by index.Simultaneously, fileinfo in order to ensure display is consistent with the fileinfo stored in storer, also need to do when user operates the file in storer 101 and/or file one subsynchronous, make the fileinfo in internal memory 102 under current directory identical with the fileinfo under current directory corresponding in storer 101, described operation comprises: deletion, preservation, copy, rename, establishment file and/or file etc.Such as, user deletes a file, and needs read the fileinfo under current directory again from storer 101, and according to the fileinfo read in result renewal internal memory 102.
Storer 101 in the present embodiment is next illustrational as the storer of measuring equipment 100 therein, and illustrate as another, described storer 101 also can be the storer outside measuring equipment 100, as USB flash disk etc.
Above to a kind of document reading apparatus for measuring equipment provided by the present invention and a kind of measuring equipment with file read functions, be described in detail, apply specific case herein to set forth principle of the present invention and embodiment, the explanation of above embodiment just understands method of the present invention and core concept thereof for helping; Meanwhile, for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1., for a document reading apparatus for measuring equipment, comprising:
Reading unit, for when entering current directory, reads the fileinfo under current directory in the internal memory of described measuring equipment from storer;
Display unit, the sub-directory under the display of the fileinfo in foundation internal memory on described measuring equipment displays the name of the current directory; Described sub-directory is file and/or file;
It is characterized in that, described device also comprises:
Judging unit, for while reading unit file reading information to internal memory, judges that whether internal memory is sufficient;
Described reading unit, when judging unit judges that internal memory is sufficient, continues to read, until all files information under current directory reads in internal memory; The fileinfo under last catalogue is cached with in described internal memory.
2. device as claimed in claim 1, is characterized in that, also comprise:
Delete cells, for when judging unit judges low memory, delete the fileinfo under other catalogues in internal memory except the fileinfo under current directory, then triggering reading unit and judging unit work simultaneously.
3. device as claimed in claim 2, is characterized in that,
Described reading unit is also for after deleting the fileinfo under other catalogues in internal memory except the fileinfo under current directory, when judging unit judges low memory again, no longer continue to read, make to be cached with in described internal memory the partial document information under current directory.
4. device as claimed in claim 3, is characterized in that,
The continuation reading command of described delete cells also for triggering according to user, delete the described partial document information in internal memory under current directory wherein part or all, then trigger described reading unit read current directory under the alternative document information except described partial document information;
The display of fileinfo in described display unit foundation internal memory on described measuring equipment upgrades the sub-directory under displaying the name of the current directory.
5. device as claimed in claim 4, is characterized in that,
Described continuation reading command is: the continuation reading command of checking backward,
A wherein part for described partial document information in the internal memory that described delete cells is deleted under current directory is: according to putting in order of the file corresponding with described partial document information and/or file, delete the fileinfo of a part of file and/or the file put in order up front;
The alternative document information except described partial document information except under the current directory that described reading unit reads is: according to putting in order of the file corresponding with described partial document information and/or file, the file after putting in order described in reading follows closely and/or the fileinfo of file.
6. device as claimed in claim 4, is characterized in that,
Described continuation reading command is: the continuation reading command of checking forward,
A wherein part for described partial document information in the internal memory that described delete cells is deleted under current directory is: according to putting in order of the file corresponding with described partial document information and/or file, delete put in order in the end a part of file in face and/or the fileinfo of file;
The alternative document information except described partial document information except under the current directory that described reading unit reads is: according to putting in order of the file corresponding with described partial document information and/or file, the file before putting in order described in reading follows closely and/or the fileinfo of file.
7. device as claimed in claim 1, is characterized in that,
Described judging unit judges whether abundance is internal memory: judge whether the number of the sub-directory that the fileinfo of buffer memory is corresponding in internal memory is less than a predetermined threshold value, if be less than described predetermined threshold value, then internal memory is sufficient; If be more than or equal to described predetermined threshold value, then low memory.
8. there is a measuring equipment for file read functions, it is characterized in that, there is the document reading apparatus as described in any one of claim 1 to 7.
9. measuring equipment as claimed in claim 8, it is characterized in that, described measuring equipment also comprises:
Catalogue options button, chooses a sub-directory of current directory over the display for user;
When the interval of last sub-directory of current directory is less than a first predetermined directory number on chosen sub-directory and display, trigger the continuation reading command that generation one is checked backward; Or, when the interval of first sub-directory of current directory on chosen sub-directory and display is less than a second predetermined directory number, trigger the continuation reading command that generation one is checked forward.
10. measuring equipment as claimed in claim 8, it is characterized in that, described measuring equipment also comprises:
First function key, for when user triggers described first function key, produces a continuation reading command of checking backward;
And/or the second function key, for when user triggers described second function key, produces a continuation reading command of checking forward.
CN201410424880.5A 2014-08-26 2014-08-26 Measurement equipment with file reading function and file reading device Pending CN105404623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410424880.5A CN105404623A (en) 2014-08-26 2014-08-26 Measurement equipment with file reading function and file reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410424880.5A CN105404623A (en) 2014-08-26 2014-08-26 Measurement equipment with file reading function and file reading device

Publications (1)

Publication Number Publication Date
CN105404623A true CN105404623A (en) 2016-03-16

Family

ID=55470116

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410424880.5A Pending CN105404623A (en) 2014-08-26 2014-08-26 Measurement equipment with file reading function and file reading device

Country Status (1)

Country Link
CN (1) CN105404623A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021473A (en) * 2016-05-18 2016-10-12 惠州Tcl移动通信有限公司 Method and system for displaying size of folder of mobile terminal, and mobile terminal
CN108052288A (en) * 2017-12-12 2018-05-18 成都育芽科技有限公司 A kind of data file quick storage method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110105A (en) * 2009-12-23 2011-06-29 新奥特(北京)视频技术有限公司 Method and device of picture-text packaging system for reading folder
CN103208136A (en) * 2012-07-06 2013-07-17 北京中盈高科信息技术有限公司 Three dimensional image processing method and electronic device
CN103279575A (en) * 2013-06-20 2013-09-04 福建伊时代信息科技股份有限公司 Method and device for processing file information

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110105A (en) * 2009-12-23 2011-06-29 新奥特(北京)视频技术有限公司 Method and device of picture-text packaging system for reading folder
CN103208136A (en) * 2012-07-06 2013-07-17 北京中盈高科信息技术有限公司 Three dimensional image processing method and electronic device
CN103279575A (en) * 2013-06-20 2013-09-04 福建伊时代信息科技股份有限公司 Method and device for processing file information

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106021473A (en) * 2016-05-18 2016-10-12 惠州Tcl移动通信有限公司 Method and system for displaying size of folder of mobile terminal, and mobile terminal
CN106021473B (en) * 2016-05-18 2020-01-14 惠州Tcl移动通信有限公司 Folder size display method and system of mobile terminal and mobile terminal
CN108052288A (en) * 2017-12-12 2018-05-18 成都育芽科技有限公司 A kind of data file quick storage method and system

Similar Documents

Publication Publication Date Title
CN108255408B (en) Data storage method and system
JP6029767B2 (en) Icon arrangement method, apparatus, device, program, and recording medium
JP4739786B2 (en) Data relocation method
CN104915268A (en) Desktop layout storage and recovery method and device thereof, terminal equipment and system
US20150120790A1 (en) Android system-based folder management and display method and mobile terminal
US8285749B2 (en) Computer system and recording medium
CN105354097B (en) Data operation method and device based on clipboard and electronic equipment
CN103150079A (en) Application icon management method and device based on Firefox OS (Operation System) platform
CN102937924B (en) File allocation table (FAT) data recovery method based on file characteristic and file system
CN105550068A (en) Misoperation withdrawing method and system
US20090282195A1 (en) Method of managing memory storage space and a computer system
CN110928498B (en) Directory traversal method, device, equipment and storage medium
KR20070090914A (en) Mobile terminal having function of managing file and folder
US20080201659A1 (en) Computer system having multipurpose desktops
CN102819573A (en) Terminal, file storage method and file extraction method
CN111443862A (en) Control method and system based on suspension button and storage medium
CN105843903A (en) File management method and terminal
CN114281779A (en) Data synchronization method and device, computer equipment and storage medium
JP6111337B2 (en) Database management system and database management method
CN105404623A (en) Measurement equipment with file reading function and file reading device
CN103123651A (en) Method of rapidly searching multiple same-kind paper, device and mobile equipment
KR100987320B1 (en) Data processing apparatus and Data procssing method, using FAT file system capable of fast file recovery
CN103885664B (en) Desktop file mapping method and desktop file mapping system
CN104991934A (en) Directory deletion method and apparatus
CN107562898A (en) A kind of method that recycle bin is created based on KUX operating systems

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160316