08-26-2009 10:13 AM
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 ?
08-31-2009 02:12 AM
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,
Aurélien J.
National Instruments France
08-31-2009 08:55 AM
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
08-31-2009 09:25 AM
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...