09-15-2008 10:28 PM
Hi,Everybody
I have a problem about “User Event”.I have three VI :1)MainVI(call Generate Event VI and Receive Event VI in static method or dynamic method) 2)Generate Event VI (Generate User Event) 3)Receive Event VI(Receive User Event).
1)Tere is no problem in static method .:)
2)But ... The Generate Event VI report error (error code 1,Generate User Event in Generate Event VI.vi) in dynamic method.:(
Please Help me.
09-16-2008 02:57 AM
Hi Richar,
The problem is that Main is terminating after launching the two Sub-VIs. Since Main allocated the Event reference, the reference is destroyed when main terminates - leaving Generate and Receive holding an invalid Event reference.
Just put a loop in Main that prevents it from terminating - then Generate/Dynamic works too!
Cheers!
09-16-2008 04:26 AM