To download NI software, including the products shown below, visit ni.com/downloads.
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
Steps to Implement or Execute Code
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.