LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to save a value (not in file) in Labview?

Hello,

 

I seems to be an easy question, but i don't know how to do it. I want to save the first value from my acquisition board (BUT NOT IN A FILE), in Labview "memory" and keep it for a later use. Like a variable stored in programming. With shift register it's continuing updating, and when i stop the shift register loop, it gave me 0 value. How to do it ? Thanks in advance!

0 Kudos
Message 1 of 5
(6,044 Views)

Hi sdadasdas,

You can use the shift register but you need to wire that shift register with cluster of two elements where 1st element will be the first value you acquired and second value will be continuos values from daq card.

 

Regards,

SrikrishnaNF

 

Regards,
Srikrishna


Message 2 of 5
(6,038 Views)

Simple:

shiftreg_1st_element.png

Message 3 of 5
(6,027 Views)

Thanks all for help! I will try both advices!

0 Kudos
Message 4 of 5
(6,014 Views)

It sounds like they want the value to live through closing the VI and opening it for another time.  If you're just wanting to maintain the value through the single run, shift registers will carry the value.  If you don't initialize the value (wire something into the left register), they will maintain the value as long as you don't close LabVIEW and kill the memory allocation.

 

If you want to keep the value until the next run, you'll need to use Invoke Node to make that value default.  That way, it will open up next time with the value saved.

0 Kudos
Message 5 of 5
(5,977 Views)