Common Commands¶
*IDN?¶
Syntax |
*IDN? |
---|---|
Description |
Query the ID string of the instrument |
Parameter |
None |
Explanation |
The query returns a colon-separated four-field ASCII string. The first field contains the manufacturer name, the second field is the product name, the third field is the device serial number, and the fourth field is the product revision number |
Return Format |
<Arbitrary ASCII String> |
Example |
-> *IDN? <- DEWETRON,OXYGEN,0,2.5.0 |
*VER?¶
Syntax |
*VER? |
---|---|
Description |
Query the software and SCPI interface version string |
Parameter |
None |
Explanation |
The query returns the version information for the relevant parts. The SCPI version, the RC_SCPI plugin version and the OXYGEN version is mandatory and always reported |
Return Format |
<Character>,<String>[,<Character>,<String>]… |
Example |
-> *VER? <- SCPI,"1999.0",RC_SCPI,"1.10",OXYGEN,"5.1.1" |
*CLS¶
Syntax |
*CLS |
---|---|
Description |
Clears the standard event register, extended event register, and error queue |
Parameter |
None |
Explanation |
If the *CLS command is located immediately after the program message terminator, the output queue is also cleared |
Example |
-> *CLS |
*ESE¶
Syntax |
*ESE <num> |
||||||||
---|---|---|---|---|---|---|---|---|---|
Description |
Sets the standard event status enable register |
||||||||
Parameter |
|
||||||||
Explanation |
|
||||||||
Example |
-> *ESE 251 -> *ESE? <- 251 |
*ESE?¶
Syntax |
*ESE? |
---|---|
Description |
Queries the current setting of the standard event status enable register |
Parameter |
None |
Explanation |
The query returns the content of the standard event status enable register |
Return Format |
<NR1> |
Example |
-> *ESE 251 -> *ESE? <- 251 |
*ESR?¶
Syntax |
*ESR? |
---|---|
Description |
Queries the standard event status register and clears the register |
Parameter |
None |
Explanation |
|
Return Format |
<NR1> |
Example |
-> *ESR? <- 32 |
*OPC¶
Syntax |
*OPC |
---|---|
Description |
Sets bit 0 (OPC bit) of the standard event register to 1 upon the completion of the specified overlap command |
Parameter |
None |
Explanation |
Currently all operations are non-overlapped.*OPC sets the OPC bit and *OPC? returns the state of the OPC bit |
Example |
-> *OPC -> *OPC? <- 1 |
*OPC?¶
Syntax |
*OPC? |
---|---|
Description |
Queries the state of specified overlapped command |
Parameter |
None |
Explanation |
Currently all operations are non-overlapped.*OPC sets the OPC bit |
Return Format |
<Boolean> |
Example |
-> *OPC -> *OPC? <- 1 |
*RST¶
Syntax |
*RST |
---|---|
Description |
Initializes the device to default settings |
Parameter |
None |
Explanation |
|
Example |
-> *RST |
*SRE¶
Syntax |
*SRE <num> |
||||||||
---|---|---|---|---|---|---|---|---|---|
Description |
Sets the service request enable register |
||||||||
Parameter |
|
||||||||
Explanation |
|
||||||||
Example |
-> *SRE 239 -> *SRE? <- 175 |
*SRE?¶
Syntax |
*SRE? |
---|---|
Description |
Queries the current setting of the service request enable register |
Parameter |
None |
Explanation |
The query returns the content of the service request enable register |
Return Format |
<NR1> |
Example |
-> *SRE 239 -> *SRE? <- 175 |
*STB?¶
Syntax |
*STB? |
---|---|
Description |
Queries the status byte register |
Parameter |
None |
Explanation |
|
Return Format |
<NR1> |
Example |
-> *STB? <- 4 |
*TST?¶
Syntax |
*TST? |
---|---|
Description |
Performs a self-test and queries the result |
Parameter |
None |
Explanation |
Currently a self-test is not defined and this query is no-op. |
Return Format |
<NR1> |
Example |
-> *TST? <- 0 |
*WAI¶
Syntax |
*WAI |
---|---|
Description |
Holds the subsequent command until the completion of the asynchronous operation |
Parameter |
None |
Explanation |
Currently all operations are synchronous operations |
Example |
-> *WAI |