LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bug with Cluster having Combo box and string

To reproduce the bug please do the following.

 

  • Create a Cluster containing a combo box and a string control.
  • Enter some string selection values in the Combo box(Example: One, Two, Three)
  • Make the cluster a type def and save it.
  • Open a new VI and place the Cluster control which is saved.
  • Right click the Cluster and select "Open Typedef" and re-order the cluster elements (If string was at index 0 make the Combo box index to 0 and vice versa)
  • Go to File>Apply changes and save the control and close.

Now check the cluster, the string present in the combo box will be present in the String control.
I have LabVIEW 2013SP1 and I see this behaviour.

 

ClusterBug.png

-----

The best solution is the one you find it by yourself
0 Kudos
Message 1 of 6
(1,984 Views)

I've seen that before, i think it's the same with most any datatype if you change order? For some reason it keeps the data order when the data type order is changed. Annoying and dangerous.

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 6
(1,965 Views)

I have seen this behaviour when I was handling a string control and an Instrument resource name. This is seems to be happening with data types similar to string.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 3 of 6
(1,949 Views)

Does it work if you add a numeric?

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 6
(1,927 Views)

With Numeric it doesn't have any impact. Only with the data types similar to string (DAQ config, Resource, etc.,)

-----

The best solution is the one you find it by yourself
0 Kudos
Message 5 of 6
(1,919 Views)

Yes, i was thinking if a numeric in the cluster had any effect on the reordering issue, like if you in your example add a numeric as last element and move it first.

/Y

G# - Award winning reference based OOP for LV, for free! ADDQ VIPM Now on GitHub
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
Certified-LabVIEW-Developer
0 Kudos
Message 6 of 6
(1,917 Views)