View Single Post
  #3   Spotlight this post!  
Unread 30-01-2011, 18:40
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,065
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: LabVIEW PID for angles

Quote:
Originally Posted by Ether View Post

Is there a LabVIEW PID vi that has the built-in smarts
to generate the proper error angle (magnitude and sign)
if given a joystick command (e.g atan2(Xj,-Yj)*(180/pi)) as the setpoint
and the gyro angle as the process variable?
I should clarify things a bit.

I am asking if LabVIEW has a PID designed to handle angular process_variable and setpoint inputs directly, without having to do something like this externally:


Code:
angle_error = joystick_command - gyro_angle;
while(angle_error>180)angle_error-=360;
while(angle_error<-180)angle_error+=360;
setpoint = gyro_angle + angle_error;
... and then feed the fabricated setpoint and the gyro_angle into the PID's setpoint and process_variable inputs, respectively.

Not that this is difficult to do, just wondering if there is a PID with this built-in capability.


Reply With Quote