ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control content change

Hello,
 
I created a custom control which is a cluster of several numeric an string controls. I use that control in a lot of sub-VIs as input or output..
 
Sometimes I want to change the custom control, for instance add or remove a control or change the type of one. After I have don that I have to replace in every sub-VI the old control by the new one. I do that by hand which costs a lot of effort.
 
Is there an easier way? 
 
Thanks in advance,
 
Bart
0 Kudos
Message 1 of 2
(2,529 Views)

Yes ther is a better,

right click on the control, and select Advanced-> Customize.
In the toolbar select 'Type-Def' instead of 'Control'.
Save the control as a .ctl file, if you insert the control into a cluster/VI the datatype will be preserved.
If you want to preserve the look of the control use a 'Strict Type Definition' instead of 'Type-Def'

Ton

 
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 2
(2,523 Views)