Skip navigation


Currently Being Moderated

NI VeriStand: Creating and Adding a Real-Time Sequence to a Stimulus Profile.

VERSION 3  Click to view document history
Created on: Aug 10, 2012 1:12 PM by MAltmann - Last Modified:  Jan 3, 2013 5:32 PM by Alisha_P


This example shows how to use the the VeriStand RealTimeSequenceDefinition API to create a Real-Time sequence and how to add that sequence to a Stimulus Profile.  This allows you to programmatically edit and build sequences and profiles from a LabVIEW VI.





The VeriStand .NET API allows you to programmatically control many of VeriStand's software operations from the LabVIEW environment. The Stimulus Profile Editor allows the user to create, modify, and execute test sequences. A stimulus profile can be used to call a real-time sequence to run on the real-time target. For more information on how to do this within the Stimulus Profile Editor, check out this document: Creating Real-Time Stimulus Profiles in NI VeriStand.


This VI shows how to create a real-time sequence and add it to your stimulus profile all within LabVIEW.The VI follows this sequence to do so:


1. Create a new real-time sequence.

2. Add x and y parameters of type double.

3. Set the return variable to also be a double.

4. Add the addition expression to the Main section.

5. Save the sequence.

7. Create a new Stimulus Profile

8. Load list of Steps in the Main section

9. Load Sequence as a Step

10. Configure the Call's Parameters

11. Add the steps back to the profile

12. Save the Stimulus Profile




Steps to Execute Code


  1. Open stimulus and run.
  2. This will create two files, testsequence.nivsseq and teststimulusprofile.nivsstimprof, and save them to the same directory as the VI
  3. You can open these files in VeriStand's "Stimulus Profile Editor" to see the test sequence that has been created





LabVIEW 2011 SP1

VeriStand 2011 SP1

(Could use later versions of the software but LabVIEW and VeriStand versions should match)



A real-time controller (with VeriStand support installed) on which to run the real-time sequence if you wish to


**This document has been updated to meet the current required format for the NI Code Exchange. For more details visit this discussion thread**

Comments (0)