03-20-2021 06:21 PM
I want a malleable VI whose input can adapt to either an array of U32, or a class whose private data contains an array of U32.
The VIM can't be outside the class, because then the only way to access the class's data would be a property node, which isn't allowed in a VIM.
If I make the VIM a member of the class, it doesn't work because a class unbundler isn't allowed in a VIM.
Is there any way around this?
03-20-2021 08:30 PM
I don’t know about classes, but in the past with references when I wanted to use a VIM I put the property node in a SubVI and put the subVI in the VIM. That worked.
mcduff
03-21-2021 12:59 AM
@paul_cardinale wrote:
..the only way to access the class's data would be a property node..
Why not just call the accessor VI as a subVI instead of with a property node?
I haven't tried, but presumably it should work.
03-21-2021 07:26 AM
@tst wrote:
@paul_cardinale wrote:
..the only way to access the class's data would be a property node..
Why not just call the accessor VI as a subVI instead of with a property node?
I haven't tried, but presumably it should work.
That’s what I ended up doing. Works fine.