I have a program which claculates the Temperature from the Data from a
sensor...I want the program to calculate the temperature every 45 mins
and save it as well...
Can someone help me on How to do it...Please
Using a Wait function with that long of a duration would be a really bad idea. Assuming that you would also have stop button, the while loop might not terminate until 45 minutes after you pressed stop.
Instead, you could simply use the Elapsed Time function with the Time Has Elapsed output wired to a case statement.