Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

How to purge com in VISA 2.6/2.61?

I need to do code migration of a program involve serial actions, from Visual C++ to LabWindow/CVI.
However, I don't know how to purge com. There is no equivalent function to "CommPurge". Is there any method to purge com in CVI?
0 Kudos
Message 1 of 2
(2,891 Views)
Just make the following call:
viFlush (vi,VI_IO_IN_BUF_DISCARD|VI_IO_OUT_BUF_DISCARD);

Dan Mondrik
National Instruments
0 Kudos
Message 2 of 2
(2,891 Views)