From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Launching a stand alone DIAdem instance from LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • Diadem
  • LabVIEW

Code and Documents

Attachment

Overview
This example demonstrates how to call DIAdem from LabVIEW. 


Description

When opening an instance of DIAdem from LabVIEW using the DIAdem Open Reference VI DIAdem is accessed via the ActiveX interface.  If an instance of DIAdem is already running then LabVIEW connects to its ActiveX interface when the VI is run, and the DIAdem instance will continue running after the LabVIEW VI has finished.  If there is not a currently running DIAdem instance, then LabVIEw launches one from the ActiveX interface.  This situation results in the DIAdem instance being closed after the VI as finished running.  So in order to keep the external instance of DIAdem running, it must be launched by other means.

One workaround to do this is to use NI DIAdem Report Wizard or DIAdem Report Express VIs to create a blank report in DIAdem before you open the DIAdem reference.  These express VIs launch DIAdem via the command line so the instance will remain open after the VI has finished running.  Attached is a simple example VI which demonstrates this behavior. 

 

Requirements

  • LabVIEW 2012 (or compatible)
  • DIAdem 2012 (or compatible)


Steps to Implement or Execute Code

  1. Run the VI

Additional Information or References

SnapCrab_Open Stand Alone DIAdem 2012 NI Verifiedvi Block Diagram_2017-10-13_5-1-30_No-00.png 

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Justin D
Applications Engineer
National Instruments
http://www.ni.com/support/

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.