Go to Post "Nuclear" is pronounced "nu kli Er." It is NOT pronounced "nu kU ler." When you use this pronunciation, no matter how smart you may actually be, you sound like an illiterate dolt (are you listening, Mr. Bush?). - dlavery [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

 
 
 
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 15-04-2011, 06:57
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,751
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: Periodic Task (vi) - Thoughts?

Periodic tasks is really just a template showing that code can run in parallel with the telelop VI.

The camera code runs independently and publishes results. This is especially good since cameras are somewhat slow sensors. You wouldn't want the camera to limit when the teleop finished, right?

Similarly, any periodic tasks, especially slow ones should be considered for this approach. If you have a PID loop, especially if the teleop loop rate isn't the ideal loop rate for the PID, move the PID into periodic. Update the setpoints from within teleop, but let the sensor reads, the calculations, and the value updates happen within periodic.

By moving things out, and running control loops at the rate they need, rather than the rate of the joysticks, hopefully you can have your teleop running at 20ms instead of 100.

Doug Norman and I will be giving a presentation in St Louis which covers this in a bit more detail. I'm assuming the slides will be available afterwards.

Greg McKaskle
Reply With Quote
 


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 09:35.

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