LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

can I get the string off the name of an indicator?

I wrote a test program with lots of tests and put each result into its own
indicator. When I went to save the data to file I wanted to write the name
of each indicator along with its data. But I couldn't figure out how to
strip that name off the indicator. I finally ended up retyping every one of
them (26). Is there any better way?
0 Kudos
Message 1 of 4
(2,417 Views)
Try creating a property node for each indicator and using the 'Label - Text' option to read the name of the indicator.

Regards

CM
Message 2 of 4
(2,417 Views)
You can extract the "Caption" of your indicator.

If you right-click your indicator in the Panel side, you will see the option "Show -> Caption". Select it so the caption is showed and write on it the name of the indicator.

On the Diagram side create an Attribute Node of your indicator. Right-click on the indicator symbol and select "Create -> Attribute Node". In the attribute node, right-click the attribute and select "Select Item -> Caption". Make sure the attribute node is on Read mode (you will see a small arrow at the right side of the attribute). Right-click the attribute node and select "Change to Read" if it is in write mode.

Regards;
E. Vargas
www.vartortech.com
0 Kudos
Message 3 of 4
(2,417 Views)
I should add that this answer work (as far as I know) for LabVIEW 5 and 6. If you have LabVIEW 6 it is easier because the Property Node also include the "Label" property. In LabVIEW 5 that attribute is not available.
www.vartortech.com
0 Kudos
Message 4 of 4
(2,417 Views)