Concatenate strings of String types.
No files are required.
When to use
Concatenate inputs of multiple string type texts and outputs them as a single string type text. In other words, you can treat JSON text generated by TextConverter node, a string generated by Constant node when set to parameter type as string , or other nodes that output string type as an input. Output is connected to a node corresponding to input of string type such as HarkDataStreamSender or HARK-Python’s PyCodeExecuter.
Typical connection
Figure 6.146 shows connection exsamples using the Constant node and TextConverter node.
The sample network in Figure 6.146 combines character strings generated by Constant node and TextConverter node, and sends multiple sound source information with HarkDataStreamSender .
Input
: string type. Any number of input terminals can be added.
Output
: string type.
Parameter
Parameter name |
Type |
Default value |
Unit |
Description |
SEPARATOR |
Specifies the text separator string. The specified character string is inserted between each INPUT. |
|||
ENABLE_DEBUG |
false |
Select whether to output the concatenated character string to standard output. |
: string type. Specifies the text separator string. The specified character string is inserted between each INPUT. In the default value is blank, there is no separator, and if you enter a white space charater, a white space character is used as separator.
: bool type. The default value is false. Setting the value to trueoutputs the concatenate string to the standard output.
$<$example$>$ |
||
INPUT1: |
"[" |
|
INPUT2: |
"{'SOURCE': {'1': {'x': [0.9578, 0, 0.2874], 'power': 29.8}}}" |
|
INPUT3: |
", " |
|
INPUT4: |
"{'SOURCE': {'1': {'x': [0.9433, 0.1663, 0.2874], 'power': 28.9}}}" |
|
INPUT5: |
", " |
|
INPUT6: |
"{'SOURCE': {'2': {'x': [0.9001, 0.3276, 0.2874], 'power': 27.6}}}" |
|
INPUT7: |
", " |
|
INPUT8: |
"{'SOURCE': {'4': {'x': [0.8295, 0.4789, 0.2874], 'power': 25.1}}}" |
|
INPUT9: |
", " |
|
INPUT10: |
"{'SOURCE': {'3': {'x': [0.7337, 0.6157, 0.2874], 'power': 22.3}}}" |
|
INPUT11: |
"]" |
|
$\downarrow $ |
||
OUTPUT: |
"[{'SOURCE': {'1': {'x': [0.9578, 0, 0.2874], 'power': 29.8}}} , {'SOURCE': {'1': {'x': [0.9433, 0.1663, 0.2874], 'power': 28.9}}} , {'SOURCE': {'2': {'x': [0.9001, 0.3276, 0.2874], 'power': 27.6}}} , {'SOURCE': {'4': {'x': [0.8295, 0.4789, 0.2874], 'power': 25.1}}} , {'SOURCE': {'3': {'x': [0.7337, 0.6157, 0.2874], 'power': 22.3}}}]" |
|
Note: Line breaks and double quotes are not included in the actual string. |