Release 2013.07.10.00

Download and install the latest ARC robot programming software to experience these updates.

Download ARC
Software Information
Changes

- Auto Positioner Controls now have Delay, Steps and servo Speed

- New EZ-Script commands (PullVar & PushVar). More information coming soon:)

- New Control: Video Player. Found under Misc. This control will play videos by the ControlCommand() syntax

- 3D Viewer has adjustable Light Color. Select from Preferences Menu
#10  
Thank you Rich for looking @ this.
Steve S
United Kingdom
#11  
Edit...

It's the

Code:

$response = WaitForSpeech(30,"yes","no")


which is causing the problems. "yes" or "no" both halt the script with

Quote:

Error on line 24: Invalid expression construction: "yes".


@DJ this is the project. It looks like the WaitForSpeech command is the problem.

A quick test script of

Code:

$answer = WaitForSpeech(30,"yes", "no")
print("$answer")

shows the same result.

In fact, any possible phrases I tested show the same error. I will assume it's a problem with the command unless corrected.
#12  
Rich,
You are so helpful to everyone. Thank You.
I am still wondering why it worked with older version?
What changes do I have to to do for the new version?
Steve S
United Kingdom
#13  
I just edited my last post with more info for @DJ. Hopefully it's a simple fix in ARC.

So far, and I haven't spent too long on it but long enough to get a pretty good idea of the problem, I would say it needs an ARC update but we shall wait for DJ to confirm it.
#14  
Thank You Rich,
I think you have your best intentions in helping so many users.
Steve S
Synthiam
#15  
Interesting! Ill take a look tonight and have an update by the morning:)
#16  
Thank you Rich and D J,
Maybe there other updates being worked on and coming soon?
Lookin forward.
Steve S
Synthiam
#17  
Always new updates... One is in the middle of being created right now. Info soon:)
#18  
Thank You D J
I appreciate all of your great work into EZ
builder.
It is amazing, when I demonstrate my robot, I tell people about EZ Robot.
Steve S
#19  
Could this be related? I'm getting Invalid expression construction on i2cRead

Code:


$i2cAddress = 0x42
$cmd = 0x41

Print("Address: $i2cAddress ");

i2cWrite(0, $i2cAddress, $cmd)

$raw = i2cRead(0, AUTO, $i2cAddress , 2)

Start
5: $i2cAddress = 0x42
6: $cmd = 0x41
8: Print("Address: $i2cAddress ");
> Address: 66
10: i2cWrite(0, $i2cAddress, $cmd )
12: $raw = i2cRead(0, AUTO, $i2cAddress , 2)
> Error on line 12: Invalid expression construction: "
United Kingdom
#20  
Put the i2c address variable in quotes, see if that helps. Ie "0x42" and the same for cms.

on phone at the mo but will look again when I turn on the laptop.
United Kingdom
#21  
OK that was quicker than I thought...

the code

Code:

$i2cAddress = 0x42
$cmd = 0x41

Print("Address: $i2cAddress ")

i2cWrite(0, $i2cAddress, $cmd)

$raw = i2cRead(0, AUTO, $i2cAddress , 2)


that works fine or at least didn't throw back any errors.

What I don't understand is you don't have 12 lines of code there for an error to be on line 12. Can you post just the code in the script?
#22  
Same with the quotes on the hex.

Code:


Start
5: $i2cAddress = "0x42"
6: $cmd = "0x41"
8: Print("Address: $i2cAddress ")
> Address: 66
10: i2cWrite(0, $i2cAddress, $cmd )
12: $raw = i2cRead(0, AUTO, $i2cAddress , 2)
> Error on line 12: Invalid expression construction: "
Done (00:00:00.8990514)
#23  
It was comments causing the line numbers... I removed the comments

ez-buider 2013.07.10.00
firmware v16

Code:


Start
1: $i2cAddress = "0x42"
2: $cmd = "0x41"
3: Print("Address: $i2cAddress ")
> Address: 66
4: i2cWrite(0, $i2cAddress, $cmd )
5: $raw = i2cRead(0, AUTO, $i2cAddress , 2)
> Error on line 5: Invalid expression construction: "
Done (00:00:00.9660552)
United Kingdom
#24  
Hold on, I just remembered my laptop isn't up to date. But that shows the code I posted worked on 2013.07.03

Give me a few minutes to update and I'll try it on the latest.
United Kingdom
#25  
Yeah, I2CRead throws an error in 2013.07.10 that wasn't there in 2013.07.03
#26  
Are the previous versions available for download? I could not find a link to other downloads.
United Kingdom
#27  
Unfortunately not since they are designed to be backwards compatible. DJ is working on an update he may be able to fix this in the same update.
#28  
Rich,
Thank you.
That is a good question Skinnerfam95,
How can I get earlier versions of ARC?
New Zealand
#29  
Having problem with Waitforspeech command and noticed this thread when looking for a solution.

Is it still broken?
I throw the error below in WIN 8 even though I have checked that the language and grammar match.

Code:


WaitForSpeechCommand Error: System.InvalidOperationException: The language for the grammar does not match the language of the speech recognizer.
at System.Speech.Recognition.RecognizerBase.ThrowIfSapiErrorCode(SAPIErrorCodes errorCode)
at System.Speech.Recognition.RecognizerBase.LoadSapiGrammarFromCfg(SapiGrammar sapiGrammar, Grammar grammar, Uri baseUri, Boolean enabled, Single weight, Int32 priority)
at System.Speech.Recognition.RecognizerBase.LoadSapiGrammar(Grammar grammar, SapiGrammar sapiGrammar, Boolean enabled, Single weight, Int32 priority)
at System.Speech.Recognition.RecognizerBase.LoadGrammar(Grammar grammar)
at ?.(Int32 , String[] )



Or is this a Win8 issue?