04-20-2020 01:54 AM
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.
04-20-2020 01:57 AM - edited 04-20-2020 01:57 AM
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?
04-20-2020 02:37 AM
@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.
04-20-2020 04:40 AM
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 .
04-20-2020 05:31 AM
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!
04-21-2020 08:20 AM
@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.