Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

how can I remove of memory the program LabView RunTime?

I call by means of Visual basic a dll generated in Labview and this be executed like a normal program of labView. To the moment of coming out of the dll in Labview remains loaded in memory the labView RunTime. If I call again to this dll since the done program in visual Basic. no longer is visualized me nothing. I expect that someone help me with this problem.
0 Kudos
Message 1 of 4
(6,666 Views)
I�m not exactly sure what you are trying to do. Please tell me if I'm wrong:

From Visual Basic you are calling a DLL that was generated in LabVIEW. When you say �executed like a normal program of LabVIEW�, do you mean that you want the front panel to be showing?
- That is not possible if it�s a DLL. You will have to generate an EXE version of the VI. You still use Application Builder to do this.

You say that LabVIEW Runtime remains in memory after the DLL is called the first time. What is the problem second time the DLL is called? Do you want the VI to remember the values from the previous run?
- The DLL will not be able to store old values, like a VI would (e.g. in an un-initialized shift register). If you want it to remember values from every time it�s c
alled, you could include some file I/O functions that initializes the values and saves them in the file every time the DLL is called.

Did this answer your questions?

Best regards,
Philip C.
Applications Engineer
National Instruments
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 2 of 4
(6,669 Views)
Hello,
 
When you say it's impossible to have a display of a labview front VI through a labview dll called by VB6, i think you mistake because i do it and it work.
 
But the labview runtime generate toubles under VB6 if you can send me your émail to mine i can explain what happens but i don't know why.
 
 
Best regards
 
aip.pinter@wanadoo.fr
Message 3 of 4
(6,534 Views)
 

Hi orion,

You're absolutely right!!! You CAN have the DLL show up as a dialog with its own front panel, as long as you remember not to remove the front panel of the VI in the Application Builder. Thanks for correcting me (5 stars for you)!!!

Please let me know what issues you are facing with your implementation. Otherwise, submit your question on www.ni.com/ask.

Thanks!

 
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 4 of 4
(6,515 Views)