NI Home
Cart Cart | Help
Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Currently Being Moderated

Dynamically Change the Lines in a DAQmx Analog Input Task Using an Event Structure

VERSION 1

Created on: Sep 29, 2009 10:29 AM by Peñata - Last Modified:  Sep 29, 2009 10:55 AM by Peñata

Introduction

This example illustrates how to dynamically change the physically lines being sampled in a DAQmx Analog Input task thru the use of an Event Structure. This example uses the 'physical channels' control to trigger an event on a Value Change. When this event is triggered, the current task is cleared and a new task is created with the new value of 'physical channels'. In this event, the waveform chart's history is also cleared. The built-in Timeout event is used to perform the actual DAQmx Read at an interval of 10ms.

 

 

Steps to Complete

1.) Open the VI.

2.) Specify the line(s) you wish to sample.

3.) Run!

4.) Choose the line(s) you wish to sample and watch the waveform chart change accordingly!!!

 

 

Additional Notes

This example is currently written for a DAQmx Analog Input task, however, this can probably be expanded upon for other measurement types.

 

programmatically_change_lines_LV2009.png

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...