LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Complications when trying to use VIs as plugins for an executable

Hello all,

I would like to accomplish the following :

- Create an executable from a project
- Let the executable load VIs dynamically from a plugin folder instead of the original VIs, only if these plugins are found
- Let these plugin VIs access the same subVIs as my executable

The last point seems to be a problem. I can load plugins dynamically easily, as long as the connector pane corresponds to the connector pane of the original VI. However, if I have a computer with only the executable (which I suppose contains all the original subVIs in some way, but without block diagram) I can not access these subVIs. I can include them all separately in the plugins folder, but it would be nice if I could avoid this. Is there any workaround for this ?
0 Kudos
Message 1 of 3
(2,591 Views)

hi there

use the "Open VI reference" function and don't connect the "type specifier vi refnum".

to set control values : use the "Set Control Value" method
to run the VI              : use the "Run VI" method
to get control values : use the "Get Control Value" method

then you don't need knwoledge of the connector pane.




 

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 2 of 3
(2,579 Views)
In your project, include them as part of the executable, but do not make them top level, rather dynamic.
0 Kudos
Message 3 of 3
(2,576 Views)