National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference WFM_ClockRate
NI-DAQ FRM for PC Compatibles 2-406
©
National Instruments Corporation
WFM_ClockRate
Format
status = WFM_ClockRate (deviceNumber, group, whichclock, timebase, interval, mode)
Purpose
Sets an update rate and a delay rate for a group of analog output channels.
Parameters
Input
Parameter Discussion
group is the group of analog output channels (see WFM_Group_Setup).
Range: 1 for most devices.
1 or 2 for the AT-AO-6/10.
whichclock indicates the type of clock:
0: The update clock (default).
1: The delay clock.
2: The delay clock prescalar 1 (E Series devices only).
3: The delay clock prescalar 2 (E Series devices only).
Notice that you can program the delay clock only on the AT-MIO-16X, AT-MIO-64F-5,
and E Series devices.
timebase is the timebase, or resolution, NI-DAQ uses in determining interval. timebase has
the following possible values:
–4: 40 MHz clock used as a timebase (25ns) (DAQArb 5411 only).
–3: 20 MHz clock used as a timebase (50 ns) (E Series only).
–1: 5 MHz clock used as timebase (200 ns resolution) (AT-MIO-16F-5,
AT-MIO-64F-5, and AT-MIO-16X only)
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group of analog output channels
whichclock i16 the update or delay clock
timebase i16 resolution
interval u32 timebase divisor
mode i16 enables the delay clock