Main Content

addNewMemory

Class: soc.sdk.Hardware
Namespace: soc.sdk

Add new memory to the hardware

Since R2019b

Syntax

memoryObj = addNewMemory(hardwareObj,name)

Description

memoryObj = addNewMemory(hardwareObj,name) creates a new soc.sdk.Memory object, with the Name property set to name, and adds the new object to the soc.sdk.Hardware object.

Input Arguments

expand all

soc.sdk.Hardware object mapped to the soc.sdk.BoardSupport object.

Name of the memory owned by a hardware board, specified as a string.

Example: "MyMemory"

Data Types: string | char

Output Arguments

expand all

A soc.sdk.Memory object that defines the properties of the memory.

Version History

Introduced in R2019b