05-02-2007 02:43 PM
This is incorrect. Release Queue (at least in more recent versions of LabVIEW, since queues became primitives) will release the queue even if an error is passed into the error in terminal. Nearly all functions that destroy a reference operate this way, so that references can be closed cleanly even if an error occurs.Notice also that the error in to the Release Queue is not wired. If there were an error, the Release would not take place. All errors are merged at the end to report exactly where an error occured. A timeout is included in case an error prevents the stop command from being enqueued or dequeued.
05-02-2007 03:09 PM
05-02-2007 03:18 PM
05-03-2007 06:36 AM
Greg,
Can you pl repost the VI saved for LV 7.1 ?
05-04-2007 07:48 AM
05-04-2007 08:08 AM
Done.
Can anyone else do a save back and post?
05-04-2007 08:29 AM
Hi,
If an error occurs in the producers loop the vi cannot be stopped. To prevent this one can enqueue a stop in case of error from the producers loop. See the attached LV 8.2.1 file (cannot save for earlier version).
BR
Sture
05-04-2007 10:05 AM
Cheers,
@Sture wrote:
Hi,
If an error occurs in the producers loop the vi cannot be stopped. To prevent this one can enqueue a stop in case of error from the producers loop. See the attached LV 8.2.1 file (cannot save for earlier version).
BR
Sture
05-04-2007 12:08 PM
I tested by inserting an error in the producer loop. Since the producer loop is stopped on error there is no way to stop the consumer loop anymore. Dequeue element returns error only if it is called after release queue is done. Therefore I think one have to enqueue a stop ( or release queue) if producer loop returns error.
/Sture
05-04-2007 02:15 PM
Cheers,
@Sture wrote:I tested by inserting an error in the producer loop. Since the producer loop is stopped on error there is no way to stop the consumer loop anymore. Dequeue element returns error only if it is called after release queue is done. Therefore I think one have to enqueue a stop ( or release queue) if producer loop returns error.
/Sture