Example Code

Pre-Trigger Functional Global Variable (Round Robin) Using LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI accepts the size of the input array as a single buffer placement, multiply this by the number of elements you want to store.


Description
The VI will over write the element in a round robin approach, providing you with the current location information of the buffer for you to get back x number of data points from the buffer, very useful if you're needing to store samples before a trigger condition is met.

 

Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  • Run the program

 

Additional Information or References
VI Snippet

3-370.png

**This document has been updated to meet the current required format for the NI Code Exchange.** 

Applications Engineer

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