Raptor:Raptor String: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
[[RaptorWiki|Return to the main Raptor page]]
[[Raptor-Platform|Return to the main Raptor page]]


[[Raptor:Strings|Return to Strings page]]
[[Raptor:Strings|Return to Strings page]]

Revision as of 17:29, 16 December 2016

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.

Inputs

Input Type Description

Outputs

Output Type Description
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'.