Example Code

Retrieve All VeriStand System Definition Channels Without Deploying

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 ni.com/downloads.

    Software

  • LabVIEW
  • Veristand

Code and Documents

Attachment

Overview
The example demonstrates how to retrieve all VeriStand System Definition without the need of deploying

Description:
Currently the VeriStand API allows you to retrieve all channels through the Get System Node Channel List.vi, a wrapped VI utilizing the VeriStand Client API. This API is used to automate the operation of the application on the execution host. However, there are some instances where one would like to obtain the channel list without needing to deploy the system definition. One such example is building an Alias text file for a large number of channels. In order to do this, the System Definition API must be used.

Steps to implement or execute code
To implement this example:

  1. Set the System Definition File Path to the location on disk where the system definition file is held.
  2. Set the Target Index to the index of the controller (in the system definition file) you would like to obtain the channels for.
  3. Set the Text File Path to the location on disk you would like to write the channel paths to.

Requirements
Software
LabVIEW 2012 or compatible

fp.JPGbd.JPG

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

National Instruments
Senior Systems Engineer

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

Comments
HervéM
Member
Member
on

Hello,

It's a very useful program. It works well but I need more information about channels.

I just change it to see DAQ, FPGA and Custom device channels. Is there a way to see if the channel is an input or an output ?

Best regard,

Hervé