LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Mathscript exercise (3.2) in "Introduction to LabView in 6 hours" tutorial

Solved!
Go to solution

Hello,

 

I am working through the 6 hours introductory manual and I have noticed a few minor errors here and there. Also, as I am using version 8.6, some of things are slightly different.

 

However, I am stumped with exercise 3.2 regarding Mathscript. I even tried running the solution which I downloaded from the ni.com site but I still get the following error:

 

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

 

Does anyone know of an errata for this manual? Any other suggestions or hints are appreciated.

 

Thank you

0 Kudos
Message 1 of 3
(2,694 Views)
Solution
Accepted by topic author bigmig

Hi,

 

I reproduced you error code, it isn't caused by an errata in the manual. Check the line 19 c. it is said that "Now multiply the Exp and In arrays element by element by typing “Out = In.*Exp;” and pressing Enter." 

"Error -90011 occurred at Error in function times at line 4" means that the times function isn't implemented correctly, according to the help  the good syntax is .*

So take a look at your code line 4 and check if the syntax is correct, otherwise replace those symbols byt he function name like in pictures I attached.

 

                   

 

Hopefully this helps.

 

Regards,


 

 

 
 
   
Message Edité par Steve Mohamed le 02-19-2009 04:26 PM
Steve M.
Message 2 of 3
(2,657 Views)

Dear Steve,

 

Thank you for your reply. I did check the expression again, after placing a space between In and .*, it solved the problem.

 

However, if you do try to run the VI that you download from NI's site, the VI still needs to be corrected before it runs.

 

Thank you for your help,

 

Miguel

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