LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Malleable VI Adapting to LV Class

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?

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 1 of 4
(1,424 Views)

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

0 Kudos
Message 2 of 4
(1,394 Views)

@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.


___________________
Try to take over the world!
0 Kudos
Message 3 of 4
(1,360 Views)

@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.

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 4
(1,344 Views)