DIAdem Help

Defining the Configuration of an Analysis Automation Procedure

  • Updated2024-09-12
  • 2 minute(s) read

Defining the Configuration of an Analysis Automation Procedure

Use the Analysis Automation Procedure Configuration dialog box in DIAdem to create an analysis automation procedure. Then load this automation procedure in SystemLink TDM into the analysis automation to execute the automation procedure. Complete the following steps to create an analysis automation procedure.

Create New Analysis Automation Procedure

  1. Select DIAdem SCRIPT.
  2. Select Settings»SystemLink TDM»Analysis Automation Procedure.
  3. Click New Analysis Automation Procedure Configuration.
  4. Enter the name of the new analysis automation procedure, for example, MyAnalysis. As an option, you can also enter a description and the author.
  5. Click OK.

Defining the File Types for Analysis

  1. Select the Search Query tab.
  2. Enable Data filter enabled to display the definition table for the search conditions.
  3. Make the following settings to narrow down the analysis to TDM files:
    Level Property Value
    File DataPlugin name = TDM
  4. Select the Parameter Definition tab.

    You can add any number of parameters to the analysis automation procedure. The analysis script uses the ResultsPath parameter as default to specify the path for the analysis results. When you define the analysis automation task in the analysis automation in SystemLink TDM, you can still change the parameter values.

Defining a Script for the Analysis Automation Procedure

  1. Select the Analysis Script tab to edit the analysis script and add more files to the analysis automation procedure.
  2. Specify the evaluation mode Each retrieved element is processed individually to enable SystemLink TDM to call the analysis script individually for each retrieved element.
  3. Click Edit to load the main.vbsa script into the script editor.
  4. Replace the On_Run_AnalysisProcedure(oContext) procedure with the following procedure:
  5. Sub On_Run_AnalysisProcedure(oContext) 
      Dim oMyDataLinks, oMyDataLink
      Set oMyDataLinks = oContext.DataLinks
      Call Report.LoadLayout(oContext.Procedure.ScriptPath & "Expl_Report_2DAxis.TDR")
      Call Navigator.LoadData(oMyDataLinks.Item(1))
      ' Enter your analysis commands    
        Call Report.Sheets.ExportToPDF(oContext.Procedure.Arguments.Item("ResultsPath").Value & Data.Root.Properties("name").Value & ".pdf", True)
    ' Enter your analysis commands
    End Sub
  6. In the configuration dialog box, click Extended to continue the definition of the analysis automation procedure.
  7. Click Add File to Analysis Automation Procedure. Import the files you used in the script.
  8. Click the Save Analysis Automation Procedure Configuration As button to save your configuration.
  9. Click Save.

Log in to get a better experience