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.
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.