You could always place your error into a queue. Then access the queue from a labview vi. Another option is to compile your vi into a DLL and have it return a value. hope this helps.
BJD1613
Lead Test Tools Development Engineer
Philips Respironics
Certified LV Architect / Instructor