LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

What does "error 1 in UDP write" mean?

I get an "error 1 in UDP write" when executing a vi I'm working on (see enclosure). The vi writes data to a file repeatedly (inside a timed loop) and then sends it via UDP after each write. Any suggestions would be appreciated. TIA.Smiley Sad

 

-jesse

0 Kudos
Message 1 of 5
(5,548 Views)

Hi,

 

I can't see your code (using Open Office). Try to post a png or the vi directly.

 

Error 1 means, 'input invalid', so either you don't wire an open UDP connection to the UDP write.vi or you close the UDP conection before writing (in the loop).

 

Felix

0 Kudos
Message 2 of 5
(5,532 Views)

Felix is correct.

 

You close the udp session in the first iteration, so it will be an invalid session from the second iteration on.

 

Place the UDP close after the while loop. See if it makes a difference. 🙂

0 Kudos
Message 3 of 5
(5,522 Views)

thanks, Alt...your suggestion worked.

-jesse

0 Kudos
Message 4 of 5
(5,501 Views)

Thanks, Felix.

-jesse

0 Kudos
Message 5 of 5
(5,500 Views)