11-04-2009 11:54 AM
Hello,
I'm trying to control a Voltech PM6000 over LAN with LabVIEW. So far so good, I can communicate with the instrument after adding it in MAX as a TCPIP resource (RAW with port 36003). However, if I request more bytes by VISA READ than are available in the buffer, the VISA comms wait for a timeout and I get the error -1073807339. The other instruments I'm communicating with via VISA over LAN just return the characters in the buffer (i.e. request for 100 bytes may return 60 but immediately without the timeout). Is there any way of getting all of the data from the PM6000 buffer without getting this error, if you don't know how much data there is in the buffer to start with?
Cheers,
Tim
Solved! Go to Solution.
11-04-2009 02:16 PM
11-04-2009 02:43 PM
Thanks Albert,
So I've set the termination character enable in the VISA message-based settings and now there is no timeout error. There's a warning:
VISA: (Hex 0x3FFF0005) The specified termination character was read.
But I've no problem in living with that.
Cheers,
Tim
11-04-2009 03:21 PM
That warning is in fact a mistake in VISA.
If an endcharacter is detected there should be no warning.
Indeed new data could become available but NI should not generate warnings that nobody want to see.
If you read from the serial line a number of characters and you got the characters the same message is given (I believe it is the same I did not check)
So it is best to ignore or even throw away such warning.
11-05-2009 03:32 AM
Thanks again Albert, I will be clearing that warning.
Cheers,
Tim