Hi community,
I try to parse a .r64/.dat file (exported from DEWESoft) in MatLab.
Online I found a function which was implented exclusively for this usecase.
If I run this script I get a critical error. The function needs to know where a channel begins/ends (listed below).
elseif strcmp(ImpExp,'IMPLICIT') && step > 0 % Kanal mit konstanter Schrittweite (z.B. Zeit) variable.(name) = [] ; variable.(name)(:,1) = wert_start:step:wert_ende ;
Belong to this Article I saw that I have to change the Parameters to get the Start-Pointer of the first value in the channel (Index 240,221,...).
My exported .dat-file does not store the end-value of the channel.
end % --------- IMPLICIT oder EXPLIZIT --------- if strncmp(zeilen(nn),'210',3) ImpExp = zeilen{nn}(5:end); end % --------- Kanallaenge --------- if strncmp(zeilen(nn),'220',3) laenge = str2double(zeilen{nn}(5:end)); end % --------- Startzeile --------- if strncmp(zeilen(nn),'221',3) channelstart = str2double(zeilen{nn}(5:end)); end % --------- Schrittweite --------- if strncmp(zeilen(nn),'241',3) step = str2double(zeilen{nn}(5:end)); end % --------- Startwert --------- if strncmp(zeilen(nn),'250',3) wert_start = str2double(zeilen{nn}(5:end)); end % --------- Endwert --------- if strncmp(zeilen(nn),'251',3) wert_ende = str2double(zeilen{nn}(5:end)); end
#BEGINCHANNELHEADER 200,Time 201,Data 202,s 210,IMPLICIT 220,137 240,0 241,1 253,increasing 260,Numeric #ENDCHANNELHEADER
Does anyone know how to solve this problem?
Regards
Daniel