04-06-2010 08:57 AM
Hi!
I'm currently developping a software program that will run on a cRIO as a startup program. I have to code a production counter to determine how many products passed the tests. A web server will used to sometimes check that counter...
What happens to the counter value if cRIO power supply is turned off ? Will the counter be reset to 0 when rebooting ? If yes, how to avoid this behaviour and restart with the last count ?
Solved! Go to Solution.
04-06-2010 10:24 AM
Hi,
Of course, what happens to your variables and everything that happens in your program depends on... your program.
If you do nothing to your variables, they will have their default value when the program starts.
A way to change this behaviour is for example save the value of the variables in a text file and read those values atthe beggining of the program.
Hope this helps,
Paulo
04-07-2010 02:26 AM