I'm failing to get more than the initial scan reading when trying to download data from the DMM buffer through the KUSB-488B interface. I don't generate any error messages, but I only get the initial reading in the data buffer repeatedly written to my file "dmm_reading.txt".
I'm a novice to SCPI and suspect that the "read" command may not be the best one to use for a buffer dump. Please help me with some sample code that works! Thanks,
Tom (Univ. of Vermont)
Code: Select all
% Find a GPIB object.
obj1 = instrfind('Type', 'gpib', 'BoardIndex', 0, 'PrimaryAddress', 16, 'Tag', '');
% Create the GPIB object if it does not exist
% otherwise use the object that was found.
obj1 = gpib('Keithley', 0, 16);
obj1 = obj1(1)
%define file to write data to.
%define configuration variables
% Configure instrument object, obj1
set(obj1, 'EOSMode', 'read&write');
%remotely configure the instrument settings
%read data from DMM (recall) data buffer
% Disconnect from instrument object, obj1.
% Clean up all objects.
%clear the data from the workspace'