Is there a simple way to retrieve the minimum and maximum values of a Ring control or indicator?
I'm not looking for "Data Entry Limits", so that hasn't been useful. The only thing I've been able to do is use the "Strings And Values " array, however even THAT is problematic, as it returns an array of clusters. To use "Array Max & Min", I have to use a for loop to index the array, and create a new array of just the Values.
Is there either a way to just get the Min & Max, or an easier way to get an array of the values? Ring controls have both a "Strings " and "Strings and Values " property, why don't they have just a "Values " property? Perhaps there's a way to UN-Index and UN-Bundle a Cluster Array?
I'm using LabVIEW 8.5.
Thanks for the quick reply.
That's a great tip, but what if I don't have or want Sequential Values? I suppose I should have used more complicated data in my example VI, but in my actual application, we populate our Ring controls at runtime, and depending on the situation, the minimum value may be something other than zero.
I'm always looking for a better way to do things, and thought perhaps I was missing something.
If there was a way to get the a "Values " array directly, obviously I would prefer it. I also wasn't sure if there was a better way to unbundle a cluster array -- a reverse of "Index and Bundle Cluster Array" would certainly be quite handy. It would make the block diagram a bit cleaner.