10-27-2021 01:33 AM
Hi!
I am beginner in LabView. I am making a VI in which two array controls are used in front panel and I want to retain the last saved (using button control )values in array even after power on off and show the last values saved in the array control after power on and I am using this array values ahead for further calculations.
I have tried to save array in excel sheet and then read the array but stuck as to how can i modify the front panel array control after read.( I think there should be a better way to do it)
I have attached the VI for reference.
Thank you.
10-28-2021 01:14 PM
Hi Nectar,
@Nectar_techabhi wrote:
I have tried to save array in excel sheet and then read the array but stuck as to how can i modify the front panel array control after read.
You can set controls (like your arrays) by using local variables of those controls…
10-28-2021 01:38 PM
@GerdW wrote:
Hi Nectar,
@Nectar_techabhi wrote:
I have tried to save array in excel sheet and then read the array but stuck as to how can i modify the front panel array control after read.
You can set controls (like your arrays) by using local variables of those controls…
This is one of the only valid reasons for using local variables. Since the OP is new to LabVIEW we should let them know that when working in LabVIEW you should use the wires for your data storage and access. Dropping local variables all over to read/write data is asking for trouble with race conditions.