Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Dec 8, 2008


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Advanced Triggering Reference Example for CompactDAQ

1 ratings | 4.00 out of 5
Print

Overview

This VI demonstrates advanced triggering concepts using the CompactDAQ 9172 chassis. The VI was written to be used with a NI-9205 32-channel analog input module, a NI-9485 8-channel relay module in slot 5, and a NI-9265 4-channel analog output module in slot 6. The NI-9485 and NI-9265 are in slots 5 and 6 because they need to access the counters on the NI-9172.

**The accompanying code represents a very specific use case for NI products. For more general examples, please refer to ni.com/examples, the LabVIEW Example Finder, or the NI driver help files that come with every NI driver.

Downloads

Filename: cdaq_triggers_with_counters.vi
Requirements: View

What this example VI does: 1. ctr0 is set up to generate a pulse every second (1 Hz default). Each pulse of this counter will trigger current output on the NI-9265 (internal ctr0 output) which will also trigger a pulse on ctr1 so the current output and counter output are synchronized. 2. The ctr1 output will have a hardware-programmable delay (10 ms default) and we will use this counter to trigger the analog input, therefore obtaining a hardware-timed deterministic amount of time between the current output and voltage input. Note: line3 (pin 14) on the NI-9485 must be wired to PFI0 on the NI-9205 for this triggering to work. 3. Prior to the current output, we switch the relay on the NI-9485, thus multiplexing the signal. A common application for this sort of VI would be if the user would like to read the reflection off of multiple LEDs after a very specific amount of time.

Requirements


Filename: cdaq_triggers_with_counters.vi

Software Requirements


Application Software: LabVIEW Base Development System 8.2.1
Language(s): LabVIEW

Hardware Requirements


Hardware Group: CompactDAQ
Hardware Model: NI 9205, NI 9485, NI 9265
Driver: NI-DAQmx 8.5

 
1 ratings | 4.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).