labscript-suite / labscript-devices

A modular and extensible plugin architecture to control experiment hardware using the 𝘭𝘒𝘣𝘴𝘀𝘳π˜ͺ𝘱𝘡 𝘴𝘢π˜ͺ𝘡𝘦.
http://labscriptsuite.org
Other
5 stars 58 forks source link

Make tekscope a triggerable device #69

Open chrisjbillington opened 3 years ago

chrisjbillington commented 3 years ago

The TekScope class is typically used by wiring a DO to it as a trigger input and commanding an edge on that DO when you want to acquire.

The class could simplify this by being itself a TriggerableDevice, such that you would call TekScope.trigger(t) rather than keeping track yourself of which DO was the trigger.

Should be possible to make this backward compatible by allowing the DO arguments to be omitted, in this case .trigger() would raise an exception.