Example Code

Simple VeriStand System Definition Scripting with C#

Code and Documents

Attachment

Overview

After looking through the available VeriStand System Definition API resources, such as the VeriStand .NET Help and the Creation of a System Definition File using C# community post, I created a simple system definition that focused on mapping DAQ and FPGA hardware.

Description

The code writes a new system defintion file, adds an FPGA, and then walks through the DAQ hardware configuration process. After that, a few DAQ  analog input channels are mapped to FPGA analog output channels and the system definition file is saved.

Steps to Implement or Execute Code

  1. On line 21, update the filepath with what you would like the system definition to be called and where you would like it to be saved.
  2. Run the code.
  3. Open the newly created .nivssdf and review over the different sections.

Requirements

Software

VeriStand 2014

Microsoft Visual Studio 2012

Hardware

Windows development computer

Images

MappingPic.PNG

Related Links

NI Community: Example: Programmatic Creation of a System Definition File using C#

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

VeriStand Help: NI VeriStand .NET Reference


Cameron

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

Contributors