02-24-2016 07:27 AM
I have 3 interfaces Wifi, Ethernet and VirtualBox Host-Only Network. Wifi is off. Others are on. Multicast traffic comes from Ethernet (Wireshark can't lie). My program opens connection without any errors, but UDP read always timed out.
To make LV read my traffic I need to stop program. Disable VirtualBox Host-Only Network. Than start program again. O, magic It works. Next time I will run program I must disable VBox Network. I guess it is a bug of LV...
Note that VBox and all virtual machines are not run.
Did anybody meet such problem?
Windows 10, LabVIEW 15.
02-24-2016 08:04 AM
My question: Why a virtual network with no vritual boxes?
Maybe the issue is analogous to trying to write to a read-only file. You can't. So in order for LV not to try to listen and fail, just turn it off. I'd be curious to see if it happens with other applications that listen the same way.
07-27-2016 08:48 AM
We still have been metting the same problem on all windows-machines which have more than one interface. Really I can see solution when to UDP connect.vi wired interface name (or array of interface names or their system numbers), and not IP address. Because IP addr could be (and sometimes they are) dynamically changed, when network is reconnected or when computer obtains new addr from DHCP-server.
We have tested few situations. Here is one of them:
1. PC has 2 network interfaces Ethernet and WiFi.
2. When our LabVIEW program started, it opens UDP connection and listens to multicast traffic on all interfaces (0.0.0.0). Works fine.
3. Until Ethernet interface disconnected, and then reconnected. That is done via Windows Control Panel. LabVIEW never gets an error, and will never restart to listen on Ethernet interface. That is problem.
4. But here is the bigger problem. Restart program. It opens connection and (vua-lya). Connection is opened on WiFi interface only without any errors and warnings. Many restarts will not help. But it will work if wire IP addr of Ethernet interface to UDP connect.vi
5. So what? Normal behaviour?!
@billko wrote:My question: Why a virtual network with no vritual boxes?
....
This must not bother LabVIEW. Sometimes they works, sometimes stopped. LabVIEW must listen their interfaces always without any problems, or that problems must be able to be solved at run-time.
Other applications, for example simple reader-listener written in Python (25 lines) has no such problems.
07-28-2016 02:06 PM
Hi,
Which VI are you talking about? Is it UDP Open? Also, which version of LabVIEW are you using?
Thanks,
09-21-2016 02:39 PM