From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-31-2011 07:25 PM
I have a lot of indicators and controls on my front panel and a number of references that I'm initializing into a bundle so my block diagram is very crowded. I thought I'd done a good job keeping much of the work inside sub-vi's but am stuck on how to get the controls and references and indicators into sub-vi's?
Solved! Go to Solution.
03-31-2011 08:26 PM
04-01-2011 01:02 AM - edited 04-01-2011 01:04 AM
Use the bundle of references as input to the sub-vi's. If you have bundled them it should be rather clean as you only should have 1 bundle-wire running around.
I'm guessing you dont have a state machine architecture? If so you typically have an initialize step in which you can create your bundle and the other steps will be alot cleaner.
(Assuming i didn't misunderstand wildly)
edit: Also assuming you by "reference" dont mean the wires going from the controls and indicators in which case you're mistaken, that's the actual data.
/Y
04-01-2011 04:06 AM
Hi,
I am not sure what exactly is your point. But just to make a subVI of some controls, indicators and references, go to the block diagram of your VI, using mouse click & drag, select the part of code which includes the controls, indicators and wires you want to insert into the subVI, then go to 'Edit' in the menu bar and click on Create SubVI. A sub VI will be created and all the code you selected will be inserted into this SubVI. You can save this SubVI to a preffered location.
Regards,
Nitz..
(Kudos are Always Welcome)
04-01-2011 04:10 AM
If you're asking about hiding the actual code where you bundle the references, then no, there is no such feature, and people don't seem to like anything which even suggests anything like this (see here, where we specifically discussed this use case and here).
Anyway, as said, you can also just place it in an area of the code which is out of the way. This utility allows you to create such code with a single click, but it will require that you install the RCF first (see the links there).
04-01-2011 08:44 AM
And dove-tailing Yair's reply...
I wrote about the GUI Controller I use in many of my apps in this thread.
I hope that helps,
Be