navigate.model.features.common_features.WaitForExternalTrigger
- class navigate.model.features.common_features.WaitForExternalTrigger(model, trigger_channel='/PCIe-6738/PFI4', timeout=-1)
Bases:
object
WaitForExternalTrigger class to time features using external input.
This class waits for either an external trigger (or the timeout) before continuing on to the next feature block in the list. Useful when combined with LoopByCount when each iteration may depend on some external event happening.
Notes:
This class pauses the data thread while waiting for the trigger to avoid camera timeout issues.
Only digital triggers are handeled at this time: use the PFI inputs on the DAQ.
- __init__(model, trigger_channel='/PCIe-6738/PFI4', timeout=-1)
Initialize the WaitForExternalTrigger class.
Parameters:
- modelMicroscopeModel
The microscope model object used for synchronization.
- trigger_channelstr
The name of the DAQ PFI digital input.
- timeoutfloat
Continue on anyway if timeout is reached. timeout < 0 will run forever.
Methods
__init__
(model[, trigger_channel, timeout])Initialize the WaitForExternalTrigger class.
signal_func
()