| xPC Target™ | ![]() |
MATLAB® command line
trigger(scope_object_vector) or scope_object_vector.trigger
scope_object_vector | Name of a single scope object, name of a vector of scope objects, list of scope object names in a vector form [scope_object1, scope_object2], or the target object method getscope, which returns a scope_object vector. |
Method for a scope object. If the scope object property TriggerMode has a value of 'software', this function triggers the scope represented by the scope object to acquire the number of data points in the scope object property NumSamples.
Note that only scopes with type host store data in the properties scope_object.Time and scope_object.Data.
Set a single scope to software trigger, trigger the acquisition of one set of samples, and plot data.
sc1 = tg.addscope('host',1) or sc1=addscope(tg,'host',1)
sc1.triggermode = 'software'
tg.start, or start(tg), or +tg
sc1.start or start(sc1) or +sc1
sc1.trigger or trigger(sc1)
plot(sc1.time, sc1.data)
sc1.stop or stop(sc1) or -sc1
tg.stop or stop(tg) or -tg1Set all scopes to software trigger and trigger to start.
allscopes = tg.getscopes allscopes.triggermode = 'software' allscopes.start or start(allscopes) or +allscopes allscopes.trigger or trigger(allscopes)
![]() | targetping | unload | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |