When you start it, if the true case doesn't execute, then there isn't 144 bytes in the buffer. You should probably put the VISA Bytes at Serial Port in a while loop and then exit that if the number of bytes is what you expect. You should also probe the output to how many bytes really are available with this make and model. I hope you're not using run continuous mode.
You code needs a lot of cleanup. You have wires going in every direction and that just makes it hard to read and debug. None of those convert functions are necessary. All you have to do is right click on those constants and select representation and change them. Wire the constants directly to the Type Cast function.
The string parsing could be done a lot more efficiently too I imagine. I would like to see an actual string that is returned.
Lastly, have you tested everything with some other program such as Hyperterminal?
Message Edited by Dennis Knutson on 08-13-2006 07:38 PM