In OOP, interfaces define a contract. When a method/function expects a type of interface as an argument, any type implementing this interface can be passed. A well known and much used concept. I imagine something like this could be implemented for clusters in LabVIEW. Imagine if you could have a subVI define a cluster/cluster array, mark it as an interface and be able to wire any cluster/cluster array that adheres to this interface (adhering to the interface would basically mean that an unbundle by name node accessing any/all members of the interface would also work on any “derived” cluster). Both the cluster on the front panel and the wire should clearly indicate that this is an interface, which would mean that the cluster/wire actually contains more members, but you only have access to the ones defined by the interface. I definitely see some use cases for this. Sound useful/feasible?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.