LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to handle event messages from multiple threads

Hi guys,

 

I am new to Labview and so to this forum.

 

I am integrating a COM component to Labview where I call a method ( say fun() )to do some calculation on a different thread. The fun() method fires some events through IConnectionPoint. I register the callback in VI. However the events messages are not being recieved on UI.

 

I tried sending the event from the main thread and I see the messages on UI.

 

Any help/suggestion on what I need to do it working?

 

Thanks in advance.

regards

Pandey 

0 Kudos
Message 1 of 3
(2,909 Views)

hi... Any solution for this problem guys????

 

0 Kudos
Message 2 of 3
(2,878 Views)
I'm not sure I understand what you're doing. Can you elaborate on "the events messages are not being received on UI"? Which UI? Your callback VI is the one that's supposed to be called when the event fires (assuming it's actually firing). If you're referring to a LabVIEW front panel, then you need to feed in control references to the callback VI so it can update your UI. There are some  activeX event examples that ship with LabVIEW.
0 Kudos
Message 3 of 3
(2,869 Views)