Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Clear serial visa buffer?

I am running a set of tests 3 times and want to individually save the results.  The problem I am having now is that each iteration is saving all the previous results as well as the most recent test.  I've tried using the visa flush buffer as well as the visa clear, neither of wich has worked.  I've tried placing them before and after the tests.  Have any ideas? 
 
0 Kudos
Message 1 of 3
(3,117 Views)
It doesn't sound like you have an issue with the serial buffer at all but how you are saving the data. Are you accumulating the results into an array and then saving the array? More details on how you are acquiring the serial data and saving it would be appreciated.
0 Kudos
Message 2 of 3
(3,112 Views)

Dennis,

I hadn't even thought about how I was saving the results, I just kept thinking I needed to clear out the buffer.  Yes, I am creating an array and then writing to a spreadsheet.

Thanks!

0 Kudos
Message 3 of 3
(3,103 Views)