Digilent WaveForms User Manual
Page 79
WaveForms™ SDK Reference Manual
Copyright Digilent, Inc. All rights reserved.
Other product and company names mentioned may be trademarks of their respective owners.
Page 79 of 85
FDwfDigitalOutCounterSet(
HDWF hdwf,
int
idxChannel,
unsigned
int
vLow,
unsigned
int
vHigh)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- vLow – Counter low value.
- vHigh – Counter high value.
The function above sets the counter low and high values of the specified channel.
FDwfDigitalOutCounterGet(
HDWF hdwf,
int
idxChannel,
unsigned
int
*pvLow,
unsigned
int
*pvHigh)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- pvLow – Pointer to variable to receive configured value.
- pvHigh – Pointer to variable to receive configured value.
The function above is used to verify the low and high counter value of the specified channel.
FDwfDigitalOutDataInfo(
HDWF hdwf,
int
idxChannel,
unsigned
int
*pcountOfBitsMax)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- pcountOfBitsMax – Variable to receive the maximum number of bits.
The function above is used to return the maximum buffers size, the number of custom data bits.
FDwfDigitalOutDataSet(
HDWF hdwf,
int
idxChannel,
void
*rgBits,
unsigned
int
countOfBits)
Parameters:
- hdwf – Interface handle.
- idxChannel – Channel index.
- rgBits – Custom data array.
- countOfBits –Number of bits.
The function above is used to set the custom data bits. The function also sets the counter initial, low and high
value, according the number of bits. The data bits are sent out in LSB first order. For TS output, the count of bits is
the total number of output value (I/O) and output enable (OE) bits, which should be an even number.
Custom Data Bits
BYTE
0
1
Bits
0
1
2
3
...
7
0
1
...
Output
I/O(0)
OE(0)
I/O(1)
OE(1)
...
OE(3)
I/O(4)
OE(4)
...