LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Probleme Memory variable

Hi;

I want to know if LabVIEW Provied a memory variable , to save value on it and to change the value only when I want to change it even if I affect a new value to the memory the previous value will never change. (I Don't mean global or Local variable ).

Thank you.

0 Kudos
Message 1 of 6
(2,489 Views)

Hi Emna,

 


@Emna20 wrote:

I want to know if LabVIEW Provied a memory variable , to save value on it and to change the value only when I want to change it even if I affect a new value to the memory the previous value will never change. (I Don't mean global or Local variable ).


Please explain your requirement with more details, maybe also with some use case!

 

All "variables" will be stored in memory, so what is a "memory variable"?

How should the previous value "never change", even when you "change the value"???

Are you looking for "constants"? Or WORMs?

Best regards,
GerdW


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

@Emna20 wrote:

Hi;

I want to know if LabVIEW Provied a memory variable , to save value on it and to change the value only when I want to change it even if I affect a new value to the memory the previous value will never change. (I Don't mean global or Local variable ).

Thank you.


The wire is the variable. If you split a wire any change done to one 'variable' will only affect that wire. If you want to have 1 common data that is changed from many different places you'll have to use DVR, AE, Queue or Global.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 6
(2,471 Views)

Hi , 

i have a boolean contrôle that change every time i run the state machine . and all i want is a solution to save the previous value of these boolean contrôle to use it next time. i want a way to control when i store the value and when i reset the value even when i change the value .

0 Kudos
Message 4 of 6
(2,451 Views)

Hi Emna,

 


@Emna20 wrote:

i have a boolean contrôle that change every time i run the state machine . and all i want is a solution to save the previous value of these boolean contrôle to use it next time.


Have you done any basic tutorials so far? They are mostly free until end of April!

 

Use a shift register to access the previous value in the next iteration!

Best regards,
GerdW


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

@Emna20 wrote:

Hi , 

i have a boolean contrôle that change every time i run the state machine . and all i want is a solution to save the previous value of these boolean contrôle to use it next time. i want a way to control when i store the value and when i reset the value even when i change the value .


Shift register or Feedback node will solve that.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(2,392 Views)