Go to Post Truly listening to the wealth of advice around you is so important. Don't work in a vacuum all season long. - OZ_341 [more]
Home
Go Back   Chief Delphi > Old Forum Archives > 2001
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-06-2002, 03:37
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Run command... frightening

Posted by Gui Cavalcanti at 04/14/2001 11:15 AM EST


Student on team #422, Mech Tech, from Governor's School (GSGIS) and Verizon.



All you programmers remember that old series of posts about the PBasic RUN command.. Now, I tried this is a series of three programs to see if it would work, and nothing worked at all. The compiler would run through my program, then hit the run command and would stop on the word after it. Here's an excerpt from my code:
(By the way, the STAMP FILES thing is the initialization, I couldn't find the exact wording at the time of this message)

------------InitProg (Initialization and SERIN line---

{STAMP FILES InitProg, MainProg, SerOProg}

(Declare variables, constants, aliases)

(Initialize variables)

(Serial In line)

RUN MainProg

---------------------------MainProg (Main Program) ---

{STAMP FILES InitProg, MainProg, SerOProg}

(Declare variables, aliases, constants)

(Main programming without gosubs)

RUN SerOProg

-----------------------------SerOProg (Serial Out) ----

{STAMP FILES InitProg, MainProg, SerOProg

(Declare variables, constants, aliases)

(SEROUT line)

RUN InitProg

--

Now, I know one problem here is that you are going back to initialization and your old variables would be rewritten automatically, so your initialization would have to be a separate program from the serial in line.. but other than that, this doesn't work at all. Could someone help me out here?

-Gui
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
  #2   Spotlight this post!  
Unread 24-06-2002, 03:37
archiver archiver is offline
Forum Archival System
#0047 (ChiefDelphi)
 
Join Date: May 2001
Location: Pontiac, MI
Posts: 21,214
archiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond reputearchiver has a reputation beyond repute
Re: Run command... frightening

Posted by Gregory Ross at 04/14/2001 11:18 PM EST


Engineer on team #330, Beach Bots, from Hope Chapel Academy and NASA/JPL.


In Reply to: Run command... frightening
Posted by Gui Cavalcanti on 04/14/2001 11:15 AM EST:



When you say "The compiler would run through my program", do you mean when the program is being tokenized, or after the program has been tokenized and downloaded, and when the program is actually running?

If the former, what is the error message? If the latter, how do you know it is stopping on the statement after the run?

I'm guessing you mean the former, and the problem is that the symbol MainProg is not defined. It would be nice if the tokenizer created symbols that refer to your project programs, but it doesn't.

You need to either define

InitProg con 0
MainProg con 1
SerOProg con 2

or use

run 1
.
.
.
run 2
.
.
.
run 0

: All you programmers remember that old series of posts about the PBasic RUN command.. Now, I tried this is a series of three programs to see if it would work, and nothing worked at all. The compiler would run through my program, then hit the run command and would stop on the word after it. Here's an excerpt from my code:


: (By the way, the STAMP FILES thing is the initialization, I couldn't find the exact wording at the time of this message)

: ------------InitProg (Initialization and SERIN line---

: {STAMP FILES InitProg, MainProg, SerOProg}

: (Declare variables, constants, aliases)

: (Initialize variables)

: (Serial In line)

: RUN MainProg

: ---------------------------MainProg (Main Program) ---

: {STAMP FILES InitProg, MainProg, SerOProg}

: (Declare variables, aliases, constants)

: (Main programming without gosubs)

: RUN SerOProg

: -----------------------------SerOProg (Serial Out) ----

: {STAMP FILES InitProg, MainProg, SerOProg

: (Declare variables, constants, aliases)

: (SEROUT line)

: RUN InitProg

: --

: Now, I know one problem here is that you are going back to initialization and your old variables would be rewritten automatically, so your initialization would have to be a separate program from the serial in line.. but other than that, this doesn't work at all. Could someone help me out here?

: -Gui


__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Basic Run Error BBFIRSTCHICK Programming 10 02-04-2003 22:43
How is your team run? D.J. Fluck General Forum 38 29-12-2002 08:23
Take the boxes and run! Rich Wong General Forum 16 21-12-2002 00:07
SCUM ALERT! Read if you run ANY web site, especial ones that use e-commerence!! Joe Matt Chit-Chat 2 03-11-2002 13:10
Basic Run Error Ulibrium Programming 12 21-02-2002 01:02


All times are GMT -5. The time now is 01:45.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi