To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / 1744
  Runtime Error 3
 
I'm kind of new to IC and I don't know how to deal with all the errors yet. I wrote a simple code to record sensor inputs every 15 minutes. This is the code I wrote: void main() { while(1) { int x[]; int s=analog(0); int f=0; s=x[f]; sleep(900.0); (...) (28 years ago, 21-Mar-97, to lugnet.robotics.handyboard)
 
  Re: Runtime Error 3
 
Hi Peter, Well let me give it a shot, without actually downloading it to the Handy Board. It should go something like this: /* GLOBALS */ int num_sensors = /*put the number of analog sensor inputs you want*/ void main() { int sensors[num_sensors]; (...) (28 years ago, 22-Mar-97, to lugnet.robotics.handyboard)
 
  Re: Runtime Error 3
 
Peter, Are you familiar with C in general? I think if you put a static value in the [] of the array declaration and fix the increment of f (f+1) to f++ or f=f+1, then you'll be OK. Try it. ---...--- Adam B. Cox check out my web page Computer (...) (28 years ago, 22-Mar-97, to lugnet.robotics.handyboard)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR