target.Board Class
Namespace: target
Description
Use a target.Board
object to provide MATLAB® with data about your target hardware board, for example, CPU, communication, and
tool information.
To create a target.Board
object, use the target.create
function.
Properties
Name
— Board name
character vector | string
Name of the target.Board
object, which
target.get
uses as an identifier in data retrieval.
Attributes:
GetAccess | public |
SetAccess | public |
Processors
— Available processors
target.Processor
object array
Array of target.Processor
objects that provide descriptions of
available processors for the board.
Attributes:
GetAccess | public |
SetAccess | public |
CommunicationInterfaces
— Available communication interfaces
target.CommunicationInterfaces
object array
Array of target.CommunicationInterface
objects that provide
descriptions of available communication interfaces for the board.
Attributes:
GetAccess | public |
SetAccess | public |
CommunicationProtocolStacks
— Available communication protocols supported by board
target.CommunicationProtocolStack
object array
Array of target.CommunicationProtocolStack
that provide
descriptions of the communication protocols for the board.
Attributes:
GetAccess | public |
SetAccess | public |
Tools
— Tooling for interaction with board
target.Tools
object
Collection of tooling descriptions associated with the board. For example,
ApplicationExecutionTool
to enable execution of applications on the
target hardware.
Attributes:
GetAccess | public |
SetAccess | public |
Examples
Create Board Description
Create a description of a target hardware board. This code from Set Up PIL Connectivity by Using Target Framework (Embedded Coder) shows how to create the description.
Create a board object that provides MATLAB with a description of processor attributes.
hostTarget = target.create('Board', 'Name', 'Host Intel processor');
Specify the processor for the board, for example, by reusing a supported processor.
hostTarget.Processors = target.get('Processor', ... 'Intel-x86-64 (Linux 64)');
Create Communication Interface for Target Hardware
Create a communication interface for the target hardware board. This code snippet from Set Up PIL Connectivity by Using Target Framework (Embedded Coder) shows how to create the interface.
comms = target.create('CommunicationInterface'); comms.Name = 'Linux TCP Interface'; comms.Channel = 'TCPChannel'; comms.APIImplementations = target.create('APIImplementation', ... 'Name', 'x86 RTIOStream Implementation'); comms.APIImplementations.API = target.create('API', 'Name', 'RTIO Stream'); ... hostTarget.CommunicationInterfaces = comms;
Specify PIL Protocol Information
Specify PIL protocol information. This code snippet from Set Up PIL Connectivity by Using Target Framework (Embedded Coder) shows how to specify the information.
pilProtocol = target.create('PILProtocol'); pilProtocol.Name = 'Linux PIL Protocol'; pilProtocol.SendBufferSize = 50000; pilProtocol.ReceiveBufferSize = 50000; hostTarget.CommunicationProtocolStacks = pilProtocol;
Version History
Introduced in R2020b
See Also
target.create
| target.Processor
Topics
- Set Up PIL Connectivity by Using Target Framework (Embedded Coder)
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)