diff --git a/PIVlab_capture_resources/PIVlab_capture_pco.m b/PIVlab_capture_resources/PIVlab_capture_pco.m index 57b0aa1..f25238d 100644 --- a/PIVlab_capture_resources/PIVlab_capture_pco.m +++ b/PIVlab_capture_resources/PIVlab_capture_pco.m @@ -28,7 +28,9 @@ %% delete data in image directory, manage rcordfiles filePattern = fullfile(ImagePath, 'PIVlab_pco_Cam*.tif'); -diskchar='C:\\'; +pathparts = strsplit(filePattern,filesep); +diskchar = [pathparts{1} filesep]; +%diskchar='C:\\'; if triggermode==2 && ~isinf(imacount) %external Trigger, with the desire to save direc= dir(filePattern); filenames={};