07-29-2009 12:46 PM
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
07-29-2009 01:02 PM
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.
07-29-2009 01:02 PM
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
07-29-2009 04:26 PM
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
07-29-2009 04:34 PM
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.
07-29-2009 06:45 PM
07-30-2009 02:08 AM
07-31-2009 04:09 AM
thanks to all.I solved it with the shift register option in the for loop.
thanks again to all
JOSE