Saving Files
When you record a simulation or edit a Logger file, the file is in an unsaved state, which is indicated by an asterisk next to the filename in the Title bar. If you specify a name for a file before you start the recording process, it is automatically saved when you stop recording. If you have an unsaved file loaded, the Logger prompts you to save it before exiting, opening a file, closing a file, or recording a new file.
To save a file, choose File > Save. If the file already has a filename, it is saved immediately. If it does not yet have a filename, you are prompted to supply one (Save As).
File Backups
When you save a previously saved file, the Logger creates a backup file by renaming the previous version of the file to filename.bak.lgr. For example, if you edit berkeley.lgr and save the changes, the original version of berkeley.lgr is saved to berkeley.bak.lgr.
The Logger maintains only one backup for a particular Logger file. If you edit and save a file that was previously backed up, the original backup file gets replaced with a newer backup file. For example, if after saving berkeley.lgr in the previous example, you were to edit it again and save it, a new version of berkeley.bak.lgr would replace the original backup file.
You can disable automatic backup with the SetBackupOnSave command.
Saving a File to a New Name
To save a file to a new name, choose File > Save As and type a new name in the Save As dialog box.
Saving a Portion of a File to a New File
You can save a segment of a file to a new file. The timestamps of the packets in the new file are offset so the first packet is at time zero. If the segment has annotations, they get saved with the segment.
Procedure 158: Saving a Segment of a File to a New File
- Open the file.
- Use the timeline sliders to select the segment you want to save.
- Choose File > Export Selection To > Logger File. A standard Save file dialog box opens.
- Enter a name for the new file.
- Click OK.
Upgrading a Logger File’s Format
When you load a Logger file that was created with a previous format, the Logger can automatically upgrade to the latest file format. You can also upgrade manually.
Procedure 159: Upgrading a File to the Latest Format
- Open the file.
- Choose Edit > Upgrade File Format.