LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create custom default XControl

Hello, 

 

I would like to have a custom default XControl, implementing the everused state and data, and methods.

 

I have tried modifying  \resource\Framework\Providers\xi\xctl.llb but I am unable to do anything with the controls of every vis inside. I guess this is some kind of lock, is there any way I can go around it ?

0 Kudos
Message 1 of 4
(2,598 Views)

Hi,

 

Don't try to modified LabVIEW library, make a copy if you want to add some features to your controls.

 

I suggest you to read Creating New Front Panel Objects with LabVIEW XControls

 

Regards,

0 Kudos
Message 2 of 4
(2,574 Views)

The problem is that it is not quite clear how to reuse some design patterns developed for XControls for new XControl, without using copy and paste.

 

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!
0 Kudos
Message 3 of 4
(2,556 Views)

I have half solved my problem : even if the control types are not the right one, I wire them in the template vi as if they were, and I have changed the data.ctlt to fit my data (i.e. : an object belonging to the class 'FrontPanel'). I have mainly broken wires in the template, but it becomes all right when I create a new xctl since the controls are automatically replaced.

 

The last missing parts are the methods and properties I would want to automatically create each time I create a new XControl. I guess that it would be more work to do this automatically thant to make it manually...

0 Kudos
Message 4 of 4
(2,551 Views)