Main Content

target.Emulator Class

Namespace: target

Provide target emulator details

Since R2023b

Description

Use a target.Emulator object to provide MATLAB® with data about your target emulator, for example, emulator launch method, and emulated hardware information.

To create a target.Emulator object, use the target.create function.

Properties

expand all

Name of the target.Emulator object, which target.get uses as an identifier in data retrieval.

Attributes:

GetAccess
public
SetAccess
public

target.Board object that provides hardware board details.

Attributes:

GetAccess
public
SetAccess
public

Object that provides descriptions of supported tools for starting emulator application on your development computer.

Attributes:

GetAccess
public
SetAccess
public

Examples

collapse all

This code snippet from Use target.Emulator Object to Set Up Target Connectivity shows how to use a target.Emulator object to define a target emulator.

emulator = target.create('Emulator', ...
                         'Name', ‘Example Emulator Target’);
emulator.Target = target.get('Board', ...
                             'ARM Cortex-A Emulator-Based Test Board');

hostprocesslaunchtool = target.create("HostProcessExecutionTool");
hostprocesslaunchtool.Name = "Emulator Host Process Execution Tool";

command = target.create("Command");
command.String = "pathToEmulatorApplication";

command.Arguments = ["-flag1", "value1" ...
                     "-flag2", "value2" ...
                     "-flagN", "valueN"];

hostprocesslaunchtool.StartCommand = command;
emulator.LaunchTool = hostprocesslaunchtool;

Version History

Introduced in R2023b