LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

black box application


@User002 wrote:

I am now thinking of it like a much more complex version of the square root subvi example where I will have no idea how the square root function is implemented, but I can input certain things, get the output, and even build my own application on top of it.


Yes, it's called a SubVI (or 'function' in text-based languages).


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 31 of 32
(793 Views)
Your code becomes a subVI by simply placing it on a block diagram so you've already done that. Where there is an issue is stopping while loops that are in your code. Basic dataflow days that once you call your code, execution passess to it and the calling VI is paused and controls on the main are inactive. There are techniques such as using a parallel loop in the main and references to pass control changes to the running code but this could be hard for a user to implement cleanly and for you to write and distribute.
0 Kudos
Message 32 of 32
(782 Views)