From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Constant typedef description missing

Solved!
Go to solution

I have created a strict typdef cluster and given it a description (Right Click Description and tip).

 

This description appears on a control, and indicator but not on a constant or the wire itself.

 

I belive this is a code bug.

 

2009 sp1 win xp32

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 1 of 10
(4,028 Views)

Why do you think this is a bug?

 

The description is a property of a control or indicator.  Context help shows the description.  It also shows the datatype.

 

A wire or constant is not a control or indicator and a description is not a property of either one of those enitities..  If you right click on a wire, you don't get a properties menu choice.  Likewise for a constant. Since those entities don't have a description property, there is no way for the context help to show it.  However the datatype is still an essential part of a wire or constant, so the context help still shows that.

0 Kudos
Message 2 of 10
(4,020 Views)

With a constant the context help specificaly says:

 

"Description Not available".

So, If I can't put it in the typedef, Where can I put the info?

It is linked to the typedef, so why shouldn't it use the date there!

 

 

The wire is smart enough to know that it is a typedef (it will show coersion dots if it is not wired to it's own typedef).

It would make sense that it can bring up the context help for it's parent definition.

 

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 3 of 10
(4,014 Views)

The description is not something that is part of the type definition.  Even the Strict type definition.

 

Put two copies of your strict typedef control on a blank VI.  Right click on one, properties, and change the description.  You can see that is easily changed.  If it was part of the type definition (strict), you would not have been allowed to change it.

 

Is there some reason you would want the description essentially "hard wired" to the type definition?  I wouldn't.  I would want the ability to have two copies of a control.  Even a strict definition because I wouldn't want their appearance to be changed.  But I might want to be able to change the description of the controls so that one could say "I'm the control for device A", while the other would say "I'm the control for device B".

 

0 Kudos
Message 4 of 10
(4,010 Views)

Ravens Fan,

 

I think your logic is flawed.

 

Why auto-populate a description for the control and indicator forms of the typedef and not the constant?

I would expect all or none, there is a consistency problem here,

 

If you change from constant to Control and back to indicator, it forgets/overrwites the description that you have added iin the various stages.

It is not so forgetful changing from indicator to control and back

 

 

 

As far as a wire is concerned, - it was a passing thought, it would be nice to have the description associated with the last control it came from.

 

iTm - Senior Systems Engineer
uses: LABVIEW 2012 SP1 x86 on Windows 7 x64. cFP, cRIO, PXI-RT
0 Kudos
Message 5 of 10
(4,002 Views)

I'll tell you what.  I think you might be right.

 

My arguments were based on the fact when I converted your typedef control to a constant, I was not getting a properties option in the right click menu.  So my thought was that if you can't set the description property for a constant, then it must not exist.  But now, trying everything again, I am getting a properties option.

 

Now playing around some more, even with a simple numeric that has a description and tip strip set, saved as a typedef, I am seeing cases where a control has a description set, yet the context help doesn't show it. (This is in LV 2010).  And also the typedef has one description, a control has a different description, but the context help shows the description defined in the typedef.

 

So the earlier testing where I did not see a property screen for the constants, I can't duplicate.

Testing things now, I'm getting different behaviors between controls and constants.  And it seems unpredictable and probably depends on how things were created and/or copied.  (Change to Constant/Control vs. Create Constant/Control vs. copy/paste the constant/control, vs. dropping on the front panel or block diagram from the typedef file.)

 

I do believe now there is something very inconsistent going on here.  Constants are behaving differently from controls/indicators.  And if you have a different description in a particular control, it does not show in the context help, but the description defined in the typedef does.

 

Download All
0 Kudos
Message 6 of 10
(3,992 Views)
Solution
Accepted by topic author Timmar

I do agree that this behavior is strange.  I have submitted this to our R&D department under CAR# 278228 for investigation.  Thank you for bringing this to our attention!

 

Brandon Treece

Applications Engineer

National Instruments

0 Kudos
Message 7 of 10
(3,966 Views)

This seems to still be an issue, currently using LV 2013 SP1 and took to google because I was annoyed that my type defined and strictly type defined enum constants would not display any of its documentation (be it "description", "tip", or "Control (VI) Property -> Documentation" for my constants, but it does show up on controls and indicators.

 

this is somewhat annoying since I'm trying to document the details of each enumerated item and the use-case I have for this particular enum, it is used in the form of a constant most of the time, and it would be convenient to hover and get the description/context help when using them.

(edited for clarity)

QFang
-------------
CLD LabVIEW 7.1 to 2016
0 Kudos
Message 8 of 10
(3,661 Views)

This is still not fixed in LabVIEW 2018...

When is the request will be taken seriously at NI... Oh i know... never... they put all resources on NXG crap. :'(

0 Kudos
Message 9 of 10
(2,855 Views)

Still not fixed in 2023 Q3 which is really annoying.

0 Kudos
Message 10 of 10
(204 Views)