LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to save a value ?

Hello. I am making a program in Labview....and my problem is for example:at the end of a cicle i need to save the result that has been calculated in the cicle...so i can use it later in other cicle calculations....

my question is how can i save that value in a variable (or register)  ? 

 

 

thanks

JOSE 

 

0 Kudos
Message 1 of 8
(3,407 Views)

The value is in the wire that you connect to the other calculations in the 'cicles'.

 

I'm going to assume that you mispelled cycles and the cycles are actually loops.

 

0 Kudos
Message 2 of 8
(3,403 Views)

Hi Jose,

if you use a loop, then you can store your value in a shift register. Can you give more information or upload your vi?

 

Mike

Message 3 of 8
(3,402 Views)

Sorry i said cicles instead of loops. I understand that the value is in the wire that conect to other things outside the loop...i just canot save/store it in some 'variable' so i can use it later...i will try a shif register 🙂 

 

thanks again for your anwsers

 

JOSE

0 Kudos
Message 4 of 8
(3,383 Views)

You can save it to a local or global variable but it is bad style.

 

A shift register is not necessary in all cases. You can often just wire straight out of the loop. If it's a for loop, you just have to disable autoindexing.

Message 5 of 8
(3,378 Views)

Hi,

 

Take a look at GFV's. Great tool when you want to keep data, and have easy access to it.

0 Kudos
Message 6 of 8
(3,363 Views)
dd.PNG
Message 7 of 8
(3,343 Views)

thanks to all.I solved it with the shift register option in the for loop.

thanks again to all

 

JOSE

0 Kudos
Message 8 of 8
(3,319 Views)