07-03-2014 03:56 PM
Hello,
I am new to the labview. Right now I want the labview to write UDP packets to localhost(127.0.0.1), then VLC reading from localhost to play a video stream.
But based on my test, there is some problems of networking between these two softwares.
The situation is that:
1, VLC as the source, labview reading packets, perfect!
2, VLC as the source, VLC reading packets, perfect!
3, Labview as the source, labview reading packets, perfect!
4, Labview as the source, VLC reading packets, not working!
The last situation is exactly what I want.
Has anyone met similar problems? Any suggestions?
Thank you very much in advance.
07-03-2014 04:01 PM
07-03-2014 04:02 PM
No error appears. The VLC just cannot get the packet.
07-05-2014 11:45 AM
VLC can apparently use both UDP and TCP. The latter is generally considered more reliable, as it is more rigorous in establishing the connection and can handle out-of-order packets. Can you try using TCP instead of UDP, if only to see the error messages? [You state that with UDP, there are no errors, which probably means "There are errors, but UDP doesn't care and doesn't report them"]. Once you figure out how to set up the TCP protocol, you might be able to port the same "fix" to UDP.
I've personally never used UDP with LabVIEW (because reliability of data transmission was too important to me), but have used TCP, and am presently happily using Network Streams.
BS
07-05-2014 12:25 PM
07-05-2014 01:38 PM - edited 07-05-2014 01:39 PM
Well Bob, UDB and TCP are working quite differently and also in LabVIEW they need to be handled differently enough that whatever might be working for TCP might be not a viable solution for UDP.
That said, the OP's description is so vague that there is really very little we can suggest to help him make it work. It does not work! is definitely not enough of information here. What is the LabVIEW code? Did he check that the Windows firewall is allowing incoming UDP connections for the LabVIEW.exe in question? It's easy to dismiss the according Windows dialog the first time you start up LabVIEW after installation (and often the dialog doesn't even seem to come) and then end up with blocked network sockets later on when you start to use network functions in LabVIEW.
Other than that there are about several dozen other things that could be wrong in some ways.
07-05-2014 04:57 PM
08-11-2015 12:46 PM
Hi,
Did you try to send video stream via UDP? in LabVIEW Sender and LabVIEW receiver case.. OR it was just some dummy data?
I am trying to send live Video stream in LabVIEW Send/Receive and my UDP read is producing TO..
Is this situation allowed?
Thank you,
08-12-2015 05:40 PM
what is your LabVIEW version?
Regards
08-13-2015 07:00 AM
LV 2014