10-20-2014 10:13 AM - edited 10-20-2014 10:19 AM
Hello everyone,
Problem Description: I have a mutli-dimensional array named "Microphone Channel Array" , from which I am extracting "Channels" field values and inserting into an array label:" Insert Channel Into Array". It works fine.Now I want to use that array into another case structure. How to do it?
I am new to labview. Accessing variables is different from programming languages.Searched many forums for my question but was unsuccesful. So i decided to post my question, I hope i can get an answer here.
Please refer the below picture attached.
Solved! Go to Solution.
10-20-2014 10:23 AM
You will want to use a shift register on your outer loop. Be sure to pass the values straight through in the cases that do not access the array.
10-20-2014 10:30 AM
I think crossrulz answered this.
But if you are worried about memory usage you can initialize an array before the loop and use Replace Array Subset. I think that way may be a faster than the way you are doing it, but I'm not 100% positive.
10-20-2014 10:38 AM
JoeWork wrote:
But if you are worried about memory usage you can initialize an array before the loop and use Replace Array Subset. I think that way may be a faster than the way you are doing it, but I'm not 100% positive.
Based on what I see in that picture, the OP should actually be autoindexing the channels out of the FOR loop instead of using the Insert Into Array. It will be much for efficient and simpler.
Then they need to keep that array in a shift register in the outer loop so that it is available for all of the other cases.
10-22-2014 09:59 AM
Thank you Joe. Your Answer was helpful
10-22-2014 10:00 AM
Thank you crossrulz. Your Answer was helpful