08-04-2016 01:16 PM - edited 08-04-2016 01:17 PM
gregory
the larger cluster is the output of the array to the cluster. In the sample code, output cluster is just the strings but in original code the output code has strings and double as shown in the picture. I just need to get those strings and show in the ring menu.
08-04-2016 01:19 PM
Yes, the code I sent will update the Ring selection choices.
08-04-2016 01:21 PM
Gregory,
The problem is that she isnt using an array, she has a cluster. I dont know how much code revision it would take, but i dont see any reason not to use an array.
08-04-2016 01:24 PM
Matt, as you suggested I built array. The resulted appended array is 2D array of cluster of 2 elements now. So now how can I just get the strings name out of it. The attached Capture 1 shows the result of built array.
08-04-2016 01:26 PM
Not sure why it is a 2d array i dont believe it has to be, but i cant see all the code. Id suggest getting it to a 1d array and then doing what gregory suggested in post 8
08-04-2016 01:26 PM
It should be a 1D array. I am not sure how you are building your array but you can right click the "Build Array" function and make sure it is concatenating the inputs. Then, I've already shown you how to use the plot names to edit the graph legend and Ring control.
08-04-2016 01:33 PM
Thank you gregory. It was not concatenating the inputs. Now, I have a 1D array but I tried your code and it shows me the error as shown in Capture 2. It shows the error as:
The type of the source is void.
The type of the sink is string.
08-04-2016 01:35 PM
Click on the unbundle node and select the correct label for your string.
08-04-2016 01:35 PM
Gregory, actually, The error is fixed. Ignore my last post.
08-04-2016 01:39 PM
Thank you so much guys. One more question can I choose more than one items in the ring to show in the graph?