Capture Type Function Block: Storage Tab

Overview

The Storage Tab of a Capture Type Function Block contains settings that dictate when, where and how the data collected by the capture block will be saved. It provides a number of options to allow you to control the timing of data storage, including allowing you to save data based on an expression. You can also select file names and variations, choose a storage format, and other options.

The primary setting here is the storage method drop-down box. Most of the settings are the same regardless of the choice made here, though one does appear only when the Save when expression is true method is selected. Figure 1 shows what the Storage Tab looks like with this method chosen, so you can see all of the available settings on the tab.

Storage Method

The drop-down box at the top of the tab controls when data is saved in a capture block. There are three options:

  • Manual Save: Data is saved only when a request is made. There are three ways this can be done:

  • Automatically save when complete: Vehicle Spy saves the data automatically when the function block finishes. This is the default option.

  • Save when expression is true: Selecting this option enables the Save Expression option, described below. There you can enter an expression, and Vehicle Spy will save the captured data as soon as it evaluates as True.

Note that some storage methods have interactions with certain collection methods that may not be obvious at first. For example, if you choose to collect data in a circular buffer, and also select Automatically save when complete, there will not actually be any automatic saving of data, because circular buffers have no means by which collection ever completes. Manual intervention is still necessary to stop the collection of data, at which point it will then be automatically saved.

Storage File

Data files are saved to the data directory of the currently logged on user.

Storage Options

  • Append Time and Data to file name: Adds the date and time that the capture is saved to the end of the name entered under Storage File. This ensures that captures don't overwrite each other, allowing you to do many captures without worrying about losing data. It is especially useful for function blocks that save multiple buffers in one run.

  • Append App Signal to the file name: Adds the value of the application signal selected in the adjacent drop-down box to the end of the file name. This allows you to dynamically control how captured files are named by adjusting the value of the application signal, for example by using a function block script.

  • ZIP File: Compresses the file into a .zip file after it is saved, to conserve space. Selecting this option makes saving capture files take a little more time.

  • Save Signals: Saves signal information along with messages. Saving signals increases the amount of space required by a capture. This option will not appear if Save As Binary File is selected.

  • Save As Binary File: Data is stored as a binary (.vsb) file rather than a conventional text (.csv) file. Saving binary files is very fast, and they take less room than text files. One key disadvantage is that signals cannot be saved with the messages, and the Save Signals option will disappear if Save As Binary Fileis checked. In addition, .vsb files can only be opened with Vehicle Spy, where .csv files can be read by other applications.

Note: The Save As Binary File option must be selected to capture Automotive Ethernet messages; saving this data in .csv format is not supported.

Save Expression

Hotkey

You may select a hotkey (function key, key combination or joystick button) that, when pressed, will cause the captured data to be saved.

Last updated