DIAdem Help

Object: ContextRun <Analysis Automation>

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

Object: ContextRun <Analysis Automation>

The ContextRun <Analysis Automation> object provides information on the analysis automation event On_Run_AnalysisProcedure. The On_Run_AnalysisProcedure event is called several times if you execute a parallel analysis, otherwise it is called only once.

The following example loads the elements to be analyzed:

VBScriptPython

 

Sub On_Run_AnalysisProcedure(oContext) 
  Dim oMyDataLinks, iCount
  Set oMyDataLinks = oContext.DataLinks
  For iCount = 1 To oMyDataLinks.Count
    Call Navigator.LoadData(oContext.DataLinks.Item(iCount))
    ' Enter your analysis commands    
  Next
' Enter your analysis commands
End Sub