Error 2147312566 When Executing a DIAdem Script from LabVIEW

Updated Jul 31, 2023

Reported In

Software

  • LabVIEW
  • DIAdem

Issue Details

When trying to establish a connection between LabVIEW and DIAdem, by running a DIAdem Script from LabVIEW, I am getting the following error:

Error code: 2147312566 

Error loading type library/DLL in Diadem Open Connection.vi ->Diadem Open Reference.vi->GenerateDiademReports.vi

Solution

This error is commonly caused by the bitness of LabVIEW and the bitness of DIAdem mismatching. If you are using LabVIEW 32 bit, make sure you are using DIAdem 32 bit. The same goes for the 64 bit version of the software. Additionally, consider the following:
  • Unregistering and reregistering DIAdem by following the instructions in LabVIEW Opening DIAdem Hangs on Automation Open Function might fix the error.
  • This error can happen if you are converting files to a different format and you interrupt the process. Make sure you are not limiting the time of conversion of the files witn Timing VIs or similar. 
  • There could have been a corruption in the installation of your software. Try force reinstalling the software by following Force Reinstall Non-Working or Corrupt NI Software or by attempting a repair process in NI Package Manager (NIPM) if DIAdem was installed using NIPM.

Additional Information

DIAdem 2018 or newer has an application bitness of 64 bit only.