Go to Post Beware of the following: boredom intelligence = ??? <- could be anything... - JBotAlan [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 12-02-2012, 20:11
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Getting Joysticks and supplying button/axis outputs between while loops

Hello -

I've taken a hard look at all of our code to see if there are ways in which I can slim it down.

I've seen that within Pereodic Tasks.vi, I'm calling the same Joystick multiple times. I was wondering if I am able to get all of my joysticks within a While loop running every 20ms and supply the output of buttons/axis to other While loops running at a faster pace than 20ms. Will this cause any problems?

Thanks.
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2012, 21:06
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: Getting Joysticks and supplying button/axis outputs between while loops

To determine what is using CPU resources, I'd suggest opening the Tools>>Profiler>>Memory and Performance. You should ideally start the profiler, then run the robot code for awhile, and then abort it, then stop the profiler and see where it says the CPU is being used.

You can export or screenshot the profile results if you need help with the interpretation.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2012, 21:31
DominickC DominickC is offline
Registered User
FRC #0023 (PNTA)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 1620
Location: Boston
Posts: 435
DominickC is an unknown quantity at this point
Re: Getting Joysticks and supplying button/axis outputs between while loops

I'll do that first thing tomorrow. Thanks.
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 22:10.

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