Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Generate an Event based on Counter Trigger

0 views
Skip to first unread message

LostInHelp

unread,
Jul 25, 2008, 8:10:06 AM7/25/08
to
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

LostInHelp

unread,
Jul 28, 2008, 3:10:07 AM7/28/08
to
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


test41.vi:
http://forums.ni.com/attachments/ni/40/6596/1/test41.vi


test110.vi:
http://forums.ni.com/attachments/ni/40/6596/2/test110.vi

Elmar NI

unread,
Jul 28, 2008, 6:10:10 AM7/28/08
to
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


690244.doc:
http://forums.ni.com/attachments/ni/40/6597/1/690244.doc

0 new messages