LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IncrementDecrement Display in Arrays

Hi,
I've a rather complicated datastructure which is composed of clusters of
clusters which includes among other elements some arrays.
I've done this with strict type definitions, so I can change the content
and the 'skin' of the structure for the complete project in one action.
This (total) cluster can be an indicator or a control depending on where
it is used.
I want to show the arrays with the index display number, but not with
the rather big increment/decrement 'control'. I can adjust this in the
'sub'-cluster's arrays and it is shown correctly there.
Problem: When the main cluster is turned to be a control the
increment/decrement reappear and so the subcluster is not shown correctely.
Questions
Is there a way to solve this? Or a way around?
Is this a marketing decision or a bug 😉

Thanks for any hints
Urs
0 Kudos
Message 1 of 7
(3,619 Views)
There is a trick : since there is no way to tell if an array will be made with simple digital controls of anything else, there is no specific property node to hide or display the inc/dec button. But of course, you can access to this property if you tell LabVIEW that your array element is a digital control...



... as done in the picture below.

Message Edité par chilly charly le 10-25-2005 01:17 PM

Chilly Charly    (aka CC)
Download All
Message 2 of 7
(3,606 Views)
chilly charly schrieb:
> There is a trick : since there is no way to tell if an array will be made with simple digital controls of anything else, there is no specific property node to hide or display the inc/dec button. But of course, you can access to this property if you tell LabVIEW that your array element is a digital control... ... as done in the picture below.<img src="http://forums.ni.com/attachments/ni/170/148626/1/Hide%20Inc-Dec%20button.png"> Message Edité par chilly charly le 10-25-2005 01:17 PM
>
>
> Hide Inc-Dec button.png:
> http://forums.ni.com/attachments/ni/170/148626/1/Hide Inc-Dec button.png
>
>
> Hide IncDec button.vi:
> http://forums.ni.com/attachments/ni/170/148626/2/Hide IncDec button.vi

Thanks charlie for the good idea. As I still use LV7.1, could you send
us the VI saved as LV7.0 VI?

Merci Beaucoup!
Urs
0 Kudos
Message 3 of 7
(3,592 Views)
chilly charly schrieb:
> There is a trick : since there is no way to tell if an array will be made with simple digital controls of anything else, there is no specific property node to hide or display the inc/dec button. But of course, you can access to this property if you tell LabVIEW that your array element is a digital control... ... as done in the picture below.<img src="http://forums.ni.com/attachments/ni/170/148626/1/Hide%20Inc-Dec%20button.png"> Message Edité par chilly charly le 10-25-2005 01:17 PM
>
>
> Hide Inc-Dec button.png:
> http://forums.ni.com/attachments/ni/170/148626/1/Hide Inc-Dec button.png
>
>
> Hide IncDec button.vi:
> http://forums.ni.com/attachments/ni/170/148626/2/Hide IncDec button.vi


I think this works only for an array, but how can I do the same thing
when I have a cluster of{cluster1, cluster2, cluster3 of{array1,
array2,control)}? I want to influence the visibilty i.e. in array2!

Urs
0 Kudos
Message 4 of 7
(3,586 Views)


Urs Bögli a écrit:
I think this works only for an array, but how can I do the same thing
when I have a cluster of{cluster1, cluster2, cluster3 of{array1,
array2,control)}? I want to influence the visibilty i.e. in array2!

You just have to apply the same technique to the various elements of your cluster : first get the references to the cluster content, then scan to find which one correspond to the sub-cluster you are interested in, and so on. This is illustrated in the attached vi, saved in 7.0.
 
Chilly Charly    (aka CC)
0 Kudos
Message 5 of 7
(3,574 Views)


Urs Bögli a écrit:
...As I still use LV7.1, could you send us the VI saved as LV 7.0 VI?

In LabVIEW, you should always wire from left to right. A similar convention applies to version compatibility. :D:D:D
Chilly Charly    (aka CC)
Message 6 of 7
(3,571 Views)
However, when you hide the elements of a cluster in an array, the hiding is done in all the array elements, not just one.  The easy workaround is to put a borderless colorbox over the element in question and change the color box from background color to transparent when you want to show the element.  Of course, this only works for indicators, since the colorbox shields the underlying control from interaction.  If you need controls you usually end up using a different GUI paradigm (multiple arrays, tabs, subpanels, different method of doing the same thing, etc.).
0 Kudos
Message 7 of 7
(3,550 Views)