DS-MPE-DAQ0804 Universal Driver User Manual A.0 www.diamondsystems.com Page 2
CONTENTS
1. Introduction ...................................................................................................................................................... 4
2. Hardware Overview .......................................................................................................................................... 5
2.1 Description .................................................................................................................................................... 5
2.2 Specifications ................................................................................................................................................ 5
3. General programming guidelines ................................................................................................................... 6
3.1 Initialization and Exit Function Calls ............................................................................................................. 6
3.2 Error Handling ............................................................................................................................................... 7
4. Universal Driver API Description .................................................................................................................... 8
4.1 DAQ0804ADSetSettings ............................................................................................................................... 8
4.2 DAQ0804ADSetTiming ................................................................................................................................. 9
4.3 DAQ0804ADSetChannelRange .................................................................................................................. 10
4.4 DAQ0804ADSetChannel............................................................................................................................. 11
4.5 DAQ0804ADTrigger .................................................................................................................................... 12
4.6 DAQ0804ADConvert ................................................................................................................................... 13
4.7 DAQ0804ADInt ........................................................................................................................................... 14
4.8 DAQ0804ADIntStatus ................................................................................................................................. 15
4.9 DAQ0804ADIntPause ................................................................................................................................. 16
4.10 DAQ0804ADIntResume .............................................................................................................................. 16
4.11 DAQ0804ADIntCancel ................................................................................................................................ 17
4.12 DAQ0804DASetSettings ............................................................................................................................. 17
4.13 DAQ0804DAConvert ................................................................................................................................... 18
4.14 DAQ0804DAConvertScan .......................................................................................................................... 19
4.15 DAQ0804DAFunction .................................................................................................................................. 20
4.16 DAQ0804DAUpdate .................................................................................................................................... 21
4.17 DAQ0804WaveformBufferLoad .................................................................................................................. 22
4.18 DAQ0804WaveformConfig ......................................................................................................................... 23
4.19 DAQ0804WaveformStart ............................................................................................................................ 24
4.20 DAQ0804WaveformPause .......................................................................................................................... 24
4.21 DAQ0804WaveformReset........................................................................................................................... 25
4.22 DAQ0804WaveformInc ............................................................................................................................... 26
4.23 DAQ0804DIOConfig .................................................................................................................................... 26
4.24 DAQ0804DIOConfigAll................................................................................................................................ 27
4.25 DAQ0804DIOOutputByte ............................................................................................................................ 27
4.26 DAQ0804DIOInputByte ............................................................................................................................... 28
4.27 DAQ0804DIOOutputBit ............................................................................................................................... 28
4.28 DAQ0804DIOInputBit .................................................................................................................................. 29
4.29 DAQ0804CounterSetRate .......................................................................................................................... 30
4.30 DAQ0804CounterConfig ............................................................................................................................. 31
4.31 DAQ0804CounterRead ............................................................................................................................... 32
4.32 DAQ0804CounterFunction .......................................................................................................................... 33
4.33 DAQ0804PWMConfig ................................................................................................................................. 34
4.34 DAQ0804PWMStart .................................................................................................................................... 35
4.35 DAQ0804PWMStop .................................................................................................................................... 35
4.36 DAQ0804PWMCommand ........................................................................................................................... 36
4.37 DAQ0804UserInterruptConfig ..................................................................................................................... 37
4.38 DAQ0804UserInterruptRun ......................................................................................................................... 38
4.39 DAQ0804UserInterruptCancel .................................................................................................................... 38
4.40 DAQ0804InitBoard ...................................................................................................................................... 39
4.41 DAQ0804FreeBoard ................................................................................................................................... 39
4.42 DAQ0804LED ............................................................................................................................................. 40
4.43 DAQ0804FIFOStatus .................................................................................................................................. 41
5. Universal Driver Application Description .................................................................................................... 42
5.1 DA Convert .................................................................................................................................................. 42