The SX/B program I'm working on is generating a number larger than 255.· How do I handle this word-sized variable?· I've tried an array but couldn't make it work.
Jon, I'm trying read RCTime, so I don't what the values are going to be, and I can't read the result into two variables.· Would I be better off just using a byte variable, and changing the resolution to 4 or 5 or whatever to keep the value·less 255?
Not necessary, Ken -- one simply needs to adjust the Resolution parameter. This was added specifically to address this issue. If one needs additional resolution the SX/B output of RCTIME could be modified to handle multi-byte vars (you have to adjust the code and delay timers).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔ Jon Williams Applications Engineer, Parallax
Dallas, TX· USA
Post Edited (Jon Williams) : 5/8/2005 9:20:28 PM GMT
Sid,
If you need more acuracy, you can do RCTIME with a resolution of 4 or 5. Then if the value returned is low, then do RCTIME again without the resolution value (defaults to 1).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
Comments
countLo··· VAR··· Byte
countHi··· VAR··· Byte
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Sid
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Post Edited (Jon Williams) : 5/8/2005 9:20:28 PM GMT
If you need more acuracy, you can do RCTIME with a resolution of 4 or 5. Then if the value returned is low, then do RCTIME again without the resolution value (defaults to 1).
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video Display Module" Available Now.
www.sxvm.com
"I thought I was wrong once...But I was mistaken [noparse];)[/noparse]"
·