05-31-2013 01:22 AM
attachment as below.
05-31-2013 01:39 AM
05-31-2013 02:29 AM
You know that the transmission is buffered ont he OS level right? You can send the data in one big chunk and then read it however you want on the other side.....
No need to limit the sender to the same timing constraints of the target.
05-31-2013 04:20 AM
Intaris wrote:
You can send the data in one big chunk and then read it however you want on the other side.....
If i send 8 packets as one packet, it will not be guarantee that i can receive the correct order of data and in correct time. Because, it will be fragmented.
05-31-2013 10:00 AM - edited 05-31-2013 10:00 AM
Well yeah, that's UDP for you. So you include no index information for the individual packets?
Are you aware of the differences between TCP and UDP? Although UDP might be "faster" in some cases, TCP is easier to use and more robust since you essentially have guaranteed delivery and guaranteed ORDER of delivery.
05-31-2013 11:21 AM - edited 05-31-2013 11:25 AM
@Rock.cse wrote:
If i send 8 packets as one packet, it will not be guarantee that i can receive the correct order of data and in correct time. Because, it will be fragmented.
Well, you still confusing "packets" and "transmissions". It is true that packets can be lost, arrive in duplicate, or arrive out of order and UDP will not be able to fix it for you. However, the fragmented packets of a single 6440 byte transmission will be able to be reassembed in the correct order IF all packets are actually received on the other end. However, if a single packet is lost, the entire transmission will be discarded if it cannot be reassembled beause of missing parts. If this happens a lot, you again might run into buffer overflow issues if many fragments are buffered until the timeout. It is just not sane to use UDP for something like this.
You still have not told us about the techical details of the receiving end. What is it? What does the instrument control? I still think your approach to the problem is totally misguided. This is NOT the way to do it, even if you had infinite network speeds and 0% packet loss.
In addition, I really recommend to start with a few simple tutorials and LabVIEW lessons before even attempting such a project. Your code show complete lack of any LabVIEW skills. Let' look at a small part of your code.
I think you really should take a step back and reboot. Learn some simple LabVIEW basics first. 😄