Measurement Studio NI-DAQmx.NET Examples

Similar documents
LV-Link 3.0 Software Interface for LabVIEW

Related Documentation

DT9838. Strain- and Bridge-Based Measurement Module. Key Features: Bridge Configurations. Analog Input Features

for NI PXI/PXIe User Manual Revision March PVI Systems, Inc. All Rights Reserved.

DT9838 Strain Measurement Module

Introduction to NI LabVIEW and Computer-Based Measurements. Elias Nicolas Applications Engineer National Instruments

ni.com Sensor Measurement Fundamentals Series

EKT 314/4 LABORATORIES SHEET

EKT 314/4 LABORATORIES SHEET

A software solution for mechanical change measurement through virtual instrumentation

IVI STEP TYPES. Contents

IT.MLD900 SENSORS AND TRANSDUCERS TRAINER. Signal Conditioning

Data Acquisition and Signal Conditioning

USB4. Encoder Data Acquisition USB Device Page 1 of 8. Description. Features

Analog Signal Conditioning Accessories

DAQ M Series. NI USB-621x User Manual. Bus-Powered M Series USB Devices. NI USB-621x User Manual. August A-01

Specifications for the NI PXI/PCI-6552/6551

Signal Conditioning Fundamentals for PC-Based Data Acquisition Systems

SCXI 8-Channel Isolated Analog Input Modules

USB-TEMP and TC Series USB-Based Temperature Measurement Devices

Data Acquisition Basics Manual

NI 6238/6239 Specifications

USB Dynamic Signal Acquisition

Hello, and welcome to this presentation of the FlexTimer or FTM module for Kinetis K series MCUs. In this session, you ll learn about the FTM, its

Lab 12 Laboratory 12 Data Acquisition Required Special Equipment: 12.1 Objectives 12.2 Introduction 12.3 A/D basics

DAQ. 6601/6602 User Manual. High-Speed Counter/Timer for PCI or PXI Bus Systems. 6601/6602 User Manual. January 1999 Edition Part Number B-01

Let`s get SIRIUS! SIRIUS Overview. SIRIUS from Dewesoft. SIRIUS Overview. The new hardware generation makes your measurement more precise!

DAQ. PCI/PXI User Manual. High-Speed Counter/Timer for PCI or PXI Bus Systems. PCI/PXI-6602 User Manual

NI PXI/PCI-6561/6562 Specifications

Measurement & Control of energy systems. Teppo Myllys National Instruments

NI 622x Specifications

DAQ. PXI E Series User Manual. Multifunction I/O Boards for PXI and CompactPCI Bus Computers. January 1999 Edition Part Number C-01

Burst mode - This is incorporated to simulate simultaneous analog input. Compatible with a range of Application Development Environments

CALIBRATION PROCEDURE PXIe-4302/4303 and TB-4302C 32 Ch, 24-bit, 5 ks/s or 51.2 ks/s Simultaneous Filtered Data Acquisition Module. ni.

Industrial M Series Multifunction DAQ 16-Bit, ±10 V/±20 ma Analog I/O, 5 V/24 V Digital I/O

Advanced Lab LAB 6: Signal Acquisition & Spectrum Analysis Using VirtualBench DSA Equipment: Objectives:

Let`s get SIRIUS! SIRIUS Overview. SIRIUS from Dewesoft. SIRIUS Overview. The new hardware generation makes your measurement more precise!

NI 272x Help. Related Documentation. NI 272x Hardware Fundamentals

24-Bit, ks/s Dynamic Signal Acquisition and Generation

BNC-2121 Connector Accessory for 660X Devices

Computerized Data Acquisition Systems. Chapter 4

Ethernet-Based Temperature, Voltage and Strain Measurement Modules

DAQ. DAQCard E Series User Manual. Multifunction I/O Cards for PCMCIA. March 1999 Edition Part Number C-01

Signal Generation in LabVIEW

Contents CALIBRATION PROCEDURE NI PXI-5404

NI 6230 Specifications

NI 6023E/6024E/6025E Family Specifications

NI 6040E Family Specifications

NI 6731/6733 Specifications

EDS-400A COMPACT RECORDER. New KYOWA ELECTRONIC INSTRUMENTS CO., LTD.

MECE 3320 Measurements & Instrumentation. Data Acquisition

Contents. CALIBRATION PROCEDURE NI PXIe-4463 DSA Analog Output

CprE 288 Introduction to Embedded Systems (Output Compare and PWM) Instructors: Dr. Phillip Jones

Designing with STM32F3x

NI 6624 Calibration Procedure

PXI Timing and Synchronization Control

VT1419A Multifunctional Plus Measurement and Control Module

Chapter 2 Analog-to-Digital Conversion...

NI USB Introduction USER GUIDE AND SPECIFICATIONS. 4-Channel, ±5 V, 24-Bit IEPE Analog Input Device

National Instruments Switches

NI 6143 Specifications

NIFGEN Functions Supported by Device

Developer Techniques Sessions

Course Introduction. Content 20 pages 3 questions. Learning Time 30 minutes

Hashemite University Mechatronics Engineering Department Mechatronics Systems Laboratory Manual

Analog Input SPECIFICATIONS NI 6320/6321/6323

RF and Microwave Test and Design Roadshow Cape Town & Midrand

NI PXI/PCI-5411/5431 Specifications

NI 6124 Specifications

LabVIEW Data Acquisition Basics Manual

Spectral Monitoring/ SigInt

ELG3336 Design of Mechatronics System

Grundlagen Microcontroller Counter/Timer. Günther Gridling Bettina Weiss

NI PXI/PCI-5411/5431 Specifications

USB Multifunction Arbitrary Waveform Generator AWG2300. User Guide

Ch 5 Hardware Components for Automation

Correlation of Voltage and Temperature Measurement

DAQ. PCI-6110/6111 User Manual. Multifunction I/O Devices for PCI Bus Computers. November 2000 Edition Part Number C-01

INSTALLATION GUIDE BNC-2120 Connector Accessory for E/M/S Series Devices. Contents

LC-10 Chipless TagReader v 2.0 August 2006

These specifications apply to the PXIe-5113 with 64 MB and 512 MB of memory.

PXI. NI PXI-4220 User Manual. NI PXI-4220 User Manual. May B-01

User Guide for TPCX, TPCE, TPCE-LE and TPCE-I

NI 6013/6014 Family Specifications

DI-1100 USB Data Acquisition (DAQ) System Communication Protocol

ET 438B Sequential Digital Control and Data Acquisition Laboratory 4 Analog Measurement and Digital Control Integration Using LabVIEW

I hope you have completed Part 2 of the Experiment and is ready for Part 3.

PHYS225 Lecture 22. Electronic Circuits

Agilent U2300A Series USB Modular Multifunction Data-Acquisition Devices

PXIe Contents. Required Software CALIBRATION PROCEDURE

Lab 2A: Introduction to Sensing and Data Acquisition

Motor Control using NXP s LPC2900

Data acquisition and instrumentation. Data acquisition

LAB #3: Virtual Instruments; Behavior of Second-Order Systems

Contents. CALIBRATION PROCEDURE NI PXIe-6555/6556. ni.com/manuals

EMX-1434 APPLICATIONS FEATURES A SMART PXI EXPRESS 4-CHANNEL KSA/S ARBITRARY WAVEFORM GENERATOR

National Instruments Switches

ATS330. ATS MS/s 12-Bit PCI Digitizer

Bus-Powered M Series Multifunction DAQ for USB - 16-Bit, up to 400 ks/s, up to 32 Analog Inputs, Isolation

NI 5421 Specifications NI PXI/PCI Bit 100 MS/s Arbitrary Waveform Generator

Transcription:

Page 1 of 13 NI Measurement Studio.NET Class Library Measurement Studio NI-DAQmx.NET Examples When you install the Measurement Studio NI-DAQmx.NET class library, example programs are installed by default. The location of the Microsoft Visual Basic.NET and Visual C# examples are relative to the default installation directory. Refer to Where to Find Examples for a list of the default directories. Name and Description AcqMultVoltageSamples_SWTimed finite amount of data using a software timer. AcqOneVoltageSample single reading from a constant or slowly varying signal. AcqStrainSamples perform a strain measurement. AcqVoltageSamples_ExtClk finite amount of data using an external clock. AcqVoltageSamples_IntClk finite amount of data using an internal clock. AcqVoltageSamples_IntClkAnalogStart finite amount of data using the DAQ device's internal clock, started by an analog edge condition. AcqVoltageSamples_IntClkDigRef finite amount of data using an internal clock and a digital reference trigger. AcqVoltageSamples_IntClkDigStartAndRef finite amount of data using an internal clock and a digital start and reference trigger. ContAcqCustomVoltageSamples_9237 This example performs Wheatstone Bridge Default Install Location Voltage\AcqMultVoltageSamples_SWTimed\CS Voltage\AcqMultVoltageSamples_SWTimed\VB Voltage\AcqOneVoltageSample\CS Voltage\AcqOneVoltageSample\VB Strain\AcqStrainSamples\CS Strain\AcqStrainSamples\VB Voltage\AcqVoltageSamples_ExtClk\CS Voltage\AcqVoltageSamples_ExtClk\VB Voltage\AcqVoltageSamples_IntClk\CS Voltage\AcqVoltageSamples_IntClk\VB Voltage\AcqVoltageSamples_IntClkAnalogStart\CS Voltage\AcqVoltageSamples_IntClkAnalogStart\VB Voltage\AcqVoltageSamples_IntClkDigRef\CS Voltage\AcqVoltageSamples_IntClkDigRef\VB Voltage\AcqVoltageSamples_IntClkDigStartAndRef\CS Voltage\AcqVoltageSamples_IntClkDigStartAndRef\VB Wheatstone

Page 2 of 13 measurements with offset nulling if desired. AIAOShardTimebaseAndTrig_DSA This example synchronizes the clocks and trigger on two Dynamic Signal Acquistion (DSA) devices and performs continuous analog input and output. NOTE: This example is intended to show low level synchronization of various devices. DSA and S Series devices now support including channels from multiple devices in a single task. DAQmx automatically synchronizes the devices in such a task. See the DAQmx Help>>NI- DAQmx Device Considerations>>Multidevice Tasks section for further details.note: If you are using PXI DSA devices along with sample clock timebase synchronization, the master device must reside in PXI slot 2.NOTE: This code will not run "as-is" on a multifunction (MIO) DAQ device. AIContAcquisition continuous amount of data using the DAQ device's internal clock. It also shows how to synchronize two devices for different device families (E Series, M Series, and DSA), to simultaneously acquire the data.note: This example is intended to show low level synchronization of various devices. DSA and S Series devices now support including channels from multiple devices in a single task. DAQmx automatically synchronizes the devices in such a task. See the DAQmx Help>>NI-DAQmx Device Considerations>>Multidevice Tasks section for further details.note: PXI 6115 and 6120 (S Series) devices don't require sharing of master timebase, because they auto-lock to Clock 10. For those devices sharing a start trigger is adequate.note: For the PCI-6154 S Series device use the M Series (PCI) synchronization type to synchronize using the reference clock. AIFiniteAcquisition finite amount of analog input data using two DAQ devices' internal clocks. It also synchronizes these devices depending on the device family (E Series, M Series, or DSA) to simultaneously acquire the data.note: This example is intended to show low level synchronization of various devices. DSA and S Series devices now support including channels from multiple devices in a single task. DAQmx automatically synchronizes the devices in such a task. See the DAQmx Help>>NI-DAQmx Device Considerations>>Multidevice Tasks section for further details.note: PXI 6115 and 6120 (S Series) devices don't require sharing of Bridge\ContAcqCustomVoltageSamples_9237\CS Wheatstone Bridge\ContAcqCustomVoltageSamples_9237\VB Synchronization\Multi- Device\AIAOShardTimebaseAndTrig_DSA\CS Synchronization\Multi- Device\AIAOShardTimebaseAndTrig_DSA\VB Synchronization\Multi-Device\AIContAcquisition\CS Synchronization\Multi-Device\AIContAcquisition\VB Synchronization\Multi-Device\AIFiniteAcquisition\CS Synchronization\Multi-Device\AIFiniteAcquisition\VB

Page 3 of 13 master timebase, because they auto-lock to Clock 10. For those devices sharing a start trigger is adequate.note: For the PCI-6154 S Series device use the M Series (PCI) synchronization type to synchronize using the reference clock. ConAcqRTDSmps_IntClk_SCXI1102And1581 acquire temperature from an RTD using the internal clock of the DAQ device.this example uses the SCXI 1102 module in conjunction with the SCXI 1581 module. ConAcqThmSmps_IntClk_SCXI1102And1581 acquire temperature data from a thermistor using the DAQ device's internal clock. This example uses the SCXI 1102 module in conjunction with the SCXI 1581 module. ConAcqVoltSmpls_ConfigFilter_SCXI114x acquire and filter an analog signal using the SCXI- 114x. ContAccelSamp_IntClk_AnlgStart create an analog input acceleration task and perform a continuous acquisition using option IEPE excitation, analog triggering, and overload detection. ContAccelSamp_IntClk_AnlgStart_SCXI make continuous, hardware-timed acceleration measurements using an SCXI-153x module. ContAcq0_20mACurrentSamples_IntClk continuously measure current using an internal hardware clock for timing. ContAcqFreq_IntClk_SCXI1126 acquire frequency data from an SCXI-1126 using the DAQ device's internal clock. ContAcqLVDTSamples_IntClk_SCXI1540 make a continuous, hardware-timed acceleration measurement using an SCXI-1540 module. Temperature\ConAcqRTDSmps_IntClk_SCXI1102And1581\CS Temperature\ConAcqRTDSmps_IntClk_SCXI1102And1581\VB Temperature\ConAcqThmSmps_IntClk_SCXI1102And1581\CS Temperature\ConAcqThmSmps_IntClk_SCXI1102And1581\VB Voltage\ConAcqVoltSmpls_ConfigFilter_SCXI114x\CS Voltage\ConAcqVoltSmpls_ConfigFilter_SCXI114x\VB Acceleration\ContAccelSamp_IntClk_AnlgStart\CS Acceleration\ContAccelSamp_IntClk_AnlgStart\VB Acceleration\ContAccelSamp_IntClk_AnlgStart_SCXI\CS Acceleration\ContAccelSamp_IntClk_AnlgStart_SCXI\VB Current\ContAcq0_20mACurrentSamples_IntClk\CS Current\ContAcq0_20mACurrentSamples_IntClk\VB Frequency\ContAcqFreq_IntClk_SCXI1126\CS Frequency\ContAcqFreq_IntClk_SCXI1126\VB Linear Position\ContAcqLVDTSamples_IntClk_SCXI1540\CS Linear Position\ContAcqLVDTSamples_IntClk_SCXI1540\VB

Page 4 of 13 ContAcqRTDSamples_IntClk acquire temperature from an RTD using the internal clock of the DAQ device. ContAcqRVDTSamples_IntClk_SCXI1540 make a continuous, hardware-timed acceleration measurement using an SCXI-1540 module. ContAcqSndPressureSamples_IntClk continuous set of sound pressure data using the DAQ device's internal clock. ContAcqThermocoupleSamples_IntClk continuously acquire temperature readings from one or more thermocouples. ContAcqVoltageSamples_ExtClkDigStart continuously acquire analog voltage data using an external clock, started by a digital trigger. ContAcqVoltageSamples_IntClk continuous amount of data using the DAQ device's internal clock. ContAcqVoltageSamples_IntClk_SWTrigger perform an analog software triggered acquisition. The example allows the user to specify the triggering condition and the number of pretrigger samples to acquire. ContAcqVoltageSamples_IntClk_ToFile acquire, write to file, and load from disk a continuous amount of analog input data using the DAQ device's internal clock. ContAcqVoltageSamples_SWTimed continuous amount of data using a software timer. Temperature\ContAcqRTDSamples_IntClk\CS Temperature\ContAcqRTDSamples_IntClk\VB Rotary Position\ContAcqRVDTSamples_IntClk_SCXI1540\CS Rotary Position\ContAcqRVDTSamples_IntClk_SCXI1540\VB Sound Pressure\ContAcqSndPressureSamples_IntClk\CS Sound Pressure\ContAcqSndPressureSamples_IntClk\VB Temperature\ContAcqThermocoupleSamples_IntClk\CS Temperature\ContAcqThermocoupleSamples_IntClk\VB Voltage\ContAcqVoltageSamples_ExtClkDigStart\CS Voltage\ContAcqVoltageSamples_ExtClkDigStart\VB Voltage\ContAcqVoltageSamples_IntClk\CS Voltage\ContAcqVoltageSamples_IntClk\VB Voltage\ContAcqVoltageSamples_IntClk_SWTrigger\CS Voltage\ContAcqVoltageSamples_IntClk_SWTrigger\VB Voltage\ContAcqVoltageSamples_IntClk_ToFile\CS Voltage\ContAcqVoltageSamples_IntClk_ToFile\VB Voltage\ContAcqVoltageSamples_SWTimed\CS Voltage\ContAcqVoltageSamples_SWTimed\VB

Page 5 of 13 ContAcqVoltageSmpls_IntClkAnalogStart continuously acquire data using the DAQ device's internal clock and an analog slope start trigger. ContAcqVoltageSmps_IntClk_PauseTrigger continuously acquire data using DAQ device's internal clock and a digital pause trigger. ContGenCurrentUpdatesWfm_IntClk output a continuous number of current samples to an Analog Output Channel using an internal sample clock. ContGenVoltageWfm_ExtClk continuously output a periodic waveform using an external clock. ContGenVoltageWfm_ExtClkDigStart continuously output a waveform using an external sample clock and a digital start trigger. ContGenVoltageWfm_IntClk continuously output a periodic waveform using an internal sample clock. ContGenVoltageWfmIntClk_AnalogStart continuously output a periodic waveform using an internal clock and an analog trigger signal. ContReadDigChan_ExtClk continuously read values from a digital input channel using an external sample clock. ContReadDigChan_PipeSampClkwHshk This examples demostrates how to interface the NI 6536/7 to a synchonous FIFO. ContWriteDigChan_Burst Voltage\ContAcqVoltageSmpls_IntClkAnalogStart\CS Voltage\ContAcqVoltageSmpls_IntClkAnalogStart\VB Voltage\ContAcqVoltageSmps_IntClk_PauseTrigger\CS Voltage\ContAcqVoltageSmps_IntClk_PauseTrigger\VB Current\ContGenCurrentUpdatesWfm_IntClk\CS Current\ContGenCurrentUpdatesWfm_IntClk\VB Voltage\ContGenVoltageWfm_ExtClk\CS Voltage\ContGenVoltageWfm_ExtClk\VB Voltage\ContGenVoltageWfm_ExtClkDigStart\CS Voltage\ContGenVoltageWfm_ExtClkDigStart\VB Voltage\ContGenVoltageWfm_IntClk\CS Voltage\ContGenVoltageWfm_IntClk\VB Voltage\ContGenVoltageWfmIntClk_AnalogStart\CS Voltage\ContGenVoltageWfmIntClk_AnalogStart\VB Values\ContReadDigChan_ExtClk\CS Values\ContReadDigChan_ExtClk\VB Values\ContReadDigChan_PipeSampClkwHshk\CS Values\ContReadDigChan_PipeSampClkwHshk\VB

Page 6 of 13 output a continuous digital waveform using burst handshaking mode.note: This example program exports the sample clock from the device. To import the sample clock, call theconfigurehandshakingburstexportclock method instead. ContWriteDigChan_PipeSampClk This examples demostrates how to interface the NI 6536/7 to a synchronous DAC with an output enable signal. ContWriteDigChan_PipeSampClkwHshk This examples demostrates how to interface the NI 6536/7 to a synchonous FIFO. ContWriteDigPort_ExtClk output a continuous digital pattern using an external clock. CountDigEvents count digital events on a Counter Input Channel. The Initial Count, Count Direction, and Edge are all configurable.this example shows how to count edges on the counter's default source pin, but could easily be expanded to count edges on any PFI, RTSI, or internal signal. Non-buffered event counting can also use a digital pause trigger which could be added to this example by configuring the Trigger object for the Task. CountDigEventsBuffContinuous_ExtClk count buffered digital events on a Counter Input channel. The initial count, count direction, edge, and sample clock source are all configurable. Edges are counted on the counter's default input terminal (see I/O Connections Overview below for more information), but could easily be modified to count edges on a PFI or RTSI line.note: For buffered event counting, an external sample clock is necessary to signal when a sample should be inserted into the buffer. Specify the source terminal of the external clock in the clock source text box when you run the example. Gen0_20mACurrent generate a single current value on a single current output channel of a SCXI-1124 module and NI-6238/6239 M-Series devices. Digital\Generate Values\ContWriteDigChan_Burst\CS Digital\Generate Values\ContWriteDigChan_Burst\VB Digital\Generate Values\ContWriteDigChan_PipeSampClk\CS Digital\Generate Values\ContWriteDigChan_PipeSampClk\VB Digital\Generate Values\ContWriteDigChan_PipeSampClkwHshk\CS Digital\Generate Values\ContWriteDigChan_PipeSampClkwHshk\VB Digital\Generate Values\ContWriteDigPort_ExtClk\CS Digital\Generate Values\ContWriteDigPort_ExtClk\VB Counter\Count Digital Events\CountDigEvents\CS Counter\Count Digital Events\CountDigEvents\VB Counter\Count Digital Events\CountDigEventsBuffContinuous_ExtClk\CS Counter\Count Digital Events\CountDigEventsBuffContinuous_ExtClk\VB Current\Gen0_20mACurrent\CS Current\Gen0_20mACurrent\VB GenDigPulse

Page 7 of 13 generate a single digital pulse from a counter output channel. The initial delay, high time, low time, and idle state are all software configurable. This example shows how to configure the pulse in terms of time, but can easily be modified to generate a pulse in terms of frequency and duty cycle or ticks. GenDigPulseTrain_Continuous generate a continuous digital pulse train from a counter output channel. The frequency, duty cycle, and idle state are all configurable.this example shows how to configure the pulse in terms of frequency and duty cycle, but it can easily be modified to generate a pulse in terms of time or ticks. GenDigPulseTrainContinuous_DigStart generate a continuous digital pulse train from a counter output channel using a digital start trigger. The frequency, duty cycle, and idle state are all configurable.this example shows how to configure the pulse in terms of frequency and duty cycle, but it can easily be modified to generate a pulse in terms of time or ticks. GenDigPulseTrainContinuous_PauseTrigger generate a continuous digital pulse train from a counter output channel and controlled by an external digital pause trigger. The frequency, duty cycle, and idle state are all configurable.this example shows how to configure the pulse in terms of frequency and duty cycle, but can easily be modified to generate a pulse in terms of time or ticks. GenMultCurrentUpdates_IntClk output a finite number of current samples to an Analog Output Channel using an internal sample clock. GenMultVoltUpdates_IntClk output multiple voltage updates (samples) to an analog output channel. GenMultVoltUpdates_SWTimed output multiple voltage updates (samples) to an analog output channel in a software timed loop. GenMultVoltUpdatesIntClk_DigStart Counter\Generate Pulse\GenDigPulse\CS Counter\Generate Pulse\GenDigPulse\VB Counter\Generate Pulse\GenDigPulseTrain_Continuous\CS Counter\Generate Pulse\GenDigPulseTrain_Continuous\VB Counter\Generate Pulse\GenDigPulseTrainContinuous_DigStart\CS Counter\Generate Pulse\GenDigPulseTrainContinuous_DigStart\VB Counter\Generate Pulse\GenDigPulseTrainContinuous_PauseTrigger\CS Counter\Generate Pulse\GenDigPulseTrainContinuous_PauseTrigger\VB Current\GenMultCurrentUpdates_IntClk\CS Current\GenMultCurrentUpdates_IntClk\VB Voltage\GenMultVoltUpdates_IntClk\CS Voltage\GenMultVoltUpdates_IntClk\VB Voltage\GenMultVoltUpdates_SWTimed\CS Voltage\GenMultVoltUpdates_SWTimed\VB

Page 8 of 13 output multiple voltage updates (samples) to an analog output channel. The generation starts when a digital trigger is received. GenVoltageUpdate output a single voltage update (sample) to an analog output channel. Meas2EdgeSeparation measure two edge separation on a counter input channel. The first edge, second edge, minimum value, and maximum value are all configurable. This example measures two edge separation on the counter's default input terminals (see I/O Connections Overview below for more information), but could easily be expanded to measure two edge separation on any PFI, RTSI, or internal signal. Refer to your device documentation to see if your device supports two edge separation measurements. Meas2EdgeSeparation_BufCont perform a continuous number of two edge separation measurements on a counter input channel. The first edge, second edge, minimum value, maximum value, and samples to read are all configurable. This example shows how to perform a two edge separation measurement on the counter's default input terminals (refer to the I/O Connections Overview below for more information), but could easily be expanded to measure two edge separation on any PFI, RTSI, or internal signal.refer to your device documentation to see if your device supports two edge separation measurements. MeasAngularPositionBufferedCont_ExtClk measure angular position using a quadrature encoder on a counter input channel. The decoding type, pulses per revolution, z-index enable, z-index phase, z-index value, and sample clock source are all configurable. Position is measured on the counter's default A, B, and Z input terminals (see I/O Connections Overview below for more information).note: For buffered position measurement, an external sample clock is necessary to signal when a sample should be inserted into the buffer. This is set by the sample clock source. MeasBuffered_SemiPeriodFinite measure semi-periods on a counter input channel. The minimum value, maximum value, sample Voltage\GenMultVoltUpdatesIntClk_DigStart\CS Voltage\GenMultVoltUpdatesIntClk_DigStart\VB Voltage\GenVoltageUpdate\CS Voltage\GenVoltageUpdate\VB Counter\Measure 2 Edge Separation\Meas2EdgeSeparation\CS Counter\Measure 2 Edge Separation\Meas2EdgeSeparation\VB Counter\Measure 2 Edge Separation\Meas2EdgeSeparation_BufCont\CS Counter\Measure 2 Edge Separation\Meas2EdgeSeparation_BufCont\VB Counter\Measure Position\MeasAngularPositionBufferedCont_ExtClk\CS Counter\Measure Position\MeasAngularPositionBufferedCont_ExtClk\VB Counter\Measure Period Or Pulse Width\MeasBuffered_SemiPeriodFinite\CS Counter\Measure Period Or Pulse

Page 9 of 13 mode, and samples per channel are all configurable.this example shows how to measure semi-period on the counter's default input terminal (see I/O Conections Overview below for more information), but can easily be expanded to measure semi-period on any PFI, RTSI, or internal signal by setting the properties on the CIChannel object.semiperiod measurement differs from pulse width measurement in that it measures both the high and the low pulses of a given signal. So for every period, two data points will be returned. MeasDigFreqBuffCont_LargeRange2Ctr measure buffered frequency using two counters on a counter input channel. The divisor, maximum and minimum frequency values, and the edge parameter are configurable.this example shows how to measure frequency on the counter's default input terminal (see I/O Connections Overview below for more information), but could easily be expanded to measure frequency on any PFI, RTSI, or internal signal. Additionally, this example could be extended to measure frequency with other measurement methods for different frequency and quantization error requirements. MeasDigFrequency_LowFreq1Ctr measure a frequency using one counter on a counter input channel. The starting edge, minimum value and maximum value are all configurable. This example shows how to measure frequency on the counter's default input terminal (see I/O Connections Overview below for more information), but could easily be expanded to measure frequency on any PFI, RTSI, or internal signal. Additionally, this example could be extended to measure frequency with two counters for different frequency and quantization error requirements. MeasDigPeriodsBufCon_HighFrq2Ctr measure periods using two counters on a counter input channel. The measurement time, sample mode, and samples per read are configurable.this example shows how to measure period on the counters default input terminal, (see I/O Connections Overview below for more information),, but could easily be expanded to measure periods on any PFI, RTSI, or internal signal. Additionally, this example could be extended to measure period with other measurement methods for different frequency and quantization error requirements. MeasGpsTimestamp_BuffFinite Width\MeasBuffered_SemiPeriodFinite\VB Counter\Measure Digital Frequency\MeasDigFreqBuffCont_LargeRange2Ctr\CS Counter\Measure Digital Frequency\MeasDigFreqBuffCont_LargeRange2Ctr\VB Counter\Measure Digital Frequency\MeasDigFrequency_LowFreq1Ctr\CS Counter\Measure Digital Frequency\MeasDigFrequency_LowFreq1Ctr\VB Counter\Measure Period or Pulse Width\MeasDigPeriodsBufCon_HighFrq2Ctr\CS Counter\Measure Period or Pulse Width\MeasDigPeriodsBufCon_HighFrq2Ctr\VB Counter\Measure GPS

Page 10 of 13 use a finite buffereded task to measure time using a GPS Timestamp Channel. The Synchronization Method, Synchronization Source, Sample Clock Source, and Samples per Channel are all configurable. MeasPulseWidth measure pulse width on a counter input channel. The edge, minimum value and maximum value are all configurable.this example shows how to measure pulse width on the counter's default input terminal (see I/O Connections Overview below for more information), but could easily be expanded to measure pulse width on any PFI, RTSI, or internal signal. MeasPulseWidthBuf_SmplClk_Cont continually measure pulsewidths on a Counter Input Channel using an external sampleclock. The Maximum and Minimum Values, Sample Clock Source, andsamples per Channel are all configurable.this example shows how to measure pulse width on the counter'sdefault input terminal (refer to section IV, I/O ConnectionsOverview, below for more information), but could easily beexpanded to measure pulse width on any PFI, RTSI, or internalsignal.note: For sample clock measurements, an external sample clock isnecessary to signal when the counter should measure asample. This is set by the Sample Clock Source control. MeasureGpsTimestamp use a GPS counter to update the current time. MultiFunctionSyncAI_ReadDigChan continuously acquire analog and digital data at the same time, synchronized with one another on the same device. MultiFunctionSyncAIAO_DigStart continuously acquire and generate synchronized analog input and output, started by an external digital start trigger. PWMCounterOutput do Pulse Width Modulation using Analog Input and Counter Output. ReadDigChan read Timestamp\MeasGpsTimestamp_BuffFinite\CS Counter\Measure GPS Timestamp\MeasGpsTimestamp_BuffFinite\VB Counter\Measure Period Or Pulse Width\MeasPulseWidth\CS Counter\Measure Period Or Pulse Width\MeasPulseWidth\VB Counter\Measure Period or Pulse Width\MeasPulseWidthBuf_SmplClk_Cont\CS Counter\Measure Period or Pulse Width\MeasPulseWidthBuf_SmplClk_Cont\VB Counter\Measure GPS Timestamp\MeasureGpsTimestamp\CS Counter\Measure GPS Timestamp\MeasureGpsTimestamp\VB Synchronization\Multi- Function\SyncAI_ReadDigChan\CS Synchronization\Multi- Function\SyncAI_ReadDigChan\VB Synchronization\Multi-Function\SyncAIAO_DigStart\CS Synchronization\Multi-Function\SyncAIAO_DigStart\VB Control\General\PWMCounterOutput\CS Control\General\PWMCounterOutput\VB Values\ReadDigChan\CS

Page 11 of 13 values from one or more digital input channels. ReadDigChan_ChangeDetection read values from one or more digital input channels, using change detection timing. ReadDigChan_ChangeDetection_DigFilter acquire filtered digital input via change detection and digital filtering. ReadDigChan_ChangeDetection_Events read values from one or more digital input channels using the digital change detection event. ReadDigChan_IntClk_DigRef finite amount of data (Waveform) using a digital reference trigger. ReadDigChan_IntClk_PatternMatchStart finite amount of digital data (Waveform) using a pattern match start trigger (i.e. the acquisition begins when a specified pattern has been matched). ReadDigPort read a single value from a digital port. ReadDigPort_ExtClk read values from a digital port using an external sample clock. SequenceConnectionsOnSwitch make a series of connections on a switch module by sequentially connecting the channel in each element in Switch Channel 1 List to the channel in the corresponding element in Switch Channel 2 List. SwitchConnect_2Channel connect and disconnect two channels on a switch module. SwitchConnect_MultChannel connect and disconnect multiple channels on a switch module. Values\ReadDigChan\VB Values\ReadDigChan_ChangeDetection\CS Values\ReadDigChan_ChangeDetection\VB Values\ReadDigChan_ChangeDetection_DigFilter\CS Values\ReadDigChan_ChangeDetection_DigFilter\VB Values\ReadDigChan_ChangeDetection_Events\CS Values\ReadDigChan_ChangeDetection_Events\VB Values\ReadDigChan_IntClk_DigRef\CS Values\ReadDigChan_IntClk_DigRef\VB Values\ReadDigChan_IntClk_PatternMatchStart\CS Values\ReadDigChan_IntClk_PatternMatchStart\VB Values\ReadDigPort\CS Values\ReadDigPort\VB Values\ReadDigPort_ExtClk\CS Values\ReadDigPort_ExtClk\VB Switches\SequenceConnectionsOnSwitch\CS Switches\SequenceConnectionsOnSwitch\VB Switches\SwitchConnect_2Channel\CS Switches\SwitchConnect_2Channel\VB Switches\SwitchConnect_MultChannel\CS Switches\SwitchConnect_MultChannel\VB

Page 12 of 13 SwitchControllingIndividualRelay control an individual relay on a switch module. SwitchScanning_SWTrigger scan a series of channels on a switch using software scanning. TdmsAcqVoltageSamples_IntClk finite amount while simultaneously streaming that data to a binary file. TdmsContAcqVoltageSamples_IntClk continuous amount while simultaneously streaming that data to a binary file. WriteDigChan write values to a digital output channel. WriteDigChan_ExtClk write values to a digital output channel using an external sample clock. WriteDigChan_WatchdogTimer write values to a digital output channel, using a watchdog timer. WriteDigPort write values to a digital output port. Switches\SwitchControllingIndividualRelay\CS Switches\SwitchControllingIndividualRelay\VB Switches\SwitchScanning_SWTrigger\CS Switches\SwitchScanning_SWTrigger\VB Voltage\TdmsAcqVoltageSamples_IntClk\CS Voltage\TdmsAcqVoltageSamples_IntClk\VB Voltage\TdmsContAcqVoltageSamples_IntClk\CS Voltage\TdmsContAcqVoltageSamples_IntClk\VB Digital\Generate Values\WriteDigChan\CS Digital\Generate Values\WriteDigChan\VB Digital\Generate Values\WriteDigChan_ExtClk\CS Digital\Generate Values\WriteDigChan_ExtClk\VB Digital\Generate Values\WriteDigChan_WatchdogTimer\CS Digital\Generate Values\WriteDigChan_WatchdogTimer\VB Digital\Generate Values\WriteDigPort\CS Digital\Generate Values\WriteDigPort\VB National Instruments also provides several advanced examples on the NI Developer Zone Web site. Name and Description Data Compaction for High-Speed Streaming to Disk Examples Web Location NI-DAQmx Professional Tools These examples illustrate how to stream data to disk at much higher rates than is possible without using data compaction. Programmatic Saves of NI-DAQmx Tasks, Channels, and Scales Examples These examples illustrate how to programmatically

Page 13 of 13 save NI-DAQmx Tasks, Channels, and Scales. Programmatically saving tasks, channels, and scales allows you to create an application that you can deploy to an end user and, when run, the application will configure their system with the tasks, channels, and scales you have defined. Virtual Channel Calibration Examples These examples show the programmatic interface to the Virtual Channel Calibration API. You use virtual channel calibration to quickly calibrate the entire measurement path, from the sensor to the measurement device. DAQmx Capability Discovery: Property Filtering Examples DAQmx Capability Discovery programmatically discover information about the properties of NI- DAQmx tasks, according to filter criteria. See Also Measurement Studio Overview (c) Copyright 2004-2009 National Instruments Corporation. All rights reserved.