08-08-2008 06:39 AM
08-08-2008 06:46 AM
Hi LIH,
it´s not possible like you do it. Use a parallel loop with an event case. Create a stop value change event there and destroy the queue refnum. If the queue refnum is invalid the dequeue block will stop waiting and generate an error. You can close the loop with the dequeue element in it, if you connect the error cluster to the loop stop condition.
See the attached examplel please.
Hope it helps.
Mike
08-11-2008 02:24 AM
Hello Mike,
Thanks for your replay. That solved the problem with the Queue.
I still have the same problem with DAQmx blocks. For example I want to measure the period and I'm using a DAQmx Read Counter VI. I've tried to Clear the Task in order to force the Reading VI to generate an error, but it didn't work.
Thanks,
LIH
08-11-2008 02:39 AM
Hi LIH,
this works for me.
Mike
08-11-2008 02:49 AM
08-11-2008 03:14 AM
LostInHelp wrote:
I've made a small adjustment and it worked.
08-11-2008 03:47 AM
08-11-2008 08:15 AM - edited 08-11-2008 08:18 AM
Thanks for sharing..... Catch my (first for you) five stars. ![]()
Lol
LostInHelp wrote:
PS: I'm a beginner in DAQmx and it is also hard for me to explain all this suff in English.