Subject:
|
Runtime Error 3
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Fri, 21 Mar 1997 20:27:25 GMT
|
Original-From:
|
Peter Eacmen <eacmen@postoffice.worldnet.{AntiSpam}att.net>
|
Reply-To:
|
EACMEN@POSTOFFICEspamless.WORLDNET.ATT.NET
|
Viewed:
|
2440 times
|
| |
 | |
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);
f+1;
}
}
When I download it the LCD says: Runtime ERR 3. How do I solve this?
Peter Eacmen
--
Peter Eacmen
Boston Latin School
E-Mail:Eacmen@postoffice.worldnet.att.net
Home Page: http://www.geocities.com/Area51/Vault/2766/
|
|
Message has 2 Replies:  | | 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)
|
3 Messages in This Thread:   
  
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|