Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

flush visa

hello,

 

i have troubles with an rs232 communication ( via usb adapter prolific) so i would like to be sure about what i do

because i'm begining to have doubts about everything and would like to be consolidated about some function:

 

flush function operate on PC I/O buffer or device buffer ? 

what it is called input buffer ? the input of pc buffer or device buffer , it nearly the same question as above.

 

What is the difference between  visa read ( reading all present caracters )  and a flush input ? is that equivalent ?

 

same in the other direction what could be the equivalent to flush output (without sending caracters) ?

 

To specify my question, i wrote code that operate well since 2 month with continuous measurement sequence

 

, but now we ask me to provide code where sequence can be interrupted then resume, so i tried to manage

communication line with flush and wait function but troubles still appears

 

 

Thank you for your help

 

Best regards

 

Tinnitus

 

 

 

 

 

 

 

CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 1 of 2
(3,062 Views)

flush input means read but throw away the result, flush output, I'm not sure, I guess it clears the output buffer.

Anyway, your program should not send when requested and also if an input not appears andle the timeout gracefully.

greetings from the Netherlands
0 Kudos
Message 2 of 2
(3,059 Views)