LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

200 ms UDP Read timeout causes error ( but works in UDP Receiver.vi)

A 200ms timeout works in the UDP Read in the UDP Receiver.vi, but doesn't seem to work in general (get error 56 - network operation exceeded user-specified or system time limit). Any idea why a 200ms timeout doesn't work in general (when I construct my own UDP receiver vi)? I have examined the properties of the numeric constant which specifies the timeout. It appears to be the same as the numeric constant in the UDP Receiver.vi, but apparently there is some subtle difference. TIA.
0 Kudos
Message 1 of 12
(5,084 Views)
Hi jlivermore,
can you attach your code or a picture of it? Maybe 200ms are not enough in your vi?

Hope it helps.
Mike
0 Kudos
Message 2 of 12
(5,075 Views)
Is your UDP sender running on the same computer, or on another computer? It quite unlikely that the properties of the numeric constant are your issue. The only properties that matter are the value and the datatype, and with the datatype, a coercion will occur if your constant is, say, a U32, since the UDP Read expects and I32. The only time the datatype would matter is if you are going into a datatype that's of a smaller numeric range than the value that you have (for example trying to stuff the value 300 into a U8, since a U8's maximum value is 255).
0 Kudos
Message 3 of 12
(5,071 Views)

Mike-

The 200ms works in the NI UDP Receiver VI, but not when I use it in my UDPR.vi which is based on the NI VI. I can use the default value of 25000ms, but I'm curious why 200ms works in the canned VI, but not in mine. Thanks.

-Jesse

0 Kudos
Message 4 of 12
(5,064 Views)

Mercurio-

I'm using different computers for send and receive. I can use the default timeout value of 25000ms. That's works. I just curious why 200ms works in the canned NI UDP receive VI, but not in mine. Thanks.

-Jesse

0 Kudos
Message 5 of 12
(5,060 Views)
Please post your code. We cannot magically see what you are doing via telepathy. Smiley Very Happy
0 Kudos
Message 6 of 12
(5,059 Views)

Mercurio-

Here is the code. It works with a timeout of 25000ms, but not with a timeout of 200ms. Thanks.

-jesse

0 Kudos
Message 7 of 12
(5,054 Views)
Your problem is that you have the "no timeout error" on the block diagram not connected to anything. The way the example VI is designed to run is that it only sits in the UDP Read function for a short amount of time. If there are no bytes you get a timeout error. The "no timeout error" VI negates that error. However, it can only do so if you actually connect it into the error cluster stream. Smiley Wink
0 Kudos
Message 8 of 12
(5,039 Views)

Merc-

You asked if the UDP send/receive are running on the same computer? How can I do that..run them on the same computer? That would save check-out time. TIA.

-jesse

0 Kudos
Message 9 of 12
(5,031 Views)

THANK YOU, MERC.

I was going by the block diagram display which appeared to show the "no timeout" icon attached to another wire. Problem fixed.Smiley Very Happy

-jesse

0 Kudos
Message 10 of 12
(5,029 Views)