StampPlot Pro woe.

eclectic

Moderator
Stampplot Pro Woe.

I've built a simple greenhouse monitor, with 433MHz tx / rx.
The data is being displayed fine on the P.E. Terminal screen.
I'm using the AXE027 USB-Serial cable and Vista.
PE view shows me that I have only Com9 available.

Code:
Main:
	serin 1,n600,("ABC"),w0,w1 '*********
	sertxd (#w0,#w1,cr,lf)
	
goto main
Gives the two values every 4.6 seconds or so. (sleep 2 on tx)


I've just downloaded Stampplot pro. (v 3.7)
I'd like to start a Real-time display, using the
Standard w/control objects option.

I've set up SP -P for 4800,8,N,1
However, there is just an increasing horizontal line at the top of the scale.

Can anyone give me a hint or two?
Or shall I cut my losses and find another way?
e.

And yes, I am prepared to search, as long as I know where to start.
 
Last edited:

eclectic

Moderator
Carry on thinking please Dippy.
There IS a change with # and not #

I've played with the settings a little more.
using just b0 / #b0 values

Unplug adapter. Plug in adapter
ThenConnect.
I'm now getting "zig-zag" traces a bit like a sawtooth wave.

I'll have a play with an old Win98 Serial Laptop later.
e.
 

hippy

Ex-Staff (retired)
It's not entirely clear what you are trying to do but a few points -

SERIN will only read single byte values (0-255) into w0 and w1. Are you sure you don't need #s there ? Are you sure you don't mean b0,b1 or b1,b0 ?

SEROUT #w0,#w1 will send the decimal numbers concatenated which could give weird results;w0=210,w1=1 sends "2101" / w0=2,w1=101 sends "2101".

Have you checked what's being sent to StampPlot using the Programming Editor Terminal ?

Have you tried writing a program which sends known values to StampPlot to ensure it's been configured correctly ?
 

eclectic

Moderator
Hippy.

Sorry, if I wasn't clear.
I'm now getting the images shown below, on the screen.

I would like to achieve a plot where only the positive values were recorded.

It's only of secondary importance actually.

I plan to store the "real" values in Eeprom, and later,
to plot them in an OpenOffice spreadsheet graph.
(Or even Stampplot!)

e
 

Attachments

hippy

Ex-Staff (retired)
But how do you know what is being displayed isn't what the PICAXE is telling it to display ?

There's crystal ball failure on what data the PICAXE receives and what it should be sending out to StampPlot.
 

MFB

Senior Member
StampPlot example code

Not sure if the following code will be of help but it does provide an example of StampPlots binary mode and also how to download the plot set-up parameters.





'READ TWO ANALOG AND TWO DIGITAL INPUTS USING PICAXE-08M
'AND SEND DATA (at 9.6kbps) IN BINARY FORMAT TO STAMPPLOT PRO.


setfreq m8

pause 4000 'Wait for supply

sertxd ("!RSET",cr) 'Reset StampPlot parameters
settxd ("!RSET",cr) 'Second try
sertxd ("!TITL Chart V.1",cr) 'Title of plot
sertxd ("!SAMT 90",cr) 'Shift by 90%
sertxd ("!TMAX 40",cr) 'X-axis
sertxd ("!SPAN 0,255",cr) 'Y-axis
sertxd ("!SHFT ON",cr) 'Shift left at maximum time
sertxd ("!FLSH ON",cr) 'Flush old data
sertxd ("!PLOT ON",cr) 'Plot new data
sertxd ("!NUMB2",cr) 'Expect two binary numbers
sertxd ("!USEB ON",cr) 'Expect binary data


start:
readadc 1,b0 'Sample two ADC inputs
readadc 2,b1
sertxd (b0,b1,cr) 'Send analog data

let b2 = pins & %00011000 'Sample two digital inputs
let b3 = b2 /8

if b3 = 0 then sertxd ("%00",cr) 'Send digital data
endif
if b3 = 1 then sertxd ("%01",cr)
endif
if b3 = 2 then sertxd ("%10",cr)
endif
if b3 = 3 then sertxd ("%11",cr)
endif

pause 30 'Adjust scan rate
goto start 'Next scan
 

eclectic

Moderator
@Hippy
But how do you know what is being displayed isn't what the PICAXE is telling it to display ?

There's crystal ball failure on what data the PICAXE receives and what it should be sending out to StampPlot.
Genuinely, I have no idea exactly what is sent or received or how it's interpreted.

@MFB
Thanks for the code. I'll look tomorrow, when I'm more awake.

Present state of play.
I've reduced the code further.
Code:
 Main:
	serin 1,n600,("ABC"),w0,w1
	sertxd (#b0,cr,lf)
goto main
The result is below.
e
 

Attachments

eclectic

Moderator
Thanks for that BD.

For info, I've just downloaded Stampplot Lite.

It works fine, displaying one value at a time.

e
 
Top