Go to Post Picking up tetra's is going to be as easy as picking up a person of the opposite sex. While a select few will master it; others will be bumbling maroons.. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-11-2001, 21:20
Matt Attallah's Avatar
Matt Attallah Matt Attallah is offline
Now at sub 14's in a 5000lb vehicle
AKA: Maher Attallah
FRC #0005 (Robocards)
Team Role: Alumni
 
Join Date: Sep 2001
Rookie Year: 2000
Location: Detroit area, Michigan
Posts: 1,660
Matt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond repute
Send a message via AIM to Matt Attallah Send a message via MSN to Matt Attallah Send a message via Yahoo to Matt Attallah
Is there going to be a PBasic emulator out there??


Is there going to be a emulator or something similar to that so we FIRST programmers can test and play with our stuff?? If there is, I would like to help some. If not, i will be bummed. I would start it, but i don't know C, C++, Perl, etc... so i can't start it. If there is an emulator, even a home-made one that would help so much if we can put some "fake" switches and see if our code works correctly...

Thx,
Matt
__________________
That rug really tied the room together...
  #2   Spotlight this post!  
Unread 06-11-2001, 06:03
Lloyd Burns Lloyd Burns is offline
Registered User
FRC #1246 (Agincourt Robotics)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Toronto
Posts: 292
Lloyd Burns is an unknown quantity at this point
Talking Emulator, alligator !

Instead of going to the trouble / fun of writing / buying an emulator program for PBASIC (at a cost of ???), buy a real Basic Stamp II (you decide the version), and write programs for that. Perhaps you could obtain one of the chip-on-a-bosrd sets that Parallax sells.

I have an old BS2 mounted on a circuit board next to an inline header into which I have plugged an LCD 16x2 screen. I write a snippet to test, and have the results displayed on screen. The PBASIC isn't likely to change much soon, so this catches logic errors for me.

An emulator that would evaluate a complete robot control program in real time could easily overlook some little filigree that becomes glaringly important - debug on the robot.
  #3   Spotlight this post!  
Unread 06-11-2001, 21:50
Matt Attallah's Avatar
Matt Attallah Matt Attallah is offline
Now at sub 14's in a 5000lb vehicle
AKA: Maher Attallah
FRC #0005 (Robocards)
Team Role: Alumni
 
Join Date: Sep 2001
Rookie Year: 2000
Location: Detroit area, Michigan
Posts: 1,660
Matt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond reputeMatt Attallah has a reputation beyond repute
Send a message via AIM to Matt Attallah Send a message via MSN to Matt Attallah Send a message via Yahoo to Matt Attallah
Oh...

Did you buy the BS2 chip or where you able to find it in some circut board? I really, really like the programming, but it isn't too cool when you write a code and can't try it out some where in your own house. (Rember, I am a student at Melvindale and I don't have constant access to the robot and i want to be one of the main programmers next year.) I know i can use sintax check, but that isn't too fun. It is better in the "Trial-And-Error" way for me....

<a href="http://www.robocards.org">Robocards Web site, check it out!!</a>
__________________
That rug really tied the room together...
  #4   Spotlight this post!  
Unread 07-11-2001, 16:12
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,648
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
Go to RobotStore.com or ParallaxInc.com in order to buy the stamp2 chips and a carrier board.

Robot Store Stamp Stuff

ParallaxInc Stamp2 Carrier Boards


The carrier board is great because it can use a 9V battery to power the Stamp2. All you need is a 9 pin cable and PC & you're coding to your heart's delight.



Hope this helps.

Joe J.
  #5   Spotlight this post!  
Unread 07-11-2001, 16:13
Jon Lawton Jon Lawton is offline
Bitter FIRST Cynic
no team
 
Join Date: Oct 2001
Location: San Jose, California
Posts: 209
Jon Lawton is an unknown quantity at this point
Send a message via ICQ to Jon Lawton Send a message via AIM to Jon Lawton
What kind of debugging facilities are available for use with the code on the robot controller? I saw some kind of "debugger" integrated with the Stamp Editor software we are supplied with, but its use was not inuitive to say the least. Any pointers to documentation or software I'm missing?
  #6   Spotlight this post!  
Unread 07-11-2001, 20:56
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Debugging BASIC Stamp Code

Quote:
Originally posted by Jon Lawton
What kind of debugging facilities are available for use with the code on the robot controller? I saw some kind of "debugger" integrated with the Stamp Editor software we are supplied with, but its use was not inuitive to say the least. Any pointers to documentation or software I'm missing?
I think you're refering to the debug terminal of the StampW editor. A debug terminal window opens whenever you download a program (or at least whenever that program contains DEBUG commands.) You can use the DEBUG command in your program to display data as your program runs -- just like using printf to debug a C program.

The new StampW editor version 1.2 (available at Parallax Inc.) has built in context sensitive help which describes the DEBUG command fairly well. It looks like this online help is pretty much the same as is in the BASIC Stamp Manual v2.0 (also available for download from the Parallax site.) Note: the online help only covers Chapter 5: BASIC STAMP COMMAND REFERENCE of the manual. It doesn't include Chapter 4: BASIC STAMP ARCHITECTURE which includes the following topics:
  • Memory Organization
  • Defining Variables
  • Defining Arrays
  • Aliases and Modifiers
  • Constants and Expressions
  • Number Representations
  • Order of Operations
  • Math and Operators
which are AT LEAST as important as the commands (especially since many of the commands are not applicable to our little "CPU in a bubble" [see Joe Johnson's white paper Practical PBASIC Programming])
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me

Last edited by Greg Ross : 07-11-2001 at 21:24.
  #7   Spotlight this post!  
Unread 08-11-2001, 17:48
Adam Krajewski's Avatar
Adam Krajewski Adam Krajewski is offline
Registered User
AKA: Jewski
None #0857 (Superior Roboworks) / Team #0068 (Truck Town Thunder)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Da U.P., Eh
Posts: 83
Adam Krajewski is on a distinguished road
Arrow

There is a Basic Stamp I emulator. But no Basic Stamp 2(SX) emulator, to my knowledge... However, AWC Electronics seems to have a lot of prototyping materials available.

Adam Krajewski
  #8   Spotlight this post!  
Unread 14-12-2001, 13:20
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
Re: Debugging BASIC Stamp Code

Quote:
Originally posted by gwross
The new StampW editor version 1.2 (available at Parallax Inc.) has built in context sensitive help....)
FYI, version 1.3 is now available which fixes a couple of old bugs which had bitten me a number of times.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
Closed Thread


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 On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PBASIC ARCTAN function Greg Ross Programming 14 11-05-2003 12:28
Obscure PBASIC for RoboEmu rbayer Programming 1 28-03-2003 23:57
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
RoboEmu 1.09 (supports PBASIC 2.5) rbayer Programming 22 21-01-2003 17:22
PBASIC Loop Speed? archiver 2001 3 23-06-2002 23:46


All times are GMT -5. The time now is 11:44.

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