11-09-2018 11:53 AM
Hey All,
I modified somebody else's producer/consumer example for my serial communication project, and the VI works fine as a standalone, but when used as a sub-VI in a simple wrapper, the wrapper's indicator's don't update and the sub-VI doesn't react to the wrapper's control inputs (unless the buttons are already pushed before the wrapper is run).
Any insight and suggestions how to get the wrapper VI and sub-VI responding to each other? Being able to "plug in" the serial communication vi to larger products is key to a lot of stuff I have to do and any general advice on that would be much appreciated. I'm new here, by the way.
See inline images and attached VIs for examples. Thanks in advance!
11-09-2018 12:21 PM
Simple data flow. Unless you are showing the front panel of that VI, you cannot do anything really useful since it is all triggered off of an Event Structure. Try just turning the lower loop into a subVI and pass in the queue reference. You can then use any other source to send messages to that loop via the queue.