DIAdem Help

Parallel File Analysis

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

Parallel File Analysis

This example shows you how to simultaneously analyze files of a search results list of the DataFinder. On the Serial Evaluation icon on the toolbar, the example provides two functions.

Complete the following steps:

  1. Start example

  2. Run a search Load, for example, the SeriesAnalysis.tdq query and click the Search button in DIAdem NAVIGATOR.

  3. Click the icon Serial Evaluation»Start Serial Evaluation on the toolbar.

  4. Select a analysis script. Two scripts are prepared: SeriesAnalysis_MyFileAnalysisFunctions_01.vbs and SeriesAnalysis_MyFileAnalysisFunctions_02.vbs

  5. The serial evaluation analyses all files found in the search results list. The predefined scripts create result graphics and store the result graphics as PNGs on the Current write path for layouts.

You can also use user-defined analysis functions. To do so, you must create a script which contains a function with the following syntax:

SeriesAnalysis_ProcessData(iErrorCode, sErrorText)

Use the iErrorCode parameter to return an error number and use the sErrorText parameter to return an error text. If an error occurs, the example displays the error number and the error text in the logfile. In order to test your own script, load the data files to be evaluated into the Data Portal and execute it. For the test you must also add the analysis function call which you then have to delete again for the serial evaluation:

VBScriptPython

 

Dim iErrorCode, sErrorText 
Call SeriesAnalysis_ProcessData(iErrorCode, sErrorText) 
Call MsgBox (iErrorCode & " " & sErrorText)

Click a Filename to Load this File into DIAdem

SeriesAnalysis_Initialization.vbs Script file
SeriesAnalysis_Main.vbs Script file
SeriesAnalysis_MyFileAnalysisFunctions_01.vbs Script file
SeriesAnalysis_MyFileAnalysisFunctions_02.vbs Script file
SeriesAnalysis_Result_01.tdr Layout file
SeriesAnalysis_Result_02.tdr Layout file
SeriesAnalysis_InitProcessing.vbs Script file
SeriesAnalysis_Worker.vbs Script file
SeriesAnalysis.tdq Query file
SeriesAnalysis.ico Symbol file
Note When this example starts, DIAdem loads example files and overwrites existing data and layouts.