LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

cRIO Shared Variable after Reboot

Solved!
Go to solution

I use Share Variables to configure a cRIO-9074 with some booleans, doubles and ints, however when the cRIO reboot because of a power outage or some other reason, all shared variables must be set again (I use another VI to set all the configurations for each cRIO using Shared Variables).

 

By using the DSC toolkit I can set an Initial Value for each variable, but this does not solve my problem, since I have multiple cRIO running the same software but using different configurations.

 

What I would like to do is changing the Inicial Value for each Shared Variable based on the last value set, so every time a cRIO reboot, it load the last values for each Shared Variable.

 

0 Kudos
Message 1 of 3
(2,655 Views)
Solution
Accepted by topic author Quintino

Hello Quintino,

 

Maybe you could store your data in a file available on the network and regularly update the values (every seconds or less, depending on your application). Then, when your cRIO starts, just initialize your shared variables with the content of the file.

 

Regards,

Jérémy C.
NI France

0 Kudos
Message 2 of 3
(2,621 Views)

I used a nondeterministic loop to update all shared variables to a text file then on start up down-loaded the data to the shared variables. This seemed to work pretty well and you can store the text file on the cRIO.

0 Kudos
Message 3 of 3
(2,607 Views)