09-09-2009 07:23 PM
Hallo,
I would like to ask please how to feed data into a graph in a cluster. My intention is to read a data file (txt). So I read a spreadsheet, extract the data of interest from the header and of course the actual datapoints taken. For that reason I made a cluster of numerous elements some of which are XY graphs. I tried to extract the column vectors of the data and display them in a graph. The problem is that the connection is not OK. Labview keeps telling me that I have a data mismatch. I took two arrays, e.g. time and X, bundled them together and wired to the unbundled function of the indicator. The message is the source is a cluster of two elements whereas the sink is a 1D array of cluster of two elements. What does that mean ? I mean when I use a regualar indicator XY graph (not in a cluster) it works fine. Any hint is appreciated.
Yours Sincerely
Karel
PS: I generally used to do it the way that I created a custom control first then I place this control in my subVI and use bundle by nama and simply create a constant for the input cluster => select the elements I wish to update, is this the correct way of using the cluster of indicators ?
09-09-2009 07:37 PM
Kind of hard to help when no VI's are attached to your message, or at least some screen shots of what you are trying to do.
The message means exactly what it says. You bundled two elements together in a cluster. But the input is expecting a 1-D array of cluster of 2 elements. Without seeing anything, from the description, it sounds like you need to build your one cluster into an array.
09-09-2009 07:57 PM
Hallo Raven,
thank you for the help,I attach the vi for clarification.
Yours Sincerely
Karel
09-09-2009 09:56 PM - edited 09-09-2009 09:57 PM
Yes. Much easier to figure out what you are doing by way of looking at a VI rather than a bunch of words.
Use the Index and Bundle Cluster Array function.
09-10-2009 01:41 AM
G'day Ravens,
thank you very muchfor the tip. Now it is OK.
Karel