08-04-2016 11:54 AM
Hello everyone !!
I have 1D array which is further a cluster of 2 elements: one is a number and other is string. These string has the information about the name of signals. I connected this 1D array to reshape array with a dimension of 10. Then the reshaped array is connected to array to cluster. This resulted cluster is further unbundled to get the name of plots. The problem is I don't want to have these 9 unbundle blocks to get the name of the plots. Is there any way I can do it without using unbundle 9 times. I though of using for loop or while loop but I need some suggestions.
So I have two questions:
One is how to get these name of plots without using unbundle so many times?
Second is how can I display these plot names on my menu ring?
Solved! Go to Solution.
08-04-2016 12:09 PM
Please post your code. For me, please save it to LV 2012 or earlier. If you are using a more recent version just go to your project and click File >> Save for previous version...
08-04-2016 12:27 PM
Without any code id say use a for loop. The for loop will iterate according to the size of your array in.
08-04-2016 12:58 PM
So here is a sample code similar to what I have. The difference is in the actual code the element is string and double. As you can see the output of array to cluster is cluster of 9 elements and they all are strings. In original code the output is shown in Capture which is attached. The stream ID string contains the name of the plots and I need to get these strings and put on the waveform graph plot names. And I need to put these plot names in the ring menu. Hopefully this sample gives you an idea what I am looking for.
Any suggestions will be helpful.
08-04-2016 01:00 PM
It looks like it is saved for LV 2015, not LV 2012.
08-04-2016 01:02 PM
Hey gregory !! This is the code for you in labview 2012.
08-04-2016 01:10 PM
Just out of curiosity, why did you make that a cluster of 9 clusters vs an array of 9 clusters since each element is the same? Probably would save you some trouble to convert it.
08-04-2016 01:11 PM
I must have missed something, I saw no large cluster on your block diagram. Change that large cluster to an array, since it has many of the same element. Then proceed as attached.
08-04-2016 01:14 PM
Matt if you see the capture I attached you can see the output of the cluster is not just string as in the sample code. I have two elements from the cluster one is string and other is double. I just need these 9 string names and show it on graph.
08-04-2016 01:15 PM
I understand that in your code it is a cluster of 9 cluster composed of a string and a double. Im saying that since all your clusters are the same data type that you can actually replace that cluster of 9 elements with an array of 9 elements.