Your Warning Msg Subvi should be inside the True condition of a Case on your Main vi, not your subvi. Then, on your main.vi, when that condition is true, it will run any function inside the Case, such as your subvi. Just make sure the subvi execution property is set to 'Run when Open'.
Good luck with it,
Doug