LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store the Local Variable?

I also have a problem to bore.Could you help me to solve it. The
prolem is: How to store the Value of a Local variable in Case-While
structure.(While loop includes the case structure. The local variable is in
the middle of the two structures.) For example, I design a VI, it simulates
the funtion of a machine. When the machine runs in order, there are several
boolean variable to record the status of the machine. When the machine runs
in malfunction, I want to store the status of the machine at the last time
it runs in order. After the machine is recovered, I want the machine runs
from the status which I recorded.
Do you know how can I realize it? Answer me please.
0 Kudos
Message 1 of 3
(2,302 Views)
If i understand you correctly you want to store the values of the local variable whenever you read from it? If you want to do this then simply run a wire from the local variable (in read mode) to the edge of the while loop, right-click on the terminal and select 'enable indexing', and this will create an array of these values at this point.

I hope this helps you..

Kim
0 Kudos
Message 2 of 3
(2,302 Views)
Create a un-initialized shift register on the border of the while loop, and each iteration of the loop, update the shift register with the status boolean.
0 Kudos
Message 3 of 3
(2,302 Views)