08-17-2016 06:05 AM
Hi,
I have a sub-vi that does some data analysis. I output the results through a type def. I want this type def to include the data needed to plot the results in a XY-graph.
My problem is that the data will sometimes contain only 1 data series and sometimes multiple ones. i.e. sometimes the output should be a cluster of two 1D-arrays, sometimes it should be an array of clusters. Is there a good way to achieve this?
vs
Solved! Go to Solution.
08-17-2016 06:17 AM - edited 08-17-2016 06:17 AM
Dulpicate Post,
please maintanin single thread
http://forums.ni.com/t5/Getting-Started-on-the-NI/Tips-for-Posting-Code/td-p/3250924
08-17-2016 06:26 AM
You can try using for loop with indexing enabled so that you will come to know how many coulumns you have during run time and cluster them and then index out so that you will have array of clusters always.
08-17-2016 07:05 AM - edited 08-17-2016 07:06 AM
@udka wrote:You can try using for loop with indexing enabled so that you will come to know how many coulumns you have during run time and cluster them and then index out so that you will have array of clusters always.
You are on the right track. Just need a little bit before the loop to transpose the array (to make the indexing work properly) and remove the X-axis data.