MViControl Posted September 19, 2010 Report Share Posted September 19, 2010 Hi all, Is there a way to create a contol on Front Panel by code dynamicaly? I known you may say using "VI scripting", but I found the control can only been created on a new opened VI rather than the VI which have the creating code. Can anybody point me a way? Quote Link to comment
jcarmody Posted September 19, 2010 Report Share Posted September 19, 2010 You can't dynamically make a control within a VI. What are you trying to accomplish? Quote Link to comment
MViControl Posted September 20, 2010 Author Report Share Posted September 20, 2010 You can't dynamically make a control within a VI. What are you trying to accomplish? I want to build a XControl which could allow user add buttons by input button tag dymanically, I had ever thought this can be implimented by VI scripting, but finaly found the control can only been created in a new opened VI. Quote Link to comment
Francois Normandin Posted September 20, 2010 Report Share Posted September 20, 2010 I want to build a XControl which could allow user add buttons by input button tag dymanically, I had ever thought this can be implimented by VI scripting, but finaly found the control can only been created in a new opened VI. Controls can be added to any VI at edit time, no matter if it's a newly created VI or not. What is the purpose of this XControl you want to create? There might be way to achieve your goal other then creating a LabVIEW Development Environment by yourself... Quote Link to comment
MViControl Posted September 20, 2010 Author Report Share Posted September 20, 2010 Controls can be added to any VI at edit time, no matter if it's a newly created VI or not. What is the purpose of this XControl you want to create? There might be way to achieve your goal other then creating a LabVIEW Development Environment by yourself... To be honest, I am studying the Xcontrol technique of LabVIEW, and I found if we can create controls by code, then we could dynamically change the GUI, it just a try. P.S I do not want to creating LabVIEW DE by myself, I just want to try the capbility when I saw the VI scripting functions. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.