LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to interaction with Main VI from .Net event callback

Here are attached some files to achieve this (not mismatching that time).


Nelval 已写:

@nathand wrote:

@Nelval wrote:

Hm I tried to make it work but seems it does not... any reason, why?


It doesn't work because you took the main VI from my example, and the callback from SteveBale's code. One uses a named queue, the other uses a user event reference passed as a parameter to the callback. Or, put differently, your main VI waits for a user event that never occurs, and your callback puts data into a queue that's never dequeued. Pick one method or the other consistently.


Yup I noticed that.. later, the fact is that you provided your own main and provided the old callback version that's why I was a little bit surprised cause the methods were mismatching, anyway I like the user event generation, a bit more consistent with the Event Structure


 

Download All
Message 11 of 14
(2,327 Views)

Oops! Sorry about that. Looks like I originally posted the right screenshots but the wrong VI, and when I replied to you I only looked at the screenshot and your VIs. Interesting that it took 4.5 years for someone to notice that I messed up.

0 Kudos
Message 12 of 14
(2,305 Views)

Can you attach saved in LV9.0?

 

thanks!

0 Kudos
Message 13 of 14
(2,189 Views)

Here you go.

Download All
0 Kudos
Message 14 of 14
(2,176 Views)