10-11-2017 08:03 AM
Hello everybody,
I tried to make error check after every case done, so when I found one, it should flush the queue of these following cases and simply goes to error handling case... But... It does not work this way. It just simply ignores the flush and then it goes to the previous cases in queue.
I am clipin just screenshot, since there is not much to look for in another cases, so do not kill me for not putting VI :-D.
Thanks a lot for help in advance
Martin
Solved! Go to Solution.
10-11-2017 08:27 AM
If you wire the error into the Flush Queue node, it will not be executed.
10-11-2017 08:31 AM
well, decision about the case (error/no error) is before the flush. Look at that case bottom right... The problem is as I said. It goes to different cases, which should be flushed!
10-11-2017 08:32 AM
@pincpanter wrote:
If you wire the error into the Flush Queue node, it will not be executed.
Help file says that "This node runs normally even if an error occurred before this node runs."
Are you positive that you are getting an error and not a warning?
10-11-2017 08:39 AM
aputman ha scritto:
@pincpanter wrote:
If you wire the error into the Flush Queue node, it will not be executed.
Help file says that "This node runs normally even if an error occurred before this node runs."
Are you positive that you are getting an error and not a warning?
LV 2011 help does not say that. I verified this with a little example.
Typically only Close nodes run even when 'error in' is true (and Release Queue does).
10-11-2017 08:44 AM
mzema ha scritto:
well, decision about the case (error/no error) is before the flush. Look at that case bottom right... The problem is as I said. It goes to different cases, which should be flushed!
I'm saying that Flush Queue will not be run unless you unwire the 'error in' input terminal.
10-11-2017 08:48 AM
I did a quick test and the flush function does not operate if an error is passed in. As stated this type of functionality is generally reserved for closing operations, which you want to still release hardware or resources even on close.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-11-2017 08:48 AM
Well, yes. I checked it in highlight mode and then you certainly get error cause of overrun of buffer... And technically what is a difference between warning?
10-11-2017 08:49 AM - edited 10-11-2017 08:51 AM
There might be another problem that there is an error in to the function enqueueing the "Error" message so I would suspect that the message is never being enqueued.
10-11-2017 08:52 AM
Says it in 2012. Not sure about later versions.