LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

User Controlled Stopping Issue

Hello,

   I'm having an issue with the attached VI. I would like to incorporate a stop button onto the front panel, which would stop the timed loop in which data is acquired, without stopping the VI itself. I.E. what I would like would be to tell the program to acquire for let's say 30 seconds, but decide I've collected enough  at sayt 15 seconds, and be able to press "Stop Collection" and save the 15 seconds worth of data that had been acquired.

I've tried various types of boolean controls on the timed loop conditions... No luck...

I'm using LabVIEW 8.0...

Please find the VI in question attached...

Thanks,
0 Kudos
Message 1 of 4
(2,800 Views)
Just use a stop button (set to Latching action) and OR it with your normal stop condition.  The latching means it will retain its false value until something reads that value (in this case, the only thing connected to it: the OR).  This solves the problem of maybe clicking on the Stop button after it's been polled in the loop, and releasing it before it iterates.
 


Message Edited by JeffOverton on 06-05-2008 03:26 PM
0 Kudos
Message 2 of 4
(2,787 Views)
I'm pretty sure that the front panel is locked while the event is being handled.  In your case that's as long as the loop is running in the event structure.  A front panel control can not be used to stop the loop inside the event structure.  See this similar link  http://forums.ni.com/ni/board/message?board.id=170&message.id=238940&query.id=79373#M238940
0 Kudos
Message 3 of 4
(2,778 Views)
Thanks Centerbolt! That was all it was...
0 Kudos
Message 4 of 4
(2,764 Views)