Asked — Edited

Turning Digital Ports On/Off With Speech?

Hello all When I'm using a Movement Panel the digital ports work (using "set digital" to verify, it turns red when off and green when it's on) but somehow when I try to use speech control to turn the same port on, it doesn't work.

Can someone test this for me, or is this a possible bug?

Thanks all.:P


ARC Pro

Upgrade to ARC Pro

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

United Kingdom
#1  

I just tried set(d19,off) for an LED I have with voice rec and it worked ok. Is that what you were asking? Is it recognising your voice command?

#2  

hmmm ok That's what I was asking but it's not working for me...yes it is recognizing my voice command...let me try again

#3  

Nope didn't work. I also put SayWait("it's working") right after, and SayWait works but the digital port does not turn on...very weird

United Kingdom
#4  

Are you writing the code as

setdigital(D#,On)

Or

set(D#,On)

It's the second one that worked for me.

#5  

Im using the second one.

Here:

set(D1, ON) sleep(250) set(D1, OFF) sleep(250) set(D8, ON) SayWait("I am turned on")

Nothing happens but the "I am turned on" part:D

United Kingdom
#6  

Maybe put a sleep() in between the last digital command and the say"" command to see if that makes a difference.

#7  

Try increasing the sleep commands to 1000 .... they may be happening so fast you wouldn't be able to perceive the on/off transition....

#8  

Nope same thing. I'll try another computer when I get home.