LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

UDP Multicast Fix for Labview Runtime?

Hi All,
 
 I am using the Labveiw Multicast vis and have been generally happy with the way they behave.  Happy to provide any assistance to anyone who would like help with this in general as I think I have a bit of understanding on this now. 
 
 My problem is that when more than one socket is opened to the multicast address either by labview applications or other C++ applications, I get an error 60 which says that the IP address is in use. 
 
I dug up an old posting (http://forums.ni.com/ni/board/message?board.id=170&message.id=107610&query.id=23434#M107610) which had a FANTASTIC solution for this from within Labview.  Basically, editing the Labview.ini file allows sharing of the sockets and error 60 goes away when you are running vis within Labview.
 
 My problem NOW is that the solution does not work for exe files built with application builder.  I therefore have a vi happy to share sockets within labview but when I build this vi into an exe, it comes back with error 60 under the same test scenarios. 
 
 Is there some magic ini file somewhere for Labview Run Time 8.2?  Any help would be much appreciated.
 
 
Cheers
Peter
0 Kudos
Message 1 of 3
(2,697 Views)

The relevant INI file is the one for the application, so if your application is called FOO.exe, you should also have a FOO.ini in the same folder.

In that file you should have (or create) a [FOO] section and place the key in that section. This should work for most LV keys.


___________________
Try to take over the world!
0 Kudos
Message 2 of 3
(2,696 Views)
G'day Tst,
 
 thanks very much for that.  Worked like a charm.  Adding the 'SocketSetReuseAddr=TRUE' to the default ini file made it all good.  Thanks again!
 
Peter
0 Kudos
Message 3 of 3
(2,680 Views)