User`s guide
Memor y Copy
For this example, you could enter either 8192 or hex2dec('2000')
as the address.
Data type
Use this parameter to specify the type of data that your variable
uses. The list includes the supported data types, such as
int8,
uint32,andBoolean,andtheoptioninherit from source for
inheriting the d ata type for the variable from the block input port.
Specify offset source
The block provides two sources for the offset—
Input port and
Specify via dialog.SelectingInput port configures the block
input to read the offset v alue by adding an input port labeled
src ofs. This port enables your program to change the offset
dynamically during execution by providing the offset value as an
input to the block. If you select
Specify via dialog,youenable
the Offset parameter in this dialog box so yo u can enter the offset
to use when writing the output data.
Offset
Offset tells the block whether to write the first element of the
data to be copied to the firs t destination address location, or skip
one or more l ocations at the destination before writing the output.
Offset defines how many values to skip in the destination before
writing the first value to the destination. One is the default offset
value and Offset accepts only positive integers of one or gr eater.
Stride
Stride lets you specify the spacing for copying the input to
the destination. By default, the stride value is one, meaning
the generated code writes the input data sequentially to the
destinationinconsecutivelocations.Whenyouaddastridevalue
not e qu al to on e, the output d ata is stored not seque ntially , but b y
skipping addresses equal to the stride. Stride must be a positive
integer.
This figure shows a s tride value of three applied to writing the
input to a n outpu t locatio n. You c a n specify a stride value for the
input with parameter Stride on the Source pane. As shown in
9-37