LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab and Labview executables

I'm trying to build a stand alone labview executable that incorporates matlab code. Ideally I only want to install the runtimes for matlab and labview onto the target PC's (so basically I don't have to give full copies of the software to the clients) so I am trying to get both matlab and LV to build into a single exe file. However this seems to be easier said than done. As a simple experiment I tried building an LV app that incorporates matlab script to an exe, but it will not run (and this is on a PC with matlab installed) - not a promising start! I've also tried building the matlab code to a dll and incorporating this into LV but again it refuses to run - other threads on here suggest similar problems.

So, basically, does anyone have any idea how I can achieve a single standalone application, written in labview that incorporates all my matlab scripts too?

Many thanks
0 Kudos
Message 1 of 4
(3,183 Views)
Hi There

You don't mention the software version of LabVIEW you are using.

With older versions there is a KB which explains how to get this working:

http://digital.ni.com/public.nsf/websearch/CCB969868C2946608625673E0077D841?OpenDocument

What actually happens when you try to run the executable? Do you have error handling setup and if so is any error message given?

SimonS
0 Kudos
Message 2 of 4
(3,175 Views)

Hi Simon,

I hope you don't mind me jumping in.  I actually have experienced the same problems.  I am using LabVIEW 7.1.1 with MatLAB 7.0.  When I build the application and try to open it up, the LabVIEW rectangle on the task bar shows up, but I cannot maximize or open it.  No error message shows, it just freezes and I must terminate LV.  Th eonly option I have (right click on taskbar) is to close the program- minimize, maximize are all grayed out.  I have attached a very simple program that I attempted to build into an .exe.  Please let me know if you were successful.

Thanks,

Ivanka Slywynska

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

I have read teh link yo posted and I have tried teh following:

1) put matscript.dll into a file called scripts
2) built .exe a) adding matscript.dll as a support file and b)not doing so as the link advised

Either way, I had no luck with the exe!

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