Example Code

VI Server: To More Specific Function Example

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

Code and Documents

Attachment

Overview

Coding that exemplifies how to use the "To More Specific Class Function".

 

Description

The VI Server function "To More Specific Class" allows you to recast object references to a more specific class. This example uses the LabVIEW shipping example "Using To More Specific Function" to parse the other VI included in the .zip folder, "Controls Everywhere.vi," and return only the names of numeric controls that are nested in various container objects on the front panel.

 

Requirements

LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code
1. Run the VI.
2. Open the "Controls Everywhere.vi", and change the name of a control.
3. Run the VI again, and see how the name is changed.

 

Additional Information or References

Snippet.png

Todd S.
LabVIEW Community Manager
National Instruments

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