Need help with programming question.
PTaylor
Posts: 12
I'm new to stamps, and have been playing around with a few circuits here and there. So far, so good.
The project I am playing with right now is from this page:
hxxp://www.emesystems.com/OL2therm.htm (replace xx with tt)
Basic Stamp and Thermocouples
I've got the program running, all is working correctly. It displays the correct temperature in the debug terminal.
Well, I've been playing with converting the temperature from C to F, and I've got it displaying that correctly, but one thing I cannot figure out is how to save or store the values in a variable.
The program does store the data captured from the SHIFTIN command into a variable named RESULTS, and then it uses the debug command to modify the data and display it as a number in the DEBUG window.
If I use the DEBUG command to display what value is stored in the variable RESULTS, it displays an ASCII character. not what I want, I want to store the actual number (C or F) into a variable for use later, and I'm drawing a blank. Any suggestions?
The project I am playing with right now is from this page:
hxxp://www.emesystems.com/OL2therm.htm (replace xx with tt)
Basic Stamp and Thermocouples
I've got the program running, all is working correctly. It displays the correct temperature in the debug terminal.
Well, I've been playing with converting the temperature from C to F, and I've got it displaying that correctly, but one thing I cannot figure out is how to save or store the values in a variable.
The program does store the data captured from the SHIFTIN command into a variable named RESULTS, and then it uses the debug command to modify the data and display it as a number in the DEBUG window.
If I use the DEBUG command to display what value is stored in the variable RESULTS, it displays an ASCII character. not what I want, I want to store the actual number (C or F) into a variable for use later, and I'm drawing a blank. Any suggestions?
Comments
I'll have hundreds of more questions in the near future for a few things I'm playing with.
Again, thanks!