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 4
(4,402 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

Message 2 of 4
(4,393 Views)

Hello Brad,

Thanks for your reply. I solved the problem like this:

I am using system exec.vi and give these two comands

"C:\Programme\National Instruments\DIAdem 10.2\Diadem.exe" "/cScriptstart('E:\MY VBS FILE PATH\Daten_Analyse.VBS')"

Now I dont need any activeX VIs.

Thanks again for your reply.

FHM

0 Kudos
Message 3 of 4
(4,368 Views)
Hello Brad!
 
In general it is a long existing request to get a 'Visible' property in the DIAdem OLE interface(s). If set to true DIAdem should be visible and not terminate if the interface is released. MS Powerpoint or Internet Explorer shows how it works. This shouldn't be verry difficult to implement and could be verry useful!
 
Matthias
Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 4 of 4
(4,363 Views)