LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

generate user event triggers two event structure

Solved!
Go to solution

Hello,

 

I would like to generate in a while loop a User Event, what triggers events in two or more event loops.

I have attached a non-functional draft VI, so easier to show what I would like to understand.

 

My experiance is that, the Generated User Event only triggers one Event Structure case, not both. Why? What about if I want both event loops to be triggered? How can I do it with User Event?

Maybe someone could explain me this a bit deeper?

Thanks very much!

Regards,

 

ps.: again problem with the forum's file upload... 😞

so here the VI in my dropbox:

https://dl.dropboxusercontent.com/u/8148153/draft_to_show.vi

 

0 Kudos
Message 1 of 5
(2,611 Views)
Solution
Accepted by Blokk

Classic mistake.

 

You need TWO "Register for Events", the output of each going to a seperate Event structure.  Then it will work.

Message 2 of 5
(2,609 Views)

I think this was the fastest response ever after I post my question, thanks! 🙂

Ok, I get it: I have to use two "Register for Events", but I connect the same "user event refnum" wire coming from the "Create user event" to both of them...

0 Kudos
Message 3 of 5
(2,602 Views)

Correct.

0 Kudos
Message 4 of 5
(2,600 Views)

@Blokk wrote:

I think this was the fastest response ever after I post my question, thanks! 🙂

Ok, I get it: I have to use two "Register for Events", but I connect the same "user event refnum" wire coming from the "Create user event" to both of them...


And I even looked at your code.... Smiley Happy

0 Kudos
Message 5 of 5
(2,598 Views)