|
Re: help with another VI
I wanted to make a few other points about the VI that I offered for consideration. I made use of a few features in LabVIEW that are super useful. I recognize that other languages have similar features but these really shine in LabVIEW (IMHO).
1) Polymorphism - almost every VI that NI provides (especially in the various math routines like add/subtract/multiply/divide) support automatic detection of data type with support for a WIDE array of inputs. For example, the "multiply" VI can operate on fixed x fixed, float x fixed, float x float, array x array, array x scalar, cluster x cluster, etc. You might be surprised to learn that almost ANY data type can be multiplied. In my example, I subtracted the two clusters of position directly without needing to unbundle them and wire them separately
2) Clusters (aka structures in C) - VERY USEFUL!! THESE ARE YOUR FRIENDS!! This is a great way to encapsulate a set of data (including disparate data types)
Happy G coding!
Russ
|