Verfasst am: 05.08.2013, 17:02
Titel: Image acquisition toolbox stürzt bei getsnapshot ab
Hi,
Ich habe mal die Suche beansprucht und auch was passendes gefunden jedoch wurde dort kein Lösung für mein Problem gepostet, nun noch einmal.
Das Problem liegt darin, dass nach einiger Zeit mein Programm abstürzt während getsnapshot mit folgendem crash-file:
MATLAB crash file:C:\Users\Andreas\AppData\Local\Temp\matlab_crash_dump.7380-1:
------------------------------------------------------------------------
(unknown signal) detected at Mon Aug 05 10:23:18 2013
------------------------------------------------------------------------
Configuration:
Crash Decoding : Disabled
Default Encoding: windows-1252
MATLAB Root : G:\Program Files\Matlab2012b
MATLAB Version : 8.0.0.783 (R2012b)
Operating System: Microsoft Windows 7
Processor ID : x86 Family 6 Model 58 Stepping 9, GenuineIntel
Virtual Machine : Java 1.6.0_17-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
Window System : Version 6.2 (Build 9200)
Fault Count: 1
Abnormal termination:
(unknown signal)
Register State (from fault):
EAX = 4a1cf7e0 EBX = 00000000
ECX = 00000003 EDX = 00000000
ESP = 4a1cf7e0 EBP = 4a1cf83c
ESI = 4a1cf8fc EDI = 4a1cf8fc
EIP = 770e4b32 EFL = 00000212
CS = 00000023 DS = 0000002b SS = 0000002b
ES = 0000002b FS = 00000053 GS = 0000002b
%Offset y-axis(49°*3600''/°+7'*60''/'+24.34') latitude
y0= [176844.34,176844.34, 176844.34];
%Declaration of magnetic north pole in seconds (83° 57' 0''N, 120° 43'
%12''W)
x0_magNP = 120*3600+43*60+12; %Longitude
y0_magNP = 83*3600+57*60; %Latitude
%Random number for simulation of HDOP(Horizontal dilution of precision)
%formatted in String
HDOP = random('Poisson',0,50); %Poisson formore values in better regions
HDOPstr = sprintf('%1.2',HDOP);
% Calculation of traveled distance [m]
distance(j) = sqrt((x2(j)-x1(j)).^2+(y2(j)-y1(j)).^2);
%Calculation of Moving direction (angle in °)
alpha(j) = atan(sqrt(distance_y(j)^2)/sqrt(distance_x(j)^2));
alpha(j) = alpha(j)*360/(2*pi);
if distance_x(j)<0
alpha(j) = 180-alpha(j);
end switch j
case1
alphastr1=sprintf('%1.1f',alpha(1));
case2
alphastr2=sprintf('%1.1f',alpha(2));
case3
alphastr3=sprintf('%1.1f',alpha(3));
end
%Calculation of magnetic course
distance_x_O_NP = x0_magNP+x0(j);
distance_y_O_NP = y0_magNP-y0(j);
beta(j) = atan(distance_y_O_NP/distance_x_O_NP);
switch j
case1
betastr1=sprintf('%1.1f',beta(1));
case2
betastr2=sprintf('%1.1f',beta(2));
case3
betastr3=sprintf('%1.1f',beta(3));
end
%Calculation of velocity [m/s]
veloc(j) = distance(j)/duration;
%Calculation of velocity [km/h]
velockmh(j) = veloc(j)*3.6;
switch j
case1
velockmhstr1=sprintf('%1.1f',velockmh(1));
case2
velockmhstr2=sprintf('%1.1f',velockmh(2));
case3
velockmhstr3=sprintf('%1.1f',velockmh(3));
end
%Calculation of velocity [Knoten]
velockt(j) = veloc(j)*1.9438612860586;
switch j
case1
velocktstr1=sprintf('%1.1f',velockt(1));
case2
velocktstr2=sprintf('%1.1f',velockt(2));
case3
velocktstr3=sprintf('%1.1f',velockt(3));
end
%Distance in x and y [m]
distance_x(j)=x2(j)-x1(j);
distance_y(j)=y2(j)-y1(j);
%Calculation of position in angle seconds['']
%
x0(j) = x0(j) + distance_x(j)*0.0323/cos(lat_d(j)*(2*pi)/360);
%
y0(j) = y0(j) + distance_y(j)*0.0324;
%Position convertion in degree of latitude
lat_d(j) = floor(y0(j)/3600);
lat_m(j) = (y0(j)-floor(y0(j)/3600)*3600)/60;
%Convertion into GPS format switch j
case1
%Velocity isnt in the right format(velockt)
%Generating of the GMPRMC for Object 1 if num1 == 1
GPRMCred=strcat('$GPRMC,',time2,',',status,',',num2str(lat_d(1)),num2str(lat_m(1)),',N,',...
long_d_str1,num2str(long_m(1)),',E,',velocktstr1,',',alphastr1,',',... date,',,,');
disp(GPRMCred);
fprintf('\n');
%Generating of the GPGGA for Object 1
GPGGAred=strcat('$GPGGA,',time2,',',status,',',num2str(lat_d(1)),num2str(lat_m(1)),',N,',...
long_d_str1,num2str(long_m(1)),',E,','0,,',HDOPstr,',,,,,,');
%Generating of th GPVTG for Object 1
GPVTGred = strcat('$GPVTG,',alphastr1,',T,',betastr1,',M,',velocktstr1,',N,',...
velockmhstr1,',K');
end
%Velocity isnt in the right format(velockt)
%Generating of the GMPRMC for Object 2 if num2 == 1
GPRMCgreen=strcat('$GPRMC,',time2,',',status,',',num2str(lat_d(2)),num2str(lat_m(2)),',N,',...
long_d_str2,num2str(long_m(2)),',E,',velocktstr2,',',alphastr2,',',... date,',,,');
disp(GPRMCgreen);
fprintf('\n');
%Generating of the GPGGA for Object 2
GPGGAgreen=strcat('$GPGGA,',time2,',',status,',',num2str(lat_d(2)),num2str(lat_m(2)),',N,',...
long_d_str2,num2str(long_m(2)),',E,','0,,',HDOPstr,',,,,,,');
%Generating of th GPVTG for Object 2
GPVTGgreen = strcat('$GPVTG,',alphastr2,',T,',betastr2,',M,',velocktstr2,',N,',...
velockmhstr2,',K');
end case3
%Velocity isnt in the right format(velockt)
%Generating of the GMPRMC for Object 3 if num3==1
GPRMCblue=strcat('$GPRMC,',time2,',',status,',',num2str(lat_d(3)),num2str(lat_m(3)),',N,',...
long_d_str3,num2str(long_m(3)),',E,',velocktstr3,',',alphastr3,',',... date,',,,');
disp(GPRMCblue);
fprintf('\n');
%Generating of the GPGGA for Object 3
GPGGAblue=strcat('$GPGGA,',time2,',',status,',',num2str(lat_d(3)),num2str(lat_m(3)),',N,',...
long_d_str3,num2str(long_m(3)),',E,','0,,',HDOPstr,',,,,,,');
%Generating of th GPVTG for Object 3
GPVTGblue = strcat('$GPVTG,',alphastr3,',T,',betastr3,',M,',velocktstr3,',N,',...
velockmhstr3,',K');
end end end fprintf('\n\n');
%Acquisition limit
disp(picID);
if counter==200
stop(vid);
pause(0.01);
counter=0;
start(vid);
end
ich hoffe ihr könnt mir hier etwas helfen, das Programm sollte eigentlich while(1) laufen bzw while(trigger) die picID ist im moment nur vorhanden um eben die Dauer ein bisschen zu begrenzen.
Du kannst Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum antworten. Du kannst deine Beiträge in diesem Forum nicht bearbeiten. Du kannst deine Beiträge in diesem Forum nicht löschen. Du kannst an Umfragen in diesem Forum nicht mitmachen. Du kannst Dateien in diesem Forum posten Du kannst Dateien in diesem Forum herunterladen
MATLAB, Simulink, Stateflow, Handle Graphics, Real-Time Workshop, SimBiology, SimHydraulics, SimEvents, and xPC TargetBox are registered trademarks and The MathWorks, the L-shaped membrane logo, and Embedded MATLAB are trademarks of The MathWorks, Inc.