From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Your VI does not save anything and all is lost if the computer shuts down. All yor data is kept in volatile memory.
You need to write to disk at regular intervals, because once the PC shuts down, it is too late for any programmatic action. Then, next time the program starts, read the save location and continue where you left of.
You would use a binary file and always write your DBL value at position 0. The file will never be more than 8 bytes. You might want to alternate between two files, because one might get corrupted if the PC shuts down during writing.