LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to syncronize windows and rt using tcpip or udp

Hellow friends

I am Using CRIO 9073

As I am aquiring Loadcell Signal and that i want to display on real time chart On windows and also i want to save into file for history view.

 

As When i see that current trend on rt looks nice and smooth. Looks like my project is over.

But when i gets those data over windows using UDP there problem starts. 

If i make RT(Sender) clock rate greater the window(Reciever). I gets data after some time. that delay increases as time goes. looks like data gets fills in queue. Displays after some time.

that make my Windows Trends uneven.

So what Should i do.

 

 

Brijesh Patel
Application Engineer,
Nutron Systems,
Ahmedabad
0 Kudos
Message 1 of 4
(2,886 Views)

Hello Mr. Brijesh,

 

Are you using FIFOs in your application?

 

Akshat Jain

0 Kudos
Message 2 of 4
(2,831 Views)

Ya i have tried to use fifo.

But what happens when my priority 1 loops executes say 1ms clock rate then i am transfering data on to the fifo.

and another loops say lower priority gets that data from fifo and send them to Windows. that what i have done.

Now what happen as Prio 1 loops runs faster then prio2 loop so my fifo feels up very quickly and gives error.

So i dont have any choice other then to keep them at same clock rate. in this case working fine. but then whats the meaning of fifo. ok fine........

 

Now when i send data on to windows say at rate of 1ms. then my windows loop is not capable of running at that clock rate.

now what should i do. If i run my windos loop less then that i am goig to lose data.

please guide Friends.

 

or if you have better way to do this.

 

Brijesh Patel
Application Engineer,
Nutron Systems,
Ahmedabad
0 Kudos
Message 3 of 4
(2,814 Views)
You could also assoicate a timestamp with each loadcell measurement, so even if your connection drops out for a second, your host side should be able to reorginize the data so that its all ordered and recorded properly.  It works well in some situations. 
0 Kudos
Message 4 of 4
(2,807 Views)