Logan,
This is not a complete application. Just a function, initially established by a call to InstallComCallback (COMPORT, mask, 0, 0, Comm_Event_Capture_Func, 0); Prototyped as:
void CVICALLBACK Comm_Event_Capture_Func (int portNo,int eventMask,void *callbackData);
If the attachment for the callback function does not go through, let me know, I am somewhat new to using the message boards, I would paste the text of the .c here, but am limited to 5000 characters per post...
Rick