beautypg.com

Spectrum Brands MI.20xx User Manual

Page 74

background image

74

MI.20xx Manual

Trigger modes

Option Multiple Recording

Resulting start delays

The following example shows how to set up the board for Multiple Recording in standard mode. The setup would be similar in FIFO mode,
but the memsize register would not be used.

Activated channels

Sample rate

external TTL trigger

internal trigger

ext. TTL trigger with
activated
synchronization

internal trigger with
activated
synchronization

0

1

2

3

x

< 10 MS/s

+22 samples

+31 samples

+24 samples

+33 samples

x

(10 < SR < 100) MS/s

+23 samples

+21 samples

+25 samples

+23 samples

x

> 100 MS/s

+16 samples

+32 samples

+18 samples

+34 samples

x

x

< 5 MS/s

-5 samples

+5 samples

-3 samples

+7 samples

x

x

> 5 MS/s

+8 samples

+16 samples

+10 samples

+18 samples

x

x

< 10 MS/s

+22 samples

+31 samples

+24 samples

+33 samples

x

x

(10 < SR < 100) MS/s

+23 samples

+21 samples

+25 samples

+23 samples

x

x

> 100 MS/s

+16 samples

+32 samples

+18 samples

+34 samples

x

x

x

x

< 5 MS/s

-5 samples

+5 samples

-3 samples

+7 samples

x

x

x

x

> 5 MS/s

+8 samples

+16 samples

+10 samples

+18 samples

SpcSetParam (hDrv, SPC_MULTI, 1); // Enables Multiple Recording

SpcSetParam (hDrv, SPC_POSTTRIGGER, 1024); // Set the segment size to 1024 samples
SpcSetParam (hDrv, SPC_MEMSIZE, 4096); // Set the total memsize for recording to 4096 samples
// so that actually four segments will be recorded
SpcSetParam (hDrv, SPC_TRIGGERMODE, TM_TTLPOS);// Set the triggermode to external TTL mode (rising edge)