LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Communication - Working VI doesn't work as sub-VI

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!

 

 

Serial CommsSerial Comms

 

WrapperWrapper

 

 

 

 

 

0 Kudos
Message 1 of 2
(2,197 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,185 Views)