LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

state machne

Hey
 
I am a novice in labview. I am using labview 8,5.
I am making a big program and ran into a small problem concerning " state machine"
I can´t save the data in my arrays and the while loop don`t stop it just continues.
 
I just posted the main problem of the program and not the rest hope that anybody can help.
 
The goal is to save the alarms in the arrys and stop the case
 
Morten
0 Kudos
Message 1 of 4
(2,822 Views)
What do you mean by "saved" in the stopped case?  Does that mean saving to file, or just to leave the values on the screen.
 
It looks like the arrays are things that are used in different states (cases of the case structure) in the code.  So you want to maintain the values in the appended array from one loop iteration to the next as it goes through the various states.  What happens is that if you run a case that doesn't do anything, the default values for the arrays (which would be empty arrays) get appended together since you have use default if unwired set for those 3 tunnels.  You will need to feed your appended array to a shift register on the outside loop.  Each case will take in the value from the left side shift register, act on it if it needs to replace values or change them, then feed it back to the shift register.  Any cases that don't do anything, just feed the wire through the case.


Message Edited by Ravens Fan on 11-20-2007 06:02 PM
0 Kudos
Message 2 of 4
(2,797 Views)
In the state "Current, Grid Inverter, W"  you go back to state "Feedback, Delta connection". You never reach the stop case!
 
You can built your array in an initialized feedback loop as follows. (in all states where you don't append data, you would just omit the built array and loop the array back to the output tunnel.
 
 
 


Message Edited by altenbach on 11-20-2007 06:30 PM
0 Kudos
Message 3 of 4
(2,784 Views)

Hey Guy´s

 

Thanks a million for the help, saved my day. I´m impressed that you could help so quick.

Especialy the picture in the bottom helped.

 

Morten

0 Kudos
Message 4 of 4
(2,762 Views)