02-08-2012 11:27 PM
Hi wilson,
Floraian is right.. In the code you have posted, you have connected a wire to a for loop, value of which is not going to change for 10 iterations.
If you look at the code.jpg I have posted, I have used random number generator, Instead of that, you can put the "Temperature input" which you must be getting from hardware.
And it is not necessary to have a for loop, if you are acquiring temperature data in A while loop, then you can implement same logic in while loop, with either shift register, or using Enable indexing.
02-09-2012 01:16 PM
Thanks Florian. Now I understand. I don't have an EE background so I am confused with different data types. I corrected my input and it works. ^_^
02-09-2012 01:18 PM
Thank you GaK, problem solved!