From 0da7879952fbde69d9f33aa9203435cc5c4200a3 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Tue, 26 Nov 2013 12:45:38 -0500 Subject: test modified to suit my setup note it somehow fails to return proper ID --- gpib_test.m | 4 ++-- 1 file 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); -- cgit v1.2.3