Hi all,
I've been struggling with the polling the 53132A through the GPIB interface to see if it has completed a measurement. I finally have a working solution, but I would like some input to see if there is a better way of polling the device. I am triggering off of an external input at running at 50Hz.
' *Setup*
:FREQ:ARM:STAR:SOUR ext
:FREQ:ARM:STOP:SOUR imm
*SRE 128
*ESE 32
:STAT:OPER:PTR 0; NTR 16
:STAT:OPER:ENABLE 16
:INIT:CONT ON
' *Check for measurement complete*
ibwait(FCAddress, 0);
if( ThreadIbsta() & 0x1000 )
Trigger()
Receive()
Thanks
Richard
Edited by: RvB on Jan 15, 2015 11:23 AM
I've been struggling with the polling the 53132A through the GPIB interface to see if it has completed a measurement. I finally have a working solution, but I would like some input to see if there is a better way of polling the device. I am triggering off of an external input at running at 50Hz.
' *Setup*
:FREQ:ARM:STAR:SOUR ext
:FREQ:ARM:STOP:SOUR imm
*SRE 128
*ESE 32
:STAT:OPER:PTR 0; NTR 16
:STAT:OPER:ENABLE 16
:INIT:CONT ON
' *Check for measurement complete*
ibwait(FCAddress, 0);
if( ThreadIbsta() & 0x1000 )
Trigger()
Receive()
Thanks
Richard
Edited by: RvB on Jan 15, 2015 11:23 AM