Parsing an Array of ASCII Numbers
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 an array of ASCII numbers.
Note You can parse ASCII data as an array of numbers only if separators delimit the data elements. |
- Enter the separator(s) that delimit the ASCII data in the Separator(s) text box.
- In the ASCII representation column of the response window, click the first number of the array. If the token is currently parsed as a string, right-click the token and select Data Type»Number from the shortcut menu.
- Place a checkmark in the Array checkbox on the Data Type tab.
- Enter the length of the array in the Array Size text box, or use the pull-down menu to select a value you entered previously.
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.