Returns the number of samples each live buffer keeps.
The window is the largest of: twice the automatic X window, twice each channel's X
window (at least 0.1 s), and each channel's pre plus post trigger window. It is
multiplied by the scan rate, plus 10 % and one read of headroom: the actual scan
rate can be slightly above the configured one, and gap markers take a slot each.
Without it a trigger capture could find the start of its pre-trigger window already
trimmed.
Parameters
scanRateHz: number
Configured scan rate.
scansPerRead: number
Configured scans per read; values below 1 count as 1.
Returns the number of samples each live buffer keeps.
The window is the largest of: twice the automatic X window, twice each channel's X window (at least 0.1 s), and each channel's pre plus post trigger window. It is multiplied by the scan rate, plus 10 % and one read of headroom: the actual scan rate can be slightly above the configured one, and gap markers take a slot each. Without it a trigger capture could find the start of its pre-trigger window already trimmed.