Raptor:Raptor String

From NewEagleWiki
Jump to navigation Jump to search

Return to the main Raptor page

Return to Strings page

Raptor™ String

Description

This block is used to create a string which can be used to store text data. Strings behave differently from other native simulink data types in that they are always accessed by reference. This means that only one copy of the data exists. This means that if a string handle is run to two blocks and the first block modifies the string, the second block will see the modified string even if it is not connected to the output of the first block. This is due to the large memory requirement of most strings. The size of the string must be set before compiling. The size of the string represents the largest amount of data that it can hold. A string can have less data in it than its size. It is best to set the size to the longest string that will be stored. Setting the size significantly higher can lead to high memory use.

Note: Line breaks and tabs will not display correctly with a Draw Text block.

Note: Simulink String blocks are not compatible with Raptor blocks. Please use Raptor String blocks.


Outputs

Output Type Description
Value r_string String handle

Parameters

Parameter Type Description
Name String Defines the name of this string to be used with the string reference block.
Initial Value String The initial value of the string.
Type Chooses the source of the size of the string.
Size Sets the size of the string when the type is set to 'Fixed Size'.