User`s guide
Memory Copy
• Specified source code symbol — Tells the block to copy the
variable or sy mbol (variable) to the symbol you enter in Source
code symbol. When you select this co py to option, you enable
the Source code symbol parameter.
Depending on the choice you make for Copy from,youseeother
parameters that let you configurethesourceofthedatatocopy.
Specify a ddr es s source
This parameter directs the block to get the address for the
variable either from an entry in Address or from the input port to
the b lock. Select either
Specify via dialog or Input port from
the list. Selecting
Specify via dialog activates the Add ress
parameter for you to enter the address for the variable.
When you select
Input port, the port label on the block changes
to
&dst, indicating that the block expects the destination address
to come from the input port. Being able to change the address
dynamically lets you use the block to copy different variables by
providing the variable address from an upstream block in your
model.
Source code symbol
Specify the symbol (variable) in the source code symbol table
to copy. The symbol table for your program must include this
symbol. The block does not verify that the symbol exists and
uses valid syntax .
Address
When you s elect Specify via dialog for the address source, you
enter the variable address here. Addresses should be in decimal
form. Enter either the d ecimal address or the address as a
hexadecimal string with single q uotations marks and use
hex2dec
to convert the address to the proper format. This example
converts
Ox2000 to decimal form.
8192 = hex2dec('2000');
9-36