navigate.model.features.common_features.WaitForExternalTrigger
- class navigate.model.features.common_features.WaitForExternalTrigger(model, trigger_channel='/PCIe-6738/PFI4', timeout=-1)
Bases:
objectWaitForExternalTrigger 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:
model (MicroscopeModel) – The microscope model object used for synchronization.
trigger_channel (str) – The name of the DAQ PFI digital input.
timeout (float) – Continue on anyway if timeout is reached. timeout < 0 will run forever.
Methods
__init__(model[, trigger_channel, timeout])Initialize the WaitForExternalTrigger class.
signal_func()