Can't get StampPlot Lite to work on BS2. What do I do to get it working?
I have a BS2 kit with Homework board, and "What's a Microcontroller" Manual.
My buzzer is on the test board and·connected·between BS2-pin 11 and VSS.
I downloaded StampPlot Lite v1.7, (standard user?), and I can't get it to work.· I used the following program from Parallax product info, software·download page:
____________________________________________________________________________________________
' {$STAMP BS2}
' {$PBASIC 2.5}
' Sample BASIC Stamp code to control a buzzer's frequency
' connected to P11.
Pause 1000
DEBUG CR,"!POBJ Clear",CR······················ 'Clear all objects
DEBUG "!PPER 80,100",CR························ 'Set plot percentage
DEBUG "!POBJ oHSlider.FREQ=83,76,,,0,5000,0",CR 'Create a slider object
··············································· 'called FREQ for 0-5000
FreqVAR VAR WORD······························· 'Hold returning value
Main:
· PAUSE 100
· DEBUG "!READ (FREQ)",CR ·················· 'Read StampPlot FREQ slider
· SERIN 16,84,1000,Timeout,[noparse][[/noparse]DEC FreqVar]···· 'Accept returning data
Timeout:
· FREQOUT 11,500,FreqVAR ················· 'Play frequency for 1/2 second
Goto Main
StampPlot window is active,(connect is checked, and Plot Data is checked),debug window is closed· I get: Can't open port; in use and Error that states: NO BASIC STAMP FOUND.· But stamp is activated.
Also, what is the difference between StampPlot Lite, and StampPlot Pro?· Are they both free downloads?
Post Edited (po2le) : 1/7/2008 1:09:48 AM GMT
My buzzer is on the test board and·connected·between BS2-pin 11 and VSS.
I downloaded StampPlot Lite v1.7, (standard user?), and I can't get it to work.· I used the following program from Parallax product info, software·download page:
____________________________________________________________________________________________
' {$STAMP BS2}
' {$PBASIC 2.5}
' Sample BASIC Stamp code to control a buzzer's frequency
' connected to P11.
Pause 1000
DEBUG CR,"!POBJ Clear",CR······················ 'Clear all objects
DEBUG "!PPER 80,100",CR························ 'Set plot percentage
DEBUG "!POBJ oHSlider.FREQ=83,76,,,0,5000,0",CR 'Create a slider object
··············································· 'called FREQ for 0-5000
FreqVAR VAR WORD······························· 'Hold returning value
Main:
· PAUSE 100
· DEBUG "!READ (FREQ)",CR ·················· 'Read StampPlot FREQ slider
· SERIN 16,84,1000,Timeout,[noparse][[/noparse]DEC FreqVar]···· 'Accept returning data
Timeout:
· FREQOUT 11,500,FreqVAR ················· 'Play frequency for 1/2 second
Goto Main
StampPlot window is active,(connect is checked, and Plot Data is checked),debug window is closed· I get: Can't open port; in use and Error that states: NO BASIC STAMP FOUND.· But stamp is activated.
Also, what is the difference between StampPlot Lite, and StampPlot Pro?· Are they both free downloads?
Post Edited (po2le) : 1/7/2008 1:09:48 AM GMT
Comments
Take a look at the help files, has better examples in there I think (been a while).
Lite is only one analog value of plotting and 8 digital traces, and pretty much what you see is what you get.
Pro allows multiple channels, and you can create a GUI for your controller.
Visit www.selmaware.com for more info on both.
The buzzer doesn't make a good example for Lite. Simple code to start plotting:
X Var Byte
For x = 0 to 100
DEBUG DEC X, CR
Pause 100
NEXT
Only one application can access a COM port at a time. You have to disconnect on StampPlot before you download new programs with the BASIC Stamp editor.
-Martin
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
SelmaWare Solutions - StampPlot GUI for controllers, XBee and Propeller Application Boards
Southern Illinois University Carbondale, Electronic Systems Technologies
American Technical Educator's Assoc. Conference·- April, Biloxi, MS. -- PROPELLER WORKSHOP!