LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

connected terminals of different types

Solved!
Go to solution

Hello,

 

 

getting this error

but they are both same data type?

 

_____________________________________________________

These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is 1-D array of
cluster of 1 element.
The type of the sink is 1-D array of
cluster of 1 element.

_____________________________________________________

 

why is that?

 

 

basically I want to do a xy graph,

1 signal to be the x-axis and other 3 plotted on the y-axis

 

any help is appreciated

vi attached

 

Thanks,

Daniel

 

 

 

 

0 Kudos
Message 1 of 11
(7,624 Views)

Use the build array

 

XYCHart.jpg

Rodrigo Cuenca
www.cidesi.com

0 Kudos
Message 2 of 11
(7,622 Views)
Use Build Array, not Build Cluster Array.
0 Kudos
Message 3 of 11
(7,616 Views)
 
0 Kudos
Message 4 of 11
(7,613 Views)

I tried similar before but the graph/chart would draw lines between the different data inputs

 

 there should be 3 wave forms, it looks like it combines all the data into 1

 

 

Thanks,

 

0 Kudos
Message 5 of 11
(7,607 Views)
what about the error? does it make sense?

 

_____________________________________________________

These cannot be wired together because their data types (numeric, string, array, cluster, etc.) do not match. Show the Context Help window to see what data type is required.
The type of the source is 1-D array of
cluster of 1 element.
The type of the sink is 1-D array of
cluster of 1 element.

_____________________________________________________

 


Thanks,

 

0 Kudos
Message 6 of 11
(7,588 Views)

You can use Edit from the options menu to the upper right of your message.

 

I think the problem is how you are using your dynamic data type.  Your DAQ assistant is set up to return 10,000 samples on every call, but your conversion Express VI's take it to a scalar value, so you are only getting 1 point.  Try setting all of those those to convert to an array.

 

On the surface, the error doesn't make much sense, but that is because it isn't giving you a level of detail that truly shows the differences between the datatypes.  I think you get the error because you are incorrectly using the Build Cluster Array.  You will need to look at the help file for that function to see what it really does.  But it is basically creating a data structure (probably complicated by use scalars rather than arrays) that isn't quite in the structure as one of the 4 that the XY graph can handle.

Message Edited by Ravens Fan on 04-13-2010 05:11 PM
Message 7 of 11
(7,584 Views)

I'm not sure what are you trying to do, but try with a Chart instead of XY Graph.

With the XY graph that you have, you are ploting 3 points and maybe the lines that you mention are the gridlines

Rodrigo Cuenca
www.cidesi.com

0 Kudos
Message 8 of 11
(7,583 Views)

pretty sure its not a grid line

 

I forced the data to be 2, 3, 5V, the 4th data is a pot

i get a vertical line from 2 to 5V,

when i move the pot, the line moves also

 

should the graph be out of the loop?

 

 

I changed the daq assistant to take 1 sample per loop

 

 

Thanks,

 

0 Kudos
Message 9 of 11
(7,568 Views)
Solution
Accepted by daniel2478
Then you need to build the array
Rodrigo Cuenca
www.cidesi.com

0 Kudos
Message 10 of 11
(7,560 Views)