LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i am using labview with java,i am using datasocket ,but i have not been able to find anything like datasocket update event in labview

i do not want to use while loop ,with delay fn,i have given lot of effort but not able to find any solution
0 Kudos
Message 1 of 3
(2,747 Views)
Hi Sam,

I do not know if this will work but I believe it is worth trying.

Please let me know if this works!

In the attached VI, I used an "Automation Open" to get an Automation Refnum. This refnum is then passed to a "Create ActiveX Event Queue.VI" and identified the "OnDataUpdated" as the Event name. The returned Event Queue is then passed to a "Wait on ActiveX Event.VI".

This looks like it may be what you are looking for. If it works I would suggest you wire up a timeout value and check the returned time out boolean to determine if you get a good update.

PLEASE let me know if this works!

Trying to help,

Ben
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 3
(2,747 Views)
sir , i hv rcvd ur answer,i hv not worked in activex and events queue ,i think it will solve my problem ,if it works i will mail u.
0 Kudos
Message 3 of 3
(2,747 Views)