LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

error x3FFF0006 in VISA Read/Write

Hi,
 
I am getting this error message sometimes in VISA read and sometimes in VISA write. Its not consisten. Its only thrown in certain VIs. What could be the issue? I am attaching my main VI, where I configure serial port, and the VI where this error is thrown.
 
Thanks.
Download All
0 Kudos
Message 1 of 7
(4,977 Views)

It's a warning and not an error.

The VI that is showing the warning is a little weird. You configure the serial port to terminate the read with a termination character but then when you do a read, specify the byte count and if the bytes read does not equal what you specify, you try to do another read. You usually don't do both.

If you specify a termination character with the VISA Configure Serial Port, the VISA Read will terminate when the termination character is detected. If you specify 100 bytes to read and there are only 50 bytes and a termination character, all you will read is 50 bytes. If you disable the termination character detection, you will always get the warning. In this case, as long as you use the VISA Bytes at Serial Port to verify that there really isn't any more data in the buffer, you can simply ignore the warning.

0 Kudos
Message 2 of 7
(4,972 Views)
 
No its not a warning but a error, as shown by the decimal equivalent of the error code: d-1073807298(-ve sign implies error).
0 Kudos
Message 3 of 7
(4,967 Views)
That's a different code than what you originally asked about. - 3FFF0006 = 1073676294.
0 Kudos
Message 4 of 7
(4,964 Views)
yes you are right. Actually the error code is: xBFFF000E = d-1073807346
0 Kudos
Message 5 of 7
(4,961 Views)
It's hard to say why the reference would be invalid. There are missing subVIs in both of the VIs you posted and you don't show how the Error VI is being called.
0 Kudos
Message 6 of 7
(4,955 Views)
Can you explain in a bit more detail where and when this error occurs?  Does this error occur repeatedly with the same device?  Looking at you code, it the VISA Find Resource may be sending an old alias no longer associated with a resource which could cause this error.   Like Dennis said, its hard to say what could be causing this error from the VIs you posted.  If you could narrow down the problem that would be really helpful.
 
Ted
Ted H
Applications Engineering
National Instruments
0 Kudos
Message 7 of 7
(4,926 Views)