DIAdem Script Throws Errors in SystemLink Server Analysis Automation

Updated Aug 13, 2026

Reported In

Software

  • SystemLink Server
  • DIAdem

Issue Details

Why do DIAdem scripts that work fine in the DIAdem SCRIPT panel suddenly throw errors when I run them in SystemLink Server's Analysis Automation or even in DIAdem's Analysis Automation simulation dialog (DIAdem SCRIPT>>Settings>>SystemLink TDM>>Analysis Automation Procedure...)?

For instance, I can reference an XY channel by just it's Y component in DIAdem SCRIPT, but in Analysis Automation I get errors that the X channel has to be explicitly set, despite the XY relationship.

Solution

The reason could be due to the difference in default parametrization of the DIAdem Worker in SystemLink Server versus the default parametrization in DIAdem SCRIPT.  For the specific case of default handling of the XY relationship in script calls, make sure you include these 2 global property assignments in the On_Run_AnalysisProcedure of your *.anp code.  These variable assignments will configure the DIAdem Worker in Analysis Automation to handle XY relationships the same as a script run in DIAdem.
      

VBScript
UseChnXYRelationHandling = TRUE
ApplicationChnXYRelationBinding = "LateBinding"

     

Python
dd.UseChnXYRelationHandling = True
dd.ApplicationChnXYRelationBinding = "LateBinding"

Additional Information

DIAdem stores its default settings in its Desktop.DDD file, plus allied and referenced files in the same folder as the Desktop.DDD file.  Here's an excerpt from a Desktop.DDD file, with those 2 specific default settings mentioned above highlighted:

  Begin_Workspace

   NaviInitMode: 'FixDataFinder';
   NaviInitStore: 'My DataFinder';
   NaviExportDataType: 'Auto binary';
   NaviPropInheritance: 'None';
   NaviPropNamingSchema: 'TypeNamePropertyName';
   NaviPropInheritanceDF: 'None';
   NaviBulkDataLoadingMode: 'BulkDataLoadingOnWriteAccess';
   BusLogConvertInitFile: '';
   BusLogAutoConvert: 'True';
   ChnCharacteristicsUpdate: 'None';
   PropInheritanceSeparator: 'Tilde';
   DefaultImportDataPlugin: 'TDM';
   DefaultExportDataPlugin: 'TDM';
   UseChnXYRelationHandling: 'True';
   ChnXYRelationBinding: 'LateBinding';

  End_Workspace;