LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

wiring data into a graph in a cluster

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 ? 

0 Kudos
Message 1 of 5
(2,853 Views)

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.

0 Kudos
Message 2 of 5
(2,852 Views)

Hallo Raven,

 

thank you for the help,I attach the vi for clarification.

 

Yours Sincerely

 

Karel

0 Kudos
Message 3 of 5
(2,849 Views)

Yes.  Much easier to figure out what you are doing by way of looking at a VI rather than a bunch of words. Smiley Wink

 

Use the Index and Bundle Cluster Array function.

Message Edited by Ravens Fan on 09-09-2009 10:57 PM
0 Kudos
Message 4 of 5
(2,832 Views)

G'day Ravens,

 

thank you very muchfor the tip. Now it is OK.

 

Karel

0 Kudos
Message 5 of 5
(2,813 Views)