ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Mathscript Error 90011

Solved!
Go to solution

Hi,

I am working with "Hands-On Introduction to LabVIEW For Scientists and Engineers" by John Essick.  I am stuck on the "do it yourself" problem at the end of chapter 3.  Everytime I go to execute the program I get this message:

Error -90011 occurred at Error in function * at line 7:  The sizes of the input matrices are incompatible.  Verify that the matrices have the same size or that one is a scalar. Possible reason(s): LabVIEW:  The sizes of the input matrices are incompatible.  Verify that the matrices have the same size or that one is a scalar.

This is the code I have entered:

delta_t=1/f_s
start=0
step=delta_t
stop=(N-1)*delta_t
t=start:step:stop

x=A*(1+sin(2*pi*mf*t))*sin(2*pi*sf*t)

 

And I have attached the VI (when executing, the book says to take N=500, f_s=10000, sf=500, mf=50, and A=1)

 

Any ideas?

Message 1 of 4
(4,588 Views)
Solution
Accepted by topic author jhauck1

So it took me about an hour, but right after I posted it on here, I figured it out.  I needed to replace "*" with ".*" for element-wise multiplication.

0 Kudos
Message 2 of 4
(4,584 Views)

Good job.

What is the difference between * and. *? 

0 Kudos
Message 3 of 4
(3,577 Views)

Hi HTM,

 


@HTM88 wrote:

What is the difference between * and. *? 


You can read message #2 of this old thread or the LabVIEW help

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 4
(3,572 Views)