If your problem is how to catch runtime errors, correctly react to them and warn the operator, you may look at errChk and nullChk macros: they are defined in toolbox.h and extensively used in the Programmer's Toolbox that comes with CVI.
To make these macros more useful and general use, I made some additions to them and developed another set of macros which are described in
this thread: inside it there is also a small routine that uses a MessagePopup to warn the operator of the problem occurred as Bilal suggested.
Remember that your routine will be blocked waiting for input when the popup message is shown, so I reccommend you emit the popup after the proper countermeasures are taken to correct the error.