LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

create a variable to store data

hi all

is there any way to create a variable (memory allocation) to store temporary data?
for my case i am using a while loop and i want to store a result that the next iteration can make use of.
0 Kudos
Message 1 of 3
(2,288 Views)
Hello leongchuan:

You can use a shift register, a feedback node, or a local variable if you want. Depending on your application.
Each has pros and cons...
0 Kudos
Message 2 of 3
(2,285 Views)
In the specific case of a while loop a shift register or a feedback node would be what you want. Either click on the side of the loop border and select Add Shift Register, or drop a feedback node (from the structures palette) in the loop. They do exactly wat you want.

___________________
Try to take over the world!
0 Kudos
Message 3 of 3
(2,280 Views)