02-07-2013 02:58 AM
Hi,
Why is the Caption of a Labview control, when the control is assigned as a terminal on the VI connector, passed to Teststand as the parameter name ?
I would have expected the Label of the control to be the parameter name passed to Teststand.
In the past I've used the control's Caption to locally modify the front panel text, and the Label is used to represent the data's\variables name.
regards,
Gary.
02-07-2013 09:04 AM
My guess is that it's because the terminal on the connector pane assumes the name of the caption. The LV adapter uses the connector pane to populate the parameter list.
My 2 cents,
02-07-2013 10:02 AM
Hi,
The Label of a control is common to both front panel and block diagram, unlike the Caption which only appears on the front panel, so when using Labview with Teststand I tend spend most time in the Labview block diagrams manipulating the data variables by the Label name, i.e.. the variable name, not the Caption name which may have been added for information purposes on the front panel.
I've only asked because I'm curious about the reasoning behind the choice of using the Caption to identify the terminal on the connector pane.
Regards,
Gary.
02-11-2013 07:47 AM
Hi Gary,
My name is Kevin and I am an Application Engineer at NIUK.
The original idea was to show the caption (if not empty) of a control instead of the label in case the user decides to localized the control by modifying the caption which we can dynamically change. The LV adapter stores both the caption and the label. The caption is only shown if it is not empty.
Changing the behavior to always show labels will not affect compatibility since we already store them. Most of the time, the label and the caption are the same and if they are not the same I don't see a problem with just showing the caption. I have never seen a VI that shows both the caption and the label at the same time and if the caption is different that is what it is shown instead of the label.
kind Regards