Page 2 of 2

Re: Display Time Block Bug

Posted: 29 Apr 2011, 21:29
by bungeshea
I can't wire a number greater then 32999 in to the Display Time or Display Number block without it stuffing up.
PS I used the Windows Version of NeXT Screen straight from the BricxCC Website, but yes the NeXT Screen BricxCC does have a "Capture AVI" feature.

Re: Display Time Block Bug

Posted: 30 Apr 2011, 01:09
by muntoo
Let me guess: the range is -32768 to 32767?

A 16-bit signed integer has that range.

Re: Display Time Block Bug

Posted: 03 May 2011, 14:17
by hassenplug
mattallen37 wrote:It does that because the value is a 16-bit signed value. Because time can't be negative, the block should use either an unsigned 16-bit variable (up to ~65,000), or an unsigned 32-bit variable (up to >4,000,000,000).
Yes, Matt hit it on the head. A signed int is used in the calculation. It should be reduced from a ms value to seconds, or tenths of seconds, and then displayed.

I really should fix that.

Steve

Re: Display Time Block Bug

Posted: 24 May 2011, 21:25
by bungeshea
Oh now I get it...
I borrowed out the book 'LEGO MINDSTORMS for Dummies' from the library, (even tough it only dealt with the old MINDSTORMS, and I only have an NXT 2.0) and while I was reading it I came across this footnote.
IMAG0259.jpg