LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial Port Callback Stops Responding

I agree with you that the situation is unclear. For a better understanding of what's going on I would add some informations in the debug message in case of incorrect message: the length of the received buffer and its raw content, using a function like this one that outputs the array of bytes in the string in hex format:

Fmt (msg, "0x%*d[zb1w2p0r16j1] ", strlen (receivedMsg), receivedMsg);

It could probably be a good thing to also print the time value with milliseconds in Terminal_Writeline () function.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 11 of 11
(34 Views)