01-15-2020 09:39 AM
Hi there,
How can I make a table as a typedef or strict typedef, so that when I change the table at one place, all the same table at other places change too, like Enum typedef.
Thank you very much,
Steve
01-15-2020 09:55 AM
It depends on the LabVIEW version. In LV 2017, for example, you simply right click and choose Make Type Def ... in one place. If you already created other tables, you need to replace all of them with the new defined type.
Of course, you want to make it a Strict Type Def, to preserve properties such as color, size, headers and so on. Making a table a simple Type Def is not much useful, since there is only one possible data type associated.
Beware that with a Strict Type Def all control properties are the same for all instances.
01-15-2020 10:03 AM
Thank you. I am using LabVIEW 2015. It seems that it does not work. Do you know whether LabVIEW 2015 works?
Regards,
Steve
01-15-2020 10:03 AM
Obtain a reference to the table. That is what you need.
.
01-15-2020 10:11 AM
@Shijie ha scritto:
Thank you. I am using LabVIEW 2015. It seems that it does not work. Do you know whether LabVIEW 2015 works?
Regards,
Steve
Right-click, then select Advanced -> Customize...
A Custom control window will appear. Change the ctl type on the toolbar from Control to Strict Type Def.
Modify (if needed) and Save the new Custom control, then close it. LabVIEW asks you if you want to replace the original control with the Custom control. Click Yes.
01-15-2020 10:13 AM
Try this, works for all versions:
Select the table, from menu bar, Edit => Customize Control... => on the toolbar of the new window, change Control to Type Def., or Strict Type Def. => save the Typedef to a file.