Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Generate an Event based on Counter Trigger

Hello,
 
I have the following part that is already working: a counter (used for period measurement) which is triggered by a digital input. After that I'm reading the data and I'm puting them in a Queue. Here I get an error. The Enqueue Element Vi is providing an error. (Error 1, something with a @  character that is illegal). I've notice that if I disable the trigger for the counter I don't get the error. I'm thinking that this is cause by the delay between the moment in which the Enqueue Block tries to enqueue and the moment in which the counter provides something to its ouptut.
What I want to do is to Generate an Event based on the Counter Trigger Signal and to put all the reading and Enqueue part in an Event Structure. I've tried to do that using an Export Signal - Property Node, but I didn't manage to make it work.
If you have any solution for this (with or without events -  I just want to get rid of that error) please let me know.
PS: I have Labview 8.5.1 and the USB-6210.
 
Thanks,
LostInHelp
0 Kudos
Message 1 of 4
(4,453 Views)
Hi LostInHelp,
can you show us your code? You can also generate user events! Do you use a limit queue size?
Mike
0 Kudos
Message 2 of 4
(4,440 Views)
Hello Mike,
 
Thanks for your replay.
I've attached two vi files. In one you can find how I've tried to generate an event based on the counter trigger (test.vi).
The second one (test1.vi) is the vi where I get the queue error. I've deleted from the second vi the part where the data are dequeue and handled.
 
Thanks
LostInHelp
Download All
0 Kudos
Message 3 of 4
(4,436 Views)
Hello LostInHelp,

i looked at the test110.vi code.
And you dont destroy the queue.
Please take a look at the attachment.

Kind regards,

Elmar
Message 4 of 4
(4,428 Views)