| xPC Target | ![]() |
Software trigger the start of data acquisition for one or more scopes.
Syntax
trigger(scope_object_vector) or scope_object_vector.trigger
Arguments
Description
Method for a scope object. If the scope object property TriggerMode has a value of 'software', then this function triggers the scope represented by the scope object to acquire the number of data points in the scope object property NumSamples.
Note Only scopes with type host store data in the properties scope_object.Time and scope_object.Data.
Examples
Set a single scope to software trigger, trigger the acquisition or one set of samples, nd 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 -tg1
Set 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)
| stop | I/O Block Reference | ![]() |