11-20-2014 02:23 AM
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
11-20-2014 05:30 AM
Either create a function/cluster, and/or place a Variant on the front panel.
/Y
11-20-2014 06:45 AM
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.
11-20-2014 11:19 AM - edited 11-20-2014 11:20 AM
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.
11-20-2014 12:19 PM