Hi,
I have a script that runs well. I try copying and pasting it into the app. This does not work. It seems if I have run it as a script before I open the app, the app works. If I open MATLAB and run the app, this does not work. The error I get is below. I think it has to do with loading libraries. Any thoughts?
Operation failed: An error occurred while executing the driver disconnect code.
Dot indexing is not supported for variables of this type.
If this error is not an instrument error, use MIDEDIT to inspect the driver.
Error in icdevice (line 311)
delete(obj);
Thanks,
Adam
The error seems to come from this section of the initialization part of the .mdd:
init(obj)
if(ispc)
[ps2000NotFound, ps2000Warnings] = loadlibrary('ps2000.dll', @ps2000MFile);
elseif(ismac)
[ps2000NotFound, ps2000Warnings] = loadlibrary('libps2000.dylib', @ps2000MFile, 'alias', 'ps2000');
elseif(isunix)
[ps2000NotFound, ps2000Warnings] = loadlibrary('libps2000.so', @ps2000MFile, 'alias', 'ps2000');
else
% Do nothing
end
end
% Only load library once
if(libisloaded('ps2000Wrap'))
% Do nothing
else
if(ispc)
[ps2000NotFound, ps2000Warnings] = loadlibrary('ps2000Wrap.dll', @ps2000WrapMFile);
elseif(ismac)
[ps2000NotFound, ps2000Warnings] = loadlibrary('libps2000wrap.dylib', @ps2000WrapMFile, 'alias', 'ps2000Wrap');
elseif(isunix)
[ps2000NotFound, ps2000Warnings] = loadlibrary('libps2000Wrap.so', @ps2000WrapMFile, 'alias', 'ps2000Wrap');
else
% Do nothing
end
end
Issue While Making an App in MATLAB 2019a
Re: Issue While Making an App in MATLAB 2019a
Hi
Are you able to post your app code so that I can have a look what is going on and try to reproduce the issue?
Neil
Are you able to post your app code so that I can have a look what is going on and try to reproduce the issue?
Neil
Neil
Technical Support Engineer
Technical Support Engineer
-
- Newbie
- Posts: 0
- Joined: Thu May 23, 2019 4:32 am
Re: Issue While Making an App in MATLAB 2019a
Hello i am Vanessa and i have the same issue with my code i can send you pictures of my startup function with the error message. i dont know what to de