Measure voltage with 2182A using Matlab

2000, 2001, 2002, 2010, 2100, 2110
Post Reply
ilanha
Posts: 1
Joined: July 4th, 2016, 5:33 am
Country: United States

Measure voltage with 2182A using Matlab

Post by ilanha » July 4th, 2016, 5:41 am

Hi,

My measurement system includes a 2182A nanovoltmeter and I'm trying to meausre voltage with it using matlab (connected through GPIB).

I tried the following:

Code: Select all

fprintf(nV_obj,'*RST');
fprintf(nV_obj,':SYST:AZER:STAT OFF');  
fprintf(nV_obj,':TRACE:CLEAR');
fprintf(nV_obj,':TRACE:POINTS 100');
fprintf(nV_obj,':TRAC:FEED:CONT NEXT') 
fprintf(nV_obj,':TRAC:DATA?'); 
reading=fscanf(nV_obj);
But I get an error:
Warning: Unsuccessful read: GPIB: NI: An I/O operation has been canceled mostly likely due to a timeout.

I also tried to use 'READ?' but I got about 0.1 mV when it is suppose to be almost zero (I know because when I do the measurement without matlab, that's what I get).

Would be glad to get some help...

Dale C
Keithley Applications
Keithley Applications
Posts: 2827
Joined: June 10th, 2010, 6:22 am
Country: United States
Contact:

Re: Measure voltage with 2182A using Matlab

Post by Dale C » July 12th, 2016, 7:59 am

Your code is setting up the TRACE buffer. But I see no trigger to take the data.
TRACE:DATA? is the command to retrieve the data but there is no data because of no trigger.

Post Reply

Return to “Series 2000 and Series 2100 DMM's”

Who is online

Users browsing this forum: No registered users and 1 guest