LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

listbox problem when it is in a cluster

Hi

 

I have a cluster that contains a listbox and the item names are programaly initiated by using a reference to the cluster. Then If I run it, I can see the original cluster control is updated properly but if I use an indicator to check its velue, it is still empty. Has anyone else has the same problem?

 

By the way, I am using LV7.1

 

 

0 Kudos
Message 1 of 2
(2,226 Views)

The wiring of the control to the indicator is only transferring the values of the cluster elements. The listbox's value is an integer. Thus, it would be no different than having a cluster of 2 integers (which is what it actually is), rather than a cluster of a listbox and a numeric control. If you put a probe on the wire that goes between the control and the indicator you will see that the values of both elements is zero. Item Names are not transferred. You would need to set the Item Names for both control and indicator. A better solution is to make a typedef from the Listbox with your Item Names set, and use the typedef inside the cluster.

 

This is by design. 

Message 2 of 2
(2,211 Views)