02-20-2023 08:32 AM - edited 02-20-2023 08:33 AM
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.
Solved! Go to Solution.
02-20-2023 10:18 AM
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.
02-20-2023 10:51 AM
@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.