If your subVI runs side-by-side to your mainVI and that subVI must run a grab on request of the mainVI you will have to use a "communication channel" between these VIs. Using a queue (that takes an image) might be an appropriate approach. You could also use a notification.
You can also move the call to the grab to your mainVI.