GUI STANDALONE NOT WORKING WELL

HI, I've created a GUI (on windows XP) which uses serial communication with an external system. running it on my computer with the matlab installed 2012A everything works well.
run DEPLOYTOOL and entered the m file and the fig file. got a FOLDER with 2 subdolders: distr and src. NOR SURE OF THE DIFFERENCE as they both have an EXE file
i downloaded an MCR for 2012a from mathworks and installed it on another computer.(windows 7)
launched the EXE file. connected the serial communication and when i try to use different buttons i get like an ERROR SOUND BEEP and accordingly nothing happens...
tried it on a 3'rd computer (windows 10) same problem
any ideas?

7 Kommentare

i think i narrowed down the issue to the following command when calculating messages CRC:
hGEN=comm.CRCGenerator(ox8005_poly)
msg=reshape(de2bi(x,8,'left-msb',length(x)*8,1);
encoded=step(hGEN,msg);
i think its the step and crcgenerators... what should i do?
Adam
Adam am 27 Jul. 2016
If you run from the command line or build it with a log file you can see the error message that goes with the beep either in the command window or in the log file.
Daniel
Daniel am 27 Jul. 2016
Bearbeitet: Walter Roberson am 27 Jul. 2016
i ran from the cmd, got:
G:\YASH_TEST\distrib>Error using compSetParameters
Unable to load
C:\Users\NirOr\AppData\Local\Temp\NirOr\mcrCache7.17\YASH_T1\toolbox\comm\commutilities\commmex\mcomcrcgen.mexw32
[error:
C:\Users\NirOr\AppData\Local\Temp\NirOr\mcrCache7.17\YASH_T1\toolbox\comm\commutilities\commmex\mcomcrcgen.mexw32
is not a valid Win32 application.
]
Error in
C:\Users\NirOr\AppData\Local\Temp\NirOr\mcrCache7.17\YASH_T1\toolbox\comm\comm\+comm\CRCGenerator.p>CRCGenerator.setParameters
(line 140)
Error in rs232_gui>READ_YASH_Callback (line 546)
Error in gui_mainfcn (line 96)
Error in rs232_gui (line 20)
Error in
@(hObject,eventdata)rs232_gui('READ_YASH_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating uicontrol Callback
Adam
Adam am 27 Jul. 2016
Well, I have no idea what that mex file is, but it sounds like it is invalid for whatever reason.
Daniel
Daniel am 27 Jul. 2016
Bearbeitet: Daniel am 27 Jul. 2016
The gui works fine on the computer which had matlab installed...
I am guessing its some kind of missing library or toolbox in the package made by the deploytool.... But i dont know how to fix it...
Adam
Adam am 27 Jul. 2016
Is the mexw32 itself included in the deployment? I notice it is a 32-bit mexw32 which could be the problem. I'm not too familiar with 32-bit vs 64-bit and what is compatible with what, but I think Matlab stopped support for 32-bit in a recent release of the software.
Daniel
Daniel am 27 Jul. 2016
I am using matlab 2012a... I have no idea whats the problem and if it really is a matter of 32 vs 64.
I have a feeling that the step command i use is the problem. Doas Anyone has a clue? Help...

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Walter Roberson
Walter Roberson am 27 Jul. 2016

0 Stimmen

In situations such as this it is common for the problem to turn out to be a missing Microsoft Runtime Redistributable. You would typically use a program such as Dependency Walker to track down what is required.

7 Kommentare

Daniel
Daniel am 28 Jul. 2016
Bearbeitet: Daniel am 28 Jul. 2016
Thanks, so i ran the dependency walker... lot's of errors... but i have no idea where to go from here...
Error: At least one required implicit or forwarded dependency was not found.
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Warning: At least one delay-load dependency module was not found.
Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.
example: API-MS-WIN-CORE-ATOMS-L1-1-0.DLL was not found... what do i need to do?
Daniel
Daniel am 28 Jul. 2016
from the link i understand that they are not really missing and its like a false non relevant alarm.... in that case it doesn't help me...i'm still facing a problem... i am pretty sure that the MATLAB STEP command i use is causing the problem... wow i am stuck
Daniel
Daniel am 28 Jul. 2016
Bearbeitet: Daniel am 28 Jul. 2016
i have 3 computers:
A win XP with matlab 2012a
B win 10 with matlab 2012a
c WIN 10 no matlab
creating EXE file on comp A:
run on A
not running at all! on comp B
error while running on comp C
creating EXE file on comp B:
running and working on A
running and working on B
not running at all on c...
what is going on?!?! help :)
Daniel
Daniel am 30 Jul. 2016
Bearbeitet: Daniel am 30 Jul. 2016
Hi sory for the bump...Does Anyone have a sugestion? My next step is to try and write the crc function myself as i suspect that the problem is caused by the step command used with the comm.crcgenerator
Daniel
Daniel am 31 Jul. 2016
i keep updating this post for the people who will encounter the same problem. i wrote the CRC function myslef, i.e. not using the STEP command. now to executable seems to work on other computers.
the issue now is that the EXE works fine when i run it from a prompt command but doesn't work well when i run it from the windows...
Daniel
Daniel am 1 Aug. 2016
Bearbeitet: Daniel am 1 Aug. 2016
hopefully last update, made the executable from a 2015 matlab version on a 64bit computer and now it runs on a 64bit computer with no matlab... not sure why all the mess, not sure why a 32bit comp generating EXE will run on some 64bit comps and others wont... a lot of chaos and uncertainty, mainly a trial and error approch

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Get Started with MATLAB finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 27 Jul. 2016

Bearbeitet:

am 1 Aug. 2016

Community Treasure Hunt

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

Start Hunting!

Translated by