![]() |
Labview-using timers to control motors
We are using Labview and are trying to do an autonomous program using timers with four wheel tank drive but if we use timers there is a time delay between the start of each side.
|
Re: Labview-using timers to control motors
Without knowing what you're doing, it's hard to tell what is going on. Can you post a picture of your code? That would be a big help in getting you some useful advice.
Just a wild guess -- are you connecting your motor drive functions in series? That'll require each one to finish before the next one can start. Instead, connect them in parallel after the timer function so they all run at the same time. I don't know FTC well enough to have any idea whether what I'm saying makes sense for what you need. |
Re: Labview-using timers to control motors
Like Alan said, more info would be appreciated.
First thing to keep in mind: Autonomous is in a loop. If you want the code to pause at the end of each iteration (although I don't know why you would want to do that) just place the wait (Programming >> Timer) vi and set the time to wait in ms. If you want to case the code to wait for a time in between tasks, I would suggest using a flat sequence structure. Do one task (i.e. Set Motor Speed) and the put a wait vi in that frame and tell it to wait as long as you wish to continue performing that task. Note: do not use loops, it can push your compile time upward of a half-hour due to Labview having a problem with nested loops. Hope this helps! |
Re: Labview-using timers to control motors
If you have a VI that you can send to me that shows nested loops causing a 30 minute or even a 30 second compile of a single VI, please send it. In 20 years of using and writing LV, I've never seen this.
Greg McKaskle |
Re: Labview-using timers to control motors
Quote:
|
Re: Labview-using timers to control motors
Quote:
|
Re: Labview-using timers to control motors
I looked on snopes and it agrees, nested loops in LV do not contribute to long compile times --totally a legend ;) . Glad to have this one behind us.
Greg McKaskle |
Re: Labview-using timers to control motors
Alan and Greg,
The poster appears to be talking from an FTC standpoint. |
Re: Labview-using timers to control motors
FTC usage was definitely not something I'd picked up on, yet you would still need lots and lots of nesting to impact the compile time. I am happy to look into VIs that show otherwise.
Greg McKaskle |
| All times are GMT -5. The time now is 09:36. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi