5-4
|
ni.com
Chapter 5
Counter Signal Routing
The following example shows how to use Table 5-3 and the Device Routes table in MAX:
Assuming you are using Counter 2 for an edge-counting application, and are looking for all
possible signals that can be used for the Pause Trigger.
1.
Note that the Pause Trigger is set by the Pause.DigLvl.Src property in DAQmx. Refer to
the
section in Chapter 3,
, for more information.
2.
Check Table 5-3 for Pause.DigLvl.Src. Table 5-3 indicates that this property is routed to the
Ctr2Gate input of Counter 2.
3.
Launch the Device Routes table per the instructions in
. The column
labeled
/<device name>/Ctr2Gate
lists all signals that can be routed to Ctr2Gate, and
those are therefore all the signals that can be used as the Pause Trigger.
Table 5-3.
Matching Routing Terminology
DAQmx Property
Counter Input Signal
ArmStart.DigEdge.Src
Ctr
n
ArmStartTrigger
CI.CountEdges.CountReset.Term
Ctr
n
Gate
CI.CountEdges.DirTerm
Ctr
n
B
CI.CountEdges.Term
Ctr
n
Source
CI.Encoder.AInputTerm
Ctr
n
A
CI.Encoder.BInputTerm
Ctr
n
B
CI.Encoder.ZInputTerm
Ctr
n
Z
CI.Freq.Term
Low Frequency with One Counter or
when using Sample Clock
Ctr
n
Gate
Large Range with Two Counter or
High Frequency with Two Counters
Ctr
n
Source
CI.Pulse.Freq.Term
Ctr
n
Gate
CI.Pulse.Ticks.Term
CI.PulseWidth.Term
CI.SemiPeriod.Term
CI.TwoEdgeSep.First.Term
Ctr
n
Aux
CI.TwoEdgeSep.Second.Term
Ctr
n
Gate
Pause.DigLvl.Src