LVCLASS File Extension: Difference between revisions
Appearance
New page for lvclass file extension |
Added details about changes to the LabVIEW Class file contents in LabVIEW 2025 Q1 |
||
| (5 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
The ''' | The '''LabVIEW Class''' file extension (''*.lvclass'') is used for class libraries in [[LabVIEW object-oriented programming]]. A class library is a special form of [[LabVIEW Project Library|project library]] that defines a new data type in LabVIEW. It contains meta data about the class and its members, a private [[custom control]] that is embedded in the class library (there is no separate file on disk) and links to class methods. | ||
== | In LabVIEW 2025 Q1, the LabVIEW Class file no longer stores the connector panes of member VIs in binary format. Instead, LabVIEW stores a ''NI.ClassItem.InvokeUsage'' property that is a number: | ||
* | |||
*[[Object oriented | * 1 = Dynamic method | ||
* 2 = Static property read | |||
* 3 = Static property write | |||
* 4 = Dynamic property read | |||
* 5 = Dynamic property write | |||
* 6 = Data unflatten (loads the class to unflatten a piece of data) | |||
* 7 = Exists (loads the class for the private data control) | |||
* 8 is unused | |||
* 9 = Not a function (used for controls, globals or Polymorphic VIs) | |||
==See also== | |||
*[[Object-oriented programming]] | |||
[[Category:LabVIEW file extensions]] | [[Category:LabVIEW file extensions]] | ||
[[Category:Object-Oriented Programming]] | |||
Latest revision as of 23:01, 31 January 2025
The LabVIEW Class file extension (*.lvclass) is used for class libraries in LabVIEW object-oriented programming. A class library is a special form of project library that defines a new data type in LabVIEW. It contains meta data about the class and its members, a private custom control that is embedded in the class library (there is no separate file on disk) and links to class methods.
In LabVIEW 2025 Q1, the LabVIEW Class file no longer stores the connector panes of member VIs in binary format. Instead, LabVIEW stores a NI.ClassItem.InvokeUsage property that is a number:
- 1 = Dynamic method
- 2 = Static property read
- 3 = Static property write
- 4 = Dynamic property read
- 5 = Dynamic property write
- 6 = Data unflatten (loads the class to unflatten a piece of data)
- 7 = Exists (loads the class for the private data control)
- 8 is unused
- 9 = Not a function (used for controls, globals or Polymorphic VIs)