ā03-25-2013 03:55 PM
Hello every body
i'm using user event to generate two events i do not understand why my programm doesn't work when i use two user events
ā03-25-2013 04:19 PM
I don't understand why you are causing an event within the same loop. None of that code makes sense. In general, a dynamic event should be created and registered before the loop with the event structure and the event should be destroyed after the loop is complete.
As far as your other VIs, you should use a feedback node or unregistered shift registers to hold your value for C instead of using a local variable. Look up a Functional Global Variable.
ā04-13-2013 11:05 AM - edited ā04-13-2013 11:18 AM
hello thx
but i can't get what do you mean i need a short example if u can
ā04-14-2013 02:41 PM
You have a race condition, you probably generate the event before it's registered. Wire the error wire from Register to Generate to make sure it registers first.
Also, Create event should be done outside of the loop.
/Y