IMessageBasedFormattedIO This section summarizes Note that IMessageBasedFormattedIO. IMessageBasedFormattedIO allows calling programs to use a variety of common data types. Given the necessary formatting direction, formatted I/O methods format and parse instrument string or buffer data appropriately. is all synchronous. IMessageBasedFormattedIO provides a property that returns a reference to IMessageBasedSession IMessageBasedFormattedIO. This property is the recommended way to access the interface from a IMessageBasedFormattedIO message-based session. The interface declaration is shown below. The body of the interface is IMessageBasedFormattedIO documented in the sections that document individual properties and methods. public interface IMessageBasedFormattedIO Refer to section 9.5, FormattedIO Implementations, for information about formatted I/O implementation options, and the standard IVI implementation of in particular. IMessageBasedFormattedIO VISA The interface has several .NET properties that correspond to attributes IMessageBasedFormattedIO defined in VISA. The following table shows property-attribute equivalence for IMessageBasedFormattedIO. Property Name VISA Attribute Name N/A BinaryEncoding VI_ATTR_RD_BUF_SIZE ReadBufferSize VI_ATTR_WR_BUF_SIZE WriteBufferSize N/A TypeFormatter The interface has several .NET methods that correspond to functions IMessageBasedFormattedIO defined in VISA. The following table shows method-function correspondence for IMessageBasedFormattedIO. Method Name VISA Method Name DiscardBuffers viFlush FlushWrite viFlush Skip, SkipUntilEnd viScanf with %* modifier Printf viPrintf PrintfAndFlush PrintArray PrintArrayAndFlush Scanf viScanf ScanfArray with specific format specifiers. Write viPrintf with specific format specifiers. WriteLine viPrintf with specific format specifiers. WriteList viPrintf
IMessageBasedFormattedIO This section summarizes IMessageBasedFormattedIO. Note that IMessageBasedFormattedIO allows calling programs to use a variety of common data types. Given the necessary formatting direction, formatted I/O methods format and parse instrument string or buffer data appropriately. IMessageBasedFormattedIO is all synchronous. IMessageBasedSession provides a property that returns a reference to IMessageBasedFormattedIO. This property is the recommended way to access the IMessageBasedFormattedIO interface from a message-based session. The IMessageBasedFormattedIO interface declaration is shown below. The body of the interface is documented in the sections that document individual properties and methods. public interface IMessageBasedFormattedIO Refer to section 9.5, FormattedIO Implementations, for information about formatted I/O implementation options, and the standard IVI implementation of IMessageBasedFormattedIO in particular. VISA The IMessageBasedFormattedIO interface has several .NET properties that correspond to attributes defined in VISA. The following table shows property-attribute equivalence for IMessageBasedFormattedIO. Property Name VISA Attribute Name BinaryEncoding N/A ReadBufferSize VI_ATTR_RD_BUF_SIZE WriteBufferSize VI_ATTR_WR_BUF_SIZE TypeFormatter N/A The IMessageBasedFormattedIO interface has several .NET methods that correspond to functions defined in VISA. The following table shows method-function correspondence for IMessageBasedFormattedIO. Method Name VISA Method Name DiscardBuffers viFlush FlushWrite viFlush Skip, SkipUntilEnd viScanf with %* modifier Printf viPrintf PrintfAndFlush PrintArray PrintArrayAndFlush Scanf viScanf ScanfArray Write viPrintf with specific format specifiers. WriteLine viPrintf with specific format specifiers. WriteList viPrintf with specific format specifiers.
vpp436_2015-02-11.docx