Hi All,
Thanks for reading the post.
I'm a beginner/intermediate programmer and before I dive into my first (not-a-tutorial) program I would like some advice on how I should arrange everything, I hope you can help;
Here goes;
The application needs to read a stream of data (from a temp sensor), do a small sum with the data and plot a graph (which will be over time (sec)). Thats it.
Here's what I had in mind;
-Link up the programme with the sensor.
-Create 2 variables, called "Now" and "Last"
-Create an Array with the two variables with "Last" := 0
-Let "Now" := whatever the current data stream value is.
-Pass the "Now" variable to the "Last" variable and then get a new "Now" value.
-Loop the programme to do this once a second.
-Set up a graphic that uses Now and Last as "y" co-ord with "x" co-ord being time.
-Then on the side, a little TEdit could output "Increase" or "Decrease"
So,
Any ideas why this might not work? or are there better trees to bark up??!!
Cheers for your time all,
Kay
Thanks for reading the post.
I'm a beginner/intermediate programmer and before I dive into my first (not-a-tutorial) program I would like some advice on how I should arrange everything, I hope you can help;
Here goes;
The application needs to read a stream of data (from a temp sensor), do a small sum with the data and plot a graph (which will be over time (sec)). Thats it.
Here's what I had in mind;
-Link up the programme with the sensor.
-Create 2 variables, called "Now" and "Last"
-Create an Array with the two variables with "Last" := 0
-Let "Now" := whatever the current data stream value is.
-Pass the "Now" variable to the "Last" variable and then get a new "Now" value.
-Loop the programme to do this once a second.
-Set up a graphic that uses Now and Last as "y" co-ord with "x" co-ord being time.
-Then on the side, a little TEdit could output "Increase" or "Decrease"
So,
Any ideas why this might not work? or are there better trees to bark up??!!
Cheers for your time all,
Kay