MViControl Posted September 11, 2007 Report Posted September 11, 2007 Hi Everyone, Can I dynamically create(i.e using code to create) controls of Labview when the program run. Thanks Techie Quote
Karissap Posted September 11, 2007 Report Posted September 11, 2007 I think a better idea would be to create all the controls you need before hand and use the visible property node to hide them or show them when the VI is running. Quote
ASTDan Posted September 11, 2007 Report Posted September 11, 2007 Another option might be to use a sub panel Dan Quote
MViControl Posted September 11, 2007 Author Report Posted September 11, 2007 QUOTE(Karissap @ Sep 10 2007, 11:17 AM) I think a better idea would be to create all the controls you need before hand and use the visible property node to hide them or show them when the VI is running. http://lavag.org/old_files/monthly_09_2007/post-8228-1189394044.jpg' target="_blank"> Yeap, I think this is a good option, thanks Quote
LAVA 1.0 Content Posted September 12, 2007 Report Posted September 12, 2007 What is the application is the more important question? Usually that will lead to better responses to how to accomplish something. Quote
Rolf Kalbermatter Posted September 13, 2007 Report Posted September 13, 2007 QUOTE(Techie @ Sep 9 2007, 10:04 PM) Hi Everyone,Can I dynamically create(i.e using code to create) controls of Labview when the program run. All comments so far have been valid and right. One other thing, creating controls while in principle possible requires the use of so called scripting, a feature that has not been released by NI and made difficult to access too. Also you can not do it on a VI that is running, so for most user applications it is meaningless as you usually want to do such stuff from the VI itself. LabVIEW can not make any modifications to a VI that is running if these changes would modify the diagram in any way and dropping a control on a front panel does modify the diagram. That is also a limitation of the compiling nature of LabVIEW. Rolf Kalbermatter Quote
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.