aboutsummaryrefslogtreecommitdiff
path: root/gpib_test.m
diff options
context:
space:
mode:
authorEugeniy Mikhailov <evgmik@gmail.com>2013-11-26 12:45:38 -0500
committerEugeniy Mikhailov <evgmik@gmail.com>2013-11-26 12:45:38 -0500
commit0da7879952fbde69d9f33aa9203435cc5c4200a3 (patch)
treecfff10fe9dfd2fa68398113f54011572ad53f61e /gpib_test.m
parentb48423141ec9e72f7bb50ec926cd6450badb6ee1 (diff)
downloadlinux-matlab-gpib-0da7879952fbde69d9f33aa9203435cc5c4200a3.tar.gz
linux-matlab-gpib-0da7879952fbde69d9f33aa9203435cc5c4200a3.zip
test modified to suit my setup
note it somehow fails to return proper ID
Diffstat (limited to 'gpib_test.m')
-rw-r--r--gpib_test.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/gpib_test.m b/gpib_test.m
index 8ecf3d4..a1097fe 100644
--- a/gpib_test.m
+++ b/gpib_test.m
@@ -2,7 +2,7 @@
%
% get a handle to the oscilloscope from /etc/gpib.conf
%
-hscope = gpib_function('ibfind','LECROY_WR');
+hscope = gpib_function('ibfind','HP8596E');
%% Write a message
%
% Send the *IDN? message to the scope
@@ -14,4 +14,4 @@ fprintf('status = 0x%04X\nwrite_count = %d bytes\n',status,write_count);
% Show the identifier returned by the LeCroy
%
[reply,status,read_count] = gpib_function('ibrdl',hscope,4096);
-fprintf('reply = %s\nstatus = 0x%04X\nread_count = %d bytes\n',strtrim(reply),status,read_count); \ No newline at end of file
+fprintf('reply = %s\nstatus = 0x%04X\nread_count = %d bytes\n',strtrim(reply),status,read_count);