LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 8.2 .NET Event Callback

I have an app that uses some custom .NET dlls for asynchronous communication.  This app uses a .NET event callback in LabVIEW for incoming messages.  This app worked fine in LabVIEW 8.0.1, but in LabVIEW 8.2.1, the callback is never triggered.

Any thoughts on the differences in 8.0 vs. 8.2 in how .NET event callbacks are handled?  The example callback VIs (using .NET front panel controls) work fine.
Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 1 of 7
(3,615 Views)
I'm having an issue with .Net in 8.2.1 vs 8.0 as well
http://forums.ni.com/ni/board/message?board.id=170&message.id=243960

I'm not sure if it's different symptom of the same problem or a different problem entirely.
But it might offer some insight.

Matt W
0 Kudos
Message 2 of 7
(3,596 Views)
Hi Joe,

I hope you are doing well today! Is it possible for you to post an isolated version of this code which replicates the issue?
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 7
(3,573 Views)
Adnan:

The .NET code communicates with proprietary hardware.  I'll look at it and see if there is a subset I can post that will function without the hardware, but without the hardware it may not be useful.

FYI: I opened a support request on this, #7154467.


Joe
Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 4 of 7
(3,548 Views)
After working around the cause of my problem and messing around more with .NET I think I might have stumbled upon the same problem your having. I also wrote an example that shows the problem.

It's simular to the "NET Event Callback for DataWatcher", except it passes strings around, one version passes objects the other strings. The string version works but the object version doesn't, I think the object version is registered as a callback but is never run (hard to tell though).

Matt W
0 Kudos
Message 5 of 7
(3,524 Views)
I went back in 8.2.1 this week, and everything is working fine now.  I have no idea what I did to get it to work, but I built an EXE this morning that even runs.  This was done in LV 8.2.1.
Joe Gerhardstein
Viasat
Certified LabVIEW Architect
Certified TestStand Developer
Certified Professional Instructor
http://www.viasat.com
0 Kudos
Message 6 of 7
(3,444 Views)
Joe:
 
Please keep us posted on any issues you run into.
 
Regards,
 
Rudi N.
0 Kudos
Message 7 of 7
(3,405 Views)