LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call Library Function Node Question

I'm farily new to LabVIEW so please be patient with me. I've written a dll file which I can access via the Call Library Function Node. My question is, how do I keep the DLL in memory until a certain event, like when the user presses on a button on the VI? From what I've read in this forum, the DLL is loaded in memory whenever the Call Library Function Node is loaded in memory. I need to have the DLL in memory longer than that. How would I do that?

One more question, how would I call a function in the DLL if it does not have any input our output parameters. For those wonder why you would have a function with no input or output parameters, well the function performs some initialization routine.

Any help would be appreciated.

Thanks.
0 Kudos
Message 1 of 2
(2,505 Views)
Arthur,

The answer to your DLL loading question can be found in this Knowledge Base on our website. In short, a DLL is loaded/unloaded into memory along with its calling VI, so you shouldn't have to worry about any loading issues there. As for calling a function from a DLL without any input/output parameters, you simply just don't configure any. The function prototype in the configuration window should be void FunctionName(void). Best of luck in your programming!

Regards,
E. Sulzer
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(2,481 Views)