:DISK:RESults:FNAMe
Command Syntax
:DISK:RESults:FNAMe "<path substitution string>\subfolder\filename.zip"
Where:
- "<path substitution string> is a string that expands into a specific file path. For example, %USER_DATA_DIR%.
- "subfolder" is an optional path folder, with the default folder being \Responses.
- "filename.rspx" is a string with the file name and extension. The extension is .zip.
Query Syntax
:DISK:RESults:FNAMe?
Description
Specifies the file's path, name, and extension when using the :DISK:RESults:SAVE
command to save a response file. This command supports the DEFault
common child command.
Default User Folder
The default folder for storing results files is in %USER_DATA_DIR%\Results
as shown in this picture. It is good practice to include a path substitution string with the filename. For example, %USER_DATA_DIR%\Results\filename
.
File names must include a path when using the child :FNAMe
command. The :FNAMe
command is not affected by a Default Setup or Factory Preset.
Specifying a path using a path substitution string in the filename ensures that the file will be saved in (or loaded from) the standard user-data folder. Failure to use a path substitution string may result either in a file created in an parent folder or a file error.
Autonumbers with Standard and Custom File Names
You can enter a custom file name or select to use the standard file name.
Standard File Names
Standard names automatically include file type, the current date, and an autonumber in this form:
<type_><YYYY-MM-DD><_autonumber>.<extension>
For example, Results_2022-10-23_1.zip. There is nothing to enter in order to use a standard name. Instead, select standard names by sending the :DISK:RESults:FNAMe:USTandard
command. When sent, the :USTandard
command also clears the :DISK:RESults:FNAMe
command to an empty string.
Saving a file with the :DISK:RESults:SAVE
parent command does not increment the autonumber; you must use the :DISK:RESults:FNAMe:AUPDate
command. Otherwise, the next file saved will have the same name as the last file saved.
If you want to start using a custom file names, simply enter a custom name with the :DISK:RESults:FNAMe
command. The autonumbers for custom and standard names are independent. For example, switching to custom names then back to using standard names does not reset or change the current autonumber for Standard names.
To reset the autonumber for standard file names, remove all previously saved standard files from the user data folder and send the :DISK:RESults:FNAMe:USTandard
command. A Default Setup or Factory Preset does not reset the autonumber.
When an autonumbered file is saved, if a file allready exists with the autonumber, the autonumber is automatically incremented to the next available number.
Custom File Names
Custom names are entered using the :DISK:RESults:FNAMe
command. Do not add a file name extension as FlexOTO automatically adds it. For example,
My_DUT
You can add an optional autonumber by appending an underscore character followed by an integer (_1) to the end of the file name. For example,
My_DUT_1
An autonumber, if used, must be appended to the end of the file name. The integer sets the starting number for the first file saved. To increment an autonumber after a file is saved, you must send the :DISK:RESults:FNAMe:AUPDate
command. There is no date variable to append, so if you want to include a date you will have to type it in.
Name | Type | Autonumber |
---|---|---|
Results_2022-10-23_1.zip | standard | yes |
DUT.xxx | custom | no |
DUT23.xxx | custom | no |
DUT_23.xxx | custom | yes |
Example Command Sequence
:DISK:RESults:FNAMe "%USER_DATA_DIR%\Results\myfile.zip" :DISK:RESults:SAVE
Requires FlexDCA revision A.07.00 and above.