Not familiar with matlab programming 'language' but this from your listing looks wrong:Code: [Select]potmcmt=a.analogRead(0)/1024*5No trailing ;And not sure if integer math will work as truncation/rounding, will kill that calc, no?Or is matlab converting the components to floating variables. I can't even see wherethe potmcmt variable is declared?Lefty
// code tags, its much much easier to read and doesn't mangle it
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16