IFormattedIO488::WriteNumber
Description
Appends a number (in ASCII string format) to the write buffer. If the flushAndEND parameter is true, the buffer will be flushed before this method returns.
VB Prototype
WriteNumber(
data As Variant,
type As IEEEASCIType, ' Optional Parameter
flushAndEND As Boolean ' Optional Parameter
)
C++ Prototype
HRESULT WriteNumber(
VARIANT data,
IEEEASCIIType type,
VARIANT_BOOL flushAndEND
);
Parameters
data
The number to write to the instrument.
type
[Optional in Visual Basic] The format to write the number in. This parameter defaults to ASCIIType_Any, meaning the number will be written in the format of the Variant's data.
flushAndEND
[Optional in Visual Basic] If this parameter is true, the formatted I/O object will flush the contents of the write buffer and send an end to the instrument.
Return Value
Refer to the table of return codes.
See Also
IO, InstrumentBigEndian, WriteString, WriteNumber, WriteList, WriteIEEEBlock, ReadString, ReadNumber, ReadList, ReadIEEEBlock, FlushWrite, FlushRead, SetBufferSize, IFormattedIO488 Overview