Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Calling a LabVIEW VI from DIAdem 10.1 or Above

Primary Software: DIAdem
Primary Software Version: N/A
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I want to be able to call a LabVIEW VI from DIAdem. Is there any way to do this from the DIAdem Script Editor? Are there any examples available of how to do this?

Solution:
If you are using a version of DIAdem less than 10.1, please visit the first related link.
Starting with DIAdem 10.1, there is now a LabVIEW Runtime Engine Object (called VIRuntime). This object allows you to start the LabVIEW Runtime Engine (Init function), Load VIs (LoadVI function), Run VIs (Run function), and have access to the VIs connector pane (GetControlValue and SetControlValue functions).

There is an example available called Calculating the Bessel Function with a LabVIEW VI which contains a vbs file, as well as a sud file. This example can be found by navigating to Help ยป Examples and searching for Calculating the Bessel Function. The code for both of these files shows the implementation of the VIRuntime object.

For more references on using the VIRuntime object, please refer to the DIAdem Script help.

Related Links:
KB 3I3C159F: Calling LabVIEW VIs from DIAdem 10.0 or Below
KB 3TG6KDRM: Installing the DIAdem Connectivity VIs to Multiple Versions of LabVIEW

Attachments:





Report Date: 05/09/2007
Last Updated: 10/22/2008
Document ID: 498BGG9K

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit