
PCI.412 manual
31.03.2004
Page 22 of 26
Triggermode register
register name
reg no.
r/w
SPC_TRIGGERMODE
40000
w
Triggermode for recording.
triggermodes
value
TM_SOFTWARE
0
Recording will start immediately.
TM_TTLPOS
20000
Wait for external TTL trigger rising edge.
TM_TTLNEG
20010
Wait for external TTL trigger falling edge.
TM_GATELOW
30000
Wait for external low-level (option).
TM_GATEHIGH
30010
Wait for external high-level (option).
TM_CHOR
35000
Wait for the first triggerevent off all enabled channels.
TM_CHAND
35010
Wait for all triggerevents off all enabled channels.
register name
reg no.
r/w
SPC_TRIGGERMODE0
40200
w
Channelmode for the triggermode TM_CHOR or TM_CHAND.
SPC_TRIGGERMODE1
40201
w
Channelmode for the triggermode TM_CHOR or TM_CHAND.
SPC_TRIGGERMODE2
40202
w
Channelmode for the triggermode TM_CHOR or TM_CHAND.
SPC_TRIGGERMODE3
40203
w
Channelmode for the triggermode TM_CHOR or TM_CHAND.
channelmode
value
TM_CH0POS
10000
Wait for rising edge on channel 0 at triggerlevel
TM_CH0NEG
10010
Wait for falling edge on channel 0 at triggerlevel
TM_CH0OFF
10020
Channel 0 is disabled for triggering.
TM_CH1POS
10100
Wait for rising edge on channel 1 at triggerlevel
TM_CH1NEG
10110
Wait for falling edge on channel 1 at triggerlevel
TM_CH1OFF
10120
Channel 1 is disabled for triggering.
TM_CH2POS
10200
Wait for rising edge on channel 2 at triggerlevel
TM_CH2NEG
10210
Wait for falling edge on channel 2 at triggerlevel
TM_CH2OFF
10220
Channel 2 is disabled for triggering.
TM_CH3POS
10300
Wait for rising edge on channel 3 at triggerlevel
TM_CH3NEG
10310
Wait for falling edge on channel 3 at triggerlevel
TM_CH3OFF
10320
Channel 3 is disabled for triggering.
A trigger for only one channel (e. g. channel 1) is easily set by using these commands:
(1)
Write TM_CHOR to the SPC_TRIGGERMODE register.
(2a)
Write TM_CH1POS or TM_CH1NEG to the SPC_TRIGGERMODE1 register.
(2b)
Write TM_CH0OFF to the SPC_TRIGGERMODE0 register.
(2c)
Write TM_CH2OFF to the SPC_TRIGGERMODE2 register.
(2d)
Write TM_CH3OFF to the SPC_TRIGGERMODE3 register.
(3)
Write the triggerlevel for channel 1 to the SPC_TRIGGERLEVEL1 register.
For a trigger-combination of the channels 0, 1 and 2 the following commands are needed:
(1)
Write TM_CHOR or TM_CHAND to the SPC_TRIGGERMODE register.
(2a)
Write TM_CH0POS or TM_CH0NEG to the SPC_TRIGGERMODE0 register.
(2b)
Write TM_CH1POS or TM_CH1NEG to the SPC_TRIGGERMODE1 register.
(2c)
Write TM_CH2POS or TM_CH2NEG to the SPC_TRIGGERMODE2 register.
(2d)
Write TM_CH3OFF to the SPC_TRIGGERMDCH3 register.
(3a)
Write the triggerlevel for channel 0 to the SPC_TRIGGERLEVEL0 register.
(3b)
Write the triggerlevel for channel 1 to the SPC_TRIGGERLEVEL1 register.
(3c)
Write the triggerlevel for channel 2 to the SPC_TRIGGERLEVEL2 register.