How to use addpath in GUI compiled matlab code

I have created a GUI that uses the PICO SDK. I compiled to run as standalone but it doesn't work. It seems to be a problem with the command addpath. I ask for your help.
=======================================================
=== MY code
if (~isdeployed)
addpath('C:\Program Files\PICO_SDK\nstrument_driver_1114d2c')
addpath('C:\Program Files\PICO_SDK\support_toolbox_cebd652')
end
============================================================

댓글 수: 2

so your code is especially not using addpath if the application is standalone? Is it a desired behavior?
Does the SDK comprises only of Matlab code ?
If so, just addpath in the matlab console, before compiling. The compiler will find and link all the necessary code for you.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 Call MATLAB from C에 대해 자세히 알아보기

제품

릴리스

R2019b

질문:

2019년 12월 17일

댓글:

2019년 12월 30일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by