4-8
|
ni.com
Chapter 4
Counter Output
You can specify the points in the waveform buffer in terms of:
•
Time
•
Ticks of the timebase clock (10 ns by default)
•
Frequency and duty cycle
Create Channel
Use one of the following functions to create a channel. Select the VI or function that corresponds
to the format of the data in the waveform buffer:
•
DAQmx Create Channel (CO Pulse-Generation Time)
•
DAQmx Create Channel (CO Pulse-Generation Ticks)
•
DAQmx Create Channel (CO Pulse-Generation Frequency)
Channel Settings
By default, the counter outputs the pulses on a default PFI terminal. Refer to Chapter 5,
, for more information
You can change the output terminal by using the CO.Pulse.Term DAQmx Channel property.
Timing Settings
For this type of generation use Implicit timing by calling the DAQmx Timing (Implicit) VI or
function.
Triggering Setting
By default, the NI 6614 begins generating the pulses when you call the DAQmx Start Task VI
or function. The NI 6614 can also begin generating pulses in response to a digital trigger.
To use a start trigger, call the DAQmx Start Trigger (Digital Edge) VI or function. Inputs to this
VI or function include:
•
Source—To specify which terminal to use as the Start Trigger signal
•
Edge—To specify a rising or falling edge.
The following DAQmx Trigger properties configure the Start Trigger:
•
Start.Delay, Start.DelayUnits—To set the delay from when the trigger occurs to when the
NI 6614 begins generating pulses. Note: even if the Start.Delay is set to 0, the NI 6614
inserts a minimum delay equal to two ticks of the counter timebase.
•
Start.DigEdge.DigFltr.Enable, Start.DigEdge.DigFltr.MinPulseWidth—To enable and
configure a digital filter on the start trigger input. This filter eliminate noise on the start
trigger signal. Refer to Chapter 6,
, for more information.