DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

call diadem from labview

I have an application in which I call a Diadem VBS script from Labview. I am using Diadem activeX vis to call Diadem in Labview. My problem is when I stop my vi Diadem is closing. I would like keep Diadem open even I stop my Labview Application. Can somoeone tell me how to do it?
 
I am using Diadem version 10.2 and Labview 8.2.
 
Thanks
FHM
0 Kudos
Message 1 of 7
(4,828 Views)

Hi FHM,

If LabVIEW spawns the DIAdem instance through ActiveX, then when the VI stops the child DIAdem instance exits too.  This is standard ActiveX dependency, and there's nothing we can do about it.  However, if DIAdem is already launched and LabVIEW just dials into it with ActiveX, then that DIAdem instance will remain when the VI stops.  So one simple solution is to just start DIAdem prior to running your ActiveX VIs.

Alternatively, you can try running the "NI DIAdem Report Wizard.vi" in the LabVIEW-DIAdem Connectivity VIs or the "DIAdem Report.vi" that ships with LabVIEW (on the Express>>Output palette).  Both of these VIs create a stand-alone DIAdem instance by invoking DIAdem from the command line with the DOS extension to run a particular script.  When DIAdem is launched from DOS it is a stand-alone instance that will continue even after the application that called the DOS command exits.

Hope that all helps,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 7
(4,823 Views)
Today I got a new error by calling VBS Script from LabVIEW. I am using the function "Call ScriptInclude("LMapping.VBS")" in my main VBS-Script. When I run DIAdem activeX VIs to call Diadem and run the script I get the error
 
" The VBS script <LMapping.VBS> does not exist!"
 
When I open Diadem and run my main VBS script everything works fine no error. Only when I call it from LV it doesnt work. When I disable the "Call ScriptInclude("LMapping.VBS")" function it works fine. It seems that there is some troubles with Scriptinclude() function.
 
Can anybody tell me what is the reason for this behaviour?
 
Thanks
 
0 Kudos
Message 3 of 7
(4,648 Views)
Have you tried typing in a specific path, e.g. "c:\Script\LMapping.vbs" ?
0 Kudos
Message 4 of 7
(4,570 Views)

Hello themad,

thanks for your question. Yes I did so and it worked.

0 Kudos
Message 5 of 7
(4,568 Views)
So it seems that when being called from LabView, DIAdem uses different Path settings than usual. Perhaps somebody from NI can comment on this.
0 Kudos
Message 6 of 7
(4,566 Views)
Yes it seems to be like that.
0 Kudos
Message 7 of 7
(4,563 Views)