LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to send 32 packet within 15ms through UDP

Shane,

 

i wasn't contradicting on your correct statements of the issue. I was only contradicting on your sentence "Then your senior is wrong". Sorry for being imprecise.

 

We don't know what the senior really said. We only know what Rock.cse told us and it gives us the impression that the senior is wrong.

If this impression is correct, we have a difficult situation as someone with a lack of knowledge passes work on to someone else (who has not a more detailed knowledge...obviously) telling him: LV can do this.

 

If the worker is now told "this is not possible", the problem can arise that the senior says: "LV cannot do this? OK, let's remove LV."

This has two issues:

a) Other development systems cannot provide it either. So the customer is running in circles or simply rely on someone claiming to make it work without bringing any proof.

b) Even if LV would be the correct tool to proceed, it is removed.

 

I hope, this clears up things a little....

 

PS: No, i don't see a way to make the requirements Rock.cse posts working, not with LV nor any other programming language. But maybe he wants to switch to White Rabbit?

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 11 of 16
(993 Views)

I'm not a fan of he said she said.  The information we got was that the OP is continuing with this because his senior said it's do-able.  I say it's not so I requested his senior to visit the forum and we can discuss it.  If Indeed it was a misunderstanding, we'd find out that way.

 

I see nothing wrong with my statement.  I wasn't intending to be offensive, I just thought it was time to remove the middle-man and go directly to the source of the confusion.

 

PS the "Then" at the beginning of may statement infers that my statement of his senior  being wrong is dependent on the information we have been given and is making the assumption of this information being correct.  I did not flatly state the senior is wrong.  It's a finer point of the language but I believe my post conveyed accurately what I was trying to say.

 

I will fully accept that it is perhaps not optimally chosenin order to guarantee a robust transmission in a multi-language forum.  Like UDP. 🙂

Message 12 of 16
(989 Views)

@Rock.cse wrote:

He only told me that you can send this in labview. 


Don't twist the my words around. I never said that you cannot send it, I just pointed out that there is no guarantee that it will ever be received on the other end. Big difference!

 

It is just a plain dumb idea to try to do a deterministic, fast, time-critical , direct instrument control over one-way UDP.

 

You might get it to work on a local network with relatively minimal jitter, but in the ealy morning hours your computer might check for windows updates, scan for disk problems, or the computer might load the network to capacilty doing a network backup operation. All these scenarios could throw things way off, so hopefully you are not controlling a nuclear reactor. 😄 

 

Make sure to fully document the shortcomings of the application, else the next student might take your application and try to control an instrument located in an antarctic research station over satellite link. 

0 Kudos
Message 13 of 16
(957 Views)

@Norbert_B wrote:

 

YES, you can use LV to send data using UDP and TCP to other systems.

 

of course!

 

NO, UDP by itself does not ensure lossless data transfer. So UDP can lose packets. That is something which LV cannot influence by any means. TCP is a lossless protocol which should be used if you require the security.

 

TCP gains reliability by internally keeping both sides updated on the state of the connection (ACKs, retransmission requests, TCP timeouts, etc). This way both sides are aware if things don't go as expected. While TCP protects the data integrity, it cannot guarantee an exact time sequence of messages.

 

NO, neither TCP nor UDP are deterministic. So even if the packages you are sending are sent within a time x ms, there is no one garantee of any means that this happens EVERY time. Sometime packages might take a multiple of this time.

 

Packets can arrive out of order, arrive in duplicate, or don't arrive at all. TCP will have means to reassemble everything (at a cost of time and extra communications and transmissions). UDP just ignores anything that does not make sense.

 

NO, transfer times are not influenced by the sending PC at a primary level. It all depends on your network; if the network sucks, using UDP packages are lost. If using TCP, packages are resent, so it also depends on sender and receiver alike.

 

agreed.


 

0 Kudos
Message 14 of 16
(953 Views)

Shane, it depends if you look at deterministic, fast and reliable as one attribute or individual ones. Together they are in fact contradictions as far as network communication is concerned, seperately they are all more or less attainable, with proper environmental conditions.

 

I agree that fast, deterministic AND lossless UDP communication is certainly not a possibility. Especially the "lossless" requirement makes any "determinisme" more or less impossible and also "fast" will usually suffer significantly from a lossless requirement.

 

Nevertheless has Norbert a point! Statements as yours are easily taken by some casual forum readers as: "LabVIEW can NOT do network transfers!" Completely nonsense of course but nevertheless is some more elaborate explanation as the one from Norbert at its place. The limitations we talk about here, have in fact all nothing to do with LabVIEW but is simply a property of any network communication through current standard networks infrastructure. Good enough for many use cases but not for everything, which is why there are for instance special industrial network architectures like Ethercat (and the associated costs of them).

Rolf Kalbermatter
My Blog
0 Kudos
Message 15 of 16
(922 Views)

It seems like I'm outnumbered here.  Based on replies I'll have to give on the idea that my post could have easily been misunderstood.

 

Sorry for causing any awkwardness.  Wasn't my intention and judging from this and other posts, I'm going through a bit of a totalitarian phase in some of my answers.  I'll re-read my answers a few times before posting to try to get my mojo back.

 

Cheers for calling me out on it though, the last thing the forum needs is guys (or gals) like me (sexual ambiguity not intended in relation to myself) going off the wire without being reeled in.

 

Spoiler
I'm currently involved in a very prolonged debugging of a relatively complex system involving Host, RT, FPGA and Externally develped CLIP (and custome hardware) so I'm maybe in an unusual frame of mind at the moment.

 

So the essence: I apologise to all involved and will step up my game.

0 Kudos
Message 16 of 16
(917 Views)