6.7.35 TextConcatenate

6.7.35.1 Outline of the node

Concatenate strings of String types.

6.7.35.2 Necessary files

No files are required.

6.7.35.3 Usage

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.138 shows connection exsamples using the Constant node and TextConverter node.

The sample network in Figure 6.138 combines character strings generated by Constant node and TextConverter node, and sends multiple sound source information with HarkDataStreamSender .

\includegraphics[width=.9\textwidth ]{fig/modules/TextConcatenate}
Figure 6.138: Connection example of TextConcatenate to Constant and/or TextConverter 

6.7.35.4 Input-output and property of the node

Input

INPUT

: string type. Any number of input terminals can be added.

Output

OUTPUT

: string type.

Parameter

Table 6.136: Parameter list of MatrixToMap 

Parameter name

Type

Default value

Unit

Description

SEPARATOR

string 

   

Specifies the text separator string. The specified character string is inserted between each INPUT.

ENABLE_DEBUG

bool 

false

 

Select whether to output the concatenated character string to standard output.

SEPARATOR

: 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.

ENABLE_DEBUG

: bool type. The default value is false. Setting the value to trueoutputs the concatenate string to the standard output.

6.7.35.5 Details of the node

$<$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.