Measurement Computing DAQFlex User Guide User Manual
Page 3
![background image](https://www.manualsdir.com/files/797444/content/doc003.png)
3
Table of Contents
Preface
About this User's Guide ....................................................................................................................... 5
What you will learn from this user's guide ............................................................................................ 5
Conventions in this user's guide ......................................................................................................... 5
Where to find more information .......................................................................................................... 5
Chapter 1
Introducing DAQFlex Software ............................................................................................................ 6
Platform support ............................................................................................................................... 6
Hardware requirements ..................................................................................................................... 7
Installing the DAQFlex software library ................................................................................................ 7
Windows 8, Windows 7, Windows Vista, and Windows XP .................................................................... 7
Windows CE .................................................................................................................................. 8
Mac OS X ...................................................................................................................................... 8
Linux ............................................................................................................................................ 8
Chapter 2
Using DAQFlex Software ...................................................................................................................... 9
Reading and writing software-paced I/O ............................................................................................ 11
Reading an analog input channel.................................................................................................... 12
Writing to an analog output channel ............................................................................................... 13
Reading a digital bit ..................................................................................................................... 14
Writing to a digital bit ................................................................................................................... 15
Reading a digital port ................................................................................................................... 16
Writing to a digital port ................................................................................................................. 17
Reading a counter input channel .................................................................................................... 18
Reading hardware-paced I/O ............................................................................................................ 19
ReadScanData() parameters ......................................................................................................... 20
Internal buffer ............................................................................................................................. 20
CallbackType ............................................................................................................................... 20
Writing hardware-paced I/O ............................................................................................................. 22
WriteScanData() parameters ......................................................................................................... 23
Internal buffer ............................................................................................................................. 23
Chapter 3
DAQFlex Software Reference ............................................................................................................ 24
DaqDeviceManager class ................................................................................................................. 24
DaqDeviceManager.GetDeviceNames() ........................................................................................... 24
DaqDeviceManager.CreateDevice() ................................................................................................ 25
DaqDeviceManager.ReleaseDevice() ............................................................................................... 26
DaqDevice class ............................................................................................................................. 26
DaqDevice.SendMessage() ............................................................................................................ 26
DaqDevice.ReadScanData() ........................................................................................................... 27
DaqDevice.WriteScanData() .......................................................................................................... 28
DaqDevice.EnableCallback() .......................................................................................................... 28
InputScanCallback Delegate .......................................................................................................... 29
DaqDevice.DisableCallback() ......................................................................................................... 29
DaqDevice.GetErrorMessage() ....................................................................................................... 29
DaqDevice.GetSupportedMessages() .............................................................................................. 30
Chapter 4
DAQFlex Message Reference ............................................................................................................ 31
DAQFlex components ...................................................................................................................... 31
Programming messages................................................................................................................... 32
AI .............................................................................................................................................. 32