04-13-2010 03:34 PM
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
Solved! Go to Solution.
04-13-2010 03:39 PM
04-13-2010 03:43 PM
04-13-2010 03:48 PM
04-13-2010 03:51 PM
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,
04-13-2010 04:04 PM
_____________________________________________________
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,
04-13-2010 04:06 PM - edited 04-13-2010 04:11 PM
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.
04-13-2010 04:07 PM
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
04-13-2010 04:29 PM
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,
04-13-2010 04:49 PM