|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Labview Motor Ramp up/down voltage
How do you ramp the voltage of a motor in labview.
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
Re: Labview Motor Ramp up/down voltage
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;
"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. Last edited by Ether : 29-01-2012 at 20:57. Reason: duh. coding error |
|
#4
|
||||||
|
||||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|