Go to Post Please look around the forum, I believe this clue is already under discussion and has been overly dissected. - ttldomination [more]
Home
Go Back   Chief Delphi > ChiefDelphi.com Website > CD Forum Support
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 23-02-2010, 01:44
viralpatel viralpatel is offline
Registered User
no team
 
Join Date: Feb 2010
Location: India
Posts: 1
viralpatel is an unknown quantity at this point
Time in Millisecond

If i set the sysClkRateSet to 1000 for accuracy of 1ms, minute of the system clock is changing before 60 sec.
Ex. after 15 second my time change from 1 minute to 2 minute.

Please help me as i m new in VxWorks.

Thanks in advance.

Last edited by viralpatel : 23-02-2010 at 01:57.
Reply With Quote
  #2   Spotlight this post!  
Unread 23-02-2010, 02:07
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,726
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: Time in Millisecond

I don't think most of us can help with any form of Delphi. Despite the name, chiefdelphi.com is not a Delphi programming language forum. It exists as a forum to discuss the FIRST Robotics Competition, and is named after a team that was originally sponsored by the Delphi Corporation. While there are a few people on the forum who do know various forms of Delphi, most of the members are much more familiar with C++, LabView, Java, or C, due to these being the primary languages used in the competition.

These links (found in this sticky thread in the Programming subforum) may assist you in finding the answer that you are looking for.
Google's Directory For Delphi
Delphi Starter's Links
CodeComments.com Delphi Section
Delphi & Delphi .NET
Bunch of links to other sites
Where I got them all from

We do invite you to observe the activity here and ask questions on what we are talking about. The people showing off robot designs are usually more than happy to expand on what the pictures show.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk

Reply With Quote
  #3   Spotlight this post!  
Unread 23-02-2010, 03:11
gvarndell's Avatar
gvarndell gvarndell is offline
Software Engineer
AKA: Addi's and Georgie's Dad
FRC #1629 (GaCo)
Team Role: Parent
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Grantsville, Maryland
Posts: 350
gvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond reputegvarndell has a reputation beyond repute
Re: Time in Millisecond

Quote:
Originally Posted by viralpatel View Post
If i set the sysClkRateSet to 1000 for accuracy of 1ms, minute of the system clock is changing before 60 sec.
Ex. after 15 second my time change from 1 minute to 2 minute.
When you use sysClkRateSet, you need to call sysClkRateGet to verify the rate you asked for was actually achieved.
And even if sysClkRateGet returns the same number you passed to sysClkRateSet, it doesn't necessarily mean the underlying system tick interrupt is actually occurring every 1ms.
In this case, I'm going to assume you really did manage to get system tick interrupts going at 1000Hz.
Here's just 2 reasons why you don't want to do this.

1) there is an enormous processing overhead associated with interrupts. a system that must handle a timer interrupt every 1ms may be able to do little else.
2) when you change the system tick rate, there is no mechanism in vxWorks to notify the application of the change. if some code (not your code) called sysClkRateGet before the change and stored the returned value for subsequent use (assuming it would never change), that code will now have an invalid notion of system tick frequency and elapsed time.

Finally, it's difficult for me to reconcile the apparent dichotomy of someone who doesn't know vxWorks very well feeling the need to drive a realtime system at 1000Hz..

Edit: Sorry, I should have pointed the OP to the fact that his question belongs on a FRC programming forum.
__________________
Robots never, ever, ever, ever break -- The Robot Repairman (Backyardigans)

Last edited by gvarndell : 23-02-2010 at 03:19.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
time? sciguy125 Chit-Chat 18 22-08-2005 09:40
It's that time of year again!! (No, not The Championship event) Tax Time!! Elgin Clock Chit-Chat 4 10-04-2005 10:59
Is there a built in tick/millisecond counter? Aalfabob Programming 11 03-12-2004 00:52
time? roeperJTD06 OCCRA 1 21-11-2003 18:03
time archiver 2000 3 23-06-2002 22:58


All times are GMT -5. The time now is 03:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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