Printf Writes formatted data to the formatted write buffer. The data is created by replacing each format specifier in the format parameter with the corresponding parameter argument formatted according the format specifier. The data is formatted as ASCII strings, IEEE-488.2 arbitrary blocks, and raw binary blocks. void Printf(String data); void Printf(String format, params object[] args); Name Description Type The format string, including all format specifiers. format String The string literal to be printed. data String A variable number of arguments, each of which is either args[] object data to be formatted into the format string using the corresponding format specifiers in the format string, or width, precision, or array size values to be substituted for occurrences of in format specifiers ‘*’ Printf throw appropriate exceptions for the following conditions: SHALL The argument is or an empty string. format null One or more of the format specifiers in is not supported. format One or more of the format specifiers is not valid. One or more of the format specifiers does not match the data type of the corresponding input argument. The number of format specifiers exceeds the number of input arguments All characters placed in the formatted I/O write buffer SHALL be formatted as ASCII strings, IEEE-488.2 blocks, or raw binary blocks. All characters copied directly from the format parameter SHALL be formatted as ASCII strings. If fails to write a character to the write buffer because it cannot convert the character to an ASCII Printf character, it SHALL throw an exception that describes the problem and identifies the character. For IEEE-488.2 block format specifier types and if the type of the input argument array does ‘b’, ‘B’, ‘y’, not match the size modifier of the block format specifier, the method SHALL throw an ArgumentException exception.
Printf Writes formatted data to the formatted write buffer. The data is created by replacing each format specifier in the format parameter with the corresponding parameter argument formatted according the format specifier. The data is formatted as ASCII strings, IEEE-488.2 arbitrary blocks, and raw binary blocks. void Printf(String data); void Printf(String format, params object[] args); Name Description Type format The format string, including all format specifiers. String data The string literal to be printed. String args[] A variable number of arguments, each of which is either data to be formatted into the format string using the corresponding format specifiers in the format string, or width, precision, or array size values to be substituted for occurrences of ‘*’ in format specifiers object Printf SHALL throw appropriate exceptions for the following conditions: The format argument is null or an empty string. One or more of the format specifiers in format is not supported. One or more of the format specifiers is not valid. One or more of the format specifiers does not match the data type of the corresponding input argument. The number of format specifiers exceeds the number of input arguments All characters placed in the formatted I/O write buffer SHALL be formatted as ASCII strings, IEEE-488.2 blocks, or raw binary blocks. All characters copied directly from the format parameter SHALL be formatted as ASCII strings. If Printf fails to write a character to the write buffer because it cannot convert the character to an ASCII character, it SHALL throw an exception that describes the problem and identifies the character. For IEEE-488.2 block format specifier types ‘b’, ‘B’, and ‘y’, if the type of the input argument array does not match the size modifier of the block format specifier, the method SHALL throw an ArgumentException exception.
vpp436_2016-06-07.docx