Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Labview Motor Ramp up/down voltage (http://www.chiefdelphi.com/forums/showthread.php?t=101350)

windtakers 28-01-2012 10:16

Labview Motor Ramp up/down voltage
 
How do you ramp the voltage of a motor in labview.

dubiousSwain 29-01-2012 18:17

Re: Labview Motor Ramp up/down voltage
 
i would recommend having your drive team do it manually in case you need to accelerate quickly, but to do it with code i would recommend a PID loop that runs once when the joystick has input then resets when the joystick goes back to zero.

Ether 29-01-2012 19:17

Re: Labview Motor Ramp up/down voltage
 
Quote:

Originally Posted by windtakers (Post 1115163)
How do you ramp the voltage of a motor in labview.

write the LabVIEW equivalent of this:

Code:

if (new>prev) {
  if (new<=prev+max) {output=new;} else {output=prev+max;}
  }
else {
  if (new>=prev-max) {output=new;} else {output=prev-max;}
  }
prev=output;

"new" is the current cycle's output you want to filter

"output" is the filtered value to output

"prev" is the value you output in the previous cycle

"max" is the max change in output you want to allow per cycle.


Joe Ross 29-01-2012 20:39

Re: Labview Motor Ramp up/down voltage
 
You could also take advantage the ramp built into the jaguars, either through CAN, or through the (new) preset ramp rate. See Q7 - Q10 in the Jaguar FAQ.


All times are GMT -5. The time now is 11:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi