Community Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic VI Loading Example (Calculator)

This example highlights how to create a plug-in architecture where VIs that have a common set of inputs and outputs are loaded dynamically at run-time.

1. Open and run "Calculator.vi." Notice that only Add, Subtract and Multiply functions are available (these are the three functions that are originally included in the "Math Functions" folder included in this .zip file.

2. Stop the application.

3. Move "Divide.vi" in the "Math Functions" directory.

4. Run "Calculator.vi" again. Toggle through the operations and notice that divide is now an option.

While very basic, this example show how to create a basic framework that can be added to after development to the original code ends. This can be very valuable in the case of code validation, or when creating a .exe that you want to add to later on.

Todd S.
LabVIEW Community Manager
National Instruments
Comments
DiscoBall
NI Employee (retired)
on

Hi Todd! Do you have this example VI still? I don't see the download for it.

Joshua B.
National Instruments
Captain_Logic
Member
Member
on

I'd like to see the files too!

 

Thanks in advance

Contributors