ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I stop a VI-DLL programmatically?

I load a Labview-DLL into a subpanel with the Call Library Function Node. I can quit this DLL (fitted with an event structure) easily with a button on it's front panel. But how can I terminate this DLL programatically from outside? From the calling VI? From another VI? Thanks for a hint. Dedel
0 Kudos
Message 1 of 6
(3,750 Views)
hi

you can quit the DLL( you mean the source code used in it?) using a control? the source code has an event structure?


do this:
call this DLL in a blank vi. Use only the call Library function node and required controls and indicators to the DLL.

Try stopping it. Get back with the result.

P.S: event structure does not let you control the source code of a DLL.



0 Kudos
Message 2 of 6
(3,740 Views)
where is this control that terminates the DLL?
in the vi using subpanel? or in the source code?
 

explain your question a little more... please!


Message Edited by MScap on 06-10-2008 07:08 AM
0 Kudos
Message 3 of 6
(3,738 Views)
I have attached my test scenario. A simple VI calls the DLL and places it's front panel on top of it. The DLL handles events and finishes by 'value change' of the stop button - as usual. The idea behind this all is to have a main panel with some sub panels. The sub panels are filled with exchangeble DLL-VI panels (plug-in's). These panels (DLL-VIs) are invoked from selectors on the main panel and must be released if exchanged.
0 Kudos
Message 4 of 6
(3,734 Views)
hi

i am not sure i will be able to answer your question.

but, i have a question. why are you using DLLs, in the given vi, instead of calling its front panel directly,in the sub-panel cotnrols?

you are not controlling the vi through the DLL! you are anyways directly controlling it!

0 Kudos
Message 5 of 6
(3,725 Views)
The final product is an application running on the Run-Time Package. The DLL-Modules should be exchangable without replacing the whole application.
0 Kudos
Message 6 of 6
(3,720 Views)