View Single Post
  #2   Spotlight this post!  
Unread 21-01-2013, 14:08
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,100
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Scaling motor speed in LabVIEW

Quote:
Originally Posted by Team3763 Adam View Post
So what I'm asking is when I'm not pressing we'll say button A, the motors aren't spinning. However, when I press A, the motors will slowl speed up until they reach their max RPM possible and will sustain the max speed until I release the button.
Do the LabVIEW equivalent of something like this:

Code:
if (buttonIsNotPressed) {cmd=0; setMotor(cmd)}
else {cmd+=epsilon; if (cmd>1) cmd=1; setMotor(cmd)}
... where "epsilon" is a small constant value that establishes the ramp-up rate.


Reply With Quote