LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview to Matlab interface

I have a running Labiew program and a working Matlab program to evalute the data generated by Labview. I am looking for a way to add a button to the Labview screen that will automatically run the Matlab program after the data is generated.
0 Kudos
Message 1 of 16
(7,873 Views)
You can use the ActiveX API of MatLab to do this. This is discussed in this thread:
http://forums.ni.com/ni/board/message?board.id=170&message.id=134678&requireLogin=False

Hope this helps!
0 Kudos
Message 2 of 16
(7,864 Views)

Andre,

Thanks for the help. I went to the link you suggested and tried the example there. I was unable to get the example to work properly. My guess is that my version of Matlab 7 (R14) don't have the Active X upgrade.

I searched my Matlab, can you tell me how to determine if I have the Active X upgrade, please?

If I have it, how do I make it work?

Is there a way to get it (free)?

The place I am working for the summer has only limited resources for me.

Thank you,

karlsruhe

0 Kudos
Message 3 of 16
(7,852 Views)
hey guys, im trying to do the same thing..but I'm having trouble because the control for the activex is not registered. have you found a solution to do this?

thanks,

erique
0 Kudos
Message 4 of 16
(7,795 Views)
Hiii,
 
                   First of all i will suggest both of you guys to use MATLAB scrpit inside the LabVIEW to write your MATLAB programme script, another issue is, there is a lack of communication in the LabVIEW and MATLAB in the version 7, so you people wont be able to do your task even if you use ACTIVEX, so it is recommended that you use version 8 or something, in the version 8 this bug has been sorted out by the NI.
 
              Even i was facing the same problem of communication gap in this two (i was not using the ACTIVEX though), but when i use the version 8, i have done my same program to run.
 
Thanks,
Nishant
0 Kudos
Message 5 of 16
(7,787 Views)
hi nishant,

thanks for replying btw. anyway, i can't use the srcript node because its functionality is very limited.  there are some things that I am doing that can't be done with a script node.  also, I am using matlab version 7.0.1(R14) and labview 8.2.  when u said it works for version 7, did u mean matlab or labview? how did u manage to make it work? im having trouble with the registry because it gives me an error that it says that the "class is not registered".  Any input would be much appreciated!

Thanks,

erique
0 Kudos
Message 6 of 16
(7,768 Views)

Dear Enrique,

             By the version 7 i mean for LabVIEW, we were using the LabVIEW 7.1 and even we were using the MATLAB version 7.1, so i think that was creating problems, but as we taken the new version of LabVIEW, that is 8.0  then it works for us and we have written the script in the LabVIEW script itself.

           By your problem, i think the problem is with your code, that is something you are accessing in the LabVIEW from the MATLAB which is not defined.

Hope this helps.

Thanks,

Nishant

0 Kudos
Message 7 of 16
(7,748 Views)
Dear Nishant,

I figured out the problem.  I kept on copying and pasting the automation reference icon so it still points to the old vi.  I fixed it and now it works fine. 

Thanks

Erique
0 Kudos
Message 8 of 16
(7,722 Views)

Hiii Enrique,

          Glad to see this, that you have fixed the problem, and i think there is no problems in the LabVIEW-MATLAB communication with the version 8.2, right???

Thanks,

Nishant

0 Kudos
Message 9 of 16
(7,717 Views)
Hi Nishant,

As far as i know, there are no problems.  Btw, I am using matlab version 7.3 and labview 8.2 so i think the bugs have already been fixed for these versions.


Thanks,
Erique
0 Kudos
Message 10 of 16
(7,705 Views)