Querying an Instrument
Use a Query and Parse step to write a command to an instrument, read the instrument response at once, and parse the returned data. You also can split a Query and Parse step into the Write and Read and Parse steps to use parameterized inputs.
Complete the following steps to query an instrument.
- Select the instrument with which you want to communicate.
- Click the Add Step button above the Step Sequence window, and select Query and Parse from the Add Step menu that appears.
- In the Enter a command text box, enter the command you want to send to the instrument, or use the pull-down menu to select a command you entered previously. Refer to the instrument documentation for more information about valid instrument commands.
- Click the Run button above the Step Sequence window to send a command to the instrument and read the instrument response. The data appears in the response window.
- Parse the data.
- (Optional) Scale tokens you create.
- (Optional) Right-click the Query and Parse step in the Step Sequence window and select Split step into Write and Read steps from the shortcut menu to split the step into the Write and Read and Parse steps.