LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I capture a value change from a datasocket in a event structure?

Solved!
Go to solution

Hi,

    I'm currently working on a project with two seperate systems (PXI embedded controler and a standard PC) which are talking over a network using a datasocket. The PXI controller is reading data from a DIO card and posting this to the datasocket.

I would really like to be able to check the datasocket (on the PC) for a value change, and only react when a change happens?

 

Does anyone have a idea of how this could be done?

Please ask questions if i didn't explain this very well 🙂

Thank you

James

Message Edited by Jam.hall on 07-24-2009 08:20 AM
0 Kudos
Message 1 of 4
(3,853 Views)
Solution
Accepted by topic author Jam.hall

Hello Jam.Hall,

 

I have found this forum thread, I hope it might help.

 

It references this knowledge base article if you need more detail.

 

Hope this helps!

Message 2 of 4
(3,836 Views)

Simple Example showing how to use a user event and notification to accomplish this.  I did not put the Data Socket part in, but you should be able to modify this or add the required code to your VI. 

 

NOTE:  This is only one way of skinning this cat.

 

LV8.5


Paul
Message 3 of 4
(3,829 Views)

Thank you both for your replies, both worked a treat. I'm going to go with the value (signalling) property node method with a little modified code. The only problem with the value (signalling) property node is that even if the value hasn't change it will register a event with the event structure (even if using value change events!) so it basically just sits there polling the datasocket. But I use a simple peice of code to compair the data and only if it has changed will it write to the property node and hence cause the event to be triggered.

again thank you both for your imputs very helpful.

0 Kudos
Message 4 of 4
(3,806 Views)