LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

retain array control values which are changed in run mode even after power on off

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.

0 Kudos
Message 1 of 3
(1,041 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(983 Views)

@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.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 3
(980 Views)