|
|
|
![]() |
|
|||||||
|
||||||||
A modified version of Bilbo's bang-bang .vi for labview
A modified version of Bilbo's bang-bang .vi for labview
Bang Bang (SubVI).vi
24-04-2012 12:51
tr6scottTom,
Care to explain what the modification is and if it is an improvement. I have looked at the subvi, and if your vi is to be placed in the same timed structure, I don't see a major difference. I see you are going backwards, from the original .vi but not sure what else changed, or improved.
I'm not that strong in labview, so be easy on me if I am missing something obvious.
Scott.
24-04-2012 13:25
billbo911|
Tom,
Care to explain what the modification is and if it is an improvement. I have looked at the subvi, and if your vi is to be placed in the same timed structure, I don't see a major difference. I see you are going backwards, from the original .vi but not sure what else changed, or improved. I'm not that strong in labview, so be easy on me if I am missing something obvious. Scott. |
24-04-2012 18:16
tr6scottWe actually used the built in labview PID control. We only used the PI terms, so it was a PI control. We had 3 closed loop shot selections, 1500 RPM for the fender, 2500 for front of key and 2800 for rear of key. While tuning we couldn't get one set of gains to work at all 3 set point rpms, so we had to employ a "gain shifter" based on the RPM requested. We also limited the output range between motor values that were expected. This also gave it some "Feed forward" as the PID was limited to a range that was expected. We tried a couple of other methods, but this method gave us the best response. We did not try the bang-bang method, but looking at trying it, as it would eliminate some different pid code between autonomous and teleop.
We are planning on doing some off season events, so looking to try this method and see how it performs.
I always thought the pid was overkill, but at the 1500 rpm we saw deviations in the +_50 rpm range. From what I read, it sounded like the bang-bang gave tighter control than what we saw with pid.
24-04-2012 20:36
Chris Hibner
So Tom, did you get it working well, I take it?
24-04-2012 20:59
billbo911