Documentation

SimulinkRealTime.createBootImage

Create Simulink Real-Time boot disk or DOS Loader files

Syntax

SimulinkRealTime.createBootImage
SimulinkRealTime.createBootImage(target_computer_name)
SimulinkRealTime.createBootImage(target_settings_object)
SimulinkRealTime.createBootImage(target_object)

Description

example

SimulinkRealTime.createBootImage creates a boot image for the default target computer. The form of the boot image depends upon the value of the TargetBoot environment property.

  • BootFloppy — To create a boot floppy disk, the software prompts you to insert an empty formatted disk into the drive. The software writes the kernel image onto the disk and displays a summary of the creation process.

  • CDBoot — To create a CD or DVD boot disk, the software prompts you to insert an empty formatted CD or DVD into the drive. The software writes the kernel image onto the CD or DVD and displays a summary of the creation process.

  • NetworkBoot — To create a network boot image, the software starts the network boot server process.

  • DOSLoader — To create DOS Loader files, the software writes kernel image and DOS Loader files into a designated location on the development computer. You can then copy the files to the target computer hard drive, to a floppy disk, or to a flash drive.

  • StandAlone — To create files for a standalone real-time application, you must separately compile and download a combined kernel and real-time application. SimulinkRealTime.createBootImage does not generate a standalone application.

To update the TargetBoot environment property:

tg = SimulinkRealTime.getTargetSettings
tg.TargetBoot = new_value
If you update the environment, you must update the boot image with the function SimulinkRealTime.createBootImage.

example

SimulinkRealTime.createBootImage(target_computer_name) creates a boot image for the target computer indicated by the target_name character vector.

example

SimulinkRealTime.createBootImage(target_settings_object) creates a boot image for the target computer indicated by the target_settings_object.

example

SimulinkRealTime.createBootImage(target_object) creates a boot image for the target computer indicated by target_object.

Examples

collapse all

Create boot image for default target computer.

SimulinkRealTime.createBootImage

Create boot image for target computer 'TargetPC1'.

SimulinkRealTime.createBootImage('TargetPC1')

Create boot image for target computer represented by settings object target_settings_object.

target_settings_object = ...
     SimulinkRealTime.getTargetSettings('TargetPC1');
SimulinkRealTime.createBootImage(target_settings_object)

Create boot image for target computer represented by run-time target object target_object.

target_object = SimulinkRealTime.target('TargetPC1');
SimulinkRealTime.createBootImage(target_object)

Input Arguments

collapse all

Name property of a particular target computer environment object. The default name is 'TargetPC1'.

Example: TargetPC1

Data Types: char

Object of the type returned by SimulinkRealTime.addTarget or SimulinkRealTime.getTargetSettings that represents the settings of the target computer.

Data Types: struct

Object that represents the target computer. Before calling this function, make sure that you start the target computer with the Simulink® Real-Time™ kernel and apply the required Ethernet link settings.

Example: tg

Introduced in R2014a

Was this topic helpful?