From daebfe9b29ad35c56617e5b676fff4c0606276ad Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 11 Aug 2015 18:08:12 -0400 Subject: Added close to close file in windows --- E440a_take_data.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/E440a_take_data.m b/E440a_take_data.m index e62a2fe..112e8b6 100644 --- a/E440a_take_data.m +++ b/E440a_take_data.m @@ -128,7 +128,8 @@ sweep_time_string = query(obj1, ':SENSE:SWEEP:TIME?'); %% Disconnect from instrument object, obj1. if ispc -fclose(obj1); + % windows needs to close the file + fclose(obj1); end %disp('Spectrum Analyzer data communincation is done'); -- cgit v1.2.3