LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

defining data flow

Hi - I have two threads on a block diagram, consisting of a linear chain of sub.vi's.
What I would like to do is to either run thread 1 first followed by thread 2 or thread 1 only , or thread 2 only. Ideally this would be conrolled by an enumerated control. Trouble is i cant find a simple mechanism for forcing a thread to run or not.
 
Any suggestions!!
thanks
dht
0 Kudos
Message 1 of 3
(2,482 Views)
dht,

A state machine would allow you to do that and have the flexibility to also run 2 then 1 or to change the pattern due to errors or the data collected.

A simple way to do only what you asked is to use two case structures and an enum as shown in the attached image.

Lynn
Message 2 of 3
(2,473 Views)

Hi Lynn - Yes that should do it. Thanks for yor prompt reply

dht

0 Kudos
Message 3 of 3
(2,450 Views)