How Can I Control Stimulus Profile in LabVIEW?

Updated Mar 30, 2023

Reported In

Software

  • VeriStand
  • LabVIEW

Issue Details

I am using Stimulus Profile Editor to call real-time sequences and control NI VeriStand Projects. In the last part of the plan, I want to control Stimulus Profile with LabVIEW. Is there a solution to achieve the last plan?

Solution

You can control Stimulus Profile in LabVIEW. Fortunately, there is an example for Stimulus Profile control. You can practice running and controlling Stimulus Profile in LabVIEW using an example, Stimulus Profile Control Tool Project.lvproj. 
This example is located in 
C:\Program Files (x86)\National Instruments\LabVIEW 2020\examples\NI VeriStand\API\Execution API\Sequences\Stimulus Profile Control Tool

You might need Stimulus Profile file as an example. Please refer to following path: 
C:\Users\Public\Documents\National Instruments\NI VeriStand 2020\Examples\Stimulus Profile\Engine Demo\Stimulus Profiles
There are several folders which provide examples of Stimulus Profile file.

If you want to know about Stimulus Profile more, please refer to the following link: Getting Started with the Stimulus Profile Editor Tutorial

Additional Information

  1. When you run Stimulus Profile Control Tool.vi, a window pops up asking for NationalInstruments.VeriStand.RealTimeSequenceDefinitionApi.dll's path. Then, you need to find the dll yourself. It is located in
    C:\Program Files (x86)\National Instruments\VeriStand 2020\nivs.lib\Reference Assemblies

  2. Due to code, you should move ATML folder which is located in 
    C:\Program Files (x86)\National Instruments\LabVIEW 2020\examples\NI VeriStand\API\Execution API\Sequences\Stimulus Profile Control Tool
    to
    C:\Program Files (x86)\National Instruments\LabVIEW 2020\examples\NI VeriStand\API\Execution API\Sequences

  3. VeriStand must be running to run Stimulus Profile on LabVIEW.