Data logging to computer
robbieinc
Posts: 4
Hello Everyone!
This is my first thread, I had a few questions regarding data logging on with the propeller on a professional development board. I am attempting to receive data from the propeller and log it on my computer in a way that I can access it via a file or a program I could write. What would be the best way to go about this? I know the Serial Terminal receives debug information but I could not find a way to access the raw data directly.
This is my first thread, I had a few questions regarding data logging on with the propeller on a professional development board. I am attempting to receive data from the propeller and log it on my computer in a way that I can access it via a file or a program I could write. What would be the best way to go about this? I know the Serial Terminal receives debug information but I could not find a way to access the raw data directly.
Comments
If you mean data that's either internal to the Prop or directly from sensors attached to the Prop, you can't directly access that.
The Prop acts as a "master". It controls what it does and what's connected to it. It (the program in the Prop) also controls what gets communicated to an attached PC. You can write a Prop program that is essentially driven by information sent from the PC. ViewPort is a 3rd party program for the PC and Prop that, via a small program included in any program you write for the Prop, allows the PC to display and modify specific data in your program and, to some extent, control your Prop from the PC.
I use this solution with GPS, but a PC connection is not feasible in this case.
You can send anything to the serial terminal, also your sensor data (if it is your raw data), not only debug info. In BST the terminal offers the possibility to save the data received to a text file. If it is enough for you it would be an easy solution. For instance you can already prepare a comma limited format, ready for a spreadsheet, a perl script or a math software.
Obviously it you want to log a huge amount of data things are different....
http://www.parallax.com/tabid/393/default.aspx
Personally, I record everything onto SD cards and then download the data when I need to. You can easily write software for the Propeller to name your files with extension .csv so they can be opened directly in Excel, etc. If you want to use an SD card, there are tons of info available here. Just let us know.
I've seen the internet netburner kit, but I'd like to think this can be accomplished without that hardware?
software (free) in conjunction with windows xp task scheduler to send e-mails of the data.
You will have to create a batch file on the PC to make this work, but it has worked effectivly for a long time. I am sending hourly e-mail messages (as attachments) of the downloaded temperature data from an additional eprom connected to the propeller.
Larry
welcome to the prop-forum. You can ask as many questions as you like.
Everybody in this forum is friendly and patient. If you ask very basic questions you make the "almost" newbees happy that they can answer too!
You will receive answers faster if you post concrete questions with additional information what you like to do and what you have done so far.
What I can think of what would be useful information is:
How much data (=how many characters) do you want to send as "one package"?
How often do you want to send them?
Every second? every minute?
Any kind of program that can receive serial data and that can be configured to receive data in the format 8 databits no paraty one stopbit (8N1) at a baudrate between 9600 and 115200 baud, can be used to receive data
send from the propeller.
You can use the programming-serial cable to send and receive serial data
I recommend using the FullDuplexSerialPlus-object as this object provides
methods to send and receive serial data as strings or decimal, binary, hexadecimal values.
So next question is which software or programming-language do you want to use? With which programminglanguage do you have experience?
I think most of them have an option to receive serial data.
best regards
Stefan