|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#3
|
|||
|
|||
|
Re: Problem with Async VI Agent.vi staying alive
Greg,
I think I see it now. Async VI Agent.vi dies when the top caller of Start Communications.vi goes idle. (When you said it was tied to Robot Main.vi I looked a little deeper). Now, if you look at the small example I attached yesterday, you'll see that I don't call Start Communication.vi; but the way Start Async Agent.vi is written, Start Communication.vi itself gets passed as the top caller - even though it isn't even in memory. So if Async VI Agent.vi is waiting for the top caller to go idle - Start Communication.vi in this case - that's not going to happen. Since it was never loaded it's exec state is going to be "Bad", not "Idle", and Async VI Agent.vi doesn't terminate. Often when we would re-work some of the FRC examples we would remove the Communications VIs since we weren't using them. That is why this problem has occurred before, but never in a full robot project. Having Async VI Agent.vi bound in this way seems to impact the modularity a bit, but now that I'm aware of it I can work around it. Going further though: most of the examples I have run without the Comm. VIs do not throw an error even when re-started many times, (with Async VI Agent continuing to run between re-starts). But if the code includes the WaitOnInterrupt.vi then there is an error - on the 3rd re-start in my example. So I still don't know if there's a problem with WaitOnInterrupt.vi, but I will dig a little deeper. Regards, David |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FTC]: Problem with Code or Problem with Bluetooth? | VeedotJaydot | FIRST Tech Challenge | 3 | 27-01-2009 18:22 |
| IT'S ALIVE!!!!!!!! WE HAVE CONQUERED ALL THE WORLD WITH THESE!!! | sgsdragons | Robot Showcase | 23 | 13-03-2006 14:46 |
| IT'S ALIVE!!!!!!! WE WILL CONQUER THE WORLD WITH THESE!!!!!! (Part 2) THE MOVIE | sgsdragons | Robot Showcase | 20 | 16-02-2006 10:46 |
| Free Agent Mentor. | iceman_21 | General Forum | 2 | 25-09-2002 23:41 |
| Staying with Seattle | Ken Loyd | General Forum | 5 | 09-11-2001 23:52 |