Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Flow Control Time out

Hitec robotics including ROBONOVA humanoid, HSR-8498HB servos, MR C-3024 Controllers and RoboBasic
1 postPage 1 of 1
1 postPage 1 of 1

Flow Control Time out

Post by NewBreedWarrior » Wed Sep 20, 2006 7:06 am

Post by NewBreedWarrior
Wed Sep 20, 2006 7:06 am

I pulled my Parallax, Inc Basic stamp Programming Manual out... was lookingaround I havent tried any of this who knows maybe it will work maybe not....qoute.... Flow-control time out solves one problem but can creat another__if the reciver isn't conected, Serout may never never get permission to send. The prgram will be stuck in Serout indefinitely. To prevent this, Serout allows you to specify how long it should wait for permission, from 0 to 65535 ms. If the specified time passes without permission to send, Serout aborts, allowing the program to continue at tlabel. Here's the previous example (just the Sender code) with a 2.5-second timeout:

Serout1\0, 16468,2500, noFlow["HELLO!"]
'...instructions executed after a successful Serout
stop

noFlow:
'if Serout times out waiting for the Flow-control permission,
'it jumps to this label in the program.



Ok now who knows..may may not be usefull..atleast it's something....my RN-1 is gimped right now from a blown #3 servo.....
I pulled my Parallax, Inc Basic stamp Programming Manual out... was lookingaround I havent tried any of this who knows maybe it will work maybe not....qoute.... Flow-control time out solves one problem but can creat another__if the reciver isn't conected, Serout may never never get permission to send. The prgram will be stuck in Serout indefinitely. To prevent this, Serout allows you to specify how long it should wait for permission, from 0 to 65535 ms. If the specified time passes without permission to send, Serout aborts, allowing the program to continue at tlabel. Here's the previous example (just the Sender code) with a 2.5-second timeout:

Serout1\0, 16468,2500, noFlow["HELLO!"]
'...instructions executed after a successful Serout
stop

noFlow:
'if Serout times out waiting for the Flow-control permission,
'it jumps to this label in the program.



Ok now who knows..may may not be usefull..atleast it's something....my RN-1 is gimped right now from a blown #3 servo.....
In the fell clutch of circumstance
I have not winced nor cried aloud.
Under the bludgeonings of chance
My head is bloody, but unbowed.
NewBreedWarrior
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 53
Joined: Fri Jul 28, 2006 1:00 am
Location: United States, Kentucky

1 postPage 1 of 1
1 postPage 1 of 1