Welcome to Synthiam!

Program robots using technologies created from industry experts. EZ-Builder is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.
Get Started

Asked — Edited

Ez Script Control Button Keeps Showing "Stopping"

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:

User-inserted image

I still need to migrate all my scripts into a Script Manager. Don't know if this will help once I do that.

Have you used the Flow control under Scripting to view where "Radar Rutine 1" is being controlled from?
OK, after looking at my Script Flow chart I see that "Radar Rutine 1" is called by the "Kill" script with a command:
ControlCommand("Radar Rutine 1", ScriptStop)
That "Kill" script is called by the Init Script at EZ Builder 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
If this is happening mostly due to Bluetooth not connecting, then use the IsConnected() function after the connection attempt.

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
United Kingdom
Yes EZ-Script has IsConnected()

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.
No, sorry DJ. I don't think it has anything to do with connecting to the EZB board. Quite simply, It seems to happen when either I or a script tries to stop another script that is not running.

Ya know a stiff shot of Jack Daniels will straighten out your head (or maybe there was too much of it last night?).:P
Interesting , I concur with Dave and Rich having the same issue, again not knowing what causes it , other then a long running script, possibly ( anecdotalable ) to do with the VR. Long before I received my EZ board and was playing with the EZ software and NOT trying to connect it was "not stopping"...I just cant recall which Script I was running at the time arrgh:)