Issue While Making an App in MATLAB 2019a

Post your MATLAB discussions here
Post Reply
ae3007
Newbie
Posts: 0
Joined: Wed Aug 28, 2019 6:48 pm

Issue While Making an App in MATLAB 2019a

Post by ae3007 » Thu Aug 29, 2019 11:34 pm

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

NeilH
PICO STAFF
PICO STAFF
Posts: 148
Joined: Tue Jul 18, 2017 8:28 am

Re: Issue While Making an App in MATLAB 2019a

Post by NeilH » Tue Sep 03, 2019 9:38 am

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
Neil
Technical Support Engineer

vanessakouam
Newbie
Posts: 0
Joined: Thu May 23, 2019 4:32 am

Re: Issue While Making an App in MATLAB 2019a

Post by vanessakouam » Mon Dec 02, 2019 3:54 pm

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
Attachments
fehler_1.PNG
startup_5.PNG
startup_4.PNG
startup_3.PNG
startup_2.PNG
Startup_anfang.PNG

Post Reply