Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Timing with the Driver Station (http://www.chiefdelphi.com/forums/showthread.php?t=71689)

Zorkinian 09-01-2009 14:16

Timing with the Driver Station
 
Does anybody know the rate at which packets arrive at the cRIO from the driver station? Is it a constant?

whitetiger0990 09-01-2009 17:47

Re: Timing with the Driver Station
 
I can't find anything specifically, but I would say it is not constant. It's a TCP stream as far as I am aware.

You probably shouldn't depend on DS packet timing, but instead use a different timer which you can control.

mgurgol 09-01-2009 17:51

Re: Timing with the Driver Station
 
Is there a way to calculate delta time in Labview?

Zorkinian 09-01-2009 19:30

Re: Timing with the Driver Station
 
There may be a way, though I haven't tested it. Under Real-Time -> Real-Time Timing there is a tick count (presumably of the processor) that you read from, which you can also set to mSec or uSec, which would probaby get you the resolutino you need.

whitetiger0990 09-01-2009 23:25

Re: Timing with the Driver Station
 
Under Timers, use Tick Count. It's millisecond resolution so it should be enough. Then just save the value through whatever method you want and subtract from the current Tick Count whenever you want the delta.

tdlrali 09-01-2009 23:37

Re: Timing with the Driver Station
 
50Hz (it's in the headers if you look)

mgurgol 10-01-2009 09:42

Re: Timing with the Driver Station
 
Thanks for the info on delta time, I'll create a shift register.


All times are GMT -5. The time now is 18:01.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi