Configure Analysis Automation Procedure: Analysis Script
- Updated2024-09-12
- 4 minute(s) read
DIAdem SCRIPT > SystemLink TDM > Analysis automation procedure: General Information > Configure Analysis Automation Procedure: Analysis Script
Configure Analysis Automation Procedure: Analysis Script
Use the Analysis Script tab to define the analysis automation procedure.
In the central Main.vbsa script, you define the analysis procedure. If Python is your evaluation environment, the script name is Main.py.
The analysis automation procedure must contain all files, such as layouts or more scripts, which you use in this analysis. The tree view in the lower part of the dialog box displays the files which are already in the analysis automation procedure. Use the respective buttons to import additional files.
![]() | Note The import procedure creates a copy of the specified file and saves it in the analysis automation procedure. This means that you must first export a file from the analysis automation procedure in order to process it, and that you then must add this file again. |
The analysis script contains the procedures On_Initialize, On_RunAnalysisProcedure, and On_Finalize. Use On_Initialize and On_Finalize to initialize and complete a parallel procedure. Use On_Run_AnalysisProcedure to add user-defined program code with which the analysis automation procedure the elements from the search. The procedure is called several times in a parallel evaluation and only once in a comparative evaluation.
You can use virtually all DIAdem commands in the analysis script. However, you should avoid commands which require an interaction and also commands that control the DIAdem interface, the VIEW panel, Microsoft Office applications, or other applications.
Use the Context object within the analysis script to access the exchange variables.
Use the Test Analysis Automation Procedure or the Debug Analysis Automation Procedure button to test the analysis automation procedure.
![]() | Note Go to Notes for Creating Scripts for Analysis Automation and Data Preparation to find important information on creating analysis scripts. |
Settings
| Buttons | Describes the general buttons in the dialog box. | |
| Timeout [min] | Specifies in minutes the time span available for an analysis. A value range between 0 and 10080 minutes is valid. If you assign the value 0 to the timeout, the analysis automation uses the timeout you specify in the settings of the web interface of the analysis automation. If you test the analysis automation procedure in DIAdem, DIAdem does not include a timeout. |
|
| Rename | Opens the dialog box where you rename the the main script of the analysis automation procedure. | |
| Evaluation mode | Specifies whether the analysis is executed with one retrieved element or with all retrieved elements. An element can be a file, a channel group, or a channel. In a comparative analysis, the analysis script is called once with a list of all retrieved elements. In a parallel analysis, the analysis script is called individually for each retrieved element, which means that the list only contains this element. None of the parallel analyses has information about the other retrieved elements. |
|
![]() |
Edit Selected File in DIAdem | Opens the selected file in the associated DIAdem panel. You can only save the open file. However, you cannot save it under a different name or in a different folder. |
![]() |
Add File to Analysis Automation Procedure | Opens the dialog box where you can select a file to add to the analysis automation procedure. |
![]() |
Add Folder to Analysis Automation Procedure | Opens the dialog box where you can select a folder whose contents you add to the analysis automation procedure. Also use this dialog box to create a new folder within the analysis Server automation procedure. |
![]() |
Export Selection | Opens the dialog box in which you select the folder to which you copy the selected file or the selected folder. |
![]() | Delete Selection from Analysis Automation Procedure | Deletes the selected file or the selected folder from the analysis Server automation procedure. |
| List of Files in the Analysis Automation Procedure | Displays the files from the analysis automation procedure in a tree structure. |
Further Settings
Search Request | Parameter Definition | Analysis Script | Identification
Procedures
Define Data Preparation Procedure for TDMS Files | Define Data Preparation Procedure for XLSX Files | Defining the Configuration of an Analysis Automation Procedure | Definition of a SystemLink TDM Process Chain | Exploring Indexed Data with a Different Hierarchy View





