Tektronix Technical Forums are maintained by community involvement. Feel free to post questions or respond to questions by other members. Should you require a time-sensitive answer, please contact your local Tektronix support center here.
I'm using Keithley 2400 with MATLAB over GPIB to do a current sweep and read back voltages. When I run the code, it does the sweep and displays the voltages on the front panel (and no errors) but I'm having trouble reading back the data from the front panel to MATLAB. Here is the part of the code I do the buffer reading:
fprintf(K2400,'TRAC:FEED SENS'); %PUT RAW READINGS IN BUFFER
fprintf(K2400,'TRACE:POINTS 10'); %10 point sweep/read
fprintf(K2400,'TRAC:DATA?') %READ CONTENTS OF BUFFER
V = fscanf(K2400)
What I get for V is
which is more than 10 values and not what is displayed on the front panel.
If you only want to record the voltage then you would want to use the :FORM:ELEM command to select the type of data to collect.
For example :FORM:ELEM VOLT would only collect voltage for each triggered reading.
Who is online
Users browsing this forum: No registered users and 7 guests