This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

SimulinkRealTime.addTarget

Add target computer interface

Syntax

settings_object = SimulinkRealTime.addTarget(target_name)

Description

example

settings_object = SimulinkRealTime.addTarget(target_name) adds the definition for a new target computer, represented by the name target_name. It returns an object containing the settings for the target computer.

Examples

collapse all

Create a settings object representing target computer 'TargetPC2'.

settings_object = SimulinkRealTime.addTarget('TargetPC2')
Simulink Real-Time Target Settings

    Name                     : TargetPC2     

    TargetRAMSizeMB          : Auto      
    LegacyMultiCoreConfig    : on       
    USBSupport               : on       
    ShowHardware             : off       
    EthernetIndex            : 0             

    TcpIpTargetAddress       :                  
    TcpIpTargetPort          : 22222           
    TcpIpSubNetMask          : 255.255.255.0   
    TcpIpGateway             : 255.255.255.255 
    TcpIpTargetDriver        : Auto         
    TcpIpTargetBusType       : PCI          

    TargetScope              : Enabled    

    TargetBoot               : BootFloppy    
    BootFloppyLocation       :           

Input Arguments

collapse all

Example: 'TargetPC1'

Data Types: char | string

Output Arguments

collapse all

Object containing target computer environment settings.

Data Types: struct

Introduced in R2014a