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);
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...