02-09-2011 09:39 AM
Here is where I define the user event and the .net function.
Heres the callback.
And the assertion...
However, this works...
I dont want to use the global though. I'd like to feed the refnum straight into the callback vi.
Any ideas?
02-10-2011 07:34 AM
Nobody?
02-10-2011 04:25 PM - edited 02-10-2011 04:26 PM
I believe this is the problem you're having:
http://digital.ni.com/public.nsf/allkb/2AF19EBDFA4AC82D862576B6006E7FE8?OpenDocument
This was fixed in version 2010.
Let me know if this is not the issue you're having.
02-10-2011 04:31 PM - edited 02-10-2011 04:33 PM
That may be the case. I'm not at work now so I cant dig into it.
However... the callback works fine as long as I dont pass a user event refnum into the user parameter.
I'm using the user event refnum in the global variable now (inside of the callback vi) and it works.
I'm just trying to avoid using a global.
Thanks for the reply.
[EDIT] I'm passing a string into the user parameter now. So at least that does work.
02-11-2011 11:31 AM
If you want to download and try this in 2010, you can get that at www.ni.com/src with a 30 day trial.
Otherwise, if you wanted to upload something that I can test in 2010, I'd be happy to do that for you.
02-11-2011 12:19 PM
Yeah, I'll do that. It will be Monday morning though.
Thanks Dave!