I want to transfer some data from one state to another. I tried the tunnel, but it can't work since it's the case structure. Does "state machince" support data transfer? Or any other methods I can do?
Yes, adding a shift register to the outer while loop should work, make sure to initialize it. Perhaps you could attach your vi so we could have a look at it. Be sure to give us as much info as to what your goal for the vi is.
It can work. But what I want is some data only used in certain states not all the states. If I used the shift register, I need to wire the registers in all states.
That is true, but you dont have to access the data from the shift register in every state, you can simply pass it through. It may be a hassle to do the extra wiring but it will be your best solution.