06-08-2006 05:02 PM
06-08-2006 09:31 PM
I took a look into the VISA spec, but I could not find descriptions about max string length for VI_ATTR_RSRC_NAME and viGetAttribute(). However, the attribute VI_ATTR_RSRC_NAME returns a VISA address string, therefore you can consider how many bytes are enough for containg it. As I know, the longest address string is of USBTMC device such as:
USB0::0x1234::0x1234::1234567890::1::INSTR
Although the S/N part may have different length depending on the instrument, I believe 64 byte buffer is enough in most cases for receiving it.