Hi all,
I have several EZ Scripts written that are triggered and stopped by other scripts. Every once and a while when one is stopped it will show "stopping" on the Start/Stop button. Not sure but I think it only happens on scripts where loops are running. Once the "Stopping" message appears on the button I cant operate it. Any ideas? Here's a pic:
I still need to migrate all my scripts into a Script Manager. Don't know if this will help once I do that.
Asked
— Edited
It's not a big issue to my (yet) but it does make me restart ARC sometimes so I can get control of that script again.
Imagine driving toward an intersection and the light turns red. When you press the brake, you don't stop to a halt - instead you begin stopping... Eventually you stop.
It happens with ControlCommand and manually clicking stop in my experiences. I guess it's when it's in the middle of doing something like a loop or moving a servo or something but honestly I have no idea.
In my project this will happen every time to the "Radar Rutine 1" control after the Init Script runs and it cant connect to my 3 EZB's because they are off or out of Bluetooth range. Not sure why that "Radar Rutine 1" control is effected at start up as the only thing that calls it is a script in the Speech Recognition control (I think).
It does happen to other controls sometimes also and other then the example given above seems random to me. Cant find the common event that causes it.
Here's my project (sorry, it's a little messy. I need to clean it up a bit and start using the Script Manager):
B9RobotControl.EZB
Thanks for offering to look into this,
Dave Schulpius
ControlCommand("Radar Rutine 1", ScriptStop)
That "Kill" script is called by the Init Script at ARC start up and stays running as a loop looking and waiting for a switch to close.
Could it be that if a control is not running and a stop command is sent to that control it will keep showing "Stopping" on the Start/Stop button. would it also hold that button hostage trying to stop a script that is already stopped?
Just thinking it through here.
Dave Schulpius
Now, just to make sure... Does your version have an IsConnected() EZ-Script command? To be honest, my brain is quite a mess right now and i'm not sure how recent that command is. It might just be in my beta version lol
I know all about brains being in a mess, that's why I've never pinpointed this issue with my projects - working on so many projects and scripts has it's downsides... I don't even know which projects of mine have had this error.
Ya know a stiff shot of Jack Daniels will straighten out your head (or maybe there was too much of it last night?).