6-19
Programming Commands
Common Commands
*IDN? (Identification Number)
The *IDN? query returns a string value which identifies the instrument type
and firmware revision.
An *IDN? query must be the last query in a program message. Any queries
after the *IDN? query in a program are ignored.
The maximum length of the identification string is 50 bytes.
Syntax
*IDN?
Example
This example places the WDCA’s identification information in the string
variable, Identify$, then prints the identification information to the comput-
er screen.
10 DIM Identify$[50] . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . !Dimension variable
20 OUTPUT 720;"*IDN?"
30 ENTER 720;Identify$
40 PRINT Identify$
50 END
Query Response
The return string is a comma-separated list consisting of Manufacturer,
Model Number, Serial Number, and Firmware Revision.
Related Key
Revision
*OPC (Operation Complete)
Sets bit 0 in the Standard Event Status register when all pending operations
have finished.
This command is useful when the computer is sending commands to other
instruments. The computer can poll the event status register to check when
the instrument has completed the operation. Use the *OPC? query to ensure
all operations have completed before continuing the program. By following a
command with an *OPC? query and an ENTER statement.the program will
pause until the response (ASCII 1) is returned by the instrument.
Be sure the computer’s timeout limit is at least two seconds, since some of the
instrument commands take approximately one second to complete.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com