Quote:
Originally Posted by windtakers
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.