National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference WFM_ClockRate
NI-DAQ FRM for PC Compatibles 2-410
©
National Instruments Corporation
Delay interval prescalar 2 corresponds to the interval argument you use in this function
when whichclock = 3. If you do not call this function with whichclock = 3, this interval
is 2.
When whichclock = 2, NI-DAQ ignores timebase and mode arguments. Legal range for
delay interval prescalar 1 is 1 through 2
24
.
When whichclock = 3, NI-DAQ ignores timebase and mode arguments. Legal range for
delay interval prescalar 2 is 2 through 2
24
.
Example:
Let us compute the delay time after the following sequence of function calls:
WFM_ClockRate(deviceNumber, group, 0, -3, 1000, 0)
WFM_ClockRate(deviceNumber, group, 1, -3, 4000, 1)
WFM_ClockRate(deviceNumber, group, 2, -3, 7000, 1)
In this case, timebase period is 50 ns, delay interval is 4,000, delay interval prescalar 1
is 7,000, delay interval prescalar 2 is 2, so the delay time is
50 ns
4000
7000
2 = 2,800,000,000 ns = 2.8 s.
Notice that the maximum possible delay time with the 20 MHz internal timebase is
50 ns
2
24
2
24
2
24
= 7.5 million years.