LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

RS232 in multiple threads

Hello,
 
Is it possible to write to the rs232 in one thread, and at the same time read from this port in a second thread? I am using the functions ComWrt and ComRd.
 
Greetings,
Wim
0 Kudos
Message 1 of 2
(3,142 Views)
Hi Wim,

These functions are thread safe, so yes, you can access the same port from multiple threads.  Reads and writes block each other, so it is also safe to call ComRd and ComWt at the same time.

Mert A.
National Instruments
Message 2 of 2
(3,134 Views)