National Instruments 321645c-01 Welding System User Manual


 
Chapter 2 Function Reference WFM_Set_Clock
©
National Instruments Corporation 2-441 NI-DAQ FRM for PC Compatibles
WFM_Set_Clock
Format
WFM_Set_Clock (deviceNumber, group, whichClock, desiredRate, units, actualRate)
Purpose
Sets the update rate for a group of channels (DSA devices only).
Parameters
Input
Output
Parameter Discussion
group is the group of analog output channels (see WFM_Group_Setup
)
.
Range: 1.
whichClock indicates the type of clock. Only one clock is currently supported so set this
parameter to zero.
desiredRate is the rate at which you want data points to be sent to the DACs.
units determines how desiredRate and actualRate are interpreted:
0: points per second
1: seconds per point
Name Type Description
deviceNumber i16 assigned by configuration utility
group i16 group of analog output channels
whichClock u32 only update clock supported
desiredRate f64 desired update rate in units
units u32 ticks/second or seconds/tick
Name Type Description
actualRate f64 actual update rate in units