LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Serial VISA buffer overrun

I am trying to download a larger file e.g. 

Number of bytes = 758683

I use following VISA's 

Serial VISA

Write VISA

Delay 2s

While Loop begin

  Bytes at Port

  Read VISA

Loop End (read 10 zeros)

Close VISA

 

Half way through the download labview reports buffer overrun.

What do i need to do?

 

 

 

0 Kudos
Message 1 of 20
(2,833 Views)

What is happening on the sender end?  You've only described the receiving end.

0 Kudos
Message 2 of 20
(2,831 Views)

I write my cmd adding a CR at the end to execute.

0 Kudos
Message 3 of 20
(2,827 Views)

SorenS1974_0-1582136172770.png

 

0 Kudos
Message 4 of 20
(2,825 Views)

This may sound stupid but can I stop the device tx until my read is done?

0 Kudos
Message 5 of 20
(2,819 Views)

That is the code for your reader.  What is the sender?  Is it another LabVIEW program?  Another device or instrument?  You are only giving us half the story.

 

And old way of controlling serial communication that is rarely used any more is that if your serial cable is wired for it, you can use hardware control lines, aka hardware handshaking for the two systems to signal to each other when they are ready to receive data.  There is also a setting for software control.

 

But it is impossible to recommend anything without know what is happening on the other end.

0 Kudos
Message 6 of 20
(2,808 Views)

I am reading a IOT device. In other words IOT to PC.

Unfortunate all I have is RX, TX, PWR, GND. No handshaking of any types.

 

0 Kudos
Message 7 of 20
(2,805 Views)

And what software is located on this IOT device that is sending your file.

 

Is this code your wrote yourself?

0 Kudos
Message 8 of 20
(2,802 Views)

So, 

At the moment I have it running and working but the question still stands can I request the IOT to stop transmitting while reading or does the completely depend on the FW on the IOT.

 

Also, I have been looking at the NI I/O Trace capture and find that using the Close VISA always result in "The specified object reference is uninitialized."

Why is that?

0 Kudos
Message 9 of 20
(2,799 Views)

No the IOT is designed with a MCU and the FW is designed by a different.

I am a Failure Analysis Engineer Analysis and spend much of my time learning bits and pieces to perform my job analyzing all kinds of issues. 🙂

 

0 Kudos
Message 10 of 20
(2,791 Views)