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

Currently Being Moderated

Switch Between DAQmx Tasks with an External (Hardware) Trigger

VERSION 1

Created on: Sep 9, 2008 5:12 PM by LaRisa_S - Last Modified:  Sep 9, 2008 5:15 PM by LaRisa_S

This VI allows us to switch between two tasks using an external hardware trigger. An example of a use for such a program is if you need to acquire at a slower rate during one part of a test and a faster rate for another part and you want to switch between these using a hardware trigger.
The example given here switches from one analog input task to another based on a rising or falling edge of a hardware trigger. The VI will run indefinitely and switch tasks on every edge of the trigger.
The example only shows 1 channel for each task, but more channels can be added to each task.
NOTE: This VI uses finite acquisition sampling. It does not and WILL not work for continuous acquisition sampling. This is because the trigger used is a reference trigger and continuous acquisitions can not be used with reference triggers.

 

Downloads:
Average User Rating
(0 ratings)




There are no comments on this document

More Like This

  • Retrieving data ...