From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

in Touch Panel Module clear serial buffer

Solved!
Go to solution

      I use LabVIEW Touch Panel Module make a  application to a Touch Panel device with Windows CE 5.0. Now I want to use RS232 on the touch panel devices to read and write.I use Serial Compatibility VIs.It is useful, but it is not offering how to clear rs232 buffer ,like Flush I/O Buffer in visa.I want get yours help ,tell me how to clear rs232 buffer ,use what VIs.or how to change Serial Compatibility VIs to get that function. thanks my dear friend.

0 Kudos
Message 1 of 3
(2,129 Views)
Solution
Accepted by topic author qiumengying

Which buffer are you trying to clear?  Transmit or Receive?

 

Generally transmit doesn't need clearing because anything in it usually gets sent out right away.  I rarely need to clear the receive buffer.  But an easy way to clear it is to just read all the bytes in it and just do nothing with the data.

0 Kudos
Message 2 of 3
(2,092 Views)

Thanks you,i know that method,i just want to know whether we have more useful vi to solve this problem.

0 Kudos
Message 3 of 3
(2,083 Views)