Dynamic Signal Acquisition

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I dynamically link in analysis functions at runtime?

I think I remember a LabVIEW training exercise where that showed a compiled VI where the user could select from a list of analysis functions and apply that function to captured data. I remember that the functions were all contained in a specific directory. Then you could add new functions at runtime by adding them to the appropriate directory even, after the LabVIEW application was compiled into a *.exe file.

The problem--I can't find this training exercise anywhere and can't remember enough details to recreate it. Can anyone point me in the right direction?
0 Kudos
Message 1 of 3
(6,623 Views)
Hi,
It is not very what you mean here. But I can guide you to the Analysis VI.

It is Program Files/National Instruments/Labview 6/vi.lib/Analysis

This folder contains a set of Analysis related LLBs.

Regarding the user selecting the type of Analysis during run time, you can get it either by using a ring menu and a corresponding case structure in the block diagram.

You can take a look at the examples on Ring menu Control.

Please let me know if this helps.

LabVIEW
0 Kudos
Message 2 of 3
(6,623 Views)
OK, I finally figured this one out (shortly after NI support told me it couldn't be done in LabVIEW.) You can use VI Server calls to call a VI using the "Call by Reference Node" function. First I use a "List Directory" function to determine what VIs are in a specific directory. Then I wire that list into the strings of a menu ring. Then when the user selects a specific filter, I use "Build Path" and "Open Reference" functions to dynamically call the selected VI. The filter VIs can be added at any time, even if the calling VI is compiled as a *.exe file. I'll post the VI's to this thread later. Note that the reference that got me started towards a solution was an article in LabVIEW Technical Resource, Volume 6, No. 4 on VI Server applications. www.ltrp
ub.com
0 Kudos
Message 3 of 3
(6,623 Views)