From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

VeriStand Stimulus Profile API in 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


  • LabVIEW
  • Veristand

Code and Documents


The example shows how to use the Stimulus Profile API (non-Legacy) to interact with Real-Time Sequences developed for NI VeriStand. This example is written in LabVIEW 2014 and developed for VeriStand 2014. This example creates and runs a stimulus profile. The stimulus profile reads different CSV files each time it runs and creates separate log file.


This example shows how to use the Stimulus Profile API with Real-Time Sequences. This example includes how to programmatically set the CSV file to read and set the log file name in the same manner of tested CSV file. eg Running "File1.CSV" creats "File1.tdms" log file.
Key sections in the example:
  1. Create a stimulus profile which reads CSV file  (
  2. Create a stimulus profile which reads CSV file and  log  the results (
  3. Deploy Stimulus Profiles
  4. Repeat 2

Steps to Implement or Execute Code

  1. Place attached VeriStand project under public documents (C:\Users\Public\Documents\National Instruments\NI VeriStand 2014\Projects\)
  2. Deploy VeriStand project
  3. Run inside the LVVIs folder (change Disable Structure to test 1 and 2)


VeriStand 2014
LabVIEW 2014



VeriStand Stimulus Profile API in LabVIEW

VeriStand Stimulus Profile API: Stimulus Profile Sessions in LabVIEW

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

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

NI Employee (retired)

You can find other examples for NI VeriStand API at

C:\Program Files (x86)\National Instruments\LabVIEW 2015\examples\NI Veristand\API\Execution API\