04-25-2014 02:52 AM
For documentation purposes and a better readability, I document typedefs by filling in its properties. Sadly, when I create a variable of this type, the comment does not show up in the context help box when moving over the variable. Is there a way to combine the documentation automatically (by configuring LV?
I don't want to document each variable of the typedef and I don't want to write a programme which does this for me.
Thanks a lot!
04-25-2014 10:00 AM
When you enter the documentation, do not do it using the icon of the typedef in the upper right corner of the control. Enter the documentation directly using the variable property in the typedef control. The documentation entered that way will show up in the variables created from the typedef.
04-25-2014 10:21 AM
@md001 wrote:
When you enter the documentation, do not do it using the icon of the typedef in the upper right corner of the control. Enter the documentation directly using the variable property in the typedef control. The documentation entered that way will show up in the variables created from the typedef.
I think he means when you create a constant from a typedef. If you make a control or an indicator, the description shows up. If you make a constant, it does not.
04-25-2014 11:27 AM
No what I mean is when the control type def is open, enter the documentation using the properties of the control itself (the variable), not the control properties accessible through the icon in the top right corner of the control type def (see below).
Also, the documentation of any variable created from the typedef will be the documentation in the typedef at the time of the creation of the variable. If you want the to be able to change the documentation and have the documentations of all the previously created variables updated at the same time, you have to use a "Strict Type Def" instead of simply a "Type Def".
04-25-2014 01:12 PM
@md001 wrote:
No what I mean is when the control type def is open, enter the documentation using the properties of the control itself (the variable), not the control properties accessible through the icon in the top right corner of the control type def (see below).
Also, the documentation of any variable created from the typedef will be the documentation in the typedef at the time of the creation of the variable. If you want the to be able to change the documentation and have the documentations of all the previously created variables updated at the same time, you have to use a "Strict Type Def" instead of simply a "Type Def".
I was under the impression that he was creating constants, since he was talking about "variables."
04-28-2014 06:02 AM
Thanks for your replies -
You are right, I was creating constants and the typedef documentation is not passed on, even when using "strict Type Def". If I change the constant to an input element, the documentation is passed on.
Regards Erik
04-28-2014 10:11 AM
@ErikThiel wrote:
Thanks for your replies -
You are right, I was creating constants and the typedef documentation is not passed on, even when using "strict Type Def". If I change the constant to an input element, the documentation is passed on.
Regards Erik
I took a brief tour of the options and unfortunately I didn't see an option to change this behavior. 😞
04-28-2014 01:03 PM
Constants created from type defs are allways non-strict.