aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2015-08-11 17:03:25 -0400
committerEugeniy Mikhailov <evgmik@gmail.com>2015-08-11 17:03:25 -0400
commitf6d14fdba9d85067f32d5673a9d9fd7f55017a6a (patch)
tree6d0f70fc0e4e55bdaf5caf21155296121b245d3c
parentb2df59d7a6de9ed618b5b314cfca728df6a1a486 (diff)
downloadlinux-matlab-gpib-f6d14fdba9d85067f32d5673a9d9fd7f55017a6a.tar.gz
linux-matlab-gpib-f6d14fdba9d85067f32d5673a9d9fd7f55017a6a.zip
lgpib: write -> fwrite, to make it matlab compatible
-rw-r--r--lgpib.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/lgpib.m b/lgpib.m
index 0d2010e..fac3bef 100644
--- a/lgpib.m
+++ b/lgpib.m
@@ -20,7 +20,7 @@ classdef lgpib
end
- function [status,write_count] = write(obj,message)
+ function [status,write_count] = fwrite(obj,message)
[gpib_status,gpib_count] = gpib_function('ibwrt',obj.handle,message);
@@ -57,7 +57,7 @@ classdef lgpib
l = 8192;
end
- obj.write(message);
+ obj.fwrite(message);
reply = obj.read(l);
end
@@ -96,4 +96,4 @@ classdef lgpib
end
end
- \ No newline at end of file
+