Download Universal Library for LabVIEW TM

Transcript
cbCLoad32()
Description:
Loads the specified counter’s COUNT, PRESET or PRESCALER register with a count.
Summary:
int cbCLoad32 (int BoardNum, int RegName, unsigned long LoadValue)
Arguments:
Inputs:
BoardNum [U32] - The board number when installed with InstaCal. Can be 0 to 100.
RegName [U32] - Register to load LoadValue in to.
LoadValue [U32] - Value to be loaded into RegName
Outputs:
BoardNum [U32] - The board number when installed with InstaCal. Can be 0 to 100.
ErrCode [U32]- Error code
Explanation of the Arguments:
BoardNum - Refers to the board number associated with the board when it was installed with the configuration program. The specified board must have an LS7266 counter.
RegName - The register to load the value into. Valid register names are:
COUNT1 - 4
Used to initialize the counter
PRESET1 - 4
Used to set upper limit of counter in some modes
PRECSALER1 - 4
Used for clock filtering
LoadValue - The value to be loaded.
Returns - Error code or 0 if no error occurs
Note: cbCLoad() vs cbCLoad32()
The cbCLoad() and cbCLoad32() perform the same operation. The only difference between the two is that cbCLoad() loads a 16-bit
count value and cbCLoad32() loads a 32 bit value. The only time you need to use cbCLoad32() is when loading counts that are larger
than 32 bits (counts > 65535).
43