Events Manager

Events Manager

Events Manager is dedicated to visualizing and detecting events stored in analog inputs from LabeoTech imaging systems. It can detect events generated by the imaging system itself or received from external hardware, such as TTL signals and photodiodes. The final goal is to create a validated events.mat in the Save Folder. See the advanced user resource Events for the file structure and programmatic use.

Open from DataViewer

Open continuous .dat data and choose Utilities > Events Manager. DataViewer supplies the Save Folder and its Raw Folder when available. The GUI currently reads LabeoTech ai_*.bin analog-input files; advanced users can process another signal with the EventsManager class in MATLAB.

Events Manager with a detected trigger channel
The interface combines detection settings, trigger-channel selection, signal preview, condition information, and the detection summary.

Controls

GroupControls and meaning
Analog InputsLoad Analog Inputs reads analog sources; the status lists sampling rate, channels, and duration.
Detection ParametersThreshold (or auto), Trigger type, Polarity, Min interstim, and optional Low-pass Hz.
Trial SplittingBaseline s, Auto, and Set establish the pre-event period.
Trigger channelsSelects one or more analog channels used for detection.
Condition Filenone, CSV, or supported external parser; CSV columns can be selected before Update Conditions.
PreviewPlots signal, threshold, detected intervals, and all selected channels.
Condition namesEdit/Apply changes names in memory; Restore returns to the original list or cancels editing.
DetectApplies parameters and rebuilds detected events.
Save events.matWrites validated current event state, asking before replacement.

Detection parameters

ParameterUse
ThresholdThe voltage crossing used to detect an edge. Auto starts at 80% of the signal span above its minimum; set a number when noise or an unusual pulse amplitude requires manual control.
Trigger type: Edge SetA crossing in the chosen polarity starts an event and the opposite crossing ends it. Use this for pulses whose high or low duration defines the event.
Trigger type: Edge ToggleSuccessive crossings in the chosen polarity alternate between event ON and OFF. Use this when only one edge is recorded for each state change.
PolarityPositive detects upward onset crossings; Negative detects downward onset crossings.
Min interstimMerges closely spaced detections into one burst event when they fall within this number of seconds.
Low-pass HzOptionally removes faster fluctuations before threshold detection. Use 0 to disable filtering.

Edge Set and Edge Toggle trigger interpretation
Edge Set uses opposite edges to mark ON and OFF; Edge Toggle alternates the state at consecutive selected edges.

Trial splitting

The Baseline s value adds a pre-event period before every event onset. The rest of the trial extends from the onset to the imaging frame immediately before the next event onset. In other words, trial length is the baseline duration plus the interval from the current onset to just before the following onset. Review the shortest spacing between events before choosing a baseline that would overlap another trial.

Auto sets the baseline to 20% of the shortest interval between detected event onsets. If only one onset exists, it uses 20% of the remaining analog-recording duration after that onset.

Condition files

The detected pulses define when trials occurred; a condition file can describe what happened on each trial. Choose none when the trigger channel itself represents one condition. For CSV input, select the column containing the ordered condition values, then choose Update Conditions. The number and order of condition rows must match the detected trials after any incomplete boundary events have been removed. Supported stimulus-specific parsers can be selected when their source format is available.

Basic workflow

  1. Load the analog inputs and select one or more trigger channels.
  2. Set threshold, trigger type, polarity, minimum inter-stimulus interval, and optional low-pass filtering.
  3. Choose Detect, then inspect the signal plot, shaded intervals, and Detection Summary.
  4. Set the baseline. Add a condition file when different trials represent different stimuli, and edit the condition names if needed.
  5. Choose Save events.mat. This file supplies event overlays and Event mode in DataViewer, and it supplies timing and trial selections to event-based analysis functions.
  6. Close the tool. DataViewer reloads the event file and returns to Normal mode.

Unsaved changes
Closing with unsaved event edits asks for confirmation. DataViewer does not silently write event metadata.

Field definitions are in Events.


Back to top

Copyright © LabeoTech 2026. This work is licensed under the GNU General Public License, Version 3.0.