10-19-2009 06:00 AM
Hello all,
I had a problem with the data synchronisation.First of all let me explain my application.I am acquiring the data through tcp/ip from two devices using my labview application running in some other computer.From device1 i am acquring the data continuosly and from device 2 i am acquiring only at some time.
When i acquire the data i found that the data which is acquired from device2 is not in sync with the data from device 1.That means i have a data synchronisation problem.Can anyone please tell me how can i do the synchronisation of data?hh
Thanks and regards
srikrishna.J
10-19-2009 08:30 AM
It's not clear to me what your situation is.
I am acquiring the data through tcp/ip from two devices using my labview application running in some other computer.From device1 i am acquring the data continuosly and from device 2 i am acquiring only at some time.
By "only at some time" do you mean "only sometimes" ( not all the time, not continuously)?
If so, then you could consider:
If that doesn't help, ask again with some more details, please.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-19-2009 09:59 PM
10-20-2009 07:18 AM
What difficulty are you having?
If you have both channels coming in via WiFi, then you have the data already there at the LabVIEW computer, correct?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-20-2009 07:36 AM
Hi Bird,
Ofcourse i am acquiring the data correctly but the data from both the devices must be synchronised in time,say for example if device2 generates the data at time "to" then at the computer i should get the data synchronised in such a way that data from device1 generated at time "to" along with data from device2 generated at time "to",there should not be even a 1 second time difference between data from device1 and data from device2...
Thanks and regards,
srikrishnaNF
10-20-2009 07:54 AM
Please explain the difficulty you are having.
Does device 1 store the data, or does it transmit it's latest reading all the time?
Does device 2 store the data, or does it transmit it's latest reading all the time?
Is there a problem with taking the latest reading of each device and calling that simultaneous?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-20-2009 08:06 AM
hi bird,
Actually device1 sends the latest reading all the time and device2 as well sends the latest data....from device1 everytime,so 80 bytes of data is sent from device2 only 1byte of data is being sent and data from device2 acts as some trigger for my labview application..
Thanks and regards,
srikrishna.J
10-20-2009 08:23 AM
device2 as well sends the latest data....from device1
Well, I don't understand that.
If you have two loops, one listening to device 1 and the other listening to device 2, then each loop has the latest data from each device.
Is there a problem with that?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-20-2009 11:30 PM
Hi bird,
This is the scenario of my application.Device1 is sending the data continuosly and device2 sending data sometimes only.Labview Application is for visualising and storing the data from both the devices.The problem is in the visualising the data.Suppose Device2 had generated a trigger value at time 'to' .
Then my labview application should display the data from device1 generated at time 'to' along with the data from the device2 generated at time 'to'.So the
data from device1 and device2 should be synchronised,i think there should be a handshake between these two devices..
regards,
srikrishnaNF
10-21-2009 05:55 AM
But.... if your app receives data continuously from device 1, then any time it receives a trigger from device 2, the latest from device 1 ->IS<- the data that matches the trigger, is it not?
If your data looks like this:
Dev 1 Dev 2
6
7
8
10
14
16
18 Trig
17
15
13
10
7
5
... then the latest Dev 1 value at TRIG time is 18. Isn't that what you want?
If not, I'm missing something.
Blog for (mostly LabVIEW) programmers: Tips And Tricks