LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to stop with only one "stop button"

I have two vi's. One that monitors temperature and the other sends a D/O signal. They both work fine on there own but when I merge them into one vi I have to press both stop buttons for the vi to stop.  I would really like to only have one stop button in the final vi.
 
Any suggestions would be appreciated.
 
Thanks in Advance,
 
Jason
0 Kudos
Message 1 of 4
(2,787 Views)
Jason,
 
You can edit the stop event case to use the same stop button as the temperature loop.  Right click the event structure and select "Edit events handled by this case", then select the control named "stop (F)".  Then you can delete the other button labeled "stop".
 
-Chris
0 Kudos
Message 2 of 4
(2,782 Views)

You can also make one VI the SubVi of the other and in the subvi, create a connector for the stop button. Then, in the main VI, wire the Stop Button to the connector of the same button in the subvi. That way, they will both act as one.

Cheers.

0 Kudos
Message 3 of 4
(2,776 Views)

Ali84,

I'm not sure what you mean, could you please post your solution for me to review.  Chris' answer worked fine.

Thanks to Both for the quick responses.

 

Jason

0 Kudos
Message 4 of 4
(2,769 Views)