LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab

I want to execute the "open" command in CVI to open a file which existes in Matlab .
How to use "MLApp_DIMLAppExecute" function to carry out my idea?
My CVI version is 7.0 and my Matlab version is 6.5.
Thanks for your help!
0 Kudos
Message 1 of 5
(3,691 Views)
Hello linfeng413,

I would suggest taking a look at the Matlab ActiveX shipping example located at \samples\activex\matlab\matlabdemo. If you open the matlabutil.c source file, you will see a function that uses the MLApp_DIMLAppExecute function. This function is called RunMatlabCommand and should be a good starting place for your application.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
0 Kudos
Message 2 of 5
(3,667 Views)
Thanks for your help!
But now I want to know if the use of this function have something to do with whether I have installed the Windows SDN in CVI.
If I have not installed it ,can I use the function correctly?
0 Kudos
Message 3 of 5
(3,656 Views)
Hello linfeng413,

You should be able to use the function independent of whether or not you have the Windows SDK installed. What you need is Matlab installed, and if you have problems running the Matlab shipping example, I would suggest recreating the Matlab ActiveX controller by going to Tools >> Create ActiveX Controller.

Thanks.
Wendy L
LabWindows/CVI Developer Newsletter
Message 4 of 5
(3,647 Views)
Thanks for your help very much !
With the method that you provided,I have solved the problem perfectly !
0 Kudos
Message 5 of 5
(3,638 Views)