02-19-2020 12:06 PM
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?
02-19-2020 12:10 PM
What is happening on the sender end? You've only described the receiving end.
02-19-2020 12:12 PM
I write my cmd adding a CR at the end to execute.
02-19-2020 12:16 PM
02-19-2020 12:26 PM
This may sound stupid but can I stop the device tx until my read is done?
02-19-2020 12:38 PM
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.
02-19-2020 12:42 PM
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.
02-19-2020 12:43 PM
And what software is located on this IOT device that is sending your file.
Is this code your wrote yourself?
02-19-2020 12:46 PM
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?
02-19-2020 12:49 PM
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. 🙂