From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-20-2013 11:04 AM
You are dequeing all of the items. You r bug is that you are using the default value for your dequeue count in the timeout case. So you reset your count anytime you have a timeout.
Using the queue status in this manner is a bad way of doing things. You effectively change an event driven task to a polling task. SImply use the dequeue to remove the data from the queue.
03-20-2013 11:17 AM
Hello Mark,
one thing clear from your post is that 'I am changing event driven task to polling task'.
But I am not able to understand 'using default value for your dequeue count in timeout case ' and aslo 'resetting count at any time ' .Can you explain me a bit clear ????
Thnx in advance
Regards
Neo
03-20-2013 11:22 AM
@Neo6 wrote:
Hello Mark,
one thing clear from your post is that 'I am changing event driven task to polling task'.
But I am not able to understand 'using default value for your dequeue count in timeout case ' and aslo 'resetting count at any time ' .Can you explain me a bit clear ????
Thnx in advance
Regards
Neo
Look at teh tunnel output for your count on the case statement. It looks like it has a liittle dot in it. This means some of teh cases have no value wired to it and the default value will be used. So when you get a timeout since you have not wired the output for the elements processed count a 0 will be passed out. This resets your count value.
03-20-2013 11:29 AM
Hello Mark,
Thank you very much for your valuable info. I think even if we attend labview courses we may not come through these critical programming mistakes.
Thnx to you and thnx to this forum.
Regards
Neo.
03-20-2013 01:10 PM
@Neo6 wrote:
Hello Mark,
Thank you very much for your valuable info. I think even if we attend labview courses we may not come through these critical programming mistakes.
Thnx to you and thnx to this forum.
Regards
Neo.
You're welcome. That is why we are here.