View Full Version : Labview Motor Ramp up/down voltage
windtakers
28-01-2012, 10:16
How do you ramp the voltage of a motor in labview.
dubiousSwain
29-01-2012, 18:17
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.
How do you ramp the voltage of a motor in labview.
write the LabVIEW equivalent of this:
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
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.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.