LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

equal to vi-server

Is there a possibility in Labwindows/CVi as in LabVIEW to call a c-function during running the programm that isn't stored in the memory. In LabVIEW I can call over VI-server a Vi from disk, execute it and the memory after execution is free. So my application becomes not so big and if my function changes I don't need to build a new application.
0 Kudos
Message 1 of 2
(2,963 Views)
TED,

In C/C++ programming, the most common way to dynamically load code (code that isn't compiled in with the rest of your program) is by calling a function inside a DLL. In CVI, there are three functions to accomplish the loading of a dll and the retrieval of the function address. These functions are located under the Utility >> External Modules library. Look for LoadExternalModule, GetExternalModuleAddr, and UnloadExternalModule.
This is assuming that the code you are trying to call at run-time is compiled into a C DLL, which you can do with CVI. You can also code out-of-memory code by calling object modules (*.obj), but this is an old method and I'd recommend you stick to DLLs if at all possible.

Regards,

Azucena
National Instruments
Message 2 of 2
(2,963 Views)