LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview VISA Flush I/O Buffer, how can they be used?

I need to flush the i/o serial buffer and the VISA Flush I/O Buffer or
VISA Clear seems to be useful.
How can they be used? I can't find any examples.

I am using Labview 7.1

Regards

kas

0 Kudos
Message 1 of 5
(13,748 Views)

Do you mean what value to wire to the mask?

If so, here is a description:

VISA Flush I/O Buffer

Flushes the I/O buffer specified by mask.

mask designates the buffer to flush. Combine the buffer masks by bit to flush more than one buffer simultaneously. Use logical OR, also known as OR-ing or adding, to combine the values.

Mask Values Hex Codes Description
16 0x10 Flushes and discards contents of the receive buffer.
32 0x20 Flushes and discards contents of the transmit buffer by writing all the buffered data to the device.
64 0x40 Flushes and discards contents of the receive buffer.
128 0x80 No I/O to the device.

Message 2 of 5
(13,745 Views)
although extremely simplistic, here is an example:
 
Message 3 of 5
(13,741 Views)

can i please know how to combine the buffer masks which is numeric by a logical OR??

0 Kudos
Message 4 of 5
(11,797 Views)

This is extremely basic. Have you done the tutorial?

 

 

Message 5 of 5
(11,787 Views)