Acquire the character string length of the acquired data
This section describes the processing of outputting the character string length of the data acquired from the equipment.
This process outputs results such as the following:
- Example
-
-
Because the input value of "NTFS" is four characters, the output value is "4".
-
Because the input value of "FAT32" is five characters, the output value is "5".
-
Description of the processing
The character string length of the data acquired from the equipment is acquired and then output.
Key features
- String length
-
This logic returns the number of characters in the character string.
It can be set from Number > Function > String 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 > String length onto the Mapper editor.
The String length logic is placed in the Mapper editor.
4. If necessary, enter the property of the placed logic.
-
Double-click the String length logic.
The String length Logic Property dialog box is displayed.
-
Enter a comment in Comment and click Finish.
5. Drag and drop the input source node (or another logic) onto the String length logic.
The mapping link to the String length logic is displayed.
6. Drag and drop the String length logic onto the output destination node (or another logic).
The mapping link to the output destination from the String length logic is displayed.
7. Save the script.
For information about how to save a script, refer to First Step Guide.