Deploying Standalone Application with Matlab | LabJack
 

Deploying Standalone Application with Matlab

2 posts / 0 new
Last post
RJ87
rjho87's picture
Deploying Standalone Application with Matlab

Hi,

I build a simple GUI dashboard with Matlab. I can both control I/O and read from analogs from the UI with Matlab.

However, it doesn't work as standalone after deploying with Matlab application compiler.

I have included the main file with the .m. The files required for the application to work are the .fig and the .dll file.

Upon completion, the UI does pop up. But the button and everything else aren't working.

Any pointers on how to solve this will be great. Thanks.

File Attachment: 
LabJack Support
LabJack Support's picture
LabJack.LJM.dll is only the

LabJack.LJM.dll is only the .NET interface to the LJM library. There are more dlls and files for the LJM library to function. For deployment, at least the "Minimal Install" files mentioned here (minus the .lib file) need to be on the system:

https://labjack.com/support/software/api/ljm/troubleshooting-faq/what-lj...

Also, before usage an "inf" needs to be installed on the system (in Program Files (x86)\LabJack\Drivers\Install).

For distributing the needed LJM drivers and files, it would be easiest to distribute and run our minimal installer, which can be ran silently (mentioned in the download's details):

https://labjack.com/support/software/installers/ljm/minimal-ljm-installers

We also have an example installer for making your own installer that distributes LJM files:

https://github.com/labjack/windows_example_installer

If you do have the required LabJack libraries/files installed on your system, are there any errors during MATLAB compilation, or when you press the button.