Parsing an ASCII Number or String
The response window displays data in binary form, ASCII form, or binary form and ASCII form together. Use the pull-down menu below the Byte index column of the response window to select the form in which to display data in the response window.
Use the Instrument I/O Assistant to parse a single ASCII number or string or an array of ASCII numbers. Complete the following steps to parse a single ASCII number or string.
- In the ASCII representation column of the response window, click the value you want to parse.
- Enter the number of characters to include in the token in the Character Count text box, or use the pull-down menu to select a value you already have entered.
- Enter a name for the token in the Token name text box. You use this name to reference the token in the application.
- To interpret a token as a string, right-click the token and select Data Type»String from the shortcut menu. To interpret a token as a number, right-click the token and select Data Type»Number from the shortcut menu.
You can remove a token by right-clicking the token and selecting Remove Token from the shortcut menu. You also can remove all tokens by clicking the Clear parsing button.