Subject:
|
Re: Runtime Error 3
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Sat, 22 Mar 1997 21:50:49 GMT
|
Original-From:
|
Adam <ADAM@RING.ZENOXstopspammers.COM>
|
Viewed:
|
2334 times
|
| |
 | |
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 Engineer http://www.zenox.com/~adam
Zenox Communications Corp. vmail: 416-241-7000 (x224)
----------------------------------------------------------
On Fri, 21 Mar 1997, Peter Eacmen wrote:
> 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 is in Reply To:
 | | 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)
|
3 Messages in This Thread:   
  
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|