Parsing an Array of Binary Numbers

NI MAX Assistant IIOA

Parsing an Array of Binary 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 binary number or string or an array of binary numbers. Complete the following steps to parse an array of binary numbers.

  1. In the Binary representation column of the response window, click the first binary value of the array you want to parse. Selections appear on the Data Type tab.
  2. Select the type of token you want to create. The token appears as a highlighted data selection in the response window.
  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.
    Note  You can enter an array size in elements or bytes. If you want to enter the array size in elements, select element(s) from the element(s)/byte(s) pull-down menu. If you want to enter the array size in bytes, select byte(s).
    Tip  Double-click an array to collapse or expand it for easier viewing.
  5. Enter a name for the token in the Token name text box. You use this name to reference the token in the application.
  6. To change the data type of a token, right-click the token and select a new data type from the Data Type shortcut menu. You also can click the token and select a new data type from the Type pull-down menu on the Data Type tab.

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.