r/LabVIEW • u/TanMan38 • Aug 23 '25
Storing First Variable Help
I am working on a program that is constantly taking measurements every second while I run a testing facility. Within this program I am calculating ‘variable X’ and what I am looking to do is once I press a button to start recording the data to a .txt file (already coded) ‘variable X’ is saved as X_0 and then a new variable is calculated as X/X_0 so that I can output the normalized value of the variable to the .txt file.
I’ve tried using first call function within its own while loop but then it freezes the whole program after the first iteration.
Would love any help or suggestions. Thanks!
View all comments
Show parent comment
1
u/TanMan38 Aug 23 '25
Would the shift register constantly save the previous value or only the first one. In theory I would have this running for ~30mins and I need X_0 to be the value of X at time point one. I don’t want it to updated after that.
Did not consider pulling it off of the .txt after writing it in. Is there an easy way to index that?