LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a wrapper for Flatten to... functions

Hello all,

 

I have a question that I likely know the answer to but maybe someone smarter has some better ideas than I do.  The "Flatten to..." functions essentially take a Void data type.  I would like to create a wrapper for these functions but LabVIEW does not allow undefined clusters on the front panel.  Is there a way to get around this?  How exactly is this done on these VIs?  Are these just wrappers for C calls?

 

Cheers, m

0 Kudos
Message 1 of 5
(3,133 Views)

Either create a function/cluster, and/or place a Variant on the front panel.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(3,106 Views)

What you ar asking for is called a Generic.  And it does not exist in LabVIEW.  There are ways, if you really want to go into some hacks.  Do a search for XNodes.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 5
(3,096 Views)

Pointer to void, duck typing, etc, etc. 

 

Yes, LV is strongly typed, so  I think the answer is that, no, there is no way to do this in LabVIEW.  So, how do the flatten functions work?  How, when you right click and selec Create... on the input, do you get a void wire?

 

And Yameda, thanks for the input.  But variant won't work as I would have to rebuild the input cluster (sloooooow) if I were to use the flatten functions.

 

Since the answer is no (and xnodes seem to have a lot of issues), I am not going to try to create a wrapper.  I will just have to come at this from another angle.

0 Kudos
Message 4 of 5
(3,073 Views)
Those functions are LabVIEW primitives - they're built into the language. They aren't VIs.
0 Kudos
Message 5 of 5
(3,056 Views)