Documentation

xpctarget.xpcsc.trigger

Software-trigger start of data acquisition for scopes (not recommended)

Synopsis

trigger(scope_object_vector) 

Arguments

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.

Description

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.

Examples

Set a single scope to software trigger, trigger the acquisition of one set of samples, and plot data.

sc1 = addscope(tg,'host',1)
sc1.triggermode = 'software'
start(tg)
start(sc1)
trigger(sc1)
plot(sc1.time, sc1.data)
stop(sc1) 
stop(tg) 
Was this topic helpful?