String Buffer Compare

<< Click to Display Table of Contents >>

Navigation:  Waijung Blockset > Block References > Misc > String Manipulate >

String Buffer Compare

Previous pageReturn to chapter overviewNext page

User Interface

How this block appears in a Simulink model?

string_buffer_compare_block

What can be configured?

string_buffer_compare_mask

Configuration item

Selectable option/ Value

Description

Function

strcmp | strncmp | strstr

Function:

1. strcmp - Compare two string buffer, or constant string.

2. strncmp - Compare two string buffer, or constant string with specific length.

3. strstr - To check if string parameter 1 contain string in parameter2 or not.

Result:

1. strcmp - Output result is 0 when data string in Parameter1 and Parameter2 are identical, otherwise data string are different.

2. strncmp - Output result is 0 when first N characters in Parameter1 and Parameter2 are identical, otherwise data string are different. Where N is number of character to compare.

3. strstr - Output result is string pointer. NULL (0) when failed or not found.

Input Parameter type

'StringBuffer - StringBuffer'

'StringBuffer - Constant'

'Constant - StringBuffer'

'Constant - Constant'

Select type of input parameter to compare.

Parameter 1

(Select or specify input parameter 1)


Parameter 2

(Select or specify input parameter 2)


Sample time (sec)

(Sample time)

Specify block sample time

Demos

String Buffer Demo