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

Canada
Asked — Edited

Ez-Builder And Scripting Time Management

As robots become more elaborate mechanically the software must keep up. As the monitoring of sensors, particularly, increases, I would like to know what the experianced robot builders opinions are of how to keep the software from " hanging up, bogging down etc" What is the most time intensive EZ-Builder commands and scripts? Also what time limitation does the EZ-Board have, using Bluetooth(slow), I2C, Analog input and digital. Even Wifi! I know the video processing takes a lot of time leaving less time for other monitoring etc. Percentages of EZ Builder commands and scripts processing time , to the best of your opinions would be helpful . I understand of course that a faster PC that has been stripped down of any extra "tasks" keeps processing time fast! I know Rich and others have dedicated PCs stripped down for that reason. I hope that sounds clear:)

to If then Else or not to If then Else ..that is the question:
Whether 'tis Nobler in the mind to suffer
The Slings and Arrows of outrageous Fortune Hamlet(bot) :)

#1  
I have a dedicated strip down dual core PC laptop. Its running real fast. I have 3 ezb boards running through EZ builder and am very impressed at how smooth the program runs. The only problem I ever had with it bogging down was once I had about ten ADC monitors running. Everything grown to a slow crawl. However as soon as a positive them the program picked right up. I was running a camera for a while and really saw know slow down issues. I'm running windows 7.
#2  
Thanks Dave (long time no hear,just taking a breather:) i hope) I am responding also, to keep this thread "in view" for a bit longer to harvest more replys!:) The ADC monitors slowing things down is just the thing I am looking for.
United Kingdom
#3  
I'm guessing I can help on this but my head is full of goo at the moment and I'm all messed up thanks to a few nasty germs trying to bring me down... So basically, this should remind me to relook it over when I am "with it".

I will touch on the benchmark control quickly though. Start a new project, connect to the EZ-B with no controls, add control Benchmark and run it to see your communications "speeds". This will help with your working out the timings of scripts. For instance, if it can read the ADC port 40 times a second then you can read all 8 5 times each every second. So if you have sensors being checked you need 1/5 seconds of delay between reading, or 200ms. That's without anything else happening too.

As a rule of thumb, where possible and acceptable I use a sleep of 500ms or sometimes more than 1000. My battery monitor for instance checks every 2000 ms because it's not going to be a problem, it leaves it possible to check the IR sensors every 100ms without saturating the communications.

Hopefully that made sense, or enough sense to understand. Like I said, I will revisit this one when my head is clearer:)
#4  
Thanks SO much Rich! Your benchmark suggestion is perfect. It makes total sense and get better:) "but my head is full of goo at the moment and I'm all messed up thanks to a few nasty germs trying to bring me down... ":)..for a moment a thought you were talking about "another thread" ;)
#5  
@irobot58 I've been very buys with "real life". Summer has many demands when good weather only lasts a few months (as you should know living up there in there in Gods country). When I have been able to work on the B9 it's been doing wrench turning. I have him taken apart right now doing little upgrades and enhancements in prep of moving him out of the shop and to a more viewable location in the house.

I've been lurking almost every dayhere on the forum and storing little tricks, tips and needed info for when I start working on EZB control again. I need to get deep into my EZ Builder project and clean it all up and tweak it with all the recent EZ Builder enhancements. I'm really excited and will hopefully will get back to that stage soon. This is one reason this thread you started sparked my interest. I've had small problems with timing between the 3 EZB boards and motor movements. For example when I pull the power pack on B9's side he should appear to go completely dead and slump over. "Sometimes" he will wait up to 10 seconds before slumping over. I think I narrowed this delay down to the way the commands are issued in my "Kill" script and the the way I have the Sleep commands set up (kinda like Rich mentions above). Length and placements of this command seems to be key.

Good luck and have fun!
Dave Schulpius
#6  
@Dave thanks for the update! I believe Richs idea of adding commands and observing the Benchmark is pure wizard! Although it does take time but when the "Eureka" moment arrives it makes all worth while:)....and the research continues...like looking for the perfect chicken wing meal or beer!
#8  
I've always wondered why am I going to a port and reading the ADC value and using up time, when the pc already has the value, because it displays it if I bring in an analog meter, graph or digital readout. Can't I get the ADC of a port from the pc?
United Kingdom
#9  
I don't think the ADC controls store the value in any variable. Perhaps DJ can add this in a future update?

You can use the scripts to read and the variable watcher to display the ADC values, this saves the bandwidth of the bluetooth as it doesn't read the same thing twice.
#10  
My main workstation PC is an I7 6 cores processor overclock to 4.0 ghz, water cool, 120 gb SSD, 12 gigs of DD3 ram, lol about 5 tb of HDD ( 1 ssd, and 4 normal HDD), 4 monitor, water cool, 2 nvidia 660TI, blah, blah , blah. I am not a strong Gamer. I mostly use for work related stuffs and it have no problem running EZ-B, video processing does not slow it down one bit.
I'm afraid I have been unlucky with the ADC monitor. It doesn't slow down my PC, it just freeze it completely. I haven't use it since 4 releases ago of EZ-B. I am not sure if it have been updated or fix. I will try it again and share my result.

My cousin just gave me an old PC for my robot projects, So I will use it as a dedicated robot server ( MIMIC Jarvis), control The Z waves ( lights, door locks etc), Run EZ-b round the clock. It is only a dual core with 1 gig of ram but should be enough to run EZ-B, since that will be it's only purpose. I will develop on my main PC, and simply upload the file to my robot server PC. *blush* *blush*
#11  
@PJ.... sweeeeeeet workstation PC. You are a very serious Big Software User...Rich had a good idea using the benchmark tool then adding various command boxes with set parameters and determine the processing times ...If you had a logic analyzer and time you might be able to see where its getting "choked".........gotta love generous cousins!
In general all things being equel , how would you rate processiing time from fastest to slowest of
Digital, ADC, Serial, I2C through the EZ-B 's blue tooth and then WIFi