07-10-2025 06:58 AM
@Creo2 wrote:
'And you can do this to regular VI's too... they don't even have to be accessors! Basically a way you can make pseudo-invoke nodes'. Can you explain this a bit in detail. Thank you.
@BertMcMahan wrote:
@Darren wrote:
You can change it yourself without having to re-create the accessors. Right-click on your class (or a virtual folder in your class) and choose New > Property Definition Folder. Name it whatever you want the property name to be, then drag your previously-created accessors into that folder. Now you can access that member data with a property node.
And you can do this to regular VI's too... they don't even have to be accessors! Basically a way you can make pseudo-invoke nodes 🙂
You can call a public member VI of a LabVIEW class as SubVI or, if the requirements are fulfilled, as a property node.
Some requirements to call a member VI via a property node are
- Class control in top left connector pane configured as required input
- Class indicator in top right connector pane
- error control / indicator in bottom left / right connector pane
- one and only one additional control or indicator on the connector pane
- VI is in a property definition folder
(there may be more requirements)
The normal behavior for these VIs in property definition folders is that they read from or write to the private data cluster of the class.
But LabVIEW does not restrict that these VIs have to access the private data, they can execute every piece of LabVIEW code.