stop (hostScope)

Stop execution of host scope on target computer

Description

example

scope_object_vector = stop(scope_object_vector) stops one or more scopes on the target computer.

At the target computer command line, you can use the commands:

stopscope scope_index
stopscope all
If you use the keyword all at the command line, the kernel stops all of the scopes.

Examples

collapse all

Stop scope 1. The model is xpcosc.

Get the object that represents scope 1.

tg = slrt;
sc1 = getscope(tg,1);

Stop scope 1.

scope_object_vector = stop(sc1)
scope_object_vector = 

Simulink Real-Time Scope
   Application          = xpcosc
   ScopeId              = 1
   Status               = Interrupted
   Type                 = Host
   NumSamples           = 250
   NumPrePostSamples    = 0
   Decimation           = 1
   TriggerMode          = FreeRun
   TriggerSignal        = 3  : Integrator
   TriggerLevel         = 0.000000
   TriggerSlope         = Either
   TriggerScope         = 1
   TriggerSample        = 0
   StartTime            = -1.000000
   Data                 = Matrix (250 x 1)
   Time                 = Matrix (250 x 1)
   Signals              = 3  : Integrator

Stop scopes 2 and 3.

Get the objects that represent scopes 2 and 3.

tg = slrt;
sc2 = getscope(tg,2);
sc3 = getscope(tg,3);

Stop the scopes.

scope_object_vector = stop([sc2 sc3])
scope_object_vector = 

Simulink Real-Time Scope
   Application          = xpcosc
   ScopeId              = 2
   Status               = Interrupted
   Type                 = Host
   NumSamples           = 250
   NumPrePostSamples    = 0
   Decimation           = 1
   TriggerMode          = FreeRun
   TriggerSignal        = 3  : Integrator
   TriggerLevel         = 0.000000
   TriggerSlope         = Either
   TriggerScope         = 2
   TriggerSample        = 0
   StartTime            = -1.000000
   Data                 = Matrix (250 x 3)
   Time                 = Matrix (250 x 1)
   Signals              = 3  : Integrator
                          5  : Signal Generator
                          4  : Integrator1

Simulink Real-Time Scope
   Application          = xpcosc
   ScopeId              = 3
   Status               = Interrupted
   Type                 = Host
   NumSamples           = 250
   NumPrePostSamples    = 0
   Decimation           = 1
   TriggerMode          = FreeRun
   TriggerSignal        = 3  : Integrator
   TriggerLevel         = 0.000000
   TriggerSlope         = Either
   TriggerScope         = 3
   TriggerSample        = 0
   StartTime            = -1.000000
   Data                 = Matrix (250 x 3)
   Time                 = Matrix (250 x 1)
   Signals              = 3  : Integrator
                          5  : Signal Generator
                          4  : Integrator1

Stop all of the scopes on the target computer.

Get all of the scopes.

tg = slrt;
allscopes = getscope(tg);

Stop the scopes.

scope_object_vector = stop(allscopes)
scope_object_vector = 

Simulink Real-Time Scope
   Application          = xpcosc
   ScopeId              = 1
   Status               = Interrupted
   Type                 = Host
   NumSamples           = 250
   NumPrePostSamples    = 0
   Decimation           = 1
   TriggerMode          = FreeRun
   TriggerSignal        = 3  : Integrator
   TriggerLevel         = 0.000000
   TriggerSlope         = Either
   TriggerScope         = 1
   TriggerSample        = 0
   StartTime            = -1.000000
   Data                 = Matrix (250 x 1)
   Time                 = Matrix (250 x 1)
   Signals              = 3  : Integrator

Simulink Real-Time Scope
   Application          = xpcosc
   ScopeId              = 2
   Status               = Interrupted
   Type                 = Host
   NumSamples           = 250
   NumPrePostSamples    = 0
   Decimation           = 1
   TriggerMode          = FreeRun
   TriggerSignal        = 3  : Integrator
   TriggerLevel         = 0.000000
   TriggerSlope         = Either
   TriggerScope         = 2
   TriggerSample        = 0
   StartTime            = -1.000000
   Data                 = Matrix (250 x 3)
   Time                 = Matrix (250 x 1)
   Signals              = 3  : Integrator
                          5  : Signal Generator
                          4  : Integrator1

Simulink Real-Time Scope
   Application          = xpcosc
   ScopeId              = 3
   Status               = Interrupted
   Type                 = Host
   NumSamples           = 250
   NumPrePostSamples    = 0
   Decimation           = 1
   TriggerMode          = FreeRun
   TriggerSignal        = 3  : Integrator
   TriggerLevel         = 0.000000
   TriggerSlope         = Either
   TriggerScope         = 3
   TriggerSample        = 0
   StartTime            = -1.000000
   Data                 = Matrix (250 x 3)
   Time                 = Matrix (250 x 1)
   Signals              = 3  : Integrator
                          5  : Signal Generator
                          4  : Integrator1

Input Arguments

collapse all

Get a scope object by calling the target object methods SimulinkRealTime.target.addscope or SimulinkRealTime.target.getscope.

Output Arguments

collapse all

This vector is the same as scope_object_vector, but with the changes that were made by the function call.

Introduced in R2014a