Shop OBEX P1 Docs P2 Docs Learn Events
Experiments with renewable energy BS2px — Parallax Forums

Experiments with renewable energy BS2px

ToborgToborg Posts: 22
edited 2010-01-22 00:44 in BASIC Stamp
Is there still support available for The "Experiments with renewable energy" project files?
I am haviing trouble getting the data to plot from my bs2px to stamplot pro.
Here is my source code:

' Experiments with Renewable Energy v1.0 - PlotIt.bs2
' Transmits acquired data to StampPlot software for plotting.
' {$STAMP BS2px}
' {$PBASIC 2.5}
'
'· Declarations
'
'
For Plot_It Subroutine
· ch0········· VAR···· Byte················· 'Voltage reading from A/D CH0
· ch1········· VAR···· Byte················· 'Voltage reading from A/D CH1
· ch2········· VAR···· Byte················· 'Voltage reading from A/D CH2
· ch3········· VAR···· Byte················· 'Voltage reading from A/D CH3
· checkSum···· VAR···· Byte················· 'Sum of all of above readings
'
'· Main Routine
'
Main:
DO
· GOSUB Exp_1······························· ' Programmable Battery Charger
· GOSUB Exp_2······························· ' Dueling Solar Cells
· GOSUB Exp_3······························· ' Solar Cell Sun Tracker
· GOSUB Exp_4······························· ' Half&Full Wave Rectification
· GOSUB Exp_5······························· ' Three-Phase AC Alternator
· GOSUB Plot_It····························· ' Plot Data w/ StampPlot Pro
LOOP
'
'· Subroutines
'
'
'· Experiment 1: Programmable Battery Charger
'
Exp_1:
Exp_1_End:
· RETURN

'
'· Experiment 2: Dueling Solar Cells
'
Exp_2:
Exp_2_End:
· RETURN

'
'· Experiment 3: Solar Cell Sun Tracker
'
Exp_3:
Exp_3_End:
· RETURN

'
'· Experiment 4: Half and Full Wave Rectification
'
Exp_4:
Exp_4_End:
· RETURN

'
'· Experiment 5: Three-Phase AC Alternator
'
Exp_5:
Exp_5_End:
· RETURN

'
'· A/D Converter Routine
'
A2D:
A2D_End:
· RETURN

'
'· Plot Acquired Data Using StampPlot Software
'
Plot_It:
· checkSum = ch0 + ch1 + ch2 + ch3·········· ' Compute checksum for StampPlot
· DEBUG ch0, ch1, ch2, ch3, checkSum········ ' Transmit data to StampPlot
· PAUSE 250································· ' Give StampPlot time to plot data
· ch0 = 25··································· ' Reset voltages and checkSum
· ch1 = 50
· ch2 = 75
· ch3 = 100
· checkSum = 0
Plot_It_End:
· RETURN
I am able to get data in stamp editor debug and hyperterminal.
Can't figure out why not in stamplot???

Suggestions?

Thanks in advance.
·

Comments

Sign In or Register to comment.