![Colby Instruments PDL-100A Operating And Programming Manual Download Page 46](http://html1.mh-extra.com/html/colby-instruments/pdl-100a/pdl-100a_operating-and-programming-manual_2635111046.webp)
Chapter 5
Common Commands
© 2010 Colby Instruments. PDL-100A Operating and Programming Manual Page 37
*OPC
Operation Complete
COMMAND
*OPC?
Operation Complete Query
QUERY
The *OPC command will cause the PDL-100A to set the
operation complete bit (bit 0) in the Standard Event Status
Register (ESR) when all pending device operations have
finished.
NOTE
: The PDL-100A blocks (i.e. does not return) until all
operations are completed.
Command
Syntax
*OPC
Example
*OPC
Returns
None
Programming
Example
HP : OUTPUT 705;"*OPC"<NL>
NI : CWGPIB.Write “*OPC”
The *OPC? query returns the status of the operation complete
bit (bit 0) in the Standard Event Status Register(ESR).
Command
Syntax
*OPC?
Example
*OPC?
Returns
<decimal integer><NL>
0 = Operation pending (not completed yet or not started yet)
1 = Operation completed
Programming
Example
HP : DIM OPC$(50)
OUTPUT 705;"*OPC?"<NL>
ENTER 705;OPC$
PRINT(OPC$)
NI : DIM QUERY_RESPONSE As Variant
CWGPIB.Write “*OPC?”
QUERY_RESPONSE = CWGPIB.Read(250)
MsgBox (“Response is ” & QUERY_RESPONSE)
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com