10-25-2013 09:39 AM - edited 10-25-2013 10:08 AM
Hello,
I'm trying to trigger my event structure with an user event when my signal reaches a certain value.
the ultimate goal will be to send a message trough queue to my consumer. for now I'm just trying to prove functionality.
currently the event is always triggered once it's set of once and it wont stop.
Here is what it looks like.
thanks in advance
10-25-2013 10:04 AM
Well, it looks like you are generating an event inside the event structure, so I would expect you'd get stuck in an infinite loop here. What happens if you remove that node?
Also, you have some Rube Goldberg code at the lower case structure. The "Equals TRUE?" step is redundant.
10-25-2013 10:05 AM - edited 10-25-2013 10:17 AM
@Erik08085 wrote:
Hello,
I'm trying to trigger my event structure with an user event when my signal reaches a certain value.
the ultimate goal will be to send a message trough queue to my consumer. for now I'm just trying to prove functionality.
currently the event is always triggered once it's set of once and it wont stop.
Here is what it looks like.
thanks in advance
i think a boolean crossing pt by pt with direction set to false-true, that will take care if your value swings in and out of your ranges
as mentioned, put the event structure in it's own loop....no point in having a timeout with an empty case
10-25-2013 10:10 AM
Yeah i know, i was just trying out different methods to see if it was a latching problem, that wasn't it.
10-25-2013 10:32 AM
Thx, but this did not work either.
10-25-2013 10:42 AM - edited 10-25-2013 10:46 AM
here's an example...
timeout event is used to clear the alarm led
10-25-2013 12:12 PM
Thx apok,
I'm going to take a look at this alittle later. I'll get back to you on that.
Looks promising! I appreciate your help. Stay tuned!
10-26-2013 03:36 PM
apok, I've tried to input the boolean crossing and it's still setting off the event.
It seems as though once the event is triggered it no longer depends on the true case statement because the case goes back to false but the event is constantly generated.
10-26-2013 10:34 PM
once the user event is generated the event loop will responde to it and then again it will wait for the user event.
Do you have any loops or some code inside the user event case ?
It would be better if you attach actual VI.
10-27-2013 03:46 PM
Neos the file is attached in the previous post,
Looking forward to hear your input