Is There A Simple Propeller Object For Plotting on Laptop Screen?
robotics
Posts: 90
in Propeller 1
Hi,
The Parallax Serial Terminal is great for interacting with a Spin program using text and characters. Is there a similar simple Object in the OBEX that enables simple plotting of data points on a laptop screen?
In advance, thank you
The Parallax Serial Terminal is great for interacting with a Spin program using text and characters. Is there a similar simple Object in the OBEX that enables simple plotting of data points on a laptop screen?
In advance, thank you
Comments
A couple of approaches are possible :
a) You can use a PC-Terminal program, and send Terminal command strings from the Prop.
This is usually character-coarse, but may be enough for you ?
You can expanded this using custom Fonts, with Bar-Graph fonts, to get single pixel X resolution.
b) If your 'plotting of data points' needs higher precision, multiple graphs overlayed, and zoom etc, we have used the LTSpice .RAW file format with good results.
You sent a file to the PC, and view .RAW in LTSpice. It's their standard Spice plot format.
LTSpice can zoom/measure the points, to a high degree of precision, and you can post process that RAW file if you want.
BTW, PST is not ANSI compatible but you may be able to position the cursor although you may not be able to make the terminal large enough.
Thanks for the tip, I'm playing with Xojo now to write a cross-platform plotting terminal! See how it goes.
BTW There are plugins for various needs, you will find demos for Monkeybread plugins that are full functional in debug mode and the build, but it pops up if you don't buy it. Highly recommended, search their site for plotting or graphs. Great company, Christian is the owner and is incredibly helpful. I have built many apps that are lifesavers.
If you send me an email I can send you some projects that already are set up for serial with the Prop. Quite simple to do. It is rather "basic", but you can get very complex with it.
The 'works in debug mode' feature is nice for eval.
The $100/year is per output generator, so it is $300 for mac linux pc
Have you done any speed tests ? How does it compare with Delphi / FreePascal ?
Xojo used to be RealBASIC..
Be interested to see how that goes.
I see Embarcadero have a free version of Delphi for non-commercial use
https://www.embarcadero.com/products/delphi/starter-faq
and there is also Lazarus/Freepascal that can do cross platform
http://www.lazarus-ide.org/index.php?page=downloads
Running in Debug is fine, it's just a longer load time to run Xojo versus running a much smaller build.
There's a learning curve, but it's worthwhile.
Parallax has a tutorial which uses the Parallax Serial Terminal as a rough oscilloscope. The program used the Propeller Board of Education in the example.
learn.parallax.com/sites/default/files/content/prop_boe/start_spin/voltage/img/pst_scope.jpg
I modified the o'scope code to use with my pulse oximetry attempt. If you skip forward to the 1:06 mark you can (sort of) see my version of the program in action.
The PST graph worked well enough to see my pulse.
It's a work in progress, but if you're interested, I'll give it to you. I'm sure somebody more knowledgeable than I could modify it to work differently
much of the spin program is other people's work that I fiddled with... I don't know if I need to acknowledge that better or not
software's free ... visual studio community 2015
matplotlib.org/