Auto create EUT directory: Difference between revisions

From RadiWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
In [[:Category:Version 4.5|version 4.5]] new functionality is implemented that can be used to store a new [[EUT]] file in a specific directory that is automatically created.
In version 4.5 new functionality is implemented that can be used to store a new [[EUT]] file in a specific directory that is automatically created.


The naming and the location that should be used to create the new EUT file can be configured with some 'hidden' parameters. These settings are available in the TUNING.INI file that is located in the [[RadiMation]] configuration directory.
The naming and the location that should be used to create the new EUT file can be configured with some 'hidden' parameters. These settings are available in the TUNING.INI file that is located in the [[RadiMation]] configuration directory.
Line 43: Line 43:
  PasswordIsNeededForSaveEUTAs=False
  PasswordIsNeededForSaveEUTAs=False


This functionality is available in [[RadiMation]] [[:Category:Version 4.5|version 4.5]] and higher.


[[Category:RadiMation]]
[[Category:RadiMation]]
[[Category:Version 4.5]]
[[Category:RadiMationQuestions]]
[[Category:RadiMationQuestions]]

Latest revision as of 18:13, 29 September 2024

In version 4.5 new functionality is implemented that can be used to store a new EUT file in a specific directory that is automatically created.

The naming and the location that should be used to create the new EUT file can be configured with some 'hidden' parameters. These settings are available in the TUNING.INI file that is located in the RadiMation configuration directory. All settings should be part of the '[EUTFileHandling]' section. The available parameters are:

  • EnforceUserToSaveEUTDuringCreate: This variable can then be set to '0' or 'False'. Which will turn off the automatic saving.
  • ProposedSaveEUTFilename: This variable determines the location where the EUT files should be stored. There are several possibilities you can use to specify the value of this variable:
    • If nothing is specified, the configured EUT directory in the Configuration of RadiMation will be used.
    • It is possible to specify a fixed path, then the specified path will be used as a proposal for the directory where the EUT file will be stored. (Also a filename can be included, but then each EUT file will be saved under the same name, and it will overwrite existing EUT Files, which is not recommended)
    • It is also allowed to include report generator codes in the variable. This variable can for example be set to: '||CONFIGURATION|EUTFILESDIRECTORY||\||EUT|ORDER NUMBER||.EUT'. All available report generator codes for the EUT file and the system configuration can be used. With this method it is possible to dynamically determine the path of the EUT file, based on the information that is specified in the EUT file.
  • UserIsAllowedToChangeEUTFilename: If set to '1' or 'True', the user is allowed to change the filename of an already named EUT file. If this variable is set to '0' or 'False', then the end-user is not allowed to change the proposed filename, and the EUT will be saved under the name specified by 'ProposedSaveEUTFilename'.
  • EUTMustHaveNameBeforeTest: If an EUT filename is not yet determined, and a test is started, an error will be generated.
  • AlwaysSaveEUTBeforeTest: If set to '1' or 'True', will automatically save the EUT file at the begin of a test.
  • EUTPathVariablesCannotBeEmpty': This will prevent that one or more of the 'Codes' that are used for the EUT path will be empty. If this happens, an error will be displayed, displaying the code that could not be replaced.
  • PasswordIsNeededForSaveEUTAs: If set to '1' or 'True', the password should be entered, when the 'SaveAs' dialog is shown. If the password is not correctly specified, the proposed name will be used, or the data will not be saved. Depending on the configuration of the other settings.


With these parameters it is possible to configure RadiMation to use the following scenario:

  1. End-user creates a new EUT file
  2. No 'Save As' dialog is displayed. EUT file doesn't have a filename yet
  3. The End-user fills in the information in the EUT window. Like:
    • EUT name
    • Order number
    • Serial number
    • address info
    • Etc...
  4. The end-user selects 'File, Save As...'
  5. The RadiMation software suggest a name, using the 'ProposedSaveEUTFilename' variable. The 'Report generator codes' that are used in this variable, are replaced by the correct information.
  6. If the end-user is allowed to change the name of the EUT filename (see 'UserIsAllowedToChangeEUTFilename'), a 'Save As' dialog will be shown. Otherwise the proposed name is used directly, and the file is saved directly.
  7. If the 'Save As' dialog is shown, the end-user can just click 'Save' or he can change the proposed filename or location.
  8. Any directories that are not yet present will be created.
  9. If a filename is already set, the set filename will be used, and no proposal for a filename will be done.

The above scenario can be configured in the TUNING.INI file as:

[EUTFileHandling]
EnforceUserToSaveEUTDuringCreate=False
ProposedSaveEUTFilename=||CONFIGURATION|EUTFILESDIRECTORY||\||EUT|NAME||\||EUT|SERIAL NUMBER||.EUT
UserIsAllowedToChangeEUTFilename=True
EUTMustHaveNameBeforeTest=True
AlwaysSaveEUTBeforeTest=True
EUTPathVariablesCanNotBeEmpty=False
PasswordIsNeededForSaveEUTAs=False