From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract the name of a wire

Solved!
Go to solution

I'm trying to automatically generate a spreadsheet which in it's first row has the headers (names) of the measurement data. So if I have a wire value of 5 for "Torque (Nm)", I want to extract the string "Torque (Nm)" to be used as a header.

 

How to obtain/extract the NAME of a wire (variable)?

 

The following VI (hopefully) makes clear what I mean.

0 Kudos
Message 1 of 3
(622 Views)
Solution
Accepted by topic author UL-00

The VI you are looking for is Get Type Information.vi

Cluster, Class & Variant > Variant > Data Type Parsing > Get Type Information.vi

I don't think it gets the wire label but the cluster item name.

0 Kudos
Message 2 of 3
(588 Views)

@cordm wrote:

The VI you are looking for is Get Type Information.vi

Cluster, Class & Variant > Variant > Data Type Parsing > Get Type Information.vi

I don't think it gets the wire label but the cluster item name.


If an input is a variant (can't open the >LV20 VI), the label of the variant will be the wire label.

 

If the value is in a cluster, you can use Variant To Data with an array of variants, to convert the cluster. Then, each variant in the array will have the element label.

 

If you want the wire of an input connected to a .vim, you're out of luck. That's not possible.

0 Kudos
Message 3 of 3
(578 Views)