LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous Timer Stalls During ComWrt, ComRd

I need to send/receive some RS-232 messages at 300 baud.  I want to provide a blinking LED to let the user know that communication is occurring.  So I set up an asynchronous timer to blink it during communication.  Unfortunately, that is exactly when the LED refuses to blink.  Do ComWrt() and ComRd disable asynchronous timers while they have control of program flow?

0 Kudos
Message 1 of 2
(2,753 Views)

Hi RodneyH,

 

I found this article that may be helpful:

 

Why is Serial Data Not Sent Immediately After Calling ComWrt Function in LabWindows/CVI?

http://digital.ni.com/public.nsf/allkb/FE4320E6970017A88625697A00714DA8?OpenDocument

 

Does this problem occur outside of a debugging environment (ie, in an executable)? If not, it looks like you could try using a  ProcessSystemEvents() call after the ComWrt in your code.

 

Let me know how things go.

 

0 Kudos
Message 2 of 2
(2,734 Views)