10-05-2017 09:47 PM
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 ?
thank you
Solved! Go to Solution.
10-05-2017 10:42 PM
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).
10-05-2017 10:57 PM - edited 10-05-2017 11:10 PM
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!
10-05-2017 11:24 PM
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.
10-05-2017 11:25 PM
This is exactly what I have been looking for. Thank you!!
10-06-2017 04:08 AM
Consider marking Green's (550nm) answer as solution (or we will).