Maybe I'm missing something, but I'm not sure why you would want to package your calibration function in a separate thread if all the main thread is doing is waiting for it to complete?
Anyway, what you need to do is have the function (A) in the new thread signal to the main thread that it is complete. The main thread can then wait to receive this signal before executing (B).
Depending on your inclination, the signal could be carried by something as lightweight as a global boolean variable (declared volatile), or a CVI thread-safe variable, or a windows message posted from the second thread to the main thread at the appropriate time.
HTH, HAND,
Martin.
--
Martin
Certified CVI Developer