Example Code

Programmatically Determine Control Data Types

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
Programmatically determine control and indicator data types.

Description:
The example demonstrates how to programmatically extract data type information on each control and indicator in front panel

Steps to implement or execute code
To implement this example:

  1. Run the VI
  2. (Optional) Turn on the Highlight Execution to see the flow of the VI


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

2017-10-31_20-52-14.jpg2017-10-31_20-52-24.jpg

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

Shalini B
Applications Engineer
National Instruments UK & Ireland

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

Comments
josborne
Active Participant
Active Participant
on

This is nice to know its possible!

http://www.medicollector.com
ackatharotiya
Member
Member
on

Hi Shalini, 

 

That's life saver vi. Thank you.

I was wondering if you have another VI related to this one; that creates an array of  respective elements as well. I look forward for your reply. 

 

Thank you

 

carlos_camargo
Member
Member
on

This is a great example but it uses deprecated VIs, might want to update to use current ones. 

I redid using VIs in

C:\Program Files (x86)\National Instruments\LabVIEW 2017\vi.lib\Utility\Data Type

The floating help for the subVI's in the deprecated example point you to that folder.

It's easy enough once you realize that folder exists!  Just have to know to use: "Get Type Information" from that folder/library.