LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

updating a control

Hi,

I have a question concerning updating a control.
I've made a control wich consist of a enum type. When I use the control in an application, I don't have a problem. But when I add an item in the enum type of my control, the application where I use the control isn't updated. Even when I replace (right click --> replace)it with the new version of the control I made, the item that I added in the enum type of the control isn't added in my application.
How can I make a control that can do the following:
I need a control with an enum type and when I change the items in that enum type or add an item, the applications where I use this control must also be updated with the new items in the enum type of the control.

thanks,

regards,
Marino
0 Kudos
Message 1 of 2
(2,566 Views)
"marino" schrieb im Newsbeitrag
news:50650000000800000071300000-1004225886000@exchange.ni.com...
> Hi,
>
> I have a question concerning updating a control.
> I've made a control wich consist of a enum type. When I use the
> control in an application, I don't have a problem. But when I add an
> item in the enum type of my control, the application where I use the
> control isn't updated. Even when I replace (right click --> replace)it
> with the new version of the control I made, the item that I added in
> the enum type of the control isn't added in my application.
> How can I make a control that can do the following:
> I need a control with an enum type and when I change the items in that
> enum type or add an item, the applications where I use t
his control
> must also be updated with the new items in the enum type of the
> control.
>
> thanks,
>
> regards,
> Marino

Hi Marino,

you have to create a custom control for that way. Right click at one of your
enums and choose advanced->customize. Inside the toolbar change the typ to
typedef or strict typedef. Save your control to a new file - i like to
create a .llb, where i store the control and the vi, if only one vi uses the
custom control. Now you only have to exchange all other instances of that
control inside the vi.

greets
Henrik
0 Kudos
Message 2 of 2
(2,566 Views)