LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.net assertion when using user event refnum in callback vi

Here is where I define the user event and the .net function.

Code1.JPG

 

Heres the callback.

Code2.JPG

 

And the assertion...

assertion.JPG

 

However, this works...

Code3.JPG

 

I dont want to use the global though. I'd like to feed the refnum straight into the callback vi.

 

Any ideas?

0 Kudos
Message 1 of 6
(2,891 Views)

Nobody?

0 Kudos
Message 2 of 6
(2,873 Views)

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. 

National Instruments
FlexRIO & R-Series Product Support Engineer
0 Kudos
Message 3 of 6
(2,866 Views)

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.

0 Kudos
Message 4 of 6
(2,863 Views)

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. 

National Instruments
FlexRIO & R-Series Product Support Engineer
0 Kudos
Message 5 of 6
(2,842 Views)

Yeah, I'll do that. It will be Monday morning though.

 

Thanks Dave!

0 Kudos
Message 6 of 6
(2,837 Views)