Go to Post I would rather Andy Baker be at champs than Will.i.am. - Grim Tuesday [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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 13-11-2012, 18:44
JM96PWNS's Avatar
JM96PWNS JM96PWNS is offline
Registered User
FRC #0240
 
Join Date: Feb 2012
Rookie Year: 2009
Location: United States
Posts: 15
JM96PWNS has a little shameless behaviour in the past
How long does it take Labview code to run a full cycle?

So my mentor asked me too determine how long the whole labview code runs. He said something from 'the first line to last line' and something about watchdogs. Im not talking about a timer like a wait counter, like a time that determines how long the whole code runs in the robot main. Thanks
Reply With Quote
  #2   Spotlight this post!  
Unread 17-11-2012, 15:55
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How long does it take Labview code to run a full cycle?

Telop gets called whenever a new packet from the driver station is received, which is 50hz. If your telop code takes longer then that, it will cause you to miss packets. In Periodic tasks, you can define loops that run irrespective of new data from the driver station.

Last edited by Joe Ross : 17-11-2012 at 15:58.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-11-2012, 17:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How long does it take Labview code to run a full cycle?

Maybe what you are looking for is to measure how often or how long it takes teleop to run.

To measure how long it takes teleop to run, open up the project folder named support code. In it is the Elapsed Times VI. Drop the VI in your teleop, and open the panel. You can also drop it other locations in the code such as in a periodic loop.

On each call, it look to see what time it is and who is calling. It displays the info from different calls to give you a better idea of how often the teleop is running.

If you want to time a smaller piece of code within one VI, you can place a sequence structure around it and read the millisecond timer before and after, subtract, and either probe or display.

If this isn't what you were looking for, please be more specific in your question.

Greg McKaskle
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


All times are GMT -5. The time now is 21:49.

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