LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

historical value of shared variable

I need the shared variable still keep its latest value after pc restart.

 

I tried on 2 pc, one is successful, the other not.

 

Any suggestion? Thanks.

0 Kudos
Message 1 of 4
(2,238 Views)

turbot wrote:

I tried on 2 pc, one is successful, the other not.



You say you tried on two PCs. What did you try exactly?

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 4
(2,227 Views)
Set the value 0->1, restart pc, see if still 1, or returned to default 0.
0 Kudos
Message 3 of 4
(2,225 Views)

I would imagine the content of shared variables are not stored anyway on the harddrive, so upon reboot of a PC their contents will be lost. You will only see default values at launch.

If you want them to remember their latest value, you will need to save their contents to a file at exit, and read the contents back at launch.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 4 of 4
(2,223 Views)