LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call by reference, executable problem.

Hi
First of all I can't seem to log on as my former alias "Klump" so I'll go with this.
 
Second, I have a couple of questions about dynamic calls.
 
Is it possible to call VIs dynamicly from an executable, without having to include them in the AB or in the block diagram. I want my application to work as a sequence editor, and others may create VIs and put'em in a specific directory from which my app. runs them. My executable should be static and never changed in any way. Kind of like Test Stand.
 
Andreas
 
PS I've searched in the forums but I didn't find any answers.
0 Kudos
Message 1 of 5
(3,542 Views)

Yes, you can do this, but the VIs need to be compiled and the application has all the support VIs it needs. If you just copy your hierarchy of VIs after saving it and make sure that the dynamic VIs have all the VIs they need, you should be fine. Searching for "plugin" should give you some results.

I suggest you run a little test on this, just to get used to it - you can use the List Directory primitive to find all the VIs you need (or you can browse to them) and then load them. Build an EXE which loads some simple plugin (e.g. math operations) and see how it works. Be sure to test it on a PC without LV installed.


___________________
Try to take over the world!
0 Kudos
Message 2 of 5
(3,527 Views)
Thanks for your reply
 
Ok I took my dynamic vi and a CTL which the vi uses and put it in a .llb. This works, put lets say I only want the VIs in that .llb NOT the controls or Subvis to that dynamic vi. I only want the top level dynamic vi there. I tried to make the dynamic vi an exe, and then call it from my application, but that didn't work either. I want it to work exactly the same as my developement, where I have a VI that searches in a folder for other vis and runs them sequentially.
 
Any further ideas. 
0 Kudos
Message 3 of 5
(3,510 Views)
I'm not sure I understand your problem. An exe can call a compiled VI (that is a VI which was saved and has the proper linkage to all its subVIs), but if you remove the typedefs, the VI will not be runnable.
Can you upload a simple example demostrating what you're trying to do and explaining how it doesn't work?

___________________
Try to take over the world!
0 Kudos
Message 4 of 5
(3,501 Views)
Hi
 
The problem was that it couldn't find my ctls, they wern't linked properly. I was a bit hasty when I tested the executable and tried to run a copy of the VI which ofcourse wasn't prperly saved.
 
thanks for your time.
 
Andreas
0 Kudos
Message 5 of 5
(3,487 Views)