Digilent WaveForms Manuale Utente Pagina 79

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 85
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 78
WaveForms™ SDK Reference Manual
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)
...
Vedere la pagina 78
1 2 ... 74 75 76 77 78 79 80 81 82 83 84 85

Commenti su questo manuale

Nessun commento