08-24-2009 01:12 PM
08-24-2009 01:34 PM
You are using a function that is returning 0 bytes and 0 bytes are being read so obviously you have no errors or data. Why you would want to read the serial port when you are using an Ethernet connection?
Have you communicated to the instrument in MAX? Is it in fact listed in MAX as a TCP/IP resource? I would recomend you start with some basic commands such as *IDN?. Try different termination characters (i.e. CR and LF).
You should also download the driver and try it. You might have to make some modifications because it's listed as serial but at least it uses VISA.
08-24-2009 01:45 PM
08-24-2009 02:19 PM
Since the VISA interactive control has the \r and \n characters as default, try removing them in MAX and see if communication fails. You will then know that you have to add one or the other in your LabVIEW code.
There are differences in how vendors implement TCP/IP communication. The ones I've use work just like a GPIB instrument and you can safely request a high byte count.