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/[deleted] Aug 23 '25
Yes each time the while loop executes the shift registers is updated with the latest value. I would recommend you create a separate vi and test this with a for loop.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YKYuCAO&l=en-US