LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to assign a name to an array wire?

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?

0 Kudos
Message 1 of 6
(3,348 Views)
  • You could wrap the decimation into an inlined subVI and name the output terminal as desired.
  • You could label the wire (right-click...visible items...label)
0 Kudos
Message 2 of 6
(3,326 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 6
(3,299 Views)

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.

 

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

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.

0 Kudos
Message 5 of 6
(2,957 Views)

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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 6 of 6
(2,948 Views)