I'm using a 1D Arrary with 27 different elements and would like to send those data over UDP Write and UDP Read functions.

I'm using a 1D array with 27 different elements. I would like to transfer that data over a UDP connection, and read it back by using UDP connections.
But I would like to read 3 elements at a time (On read side) and send those to 9 different ports.
Note: the data will go to only one PC with one Network Address)
* 1st elements (0,1,2) and send to port #XXX to see those 1st 3 elements.
* continue until the elements reaches up to 27
This is what I have done but I'm finding myself in pitfalls...
Send side:
I'm using a UDP Open connection on send side to send my data. So with selected a Source Port, I have created a UDP Op
en connection. I�m using only one source port to send all the data across the channel. I would like to read 1st 3 elements and send those data across with an assigned Destination port. I would like to do that for 9 times b/c there are 27 elements in the array. So I�m using a For Loop and setting N count to 9. So I�m not getting any errors when I execute and no answer on the other side at all.
Read side:
I�m using a UDP Open connection to read in the data with port #. I�m using while loop to with Boolean inside by making a true all the time. Inside that While loop, I�m using For Loop to read the 3 elements data a time and send to a right port address. (As start out I was just trying to see if it works for only one port).
Attachments:
UDP_SEND_1.vi ‏40 KB
UDP_READ_1.vi ‏31 KB

You are not getting any errors because UDP is a connectionless protocol. It does not care if anyone receives it. Your example will work fine with the following considerations.
(1) Don't use the generic broadcast address (255.255.255.255).
(2) You are listening on port 30000. So why are you sending to port 1502, nobody will receive anything there.
The destination port of the outgoing connection must match the server port of the listener. (The source port is irrelevant, set ot to zero and the system will use a free ephemeral port).
(3) On the receiving side, you are not indexing on the received string, thus you only retain the last received element. Then you place the indicator outside the while loop where it never gets updated. :-(
(4) Do yourself a favor and don't micromanage how the data is sent across. Just take the entire array, flatten it to string, send it across, receive it, unflatten back to array, and get on with the task.
(You can do the same with any kind of data).
I have modified your VI with some reasonable default values (destination IP = 127.0.0.1 (localhost)), thus you can run both on the same PC for testing "as is". Just run the "read" first, then every time you run "send", new data will be received.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
UDP_READ_1MOD.vi ‏29 KB
UDP_SEND_1MOD.vi ‏27 KB

Similar Messages

  • HT4436 I am using IOS 4.1 in Ipod touch. I would like to take my data back using icloud. I am not able to enable icloud in to my ipod touch. please help me for the same.

    I am using IOS 4.1 in Ipod touch. I would like to take my data back using icloud. I am not able to enable icloud in to my ipod touch. please help me for the same. Basically I am trying to take back to upgrade my ios to 5 or 6 version.

    You can't back up to iCloud until you update to iOS 5 or higher.  You will have to back up your iPod on your computer using iTunes.  Update iTunes on your computer to the latest version, then connect your iPod to your computer, open iTunes, if iTunes give you a pop-up asking if you want to update your iPod, decline.  Then click on the name of your iPod in iTunes, go to File>Devices>Transfer Purchases to transfer any purchased media to your iTunes library.  Next, go to the Summary tab of your iTunes sync settings and click on Back Up Now to back up your iPod on your computer.
    When it's done backing up, click on Check for Update (or Update) on the Summary tab of your iTunes sync settings.  Allow your iPod to update, and leave it connected to your computer.  At the end, it will restart and give you the option to restore to the iTunes backup you made earlier.  Choose this option to restore your backup and sync your apps and other iTuens media to your phone.
    This process is outlined in this article: http://support.apple.com/kb/HT4972, under "If you are attempting to update using a Mac or PC with which you normally sync".

  • My PC Harddrive died along with all the CD's that I have saved to the Itunes library.  My IPOD touch has the library still so I would like to send the data from the IPOD to the PC to restore my library.  Is this possible?

    My PC Harddrive died along with all the CD's that I have saved to the Itunes library.  My IPOD touch has the library still so I would like to send the data from the IPOD to the PC to restore my library.  Is this possible?

    Yes, by using a third-party utility such as Phone to PC or Phone to Mac.
    Also see How to dowload purchased music and Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so wha

    I own a MAC Pro 3,1 (early 2008) and am running Mavericks 10.9.3 with no problems. I would like to add an I/O card to add USB 3 functionality or ESATA functionality but am unable to find a compatible card. As such my question...can I do this and if so what is the best card?
    Thank you

    Have you looked at the previous discussions listed on the right side of this page under the heading "More Like This"?
    Also see:
    https://discussions.apple.com/thread/6282459?tstart=0

  • Hi my partner used my email address and iTunes account to set up his iPhone and now both our phones have merged! Does anyone know how to separate these? Can he still use our iTunes account with a different Id or email! Please help!!

    HI my partner used my apple id and email address when setting up his iPhone so when he turned on iCloud our phones merged!! How do we undo this? Can he still use my iTunes account with a different Id and can he change the email on his phone without losing information? Also iPad is linked too, the family uses this and I would like to keep my phone separate! At the moment nothing is sacred! Please help! We are not very good with computers!!

    Several things here so let me attempt to clarify.
    For iCloud the reason the contacts where removed from he other device is because you updated your contacts, in this case deleted them, and then iCloud updated the other device to match. By deleting the iCloud account on the device it will stop the device from using that iCloud account and therefore nothing will change on the other device. By using a seperate Apple ID you can still use the features of iCloud, Find My iPhone comes to mind, without your content (contacts, message etc.) merging with the other device
    For iTunes, you cannot use two Apple IDs for one account however if you use the same account iTunes on your computer will keep the content on each device seperate very nicely. You can also configure the settings for iTunes and the App store on each device to keep the content from automatically downloading to the other device. What I meant by share apps and music is this. What happens if you find a game, lets say Minecraft, that you really like and it cost, as Mincraft cost, $6.99USD. You buy it and play for a while and then you realize that your husband really likes the game as well. If you both use the same Apple ID for iTunes he can download the $7.00ish game to his device at no additional charge. If you use seperate Apple IDs for iTunes well... it look like he will also be paying for the game to have it on his account. Same goes for Music and Movies
    I hope that clears things up. Let me know if you have anymore question.

  • I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    I was trying to get the iOS 8.2 on my iPhone 5 but then it stopped and my phone is now on recovery mode I have pictures I need and they did not all fit on iCloud  how can I use the phone again with ALL my pictures and videos without restoring it?

    Contacts are designed to be synced to a supported application on the computer or a cloud service.
    Pictures taken with the device are designed to regularly be copied off the device to a computer as would be done with any digital camera.
    If you have failed to use the device as designed it may be too late to recovery anything.
    Is the device regularly backed up to a computer via iTunes?  If so, the most recent backup (when restored to a replacement iOS device) should contain all contacts and pictures as of when the backup was created.

  • When i tried to text a message from my contact list  i received a message saying invalid number of digits. i use the area code with the number but still would not send

    When i tried to text a message from my contact list  i received a message saying invalid number of digits. i used the area code with the number but still would not send

    Call your carrier and see what they suggest.

  • I am planning to buy an iphone 4s in saudi arabia. can i use it in India with a different sim card?

    I am planning to buy an iphone 4 or 4s in saudi arabia. can i use it in India with a different sim card? plz reply

    Yep, but you won't have any warranty or support for this phone in India, nor will you have FaceTime. FaceTime has been permanently removed from all iPhones purchased from official sources in Saudi Arabia.

  • I am using Adobe Reader X on a laptop with Windows Vista OS and Adobe Reader XI on an older laptop with Windows XP OS.  While filling out the same form on each computer, I have found that I can save info on the older laptop, but not on the newer one.  Thi

    I am using Adobe Reader X on a laptop with Windows Vista OS and Adobe Reader XI on an older laptop with Windows XP OS.  While filling out the same form on each computer, I have found that I can save info on the older laptop, but not on the newer one.  This is a big problem.  I must be able to save on the newer computer.  Do I need to buy a new computer with a more up-to-date OS?  Please help.

    Adobe Reader X can only save reader-enabled forms. Adobe Reader XI can save all forms.

  • Currently using Photoshop CS5, but with a replacement computer and upgrade to Yosemite, keep being told I need to install the legacy Java 6. Currently, Photoshop won't even open. I absolutely do not want to subscribe, don't want to mess with the cloud, ju

    Currently using Photoshop CS5, but with a replacement computer and upgrade to Yosemite, keep being told I need to install the legacy Java 6. Currently, Photoshop won't even open. I absolutely do not want to subscribe, don't want to mess with the cloud, just want to buy an upgrade to something that will run for a while longer. I don't care about Lightroom, Bridge, Illustrator, etc.; most of those I've deleted over the years. But I do use Photoshop - or would if it would still run. What options do I have?

    This is the java you need for photoshop cs5 to work on mac os x 10.10 Yosemite
    https://support.apple.com/kb/DL1572?locale=en_US
    It's also possible you may have to reinstall photoshop cs5 even after installing the above java, because sometimes the upgrade to mac os x 10.10 messes up the photoshop cs5 installation.
    You can download photoshop cs5 from here if you don't already have the install media.
    https://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html

  • Reply address: is it possible to use another reply address other than the pop address used in my account. I have a special work account and would like to send emails with that address as my reply address...or sent from address

    Reply address: is it possible to use another reply address other than the pop address used in my account. I have a special work account and would like to send emails with that address as my reply address...or sent from address

    i found out how to do this finally!
    1) set up google gmail account to forward your emails to (from the [email protected])
    2) go to your gmail account
    3) go to settings (cog in right hand corner)
    4) go to 'accounts and import'
    5) go to 'send mail as'
    6) click 'Add another email address you own' - add your [email protected] address
    7) google will send a verification email with code to that email address.
    8) enter code
    9) go back to gmail account  >'send mail as' and select 'make default'
    10) close mac 'mail' program and reopen it.
    as long as you have gmail account selected as the primary account in MAIL - mail will now come throught as being sent from that  [email protected] address!!

  • Can the Ipod 4th and 5th generation be used as GPS? With the app Waze and under Wifi?

    Can the Ipod 4th and 5th Generation be used as GPS? With the app Waze and under Wifi?

    Mini-education...
    GPS signals are separate from and completely unrelated to both the Internet and the cellular telephone network.  GPS signals come directly from the GPS satellites.  They provide signals that allow GPS receivers to calculate latitude and longitude information.  Navigation software then takes that latitude/longitude info and converts it to land mass, roads, bridges, highways, buildings, etc.
    Most navigation software stores the maps right in the iPad/iPod/iPhone but a disadvantage is that the maps must be periodically updated (perhaps once every two years).  The Internet is not required to use the system but it is required to update the maps.
    Some navigation software gets the maps from the Internet and requires an Internet connection to function but an advantage is that the maps are always up-to-date.
    The WiFi+3G/4G iPad and the iPhone both have a GPS receiver.  The WiFi-only iPad and the iPod do not and these devices require an accessory.

  • HT4111 Can I use my magic mouse with my wireless keyboard and iPad2

    Can I use my magic mouse with my wireless keyboard and iPad2

    Sorry, but no. Because the iPad does not have a cursor for you to use the mouse with.

  • Using CC2014, I have a psd with smart objects. I would like to place it into indesign along with type

    Using CC2014, I have a psd with smart objects. I would like to place it into indesign along with type & logos. I would like to then export a pdf from indesign hoping that the smart objects stay as vector. Exported a pdf 1.7, but everything rasters. Writing a postscript gives the same results. Any help?

    Using CC2014, I have a psd with smart objects. I would like to place it into indesign along with type & logos. I would like to then export a pdf from indesign hoping that the smart objects stay as vector. Exported a pdf 1.7, but everything rasters. Writing a postscript gives the same results. Any help?

  • I accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to my regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise. thank

    i accidentally uploaded songs from cds to the wrong itunes library. i would like to move those songs to the regular itunes library that i use to purchase and download music, since my ipod cant sync to both libraries. how can i do this? please advise? thank you.

    See this older post from another forum member Zevoneer covering the different methods and software available to assist you with the task of copying content from your iPod back to your PC and into iTunes.
    https://discussions.apple.com/thread/2452022?start=0&tstart=0
    B-rock

Maybe you are looking for

  • New iMAC to Dell 3008 using Mini DisplayPort to Dual-Link DVI Adapter

    I just brought the new iMAC 27" iCore7. Previously I was using old MBP with dual link DVI to DELL 3008 and they did fine. But Today I connect the Dell 3008 to my new iMAC using Mini DisplayPort to Dual-Link DVI Adapter...They could not work properly.

  • Imported rolls from iPhoto end up as separate projects

    Is there any way to handle this? I imported some iPhoto libraries into Aperture and even though I have the photos in iPhoto organized by album etc., they all came in as separate rolls - I don't want them separate, I want to have them all together =-

  • Does 2008 Mac Tower 3.1 support Diamond ATI 5970, etc?

    Someone please tell me if my 2008 MacPro3,1 will support this Radeon 5970 --> http://www.diamondmm.com/5970PE52G.php this 5870 --> http://computershopper.com/graphics-cards/reviews/ati-radeon-hd-5870 or, last choice, this --> http://www.canadacompute

  • How to finds specific words in each sentence?

    import java.io.*; import java.text.*; import java.util.*; public class FindingWordsSpecific {      static String[] days = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "every Tuesday"};   public static void main( Stri

  • Offline Cache

    I have a requirement to render a screen on a thick-client that contains data from the server (that's the simple bit), however if the network connection to the server is unavailable the most recent image of the data should be used instead. I'm looking