04-04-2009 05:45 AM
Hi, I try to put a Reg Event Callback inside a while loop where it has to be refreshing constantly,and I have the next error:
"LabVIEW: (Hex 0x4A5) You cannot register the same event on an object multiple times."
If I remove the while loop it works fine, but I need that loop. How do I solve the problem?
Thanks
Solved! Go to Solution.
04-04-2009 08:26 AM
Are you registering the event with the same callback VI everytime? You don't need to do this. Once registered, the callback VI will trigger on every event fired.
You would only need to re-register the event if you wanted to change to a different callback VI. To do that, you'd first have to call Unregister for Events on the first event registered.
04-04-2009 08:26 AM
04-04-2009 09:31 AM
Oh!! Thank you, I didn't know. Now works fine.
Thank you
04-04-2009 09:35 AM
04-04-2009 09:54 AM