LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

scalable use of sub vis

Hello,

 

I've been thinking about this concept for a little bit, but have been unable to get a proof of concept working, and thought you all might have some suggestions.  A quick description of what I'd like to do:

 

I'd like to have a scalable string array, that's fed into my main VI, with outputs to a boolean array.  When the input string array is taken into the main VI, I'd like to apply each value of the array to a separate (but identical) instance of a subvi.  That part is fairly straightforward, here's the kicker.  Each subvi needs to be able to run in parallel, that is, I can't just sequentially apply each array value to a single subvi, but generate X parallel instances of the subvi for an X long input array.

 

I'd like to see if there's a way to do this without having to individually wire each subvi, such that it would be really easy to scale this VI from, say, an input array size 2, to size 20.

 

Thoughts?

 

Thanks! 

--
Jim S
GRA/Colorado School of Mines
0 Kudos
Message 1 of 3
(2,601 Views)

Hi Jim,

 

You may want to read this Nugget on creating an arbitrary number of VI's in an app. That example focused on Occurences (which required specail treatment) but the rest of teh code and discusion should cover what you need to know to do what you are asking.

 

Please review that Nuget along with the replies and then post follow-up question if you still need help.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,592 Views)

Jim,

 

if you are using LV 2009, you can implement a single subvi, configure it to be reentrant and place it into a parallel for loop.

I think this would be the easiest way for you to solve the issue.

 

hope this helps,

Norbert 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 3 of 3
(2,591 Views)