How Can I Access a Case-Structures Subdiagram Label Using VI-Scripting?

Updated Mar 20, 2019

Reported In

Software

  • LabVIEW

Other

  • VI Scripting

Issue Details

I am trying to read/write the text of a subdiagram label of a specific case of a case-structure in LabVIEW. How can I achieve this?

Solution

You can use this code in a SubVI to read all subdiagram label text values.

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
 

Additional Information

A case-structure consists of multiple frame-objects. The subdiagram labels are part of the frame and can be found in the frames properties.

To use this code you need to enable VI-Scripting:
Tools -> Options -> VI-Server -> Show VI Scripting functions, properties and methods

To obtain a case-structure reference you may use the "Open VI Object Reference"-function from the scripting palette.

WAS THIS ARTICLE HELPFUL?

Not Helpful