Many of us at some point have wondered "Why the heck is the default number of elements for Array To Cluster equal to nine?" No good explanation is forthcoming. My new question is "Why should there be a default setting?". I suggest that instead of defaulting to nine elements leading to some hidden bugs (I have at least 3 solutions involving this function), that the Array to Cluster function simply breaks the VI until a value is chosen. Some possibilities for discussion.
1) Pop up the dialog upon dropping the node? A bit Express-y
2) Double clicking the node should pop up the dialog? I'd like that.
3) A visual indication that the value has not been set? A few possibilities:
4) Make the value an editable text field along the lines of the comments here:
http://forums.ni.com/t5/ideas/v2/ideapage/blog-id/labviewideas/article-id/2430/page/1#comments
If it is easy to do I say yes. Don't even start down the dynamic adaptation road, that is not going to happen any time soon.
My main point is that this function is not used very often by most of us which means that it is not worth a major overhaul, and it is all the more unlikely that we remember all of the hidden behavior. Therefore a simple tweak, breaking the code until a value is set makes sense. Making it easier to set the value is a nice bonus, but secondary.
Someday a better method will come along (cluster support for Coerce To Type?) and this function can be put out to pasture, until then I would suggest just a little tweak.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.