# *TST? (Hardware Self Tests)

Common Commands

- *CLS (Clear Status)
- *ESE (Event Status Enable)
- *ESR? (Event Status Register)
- *IDN? (Identification Number)
- *OPC (Operation Complete)
- *OPT? (Option)
- *RST (Reset)
- *SRE (Service Request Enable)
- *STB? (Status Byte)
- *TRG (Trigger)
- *TST? (Hardware Self Tests)
- *WAI (Wait-to-Continue)

## Query Syntax

    *TST?

## Query Response

    {0 | 1}

## Description

Runs the instrument self-test, blocking until the test is complete. Return code of 0 indicates a pass, non-zero indicates failure.

If there is a failure, you can use the `:SYSTem:TEST` query to return the results of the most recent self-test.

You can cancel a running self test using the `:SYSTem:TEST:CANCel` command.