Asked — Edited

Syntax Error When Sleeprandom Function ≫ 30,000Ms

I'm running ARC 2011.12.11.00 and get a syntax error (The parameter must be a number in milliseconds) if I enter a number higher than 30,000 for either the lowMilliSec or highMillisec values.

I saw earlier code snippits posted on the forum that referenced 90,000 ms.

Didn't know if this was a bug in this version or there was something I should be doing differently in my code.


ARC Pro

Upgrade to ARC Pro

With ARC Pro, your robot is not just a machine; it's your creative partner in the journey of technological exploration.

PRO
Synthiam
#1  

The maximum was set to 36000 for some reason. I moved it to 1000000 in the next version.

Make sure you do not have a , in your number. Comas are used to seperate parameters in a function.

#2  

Wow, that was a quick response!

I knew not to use commas in the values and totally understand you having to mention that.

Just tested this, and the maximum value I can put in is 32,000. I get the error at 33,000.

Not a deal breaker for the project I'm working on. I'll just run with the 32,000 ms for now and keep an eye out for the next version to come out.

Thanks for the quick feedback on this.

You've got an awesome product here and great support to match!

PRO
Synthiam
#3  

Thanks dude:) Maybe I meant to write 32000 instead of 36000 - who knows with my brain lately ha