Does the Digilent Toolbox Add-On work with Matlab Library Compiler?
Show older comments
Does the Digilent Toolbox work with the Matlab Library compiler? I'm attempting to deploy a matlab .NET application, but when the deployed application runs the command
AO = daq("digilent")
it returns the exception "Specify an operational vendor" which tells me it doesn't have the Digilent Toolbox info included in the compiled application.
I also don't see Digilent Toolbox in the Suggested Support Packages in the Library Compiler application window.
Here is a link to the toolbox I'm referring to: https://www.mathworks.com/matlabcentral/fileexchange/122817-digilent-toolbox
3 Comments
Vinayak
on 24 Apr 2023
If the question pertains to whether the Digilent toolbox itself can be compiled using the MATLAB Library Compiler, then we unfortunately cannot do it because it is an add-on to MATLAB that provides additional functionality and not a standalone due to which it cannot be compiled on its own.
If you plan to encompass the Digilent Toolbox functions in your MATLAB code, and then compile that code using the MATLAB Compiler, then yes, it is possible. However, you would need to ensure that the Digilent Toolbox is installed on the target machine where the compiled application will run.
Michael Sonnenberg
on 24 Apr 2023
Edited: Michael Sonnenberg
on 24 Apr 2023
Vu Hoang Thang Chau
on 13 Jun 2024
Edited: Vu Hoang Thang Chau
on 13 Jun 2024
Have you found a way to work around this? I actually have the same problem where both
daqlist;
daqvendorlist;
did not list anything in my standalone application at the beginning as well. However, I found a way through to be able to register 'digilent' devices to daqvendorlist by including Session.m, VendorInfo.m and DigilentAdaptor.mex64w into my standalone app package (also run DigilentAdaptor in the startup of the app). However, my app is still not able to find the connected device (by checking with daqlist it shows an empty variable). I've already installed all the required digilent toolbox and waveform driver though. Furthermore, my app runs fine when I exported as a Matlab App.
@Vinayak @MathWorks Support Team Could you help us sort this out? I think I am missing some libraries to include into the standalone package (high chance it might be FTDI library or some API with Waveform driver). I found that many people have similar problems, it would be nice if you could fix this and update official document to help other people out as well. I find Matlab App Designer is a wonderful tool to build simple programs interactively, but the lack of compatibility with other toolboxes is a frustrating experience to me.
I'm using R2023B version fyi.
KR,
Vu.
Answers (0)
Categories
Find more on Get Started with MATLAB Compiler SDK in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!