Main Content

addNewMemory

Class: soc.sdk.Hardware
Package: soc.sdk

Add new memory to the hardware

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.

Introduced in R2019b