RJ:
Use viGetAttribute(vi,VI_ATTR_ASRL_AVAIL_NUM,&nBytes);
Dan Mondrik
National Instruments
The last time I got the error message was when I had terminated the
command with \n (carriage return). Try \r (line feed).
Serial communication with a message-based instrument can be difficult
to get setup. You may have already tried this - but I would confirm
that your COM port settings correctly match the configuration of the
instrument. You can do a quick check by clicking the properties
button next to the instrum
VISA Bytes at Serial Port tells you how many. It's on the Instrument
I/O>Serial palette.