Command line arguments

Argument

Description

block-diagram-name

Starts with the specified diagram.

-b

Runs in batch mode and logs messages to a log file.

-c

Starts with a new diagram.

-compile=compound-block-name

Compiles the specified diagram. If you include a compound block name, only the compound block is compiled. The -compile argument must be specified in conjunction with the -target function. The -compile argument is for Embed use only.

-endTime=floating-number

Opens the specified diagram and controls when the simulation stops, along with when the logging of data points in the Signal Consumer blocks wired into the diagram also stops.

-flash

Compiles the specified target with respect to flash memory. Use in conjunction with the -compile and -target arguments. The -flash argument is for Embed use only.

-fullScreen

Starts in a full screen window.

-h

Runs in batch mode but shows messages on the screen.

-heap=n

Sets the heap request during compilation, where n is the heap value. The -heap argument is for Embed use only.

-i

Starts as an icon.

-Iintegration-method-number

Sets the integration method.

0=Euler

1=Trapezoidal

2=Runge Kutta 2nd order

3=Runge Kutta 3rd order

4=Adaptive Runge Kutta 5th order

5=Adaptive Bulirsh-Stoer

6=Backward Euler

7=Adaptive Adams-Moulton

8=Adaptive BDF

-L

Starts and automatically opens the diagram you last opened.

-nb

Starts without the start-up banner.

-ne

Suppresses the simulation completion dialog.

-noMenus

Starts with the menu bar hidden.

-noToolBars

Starts with the toolbars hidden.

-noStatusBar

Starts with the status bar hidden.

-noScrollBars

Starts with the scroll bars hidden.

-r

Opens the specified diagram and starts a simulation.

-re

Runs a simulation read in from the specified diagram file and exits upon completion

-screenSize=<width>x<height>

Defines the size of the window in pixels.

-stack=n

Sets how much stack to allocate. For Embed use only.

-startTime=floating-number

Starts with the specified diagram and controls when simulation starts, along with when the logging data points in the Signal Consumer blocks wired into the block diagram also starts.

-stepSize=floating-number

Starts with the specified diagram and controls the time increment used to evaluate the diagram.

-target=target-name

Compiles for the specified target. Specify the target-name in the same way that it appears in the Target dropdown in the Tools > Code Generation dialog. For example, -target=F280X. Additionally, you must specify the -target argument in conjunction with the -compile argument. The -target argument is for Embed use only.

-x

Runs in read-only mode.