LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pass data to SubVI state machine

Greetings,

I'm having trouble passing data to a State Machine that I've made into a SubVI.

I know there's something very important I'm missing here.  But I don't know what it is.

I need to be able to pass Start and Stop booleans to this SubVI.  But once the SubVI starts, I am unable to pass any data at all to it.  

I've tried making the VI reentrant.  But that didn't help.  


I know there's a way to do this.....I'm just having a hard time finding it.

Can anyone point me in the right direction?
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 1 of 6
(3,549 Views)
Queues are the usual way of passing data between independent loops.

Lynn
0 Kudos
Message 2 of 6
(3,550 Views)
The only "data" I'm actually passing are boolean values. 

Is a Queue still the way to go?
---------------------
Patrick Allen: FunctionalityUnlimited.ca
0 Kudos
Message 3 of 6
(3,538 Views)

...and if you're looking for the easiest way, you could just use a Global Variable to pass the loop stop condition between the VIs.

-D

0 Kudos
Message 4 of 6
(3,537 Views)
Are your problem solved?
0 Kudos
Message 5 of 6
(3,345 Views)

Have you considered calling the SubVI by reference and setting the Wait Until Done property to false?

 

0 Kudos
Message 6 of 6
(3,325 Views)