LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to change item label/name

Solved!
Go to solution

Hi all, 

 

I have been searching around but couldn't find the right answer for this problem. 

In short, say I concatenate 2 strings together, the output string is called "unnamed_string"

 

For example, I build a time stamp by joining date and time together. The output wired directly to writing into xml file. the tag of the timestamp is called "unnamed_string". Similar thing happens to if i only bundle multiple things into a cluster without an input cluster, it is then called"unnamed_cluster"

 

so.. how do I assign or change the name of the created item ?

 

ssx.PNG

thank you 

Message 1 of 6
(3,228 Views)

hi jals

instead of wiring it directly try wiring it to  an indicator and NAME it and use local variable.(you didn't mention you don't want to use an indicator).

bp
Message 2 of 6
(3,205 Views)
Solution
Accepted by crossrulz

Hi jals,

This seems to work, though there might be a better way.  Actually the dummy-indicator "concatenated string" can be replaced with a diagram-constant.- the result of the concatenate will inherit the name of the string-constant!

 

Cheers!

Download All
Message 3 of 6
(3,202 Views)

actually. I tried it once. the problem was that it will start generating more and more local variables that I don't really need them to be. But indeed it is a method tried. 

0 Kudos
Message 4 of 6
(3,192 Views)

This is exactly what I have been looking for. Thank you!!

0 Kudos
Message 5 of 6
(3,191 Views)

Consider marking Green's (550nm) answer as solution (or we will).

Message 6 of 6
(3,164 Views)