Example Code

Dynamically Retrigger LabVIEW Control and Simulation Custom Stimulus 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
Demonstrates how to dynamically retrigger custom stimulus in LabVIEW Control and Simulation. 

 

Description
Here is a brief description of the example:

The attached VI uses LabVIEW Control and Simulation Module. In order to create a custom stimulus, a 1D Look-Up table is used.  This is indexed with respect to the Simulation Time. The resulting behavior is that the Look-Up Table is sequentially output over time.  In order to regenerate the stimulus, a boolean is used to latch the retrigger time.  The retrigger time is subtracted from the current time in order to start the Look-Up Table output sequence again.

 

Requirements

  1. LabVIEW 2014 (or compatible)


Steps to Implement or Execute Code

  1. Download the VI.
  2. Run the VI.
  3. Notice that the Stimulus is retrigger at every zero-crossing.
  4. Look at the Block Diagram to see the implementation

 

Additional Information or References

VI Snippet

Dynamically Retrigger LVCS Simulus 2014 NIVerified.png 

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

Thomas C.
FlexRIO Product Support Engineer
National Instruments

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