05-07-2015 02:25 AM - edited 05-07-2015 02:27 AM
Hello,
I am using a dynamic event to pass a data (variant) to a vi which i call dynamically. reference of the event is stored in LV2G.
so both main and called vi can access. data when written to the generate user event vi is triggering event at random time when executed.
I am attaching snapshot of the vi which i used to register event.
One interesting thing i noticed is if i put a probe in the error out of the generate user event vi then event will start triggering.
Need help. I am struggling to get a solution.
Regards,
Vibin
05-07-2015 05:56 AM
@VSphilip wrote:
data when written to the generate user event vi is triggering event at random time when executed.
Could you write it in diffrenet way? I cannot understand that. Are there other events to handle? Are they firing?
Could you attacht whole VI? it is hard to say anything from this snapshot.
05-07-2015 06:50 AM
Hi Vibin,
Are you trying to say that the events (what ever event it is) are not generated or registered unless you probe the error wire?
if you probe--the events are registered
and if you dont probe-- the event s go undetected??
05-07-2015 07:00 AM - edited 05-07-2015 07:03 AM
Hello Arju89,
Yes that is what happened.
If I probe error wire coming out of Generate User Event.vi then event is triggering.
If I am not probing no event is triggering.
05-07-2015 07:10 AM
It seems to me that the problem must be occurring inside the sub-VI in the middle of your Block Diagram called User Event (orange and yellow). Also, I don't see the Event Structure -- could the problem be there?
Can you bundle up more code (perhaps as a Project) and include a Zip file so we can see everything all at once? It would help to understand the origin of your problem.
Bob Schor
05-07-2015 07:15 AM
Post any code you have on the issue. There may be something simple that will fix the problem. It sounds a lot like a race condition.
05-07-2015 07:18 AM
I am using same dynamic event to send another data to the vi.
from another while loop.
ie. writing data to generate user event from two loops in which one is triggering event and other is not.
will this cause race condition.
05-07-2015 06:04 PM
Possibly. Post your code, please.
BS