LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass parameters to a SubVI running parallel

Searching about parallel running VI's I found this example  (attached), but  I need to know how to pass parameters to a SubVI, for example, pass a string and process it in the sub VI. My Main VI have to still running all the time.

Thanks.


Raymundo Cassani
0 Kudos
Message 1 of 6
(3,109 Views)
Hi Ray,

You can use the "Control Vlaue: Set [Variant]" Invoke method to pass values. Call this method before you call the "Run VI" method.

I modified your example to do this for "SubVI 1".
Message 2 of 6
(3,093 Views)
Thank's. That´s what I was looking for.
Raymundo Cassani
0 Kudos
Message 3 of 6
(3,087 Views)
You can also use Ctrl Refs for the Controls/Indicators that are inside the SubVIs to write/read values to/from them.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 4 of 6
(3,067 Views)
When I build the example modified by Prashant Oswal.
What do I have to do? because it doesn' t work. 

I think that I´ve to join my subvis in a LLB and call it from my mainvi. Or
Modify the paths to call the sub1.exe.

What do I have to do?
Raymundo Cassani
0 Kudos
Message 5 of 6
(3,061 Views)