LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What happens to variables' values when cRIO reboots ?

Solved!
Go to solution

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 ?

CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 1 of 3
(2,556 Views)
Solution
Accepted by topic author CyGa

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

Message 2 of 3
(2,544 Views)
That's what I tought ! I was trying to avoid programming a routine which stores data in file every time varaible's value change... and which may slow my RT program... But I guess I'll have to do so !
CLA, CTA, LV Champion
View Cyril Gambini's profile on LinkedIn
This post is made under CC BY 4.0 DEED licensing
0 Kudos
Message 3 of 3
(2,522 Views)