What is Numeric Value Out following execution of the VI?
d) 1 or 3
The sort works on the first item in the cluster. So the cluster order (which we cannot exactly know based on the picture) matters.
For numeric : A
For string : string value (a)
It depends on order of cluster.
Ans = D
at 2nd attempt....went for A intially
Because if the String Value is the first item in the cluster, then you will get 3 as an answer.
D. Depends on the order in the cluster.
Here I did mistake! from 2nd comment.
Ans - D
depends on order of cluster
Hi Traitor_Saravanan. It is a tricky one. crossrulz summed it up nicely.
Answer: D. Nice one all.
It would help readability if LabVIEW automatically ordered the elements in the cluster constant (top-down maybe) or actually identified with a little number the order of each element within the Cluster. This could be expanded to the Front Panel when in edit mode.
You can use the Autosizing->Arrange Vertically to view the elements in order.
Yep, but I'd prefer something that worked for all. If I have picked up someone elses code for a review maybe, I don't want to go through and have to check how each cluster constant is configured.
I tried the above vi and I got 1 as the answer.
All says about the order of the cluster. I see the cluster order is already mentioned as 1,2,3 from top down in Steve's VI. Which says the answer should be option A.
Then can I please know how the answer is D ?
Right-click on your cluster constants and choose to reorder the cluster. Make the string first in the cluster order and you will get 3 for your answer.
In this example first element is numeric. so, answer is "A"
krishnaprasad-kp, you really should read all of the comments. The cluster order is not necessarily the same as what is seen.
Hi crossrulz, i got ur point.
But here image is given clearly. so whether i need to consider reorder option!?
No, the image is not clear about CLUSTER ORDER. There is nothing there to state what the order is. I can very easily make two VIs that will look identical as the image above and will give you two different results.
yes, i agree. thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.