ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subVI running simultaneously

I'm a beginner in labview and I'm trying to translate a program I put down
months ago in VB.
I've got a block that executes a task and that loops continuously...
If I need 8 tasks running togheter independently, I copy the block 8 times
in a main while loop and it works correctly; if I try to convert the single
block into a subVI in order to call it 8 times from a main VI, the first
subVI called never release the program control, even using global variables
or property nodes, so the other subVI will never be called.
In VB this wasn't a problem because of the events programming, any ideas for
labview?

Thank You

Franco
0 Kudos
Message 1 of 3
(3,419 Views)
Is your 1st subvi in its own while loop? If so, and it its not set to run just once (check the Stop/Coninue node), then you'll have the problem you mention. Either remove the while loop or set its Stop/Continue node to run just once (wire a False to it, perhaps).
Also, if you run the same vi numerous times in one main vi, you may need to make that subvi reentrant - do this with its property node. Reentrant will allow it to be called numerous time, and will contain its own data set.

Good luck with it,
Doug
0 Kudos
Message 2 of 3
(3,419 Views)
Sounds like you need to make the VI reentrant as Doug said. This should fix
the problem.
-Tom
"News di Libero" wrote in message
news:W9MO7.7$j_5.851@twister1.libero.it...
> I'm a beginner in labview and I'm trying to translate a program I put down
> months ago in VB.
> I've got a block that executes a task and that loops continuously...
> If I need 8 tasks running togheter independently, I copy the block 8 times
> in a main while loop and it works correctly; if I try to convert the
single
> block into a subVI in order to call it 8 times from a main VI, the first
> subVI called never release the program control, even using global
variables
> or property nodes, so the other subVI will never be called.
> In VB this wasn't a problem because of t
he events programming, any ideas
for
> labview?
>
> Thank You
>
> Franco
>
>
>
0 Kudos
Message 3 of 3
(3,419 Views)