Main Content

pause

Pause stimulation of root inports of model on target computer

Since R2021a

Description

example

pause(target_object.Stimulation, inports) pauses the stimulation of the specified root inports of the model running on the target computer.

example

pause(target_object.Stimulation, playbacks) pauses the stimulation of the specified Playback blocks in the model running on the target computer.

example

pause(target_object.Stimulation,'all') pauses the stimulation of all root inports of the model and Playback blocks in the model running on the target computer.

Examples

collapse all

In a model with five inports, pause the stimulation of inports named first and third.

pause(tg.Stimulation,{'first','third'});
% if the port number of inport named 'first' is 1
% and the port number of inport named 'third' is 3
% this syntax is equivalent to:
%
% pause(tg.Stimulation,[1,3]);

In a model with five Playback blocks, pause the stimulation of Playback blocks named first and third.

pause(tg.Stimulation,{'first','third'});

In a model with five inports, pause the stimulation of all inports and Playback blocks.

tg.Stimulation.pause('all');

Input Arguments

collapse all

Provides access to methods that manipulate the target computer properties.

Example: tg

Specifies the numbers of the inports or names of the inports or block paths of the inports present on the model running on the target computer.

Example: [1,3,5], {'in1','in2'}, {'model_name/in1','model_name/in4'}

Specifies the block names or block paths of the Playback blocks present in the model running on the target computer. If you use a block name that is not unique (more than one block with that name is present) in the model, the function returns an error and suggests using block paths instead.

Example: {'pb1','pb2'}, {'model_name/pb1','model_name/pb4'}

Represents all the available root inports of the model running on the target computer.

Example: 'all'

Version History

Introduced in R2021a