I have to send messages through UDP multicast and unicast from same port. In Labview I tried that it throws error. I heard it is possible by means of Datagram (UDP unicast and multicast) Port Sharing. How can it be achieved in Labview?

I have to send UDP multicast and Unicast messages to a remote port from a single source/local port. I tried by opening UDP unicast and multicast in the same port and got the expected error. I tried by opening a unicast connection and sending unicast messages.After that when multicast messages has to send I closed unicast and opened multicast in the same port.This is not throwing any error. But my requirenment is to comminicate with another application in C ++ which recieves this data, throwing an error of lost connectivity and both the applications are not abled to communicate properly. 
In the other application with C++ this is implemented using port sharing. So how port sharing can be implemented in labview so that I can send both multicast and unicast messages from the same port?
Thanks in advance

UDP is a sessionless protocol, meaning that anyone listening on the specified port CAN receive the data. CAN because as you noted there is no guarantee in the protocol that it will be received. And if you send the data not to a specific address but a multicast address not only one computer can receive it but in fact every computer on the same subnet listening to that multicast address and depending on the TTL of the packet also computers in neighbouring subnets, although that last one is not a very reliable operation since routers can be configured to drop multicast packages anyhow despite of a different TTL saying otherwise.
Accordingly there is no real way to make sure that a receiving UDP port is not already in use, since you don't build up a connection. UDP is more or less analogous to shouting your messages through a megaphone, and anyone listening on the right frequency (port) can hear it. You do bind the sender socket to a specific port number but that makes little difference.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • I have a dll file, i want to send messages from this to the device ,how can i do it in labview

    Hi,
    I am a new user of labview.
    I got Vector Card, DUT, DC Power supply and .dll file. Hoe can i connect dll file and hoe to senf the information to the device,
     i want to send/receive a message to that device . and measure temperature , humidity of the device. is any one can help?
    i have a .dll file, i want to send messages from this file to the testing device ,how can i do it in labview?

    Dear Sandy,
    How are your DUT, Vector Card and your PC connected?
    What vector card is this?
    There are a huge amount of Knowledge base articles that you can access from www.ni.com.  Simply go to the website and do a search on dll, etc.
    There are also a lot of example problems shipped with LabVIEW that will be very helpful for you to learn from and to modify to meet your needs.  Go to File»Find Example ....
    There are LabVIEW classes taught locally as well that are very helpful.  If you're interested I can arrange for you to receive an email with info about it.
    Sincerely,
    Sammy Z.  

  • I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the "double click" defult to o

    I have both Photoshop 4 and Photoshop 6 on my computer. When I am in Bridge and want to open an image by double clicking, it automatically opens in 6. I see, when I go to "open with" 6 is listed as "default" How can I change the default to open an image with a double click in 4?

    You can associate files from the Bridge level and the Desktop level.
    In Bridge CS4, go to Preferences > File Type Associations and change it to Photoshop CS4 for the file types you want.
    If you want to open files from the Windows Desktop in CS4, these are the instructions:
    Do this from the Windows Desktop:
    If you want your image file to open in Photoshop and it doesn't, right click on it and choose
    Open with > Choose default program… select Photoshop CS4 or CS6 and checkmark "always use the selected program to open this type of file".

  • When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    When I upgraded from v4 to v5 my bookmarks was lost. I do have the one that is in the firefox toolbar. Apparently I had a bookmarks add-on. V5 changed my browser how can I determine what the program was and if the bookmarks are still there?

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Websites remembering you and automatically log you in is stored in a cookie.
    *Create an allow Cookie Exception to keep such a cookie, especially for secure websites and if cookies expire when Firefox is closed.
    *Tools > Options > Privacy > Cookies: Exceptions
    In case you are using "Clear history when Firefox closes":
    *do not clear Cookies
    *do not clear Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception and cookies from plugins.

  • Me and my wife both have iPhone for iTunes I use same laptop now our contacts are all mixed up. I want to delete our old synchronize a/c. To start up freshly. How can I do that?

    Me and my wife both have iPhone for iTunes I use same laptop now our contacts are all mixed up. I want to delete our old synchronize a/c. To start up freshly. How can I do that?

    Anyone at all can advise- still not sorted :-(

  • I have purchased Adobe Acrobat and my order number is 281998924. My previous Sony computer which used to Windows 7 crashed. I purchased a new Toshiba computer with Windows 8. How can I download the Adobe acrobat? I assume I don't have to pay for the progr

    I have purchased Adobe Acrobat and my order number is 281998924. My previous Sony computer which used to Windows 7 crashed. I purchased a new Toshiba computer with Windows 8. How can I download the Adobe acrobat? I assume I don't have to pay for the program again? Thank you for all your help! Angelo.

    If you had purchased Acrobat Standard subscription.
    You need to download the application from below website :
    www.cloud.acrobat.com
    Sign in with Adobe ID and Password and once signed in click on Acrobat tab and download the application.
    Sign in - Adobe ID

  • I have switched offices and computer. may I still access my old tunes? next, I get an error when trying to download Itunes to my new compuet: c:\DocumentsandSettings\aabugattas\desktop\itunessetup.exe is not a valid Win32 application  How can i download i

    I have switched offices and computer. may I still access my old tunes? next, I get an error when trying to download Itunes to my new compuet: c:\DocumentsandSettings\aabugattas\desktop\itunessetup.exe is not a valid Win32 application  How can i download it?

    In the course of your troubleshooting to date have you worked through the following document?
    iTunes: Windows reports that "iTunesSetup.exe is not a valid Win32 application"

  • I am on a Mac (10.7.5) and have tried to install Lightroom 2. It doesn't install. Would be grateful if someone could let me know how can I get it to install on my Mac? Thanks

    I am on a Mac (10.7.5) and have tried to install Lightroom 2. It doesn't install. Would be grateful if someone could let me know how can I get it to install on my Mac? Thanks

    that's not compatibile.
    from Adobe - Adobe Photoshop Lightroom 2 : System requirements
    Mac OS x
    PowerPC® G4 or G5 or Intel based processor
    Mac OS X v10.4, 10.5 or 10.6
    1GB of RAM
    1GB of available hard-disk space
    1,024x768 display
    CD-ROM drive

  • HT2508 My amp has an USB input but when I attach my mac pro to it, and set the input to the USB setting, no sound comes out. I looked at the system settings, but none of them produce a different outcome. How can I send the music through the USB out to USB

    My amp has an USB input but when I attach my mac pro to it, and set the input to the USB setting, no sound comes out. I looked at the system settings, but none of them produce a different outcome. How can I send the music through the USB out to USB in?

    AFAIK cameras offer their own built-in format utility for inserted SD cards.  You should use that.  Otherwise, refer to the manual that came with your camera to determine precisely how your SD cards need to be formatted to work properly.  Personally, I'd suggest Partition Scheme: MBR, and Filesystem: FAT32.
    Try to limit the number of formats you perform on the SD cards, though, as you're reducing their lifespan.  I believe formatting causes re-writes to a portion of the SD card that has fewer read/write cycles than the rest of the card as a whole.

  • Cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?

    cannot send or receive yahoo mail or gmail from iPhone . installed ios 6 recently. tried rebooting the phone and deleting the email account and adding again but nothing works ! can someone suggest a solution?

    Not sure about yahoo, but for gmail, I done the following:
    Set up using Exchange on iPhone, it'll keep prompting for password.  On PC use captcha option, log in to gmail account from PC after completingg captcha option, enter password on iPhone.
    See how that goes for gmail, let us know.
    Hopefully someone will have fix for yahoo.

  • How can I have my partner messages through HTTPS

    My partners would like to send messages through HTTPS and I see the following in one of the threads. Is this good even for HTTP(S) or only HTTP?
    "ou cannot create HTTP listening channel. There is one default HTTP listening channel which you should use -
    http://hostname:soa_server_port/b2b/httpReceiver or http://hostname:soa_server_port/b2b/transportServlet
    Your remote TP may post documents to above URL's.
    Thanks
    Venkat

    Venkat,
    It stands true for HTTPS as well. The partner should post documents on url (if SSL is enabled on SOA server)-
    https://hostname:soa_server_port/b2b/httpReceiver or https://hostname:soa_server_port/b2b/transportServlet
    If you are using any SSL off-loader at your gateway then the host and port will change accordingly.
    Regards,
    Anuj

  • Unable to send message through iMessage

    Unable to send message through iMessage.
    Retry fails over and over again.
    But able to receive from it.
    Tried resetting network settings then it works again until the problem comes back.
    Not sure what causes the problem. I do not wish to reboot my iphone everytime when it happens.
    Seems like ios7 gm issues.
    Never had this problem on the beta.
    Anyone have any resolution to this?

    iMessage is Activated.
    Facetime is Activated.
    Don't know what is preventing me from sending over iMessage.
    Receiving is no problem. Even during the the time I was trying to send.

  • My friend gave me ipod touch with all his accounts, i created new accounts but when i went on the appstore and tried to update apps installed by him,i was asked his account's password! i dont know his password.how can i use my account to update apps?

    my friend gave me ipod touch with all his accounts, i created new accounts but when i went on the appstore and tried to update apps installed by him,i was asked his account's password! i dont know his password.how can i use my account to update apps?

    You can't.  Apps and really all content purchased/downloaded through one Apple ID is forever tied to that Apple ID.  In the case of Apps they will always request that Apple ID to update as they are licensed to that Apple ID.
    In reality, the Apps were licensed to that Apple ID by the developer.  And cannot simply be given away to you for you to use.
    He should have wiped the iPod clean so you could set it up for your use without any of his accounts or purchased content as you are not really licensed to any of those Apps.
    Your friend should have followed this support document before giving the iPod to you:
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • With journaling, I have found that my computer is saving a large amount of data, logs of all the changes I make to files; how can I clean up these logs?

    With journaling, I have found that my computer is saving a large amount of data, logs of all the changes I make to files; how can I clean up these logs?
    For example, in Notes, I have written three notes; however if I click on 'All On My Mac' on the side bar, I see about 10 different versions of each note I make, it saves a version every time I add or delete a sentence.
    I also noticed, that when I write an email, Mail saves about 10 or more draft versions before the final is sent.
    I understand that all this journaling provides a level of security, and prevents data lost; but I was wondering, is there a function to clean up journal logs once in a while?
    Thanks
    Roz

    Are you using Microsoft word?  Microsoft thinks the users are idiots. They put up a lot of pointless messages that annoy & worry users.  I have seen this message from Microsoft word.  It's annoying.
    As BDaqua points out...
    When you copy information via edit > copy,  command + c, edit > cut, or command +x, you place the information on the clipboard. When you paste information, edit > paste or command + v, you copy information from the clipboard to your data file.
    If you edit > cut or command + x and you do not paste the information and you quite Word, you could be loosing information.  Microsoft is very worried about this. When you quite Word, Microsoft checks if there is information on the clipboard & if so, Microsoft puts out this message.
    You should be saving your work more than once a day. I'd save every 5 minutes.  command + s does a save.
    Robert

  • HT3775 My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable

    My DVD player is supposed to play avi videos, but it often doesn't telling me that the file format is not recognized.  I suspect it's because it's the wrong codec.  How can I tell what the codec is before I burn a DVD?  And how do I get a workable codec?  Thanks for uour help!
    Ken Selvidge ([email protected])

    I am not a computer savy person.  I just need to plug in and have the machine do what it should do.
    Not a problem, but that indicates you have a lot to learn.
    File extensions like mpeg, mp4., avi, wmv, etc. are just wrappers. It is like a box the audio or video content is placed inside. The audio and video content must be encoded with a codec before it is placed in the box. There are thousands of codecs. Not all are installed on your Mac. You must have the same codec installed that encoded the video in order to play it. So, while Quicktime does support mpeg wrapper, it may not have the codecs to decode the internal video.
    Some programs have lots of the codecs available to them, like VLC, Niceplayer, MPlayerX, etc.
    You can also get "plug-ins" for Quicktime that add codecs to Quicktime, like Perian. Although it is no longer being developed, Perian still works well.
    Why is it so difficult? Probably because they are always working on ways to compress the video to get better playback.

Maybe you are looking for