LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to add controls in a typedef cluster

Solved!
Go to solution

Hi,

I need to add controls to a typedef cluster of 30 elt 

any help please ?

i'm using LabView 2015

Thanks 

0 Kudos
Message 1 of 18
(6,813 Views)

Hi,

 

   Typedef.png

Opentypedef and edit. 

Remember : If u change a typedef, the change occurs wherever. 

0 Kudos
Message 2 of 18
(6,800 Views)

Jay0909's example shows how to do it for an enum, but a cluster works exactly the same (you might need to click on the border though). Alternatively, you can open the .ctl from the project explorer, recent files, or even windows explorer. This will all open the type def for editing (if no running VI's are using it).

0 Kudos
Message 3 of 18
(6,788 Views)

Hi, 

Thanks for the response, i can't add these framed color box intrerprted by Numeric value U32 ( there are hided controls and indicators in my typedef clusters ) i just need to add 5 ports in these type def cluster. 

Download All
0 Kudos
Message 4 of 18
(6,779 Views)

Hi,

 

      Post your ctl. Please explain step by step.

0 Kudos
Message 5 of 18
(6,773 Views)

I don't see a cluster in your type def. It seems like you're trying to add the controls to the front panel of the type def. That won't work. You need to put them in a cluster.

0 Kudos
Message 6 of 18
(6,765 Views)

Hi, 

i need to add 5 ports (framed color box ) to this typedef .

0 Kudos
Message 7 of 18
(6,753 Views)

If you want to, we can add them. But that won't really solve the problem...

 

Not sure why you can't do this, you seem to have done it before with the other items?

 

Simply select (drag a box over them) the top 5 controls. Then press CTRL+drag to copy them. Make sure you drop them inside the invisible cluster (a dashed box will appear). If you don't, the control will be broken. You'll get a OK icon with a red line across the OK.

 

To make things a bit clearer, you could give the cluster a color (background or border). 

 

This is pretty basic stuff. Did you inherit code and need to change it? Some (free) courses might help.

 

 

0 Kudos
Message 8 of 18
(6,745 Views)

Thanks for your help .

Yes i'm trying  to change a code and i need to add these ports to adapt it to new project .

i just did what you said from the beginning but i have this error as shown in the capture

0 Kudos
Message 9 of 18
(6,738 Views)

Looks like the file itself is set to read only.  Do you need to check it out of your SCC repository?


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 10 of 18
(6,732 Views)