| xPC Target™ | ![]() |
MATLAB® command line
start(scope_object_vector) scope_object_vector.start +scope_object_vector start(getscope((target_object, signal_index_vector))
Target PC command line
startscope scope_index startscope 'all'
target_object | Name of a target object. |
scope_object_vector | Name of a single scope object, name of vector of scope objects, list of scope object names in vector form [scope_object1, scope_object2], or the target object method getscope, which returns a scope_object vector. |
signal_index_vector | Index for a single scope or list of scope indices in vector form. |
scope_index | Single scope index. |
Method for a scope object. Starts a scope on the target PC represented by a scope object on the host PC. This method does not necessarily start data acquisition, which depends on the trigger settings. Before using this method, you must create a scope. To create a scope, use the target object method addscope or add xPC Target™ scope blocks to your Simulink® model.
Start one scope with the scope object sc1.
sc1 = getscope(tg,1) or sc1 = tg.getscope(1) start(sc1) or sc1.start or +sc1
or type
start(getscope(tg,1))
Start two scopes.
somescopes = getscope(tg,[1,2]) or somescopes= tg.getscope([1,2]) start(somescopes) or somescopes.start
or type
sc1 = getscope(tg,1) or sc1 =tg.getscope(1) sc2 = getscope(tg,2) or sc2 = tg.getscope(2) start([sc1,sc2])
or type
start(getscope(tg,[1,2])
Start all scopes:
allscopes = getscope(tg) or allscopes = tg.getscope start(allscopes) or allscopes.start or +allscopes
or type
start(getscope(tg)) or start(tg.getscope)
The xPC Target target object methods getscope and stop (target application object). The scope object method stop (scope object).
![]() | setxpcenv | start (target application object) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |