LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Math interface toolkit problems

I am writing some programs for a customer who uses Matlab, so I intend to use the Math interface toolkit. I have version 1.0.2 of the toolkit, and Labview 8.5.
 
As an evaluation exercise, I have converted some simple vis and sent them to him, along with their dlls:
 
(1) A vi that uses the sound file and output functions to do a simple beep sound.
 This seems to run on his Matlab machine, but does nothing. No errors, nothing.
 
(2) A vi that just multiplies 2 numbers.
 This returns the error "One or more output arguments not assigned during call to "LVMultiply"".
 There is only one output, and it is assigned.
 
My questions:
(1) Anyone have any ideas?!
(2) When I build a Matlab function, I get a message telling me that the target computer should have the Math Interface Toolkit run-time installed. I can find no information about this in the toolkit help file or on ni.com.
 
0 Kudos
Message 1 of 6
(3,417 Views)

Hi there,

I'll answer the runtime question first. The runtime engine is included in the Math Interface Toolkit distribution disk. You should be able to access the exe from the CD you installed the toolkit from. It can probably be included in an installer if you build one from the build specs but I don't currently have the toolkit installed to check.

I'll have to look into the other query but I'll post back when I find something.

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 2 of 6
(3,393 Views)

Hi,

The following document describes a similar error to the one you're getting:

http://digital.ni.com/public.nsf/allkb/55708A4952BDD4A386256E85005720B4?OpenDocument

Sarah

Applications Engineer | National Instruments | UK & Ireland
0 Kudos
Message 3 of 6
(3,383 Views)

I had seen this document, but I assumed that the bug would have been fixed since Labview 7.1!

Also, the comment "Note: This issue arises only after previously installing MIT for LabVIEW 7.0." seems to rule it out, since this is a fresh install of MIT.

Chris

 

0 Kudos
Message 4 of 6
(3,379 Views)
Hi

I have very little experience with the Math Interface Toolkit but have found some information that may be useful. I does look like issue addressed in the above knowledge base article may not be what is causing your issue. This forum thread contains more information that may be useful.

The KB Why Does the MEX-File I Created with the Math Interface Toolkit Appear to Hang The MathWorks, Inc. M... may help you solve the issue with your first VI. I will continue to look into this and post any more info here. Let me know how it goes.

0 Kudos
Message 5 of 6
(3,356 Views)

OK, we have determined that problem (2) was due to the fact that I had not given them the MIT run-time. They have now installed it and the function works. The first problem is still there - the Beep function does not beep. This could be something to do with Matlab interfacing with the sound card I suppose, but it's odd that it does not throw up an error.

Wouldn't it be a good idea to mention the MIT run-time in the MIT help file?!

 

0 Kudos
Message 6 of 6
(3,343 Views)