10-22-2014 03:31 PM - edited 10-22-2014 03:32 PM
Hi,
I have an array. Its wire has a name (in my case it is "laser data"). Then I decimate the array and the wire I have as output is named "Decimated Array". Is it possible to change its name back to "laser data"?
If so, how?
10-22-2014 04:38 PM
10-22-2014 08:09 PM
To be honest, the names on wires matter very little in LabVIEW. But the easiest way to change them is to simply make the label visible, edit it, and (optionally) hide the label.
10-22-2014 10:35 PM
What exactly do you mean by the name of the wire?
The wire can have a name that shows up in the context help as part of the datatype description.
The wire can have a label that shows up in the context help underneath the datatype description.
Also, with Decimate Array, the output does not have a name nor a description, but when you right click on the wire and create an indicator, the indicator will be labeled Decimated Array, but that name does not show up anywhere in the context help of the wire itself.
02-24-2016 02:40 PM
I'm putting a number of things into a cluster that I pulled from SQLite3. They are named (worthless) things like "Get Column DBL" instead of "time". I would love to name the wires because it makes for readable annotation, and the "Bundle by Name" would be populated more usefully for other downstream functions, function development, and team usability and re-usability.
Making a subVI that is a single wire in and out sounds ... really bad. It sounds like a bad hack. It also is going to require me to make ~30 noise subVI's, one for each label, for each column of the data that is being pulled. It really is not workable.
02-24-2016 02:58 PM - edited 02-24-2016 03:03 PM
To answer your question as stated you can use a type cast and wire a named constatn of the proper name to the top input and the ouptut wire will pick-up the name from the constant.
But what I think you really need learn is that you can wire-up your bunle by name, pop-up on the midle input, create constant (or control) and then make the control a type def...
You can edit the names in the type def'd control use the modified control to replace the orignal and you have a nice typ-def'd cluster that reads the way you want.
See also this old nugget.
Ben