07-30-2012 11:18 AM
I'm trying to complete the Mathscript chapter in Hands-on Intro to Labview for Scientists and Engineers and as I add in the code for the Shape controller, I get the error message:
You have two or more array data types wired together, but the arrays have different numbers of dimensions. Show the Context Help window to see how many dimensions are required. The dimension of ->t is 2. The dimension of XY Graph->t is 1.
I've tried inserting the index and build arrays like the help page says, but it still doesn't work.
Attached is a screen shot and any help would be greatly appreciated.
Solved! Go to Solution.
07-30-2012 11:23 AM
You have a couple of 2-D arrays coming out of your Mathscript node. Is that what you want?
You are clustering them together to get to the XY graph, but I don't think there is any logical data structure for a graph that uses a cluster of 2-D arrays.
First you need to look at the help and examples for an XY graph to see what data structures that a graph can accept. Then figure out what the 2-D arrays mean and what you can do to them to get them to work in an XY graph.
07-30-2012 11:41 AM
I don't see anything in your MathScript code that should generate a 2D array. Make sure the outputs have the Auto Select Type turned on.
07-30-2012 11:51 AM
Thanks for the heads up. My outputs were both set to DBL 2D without me realizing it so once I switched them to DBL 1D and took out the arrays it worked.