From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

incompatible array size

Solved!
Go to solution

Hello,

 

I am trying to graph variables of a simple system where mass is dropped out of a window. I require that the MathScript Node outputs yield 1D arrays of equal size so I can graph then against each other. However, I get an error that reads-

"Error -90011 occurred at Error in function * at line 5: The sizes of the input matrices are incompatible. Verify that the matrices have the same size or that one is a scalar."

 

Originally, I thought for each step in time, an element would be created for each node output. Now, my guess is that in the equation solving for position "x" in line 5, velocity "v" is an array of incompatible values. Could you please explain to me my mistake and how to fix it? I am using LabVIEW 2016.

 

Thank you for your time

 

 

0 Kudos
Message 1 of 2
(3,723 Views)
Solution
Accepted by topic author 16rasmuaut

Relooking at the mathscript operators solved the problem. I had to use elementwise operators. 

0 Kudos
Message 2 of 2
(3,700 Views)