Go to Post Technology is everywhere, yet the human factor is what makes an event special. - synth3tk [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 Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #10   Spotlight this post!  
Unread 06-03-2012, 01:27
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: CPU usage 100% & twitchy robot?

Quote:
Originally Posted by Alan Anderson View Post
I don't think your bridge manipulator motor is going to work the way you want it to. You're setting it in two places, and the second one (on the right) is going to win.
Actually, we can't know which one will win: They are not dependent on each other, since the motor ref branches before the set vis. In the purist analysis, either one can fire first and their firing order could be "randomly" re-chosen each iteration. In reality, the optimizer might clump those two commands in an arbitrary order determined at compile time. The "winning" set will still be "randomly" chosen as the fpga timing interacts with the CPU timing, though one will be heavily favored over the other.

Regardless, the result will be a twitchy bridge manipulator. It will toggle between the two set commands unpredictably.


My prediction is that you actually have two problems: The twitchiness is caused by the two set commands racing eachother, and your CPU is being pegged to 100% by a separate error (likely a while loop with no wait in it).
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 11:13.

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