User`s guide
4 External Mode
4-16
intermediate result. Since the trigger can fire at any time, writing intermediate
results to the workspace generally results in unpredictable overwriting of the
workspace variables. For this reason, the default behavior is to write only the
results from the final one-shot to the workspace. The intermediate results are
discarded. If you know that sufficient time exists between triggers for
inspections of the intermediate results, then you can override the default
behavior by checking the
Write to intermediate workspace check box. Note
that this option does not protect the workspace data from being overwritten by
subsequent triggers.
The options in the
External Data Archiving dialog box support automatic
writing of logging results, including intermediate results, to disk. Data
archiving provides the following settings:
•
Directory — specifies the directory in which data is saved. External mode
appends a suffix if you select
Increment directory when trigger armed.
•
File — specifies the filename in which data is saved. External mode appends
asuffixifyouselect
Increment file after one-shot.
•
Increment directory when trigger armed —externalmodeusesa
different directory for writing log files each time that you press the
Arm
trigger
button. The directories are named incrementally; for example:
dirname1, dirname2,andsoon.
•
Increment file after one-shot — new data buffers are saved in incremental
files:
filename1, filename2, etc. Note that this happens automatically in
normal mode.
•
Append file suffix to variable names — whenever external mode
increments filenames, each file contains variables with identical names.
Choosing
Append file suffix to variable name results in each file
containing unique variable names. For example, external mode will save a
variable named
xdata in incremental files (file_1, file_2,etc.)asxdata_1,
xdata_2, and so on. This is useful if you want to compare variables in
MATLAB. Without the unique names, each instance of
xdata would
overwrite the previous one in the MATLAB workspace.