‎07-31-2007 02:43 PM
‎07-31-2007 03:12 PM
‎07-31-2007 03:30 PM
I tried this with polymorphism but how do you handle different types of clusters and arrays. Since these have many possibilities I can not define all permuataions. Am I missing something? Can I define a generic cluster or array? If a cluster is inputted I could easily recurse over all controls[] and for an array I can easily do a for loop an each element. And keep with this approach until I handle all controls down to a native data type.
Paul
‎07-31-2007 03:31 PM
The primitives (the yellow icons) are not G code.
What you want can be accomplished by using XNodes or express VIs. See here for an example or search the LAVA forums for other XNodes related examples (there are some in the code repository). You should note that XNodes are not supported.
Also, I'm assuming it's not impossible that NI will include something like this in future versions of LV.
‎07-31-2007 03:49 PM
‎07-31-2007 05:42 PM
‎08-01-2007 05:18 AM
What's the difference between this and a Variant input?
@falkpl wrote:
My cunent implementation is based on the control reference, it just sucks that I have to break the data flow to get the reference of the control to pass to my subvi, then the subvi will invoke the proper vi based on the reference class name. I was looking for a more elegant solution that ni is not yet released to the community.
‎08-01-2007 06:48 AM
‎08-01-2007 07:42 AM
‎08-01-2007 08:02 AM
Thanks for all the input, I guess using the variant is the best anything in input but I will have to do more work to handle and manipulate the code. I did find the lava discussion of xnides very interesting and if I ever get some down time I will definitly explore that avenue. lots of cool stuff here. Are there any limitations to variants, I have used them but not all that often.
Paul