aboutsummaryrefslogtreecommitdiff
path: root/E440a_take_data.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2015-08-11 18:08:12 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2015-08-11 18:08:12 -0400
commitdaebfe9b29ad35c56617e5b676fff4c0606276ad (patch)
tree48ee0d9a101dac16029dcc694508a238bc4dd84a /E440a_take_data.m
parente96ff33859dffcb66902e352e05769f2528a1662 (diff)
downloadlinux-matlab-gpib-daebfe9b29ad35c56617e5b676fff4c0606276ad.tar.gz
linux-matlab-gpib-daebfe9b29ad35c56617e5b676fff4c0606276ad.zip
Added close to close file in windows
Diffstat (limited to 'E440a_take_data.m')
-rw-r--r--E440a_take_data.m3
1 files changed, 2 insertions, 1 deletions
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');