PDA

View Full Version : ADCIN and LOOKUP ...



Acetronics2
- 15th June 2007, 16:18
Hi, All

I was quietly ( LOL ) debugging Malc's Train controller and ... fell upon a little PbP BUG ... Yes,yes I did verify many times !!!

Which is this ( small ) BUG ???

I've used LOOKUP tables to correct a pot curve ( Log to Lin ... I must be crazy !!! )

So, I used a 8 Bits ADCIN ... and a Lookup table !!!

Calculated and Placed my ... 256 Values ( 0 -255 ...) into my lookup table ( I Know, ... manual whispers 255 !!! ) but no warning or errors when 256 values entered ... only when 257 !!!

What happens ??? Program just crashes ...

Solution ... use " ADC_RESULT MIN 254" before LOOKUP !!!

By the Time, I Also discovered ADCIN does not accept VAR Aliases ... only CON ones. Always had used ADCIN 0,1 or ...

Hope it will help someone not to lose too much hair...

Alain

PS: Malc !!! , Good news !!! Works more than Fine ...

mister_e
- 15th June 2007, 16:25
In no place, ADCIN state to accept Var aliases anyways? it's the channel number, but will this accept BYTE variable? it has to..

as for loosing hair... i doubt it could happen to me :D

http://www.mister-e.org/Pics/DjKiwi

yeah.. it's really me at the nightclub... few years ago... AKA Dj Kiwi :D

Acetronics2
- 15th June 2007, 18:06
Seems you put some fingers on mains wires ....

or were you imitating stevie Wonder for a karaoKe-party ???

Alain

mister_e
- 15th June 2007, 22:48
mmm... well we don't see what's/who's under my belly-button :D

Stevie Wonder...mmm could be... Francis Lalanne? ROFL nah nobody know him here :p

Acetronics2
- 16th June 2007, 10:24
mmm... well we don't see what's/who's under my belly-button :D



Hi, Steve

Do you know why, in Africa, some women have Incisor teeth taken away ???

More gently, why , in French, spaced incisor teeth ( like Laurent Voulzy ) are called " les dents du bonheur " ???

...

You Just found why !!!

LOL ...

Francis Lalanne ... What's that ??? never existed ANY Francis Lalanne ...
may be a deaf singer, I presume ...

Alain

mister_e
- 16th June 2007, 21:02
Nah, Francis Lalanne is a kitsch and really bad French signer (http://www.francislalanne.com/) ... it really sounds like a joke... worst than Michel Louvain here :D