DAQFlexDocument Revision 9 November 2013 © Copyright 2013 Software User's Guide
DAQFlex Software User's Guide Using DAQFlex Software 10 VB Dim deviceNumber As Integer Dim device As DaqDevice Dim deviceName As String devic
DAQFlex Software User's Guide Hardware Reference – USB-200 Series 100 Component Supported Property/Command Set/Get Supported Values SAMPLES Set/
DAQFlex Software User's Guide Hardware Reference – USB-200 Series 101 Component Supported Property/Command Set/Get Supported Values DIO{port/bit
DAQFlex Software User's Guide Hardware Reference – USB-1208FS-Plus 102 USB-1208FS-Plus Use the components below to set or get device properties.
DAQFlex Software User's Guide Hardware Reference – USB-1208FS-Plus 103 Component Supported Property/Command Set/Get Supported Values RANGE Set/G
DAQFlex Software User's Guide Hardware Reference – USB-1208FS-Plus 104 Component Supported Property/Command Set/Get Supported Values DEV FLASHLE
DAQFlex Software User's Guide Hardware Reference – USB-1408FS-Plus 105 USB-1408FS-Plus Use the components below to set or get device properties.
DAQFlex Software User's Guide Hardware Reference – USB-1408FS-Plus 106 Component Supported Property/Command Set/Get Supported Values RANGE Set/G
DAQFlex Software User's Guide Hardware Reference – USB-1408FS-Plus 107 Component Supported Property/Command Set/Get Supported Values DEV FLASHLE
DAQFlex Software User's Guide Hardware Reference – USB-1608FS-Plus 108 USB-1608FS-Plus Use the components below to set or get device properties.
DAQFlex Software User's Guide Hardware Reference – USB-1608FS-Plus 109 Component Supported Property/Command Set/Get Supported Values CTR Get N
DAQFlex Software User's Guide Using DAQFlex Software 11 Reading and writing software-paced I/O The following examples demonstrate how to perform
DAQFlex Software User's Guide Hardware Reference – USB-1608FS-Plus 110 External digital trigger Bidirectional external clock 32-bit e
DAQFlex Software User's Guide Hardware Reference – USB-1608G Series 111 USB-1608G Series The USB-1608G Series includes the following devices:
DAQFlex Software User's Guide Hardware Reference – USB-1608G Series 112 Component Supported Property/Command Set/Get Supported Values RESET Set
DAQFlex Software User's Guide Hardware Reference – USB-1608G Series 113 Component Supported Property/Command Set/Get Supported Values CTR Get
DAQFlex Software User's Guide Hardware Reference – USB-1608G Series 114 Hardware features 16 analog input channels, numbered 0 to 15. Anal
DAQFlex Software User's Guide Hardware Reference – USB-2001-TC 115 USB-2001-TC Use the components below to set or get device properties. Compone
DAQFlex Software User's Guide Hardware Reference – USB-2408 Series 116 USB-2408 Series The USB-2408 Series includes the following devices: US
DAQFlex Software User's Guide Hardware Reference – USB-2408 Series 117 Component Supported Property/Command Set/Get Supported Values AISCAN BUFO
DAQFlex Software User's Guide Hardware Reference – USB-2408 Series 118 Component Supported Property/Command Set/Get Supported Values SAMPLES Set
DAQFlex Software User's Guide Hardware Reference – USB-2408 Series 119 o ±0.625V o ±0.3125V o ±0.15625V o ±0.078125V The analog thermocouple
DAQFlex Software User's Guide Using DAQFlex Software 12 Reading an analog input channel C# // Read the value of analog input channel 0 String[]
DAQFlex Software User's Guide Hardware Reference – USB-7202 120 USB-7202 Use the components below to set or get device properties. Component Sup
DAQFlex Software User's Guide Hardware Reference – USB-7202 121 Component Supported Property/Command Set/Get Supported Values DEV FLASHLED/{n} S
DAQFlex Software User's Guide Hardware Reference – USB-7204 122 USB-7204 Use the components below to set or get device properties. Component Sup
DAQFlex Software User's Guide Hardware Reference – USB-7204 123 Component Supported Property/Command Set/Get Supported Values AO Get Number of
DAQFlex Software User's Guide Hardware Reference – USB-7204 124 Hardware features Two digital ports. Each port is individually configurable a
Measurement Computing Corporation 10 Commerce Way Suite 1008 Norton, Massachusetts 02766 (508) 946-5100 Fax: (508) 946-9500 E-mail: [email protected]
DAQFlex Software User's Guide Using DAQFlex Software 13 Writing to an analog output channel C# // Write a value to analog output channel 0 Strin
DAQFlex Software User's Guide Using DAQFlex Software 14 Reading a digital bit C# // Read the value of digital port 0, bit 0 String[] Devices; Da
DAQFlex Software User's Guide Using DAQFlex Software 15 Writing to a digital bit C# // Write a value to digital port 0, bit 0 String[] Devices;
DAQFlex Software User's Guide Using DAQFlex Software 16 Reading a digital port C# // Read the value of digital port 0 String[] Devices; DaqDevic
DAQFlex Software User's Guide Using DAQFlex Software 17 Writing to a digital port C# // Write a value to digital port 0 String[] Devices; DaqDev
DAQFlex Software User's Guide Using DAQFlex Software 18 Reading a counter input channel C# // Read counter channel 0 String[] Devices; DaqDevice
DAQFlex Software User's Guide Using DAQFlex Software 19 ' Stop the counter MyDevice.SendMessage("CTR{0}:STOP") Catch Ex As Except
SM DAQFlex_Software.docx Your new Measurement Computing product comes with a fantastic extra — Management committed to your satisfaction! Thank you
DAQFlex Software User's Guide Using DAQFlex Software 20 ReadScanData() parameters The first parameter to the ReadScanData method is the numbe
DAQFlex Software User's Guide Using DAQFlex Software 21 The following are examples of reading scan data using a callback method: C# try { double
DAQFlex Software User's Guide Using DAQFlex Software 22 VB Try Dim ScanData As Double(,) Dim Names As String() Dim Device As DaqDevice Names =
DAQFlex Software User's Guide Using DAQFlex Software 23 catch (Exception ex) { Console.WriteLine(ex.Message); } VB Try Dim ScanData As Double(,
24 Chapter 3 DAQFlex Software Reference The DAQFlex Software API is an open source library that implements a simple message-based protocol consisting
DAQFlex Software User's Guide DAQFlex Software Reference 25 If using a device that does not have an ID assigned, you must use the NameOnly or Na
DAQFlex Software User's Guide DAQFlex Software Reference 26 DaqDeviceManager.ReleaseDevice() Frees the resources associated with a DaqDevice obj
DAQFlex Software User's Guide DAQFlex Software Reference 27 The ToString method has additional overloads that accept formatting parameters. T
DAQFlex Software User's Guide DAQFlex Software Reference 28 DaqDevice.WriteScanData() Outputs scan data. C#: void WriteScanData(double[,] scanDa
DAQFlex Software User's Guide DAQFlex Software Reference 29 Return value The value of callbackType. Remarks This method is used in conjunctio
3 Table of Contents Preface About this User's Guide ...
DAQFlex Software User's Guide DAQFlex Software Reference 30 DaqDevice.GetSupportedMessages() Gets the messages supported by a DAQ component. C#:
31 Chapter 4 DAQFlex Message Reference The software messages that you send to a DAQFlex supported device are text-based commands. Each message pertai
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 32 Programming messages Device programming messages are use
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 33 Get the status of the A/D internal calibration. Mess
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 34 Set the analog input mode single-ended or differentia
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 35 Get the A/D data rate in samples per channel for a sp
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 36 RES Get the resolution of the A/D converter. Message
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 37 Get the thermocouple sensor type. Message "?AI{
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AI 38 value The channel value. Example "?AI{0}:VALUE&qu
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AICAL 39 AICAL Gets the manufacturer calibration date and time
DAQFlex Software User's Guide 4 AICAL ...
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AIQUEUE 40 Example "?AIQUEUE{0}:CHAN" CHMODE Set
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AIQUEUE 41 Get the A/D data rate in samples per second for
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 42 AISCAN Sets and gets property values when scanning a
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 43 Get the size of the buffer used for AISCAN. Mess
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 44 COUNT Get the number of samples per channel that
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 45 HIGHCHAN Set the last channel to include in the h
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 46 Example "AISCAN:QUEUE=ENABLE" Note RESET r
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 47 element The position of the element in the gain qu
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 48 RESET Reset the status of the AISCAN operation.
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AISCAN 49 START Start an analog input scan. Message "
5 Preface About this User's Guide What you will learn from this user's guide This user's guide explains how to install, configure, and
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AITRIG 50 value ENABLE, DISABLE XFRMODE Set the transfer
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AITRIG 51 Example "AITRIG:REARM=ENABLE" Get the s
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AO 52 AO Sets and gets property values for analog output chann
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AO 53 REG Set the value of a DAC channel that supports simu
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AO 54 Get a value indicating whether scaling will be applie
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AOCAL 55 AOCAL Gets the manufacturer calibration date and time
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AOSCAN 56 value The size in bytes of the output buffer. Exam
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AOSCAN 57 HIGHCHAN Set the last D/A channel to include in t
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AOSCAN 58 value The range value. If the D/A channels are not
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AOSCAN 59 SCALE Enable or disable scaling of the D/A data.
6 Chapter 1 Introducing DAQFlex Software DAQFlex is a framework that combines a small footprint driver with a message-based command protocol. It is u
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – AOTRIG 60 AOTRIG Sets and gets analog output trigger property
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DEV 61 STOP Stop a specified counter channel. Message &quo
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DEV 62 FPGACFG Put the device into FPGA configuration mode
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DEV 63 Get the device ID. Message "?DEV:ID" Resp
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DEV 64 Get the minute in which the device was last calibrat
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DIO 65 TEMP Get the device internal temperature in °C. Me
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DIO 66 value IN, OUT Example "DIO{0}:DIR=IN" Note
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – DIO 67 port The port number (0). value The port value (0 t
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – TMR 68 Get the value of a port. Message "?DIO{port}:V
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – TMR 69 DELAY Set the amount of time in mS to delay before s
DAQFlex Software User's Guide Introducing DAQFlex Software 7 Microsoft Windows CE Development requirements: o Microsoft Windows XP/Vista o
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – TMR 70 Example "TMR{0}:IDLESTATE=HIGH" Note When val
DAQFlex Software User's Guide DAQFlex Message Reference – Programming messages – TMR 71 Get the value in Hz of the pulse frequency for a spe
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AI 72 Reflection messages Device reflection messages get inform
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AI 73 CHANNELS Get the number of analog input channels on a
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AI 74 INPUTS Get the analog input signal types that are supp
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AI 75 Note On some devices, the values returned may be dependen
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AISCAN 76 TCTYPES Get the thermocouple sensor types that are
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AISCAN 77 MAXBURSTRATE Get the maximum hardware-paced input
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AISCAN 78 MINBURSTRATE Get the minimum hardware-paced input
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AISCAN 79 QUEUESEQ Get the channel sequence format of the an
DAQFlex Software User's Guide Introducing DAQFlex Software 8 Windows CE 1. Go to the DAQFlex download page at www.mccdaq.com/DAQFlexDL and sele
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AITRIG 80 XFRSIZE Get the number of bytes used in the transf
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AO 81 SRCS Set the edge trigger type. Message "@AITRIG
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AO 82 FACCAL Get a value indicating if the device supports f
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AOSCAN 83 Example "AO{0}:OUTPUTS=PROG%VOLTS,CUR" RANG
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AOSCAN 84 EXTPACER Get a value indicating which D/A pacing s
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – AOSCAN 85 MINSCANRATE Get the minimum hardware-paced output
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – CTR 86 CTR Gets the counter channel properties of a device. Pro
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – CTR 87 LDMIN Get the minimum count value that can be set usi
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – DIO 88 DIO Gets the digital I/O properties of a device. Propert
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – TMR 89 MAXCOUNT Get the maximum count of the specified port.
9 Chapter 2 Using DAQFlex Software The following procedure describes how to program a DAQFlex-supported device with DAQFlex software. 1. Add a refer
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – TMR 90 CLKSRC Get the clock source for the specified timer c
DAQFlex Software User's Guide DAQFlex Message Reference – Reflection messages – TMR 91 MAXCOUNT Get the maximum count for the specified time
92 Chapter 5 FlexTest Utility FlexTest is an interactive GUI-based test utility that demonstrates how to communicate with a device using the DAQFlex
DAQFlex Software User's Guide FlexTest Utility 93 FlexTest user interface The FlexTest window features the following controls: Devices drop-d
DAQFlex Software User's Guide FlexTest Utility 94 o Select AISCAN:RANGE=*. Highlight the asterisk and enter "BIP10V", then click Send
DAQFlex Software User's Guide FlexTest Utility 95 The Ai Self Calibration window opens. 3. Click the Start button to start calibrating the ana
96 Chapter 6 C# and VB Example Programs Complete C# and VB example programs are installed with DAQFlex that demonstrate how to configure DAQFlex-supp
DAQFlex Software User's Guide C# and VB Example Programs 97 4. From a terminal window, run the example programs as a non-root user by entering
98 Chapter 7 Hardware Reference Select your DAQFlex-supported device below for the components and programming messages supported by the device. Note:
DAQFlex Software User's Guide Hardware Reference – USB-200 Series 99 USB-200 Series The USB-200 Series includes the following devices: USB-20
Komentarze do niniejszej Instrukcji