Mefistotelis Posted July 30, 2020 Report Share Posted July 30, 2020 I need a group of VI files, each containing only one control on Front Panel. Basically, I want every control available in LV menus in its own separate VI. Is there a way to automate creation of such VIs? Quote Link to comment
dadreamer Posted July 30, 2020 Report Share Posted July 30, 2020 Did you have a look at VI Scripting? If not, check the following example - [LabVIEW]\examples\Application Control\VI Scripting\Creating Objects\Adding Objects.vi To be able to create controls or indicators you should open the BD and change VI server class for "Function" constant to Generic -> GObject -> GObject. Then you change "Subtract" constant to something like "Numeric Control" and run the VI. Hope, this will help you move further with your task. 1 Quote Link to comment
Mefistotelis Posted July 31, 2020 Author Report Share Posted July 31, 2020 Wow.. yes, that seem to work exactly as I expected. Makes a new VI file with given control. Can I make it iterate through all the types and open every possible VI in one run? Quote Link to comment
PiDi Posted July 31, 2020 Report Share Posted July 31, 2020 Something like that. CreateALLObjects.vi Quote Link to comment
Mefistotelis Posted August 1, 2020 Author Report Share Posted August 1, 2020 Thanks! That is quite strange that I know exactly how LabVIEW works, but can't properly use it for what it is intended. 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.