Example Code

Custom Digital Trigger

Code and Documents

Attachment

This VI allows the user to configure up to 32 channels of digital data for combinatorial triggering.

Applies "Mask Input" to "Trigger Input Line(s)" and returns the result as T or F for use as a custom digital trigger on FPGA based hardware. (cRIO, R Series)  Mask options include "And", and "Or" and like lines do not need to be adjacent.  "Trigger Line(s) Input" must be array of size = 32.  Right-click array and select "set dimensions" to adjust.  Lines not used can be masked out by selecting "Ignore" in the mask array. Change control:

Added documentation and implemented single-cycle timed loops in subVI's for optimization.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors