Output the bit length of the acquired data

This section describes the processing of calculating one byte as eight bits for the data acquired from the equipment and outputting the bit length.

This process outputs results such as the following:

Example

  • Because the input value of "NTFS" is four bytes, the output value is "32".

  • Because the input value of "FAT32" is five bytes, the output value is "40".

Description of the processing

The bit length (8 bits per byte) of the data acquired from the equipment is output.

Key features

Bit length

The bit length (1 byte is 8 bits) of a character string is output.

It can be set from Number > Function > Bit length of the tool palette.

Operation procedure

1. Create a script.

For information about how to create a script, refer to First Step Guide.

The descriptions in this procedure are based on the following scripts:

2. On the script canvas, double-click mapping_1.

The Mapper editor is displayed.

3. From the tool palette, drag and drop Number > Function > Bit length onto the Mapper editor.

The Bit length logic is placed in the Mapper editor.

4. If necessary, enter the property of the placed logic.

  1. Double-click the Bit length logic.

    The Bit length Logic Property dialog box is displayed.

  2. Enter a comment in Comment and click Finish.

5. Drag and drop the input source node (or another logic) onto the Bit length logic.

The mapping link to the Bit length logic is displayed.

6. Drag and drop the Bit length logic onto the output destination node (or another logic).

The mapping link to the output destination from the Bit length logic is displayed.

7. Save the script.

For information about how to save a script, refer to First Step Guide.