python - PyVISA IV sweep with Keithley -
i'm trying iv curve measurement keithley , pyvisa. found matlab example on keithley website, there's 1 section not understand.
% used serail poll function wait srq val = [1]; % 1st instrument in gpib object, not gpib add spoll(obj1,val); % keep control until srq fprintf(obj1,':trac:data?')
what serial poll function do? , don't have spoll
function in pyvisa, i?
serial polling implemented in higher-level drivers. repeated querying scpi *stb? or equivalent bus command.
pyvisa's read_stb(vi)
calls visa's vireadstb(vi)
. can own polling.
edit:
read_stb pyvisa's low-level module. use low-level calls need pass vi field obtained instrument object.
there example here sure use appropriate scpi commands instrument , status model.
status polling depends on status , event registers being set before measurements start. can set instrument indicate samples available or measurement complete.
if bus gpib (ieee 488.2) pyvisa's wait_for_srq function work because, on gpib, srq 1 of bus signals. code shown in example.
Comments
Post a Comment