LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

trigger event with user event

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

 

 

 

0 Kudos
Message 1 of 11
(3,524 Views)

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.

0 Kudos
Message 2 of 11
(3,501 Views)

@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

0 Kudos
Message 3 of 11
(3,500 Views)

Yeah i know, i was just trying out different methods to see if it was a latching problem, that wasn't it.

0 Kudos
Message 4 of 11
(3,491 Views)

Thx, but this did not work either.

0 Kudos
Message 5 of 11
(3,471 Views)

here's an example...

alarm.png

 

timeout event is used to clear the alarm led

0 Kudos
Message 6 of 11
(3,466 Views)

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!

0 Kudos
Message 7 of 11
(3,443 Views)

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.

0 Kudos
Message 8 of 11
(3,410 Views)

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.

0 Kudos
Message 9 of 11
(3,398 Views)

Neos the file is attached in the previous post, 

Looking forward to hear your input

0 Kudos
Message 10 of 11
(3,373 Views)