04-29-2017 07:55 AM
Hi
I have a case structure that when it gets to case 4 I have all the relevant information in my array (please see attached) I have reshaped it now at this point I want to leave the case structure and look through array I am unsure of how to do this can somebody please advise me
Best Regards
David
Solved! Go to Solution.
04-29-2017 08:29 AM
@DPJones wrote:
can somebody please advise me
Here is some advice:
Bob Schor
04-29-2017 11:17 AM
DPJones wrote:I want to leave the case structure and look through array I am unsure of how to do this can somebody please advise me
Your code will leave the case structure immediately after all code in it has completed (which is probably nearly instantaneous). However, since you seem to have some kind of weird lookalike of a state machine, you are going to back to case 4 forever. If you want to go to another state, wire a different number to the state.
As Bob already said, we cannot do much with a picture. What does the blue array data represent? Where does it come from? Why is it converted to I32, and why is it not I32 to begin with? Why is the indicator orange? Why is the state variable orange? Are you using "use default if unwired" for output tunnels for a good reason or just to have the VI not broken? Maybe you want to wire the blue array at the bottom across so the data does not disappear once case 4 is called again nanoseconds later. What determines the loop timing? What is in the other cases? What does the program do? Why do you think you need to exit the case structure to look through the array? What do you mean by "exit"?
04-30-2017 04:53 AM
Hi Altenbach
Sorry for the lack of information But the problem I was having was the array data was not available when I wanted to stay in the loop on case 4 but I did as you suggested
Altenbach
Maybe you want to wire the blue array at the bottom across so the data does not disappear once case 4 is called again
This solved my problem thanks for your help
David