Parsing a Binary Number or String

NI MAX Assistant IIOA

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

  1. In the Binary representation column of the response window, click the first byte of the binary data that you want to parse. Selections appear on the Data Type tab.
  2. Select the type of token array you want to create. The token appears as a highlighted data selection in the response window.
  3. Enter a name for the token in the Token name text box. You use this name to reference the token in the application.
  4. 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.