EasyManua.ls Logo

Colby Instruments PDL-100A - OPC Operation Complete COMMAND

Colby Instruments PDL-100A
74 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents