diff --git a/load_cd_events.m b/load_cd_events.m index e8f4145..532ef01 100644 --- a/load_cd_events.m +++ b/load_cd_events.m @@ -4,7 +4,7 @@ % Loads data from files generated by the StreamLogger consumer for any type % of event. This function only read (t,x,y,p) and discard other fields (if % any) of events. -% timestamps are in uS +% timestamps are in us % cd_data is a structure containing the fields ts, x, y and p % % flipX, flipY allow to flip the image around the X and Y axes. If these values @@ -50,9 +50,9 @@ evSize = 8; if (numCommentLine>0) % Ensure compatibility with previous files. % Read event type - evType = fread(f,1,'char'); + evType = fread(f,1,'uint8=>char'); % Read event size - evSize = fread(f,1,'char'); + evSize = fread(f,1,'uint8=>char'); end diff --git a/load_ext_trigger_data.m b/load_ext_trigger_data.m index f5b8e22..17da727 100644 --- a/load_ext_trigger_data.m +++ b/load_ext_trigger_data.m @@ -3,7 +3,7 @@ % % Loads data from files generated by the StreamLogger consumer for EventExtTrigger % events [ts,x,y,p,id]. -% timestamps are in uS +% timestamps are in us % ext_trigger is a structure containing the fields ts, x, y, p and id f=fopen(filename); @@ -37,9 +37,9 @@ evSize = 8; if (numCommentLine>0) % Ensure compatibility with previous files. % Read event type - evType = fread(f,1,'char'); + evType = fread(f,1,'uint8=>char'); % Read event size - evSize = fread(f,1,'char'); + evSize = fread(f,1,'uint8=>char'); end