NI VeriStand Add-Ons Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

NI VeriStand Add-on: Example .NET Control of VeriStand through C#

Overview

These C# examples demonstrate a few use cases for the VeriStand .NET API.

Instructions for Use

The C# examples attached provide example programs that use the NI-VeriStand .NET API. The examples are structured to replicate the functionality of the LabVIEW examples located in <labview>/examples/NI Veristand.

  1. Create Basic Real-Time Sequence
    Shows how to make basic sequence using the VeriStand API.

  2. Deploy and Read Multiple Channels
    Deploys the Sinewave Delay example project that ships with VeriStand. After deployment, the code reads three different model channels.

  3. Set Model Parameters
    Changes a model parameter of the Sinewave Delay example project, and thus alters the output values. To work with this particular example, use the Deploy and Read Multiple Channels.vi example in the LabVIEW help, located in <labview>examples\NI-Veristand\API\Execution API\Deploy and Read Channels\.  When working with the LabVIEW example, deploy the Sinewave Delay project and then monitor how the Delay_Sinewave Output channel changes.

  4. Execute a Stimulus Profile
    2011 code: Runs a stimulus profile.
    2014 code: Using the updated Stimulus Profile API, this example configures, deploys,  and runs a Stimulus Profile session.

  5. UDP Streaming
    Streams UDP from the Veristand Sinewave Delay example. Before running the code, the example Sinewave Delay project must be deployed locally.

Installing Examples

Unzip the examples run them in a C# compatable programming environment.

Software

This examples were orginally created for use with NI VeriStand 2011.  VeriStand 2011 is required to use the examples contained in C#-VS Examples.zip.

Additionally, these examples were updated for use with NI VeriStand 2014. VeriStand 2014 is required to use the examples contained in C#-VS Examples_2014.zip.


Support and Contact

We have developed examples based on user feedback. Please feel free to leave comments about these examples and feedback on future examples that would be helpful. Immediate support-type questions can be directed to the VeriStand forums.

This add-on is provided as open-source software.  If it does not meet your exact specification, you are encouraged to modify the source code to meet your needs.  It is not officially supported by National Instruments.

If you encounter a problem with this add-on, or if you have suggestions for a future revision, please comment below.

National Instruments does not support this code or guarantee its quality in any way. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).

Jesse Dennis
Engineer
INTP
Download All
Comments
RishiDivakar
Member
Member
on

Tried this solution, I was able to read channel values. However, could notice that an extra digit is coming in the left side of 0th index element. ie, an extra element is added on left side of 0th index element while reading a no. of channels.

 

Anyone faced the same?

Certified LabVIEW Architect
System Test Architect
Electrical Engineering
JLR
Contributors