hi all,
i'd like to talk about OPC and ESR.
what i undersatnd is about OPC is after operation complete and it will process next step.
and ESR is different. before operation complete it will move to another part.
one of my colleague using ESR? command before test.
and if it return 1 then break the loop and go to next step.
but my agilent equipment always return zero..
so i changed to OPC? command.
but i want use ESR? command. there's anyway to solve this problem.??
and could you explain more detail about ESR? command.?
some equipment return zero when i send ESR? command..
but some equipment return 1 ...
is it difference version problem??
thanks
i'd like to talk about OPC and ESR.
what i undersatnd is about OPC is after operation complete and it will process next step.
and ESR is different. before operation complete it will move to another part.
one of my colleague using ESR? command before test.
and if it return 1 then break the loop and go to next step.
but my agilent equipment always return zero..
so i changed to OPC? command.
but i want use ESR? command. there's anyway to solve this problem.??
and could you explain more detail about ESR? command.?
some equipment return zero when i send ESR? command..
but some equipment return 1 ...
is it difference version problem??
thanks
*ESR? query retursn snapshot of standard event status register. Depending on the instrument's condition, it can return different value. If you get 1 for *ESR? query, it means bit 0 is enabled.
Bit 0 represents "Operation Complete". This bit is set true when you send *OPC (without question mark) and previous command operation is competed. In other words, you need to send *OPC command to use bit 0 of standard event status register to monitor operation status.
For example, to wait for a sweep completion:
INIT:IMM;*OPC
Repeat Until *ESR? returns 1
Hope this helps