Parsing an Array of ASCII Numbers

NI MAX Assistant IIOA

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.
  1. Enter the separator(s) that delimit the ASCII data in the Separator(s) text box.
  2. 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.
  3. Place a checkmark in the Array checkbox on the Data Type tab.
  4. 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.