06-14-2013 05:40 PM
Can we make a producer consumer method to be a sub vi.
If thats the case, then each time the Sub VI is called, wont it pop up the front panel and ask for some event to take place like example click start or run ??
06-14-2013 06:00 PM
You can do that. However, it probably would be more effective to get the program you have been working on to function cleanly. Then if you need a more complicated architecture, you could consider what would work best.
Lynn
06-14-2013 07:45 PM
Ok. You are right.
Even if I want to make a producer/Consumer VI to sub VI , how could I do that. Especially when I have clusters inside a state machine architecture, how can I form terminals to it ... and also avoid the problem of event handling like I mentioned earlier.
06-14-2013 07:53 PM
Terminals are the block diagram connection to front panel controls and indicators. You can pop-up on the cluster wire (or constant) on the block diagram and select Create >> Control (or Indicator) from the pop-up menu. From the front panel connect those controls and indicators to the connector pane - the same as with any other subVI.
You will also need to go to VI properties. Under Window Appearance press the Customize.. button. In the window which pops up check "Show front panel when called" and "Close afterward if originally closed." This will open the subVI panel when it is needed.
Lynn