Error 63 and 60 from TCP Listen.vi

Hi All,
I got error 63 from TCP listen.vi and error 60  from retry.
Any idea of that?
Thanks a lot for any help.
Anne

The consequent error 60 is quite likely caused by the fact that Winsock does not close a socket immediately in order to handle lingering packets that might still be arriving for that socket. So your Listen tries to open a socket, but somehow gets refused that socket, but it has been allocated anyhow in the Winsock library and eventhough LabVIEW closes the socket (you do executed a TCP Close node even on error on the listen refnum do you?? ) Winsock needs some time to really deallocate that socket, and when you immediately retry the port is still in use.
Make sure to always close all refnums, also the listener refnum, even in error case and if that does not help add some delay before retrying to open the Listener again.
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Error 11 with TCP Listen.vi and named service

    I am using TCP Listen.vi with a named service so my Real-Time application can act as a TCP server without the clients needing to know the specific port.  I am using LabVIEW 8.5.
    I am getting Error 11 from TCP Listen.vi if no client has connected within a certain amount of time.  I have traced the problem down to the TCP Listen Internal List.vi inside Internecine Avoider.vi in TCP Listen.vi.  I think I have found a bug in this vi.
    What is happening is that the Search function of TCP Listen Internal List.vi is not finding the named service, so new listeners continue to be created until there are too many open.  See the attached picture.  I think the circled function should be "not equal" instead of "equal".
    Has anyone run across this problem before?
    Thanks,
    Cherie
    Attachments:
    TCP Listen.PNG ‏39 KB

    Cherie,
    Let us assume that al listener for your port number and name is not yet created and you have put the TCP Listen in a loop.
    1st Iteration:
    Searching the internal list will not find a name or port and hence it will create a connection and if successful will insert the port number and name to  Internal List.
    2nd Iteration onwards:
    It will find the previous connection, provided you are still passing the  same port number. If in the second iteration the port number changes, then what you say may happen
    Will it be possible for you to post the TCP VI you have in RT?
    That said...I don't get why that compare with zero is required? If port number was 0 in the first iteration then anyway after creating the listener, the new port number will be updated to the list along with the service name, isn't it?
    Message Edited by kikiduu on 09-06-2008 08:50 AM
    "A VI inside a Class is worth hundreds in the bush"
    യവന്‍ പുലിയാണു കേട്ടാ!!!

  • Error in Create TCP Listener - Linux

    Hi,
    When using the Create TCP Listener function in Linux Red Hat 9.0, I get an error (ill-formet net address). What is strange is that I get this error only when running the VI (built as an executable) as a regular user. When I run it as root, no problem.
    Any idea?
    Thanks,
    Alex

    Hello Alex,
    We've seen this issue before with Linux users (for example
    http://forums.ni.com/ni/board/message?board.id=170&message.id=63457&requireLogin=False),
    it seems as though you'll have to change some permissions in Linux if
    you want to use TCP when not logged in as root.
    Hope it helps-
    Travis M
    LabVIEW R&D
    National Instruments

  • Using SMTP I can not use a mail server with more than 13 characters. I get an error from TCP open

    I have no trouble sending an email if the mail server name is less than 13 characters long. I get an error 54 from TCP open when it exceeds that length. How do I get around this?

    Don't know what to say, I just tried the SMTP email VI I have with an 18-character mail server address and everything worked fine. The error 54 means that the address is ill-formed.
    The only thing I would suggest is trace the mail-server address down through the hierarchy and make sure nothing is done to modify it. Also try putting a probe on the wire going into the TCP open function and make sure the string you see there is the same one you are using. Finally, change the formatting of the control taking the address into the subvi that contains the TCP open function (SMTP Open Session.vi)to show the slash codes and make sure some invisible characters aren't getting added along the way.
    As a last resort save the vi in 6.0 format and send it to me and I'll
    try it on my system--maybe there's something screwy going on with your computer...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I am trying to listen BBC radio news from BBC App, but on pressing the button I always get the error "there was an error playing this radio feed". What is the source of this error and how can I remove it?

    I am trying to listen BBC radio news from BBC App, but on pressing the button "live radio" I always get the error "there was an error playing this radio feed". What is the source of this error and how can I remove it?

    That is probably just a generic error message and you might not ever know what is causing it. Assuming that you have been able to play live radio with the app in the past (I know nothing about the app) and assuming that all other Internet related functions (Safari, email, etc.) are working properly on your iPad, quit the app completely and reboot your iPad.
    Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If that fails to resolve the issue, you might want to reboot your router, unplug it for about 30 seconds and then plug it in again.

  • How do I Only read from TCP/IP listener if there is data?

    In my data acquisition software that I've written, I have a TCP/IP listener to occasionally receive messages from Matlab.  I only want to do that if there are available bytes to be read.  I've thought of setting the mode on the listener to Immediate, but it says in the help that there will still be a timeout error.  The main things that I'm looking at are avoiding timeout errors, and I don't want waiting for the message to interfere with the data acquisition.
    Thanks,
    Alan Stemmons
    [email protected]

    The data acquisition software is running in Labview, while Matlab is running software to control the antenna position.  What I would like to do, is have Matlab send a message when the antenna has arrived at the correct position telling Labview to start acquiring, and then also send a message to Labview telling it when to stop acquiring.  In between this time, while labview is acquiring, Matlab will also send messages to Labview telling where the antenna is pointed.  An example message would be "Az=180, El=45\n".  The purpose for this is to keep a log file of when the antenna moves relative to when data acquisition started.  The problem that I've had when I tried doing this with a TCP/IP read block with a short timeout is that the read buffer overruns.  Basically, I just have a while loop with a Daqmx read block, then the data from that read block is written to a binary file.  In this while loop there is a TCP/IP read block that uses immediate mode with a timeout of 10 ms.  It tries comparing the string that is read to "Stop Acquiring\n".  That is the condition to terminate the the while loop.  I'm not going to worry about the log file until I can actually get it to acquire for the whole time.  It would be nice if there was some way to make this interrupt driven, so it would only pay attention to the tcp/ip read block if there was actually data.  I'm assuming that's where the problem is, although I might be wrong.
    Thank you.

  • TCP Listener returned error on accept = AFP blows up. Need help

    Environment: 10.6.7 Server. Xserver. All Mac clients. It's a school. Problem: AFP refusing connections or not loading the Home Directory Symptoms: Library/Logs/AppleFileService/AppleFileServiceError.log blown out with "TCP Listener returned error on accept" happening every second.
    I cannot figure this out. The server has not been updated recently. -checkhostname returns no error. There have been some new iMacs (10.6.8) connected recently. I have read this might be MaxThreads; or corrupt .DS files, but I am really struggling. Please - any clues at all? I can't keep rebooting every day. Any ideas at all please.

    hi pkmusic, we are having the same problem. do you have phone over IP? we are using 5 servers (10.6.7 and 10.6.8) for user home directories. network goes through Siemens IP-Phones. Each server has max. 40 - 50 users but the error occures even if there are only 15 - 20 users connected. have to check the MaxThread-Settings next week ...

  • I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the inst

    I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the installation package 'iTunes.msi' in a folder from which you can install iTunes.  I can't find this folder. I have tried to completely unistall iTunes through the Control Panel, but it wouldn't let me: I tried going directly to the files themselves, but cannot uninstall. Any help would be greatly appreciated. System OS: Win XP SP 3.

    Set the permissions for Everyone in the folder in which CCPackager created, to "Read/Write" enabled. This is strange since there is only an administrator account on the Mac (and that account already has read/write), but it seems to resolve the issue.

  • Lightroom 5 will not open and gives me a message saying it encountered an error reading from its preview cache. [was: Lightroom 5 question]

    @Lightroom 5 will not open and gives me a message saying it encountered an error reading from its preview cache.

    This is the Photoshop forum however.
    Close Lightroom and go to your Lightroom catalog folder.
    The default location is usually in Pictures.
    Delete the file in the catalog folder which ends Previews.lrdata
    Do not touch the catalog itself which ends.lrcat
    Then try re-launching Lightroom.

  • When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve

    When I attempt to open lightroom I recive this message: [ Lightroom encountered an error whenreading from itspreviw cache and needs to quit.Lightroom will atempt to fix this problem next time it launches.] I did this a few times but no resoulve

    It isn't a file, it's a folder. It will have the same name as your catalog, but will have the extension data. It will be in the same folder along with your catalog. If you need to use the search feature to search for *.lrdata.

  • How do you remove error 0X00000709 from your computer? I just removed one printer and added another!

         I have a HP Pavilion Elite HPE computer and had an HP 6500 printer as my default.  I purchased a LaserJet Pro CM1415 and loaded it into my computer and removed (I thought) was the software for the HP 6500. 
          However when I try to make the CM1415 my default it gives me an error 0X00000709 and tells me I can not do it.  I no longer have any other printer listed, however I noticed some programs (Adobe for instance) don't even recognize the new printer, just the 6500 which got removed.  I have already removed the drivers (software) for the new printer and reloaded it. Also I checked the registry and the 6500 is listed there.  I did nothing with the registry at this time.
         I would like to know how I can remove this error and make my new printer the default (only one listed) one?  Thanks in advance for any and all answers

    Hello Porgeman,
    You may want to try the solution that is mentioned on this Microsoft Answers thread.
    http://goo.gl/y3mtw
    Method: Try to change the default printer value in registry key and check if it helps.
    Registry Disclaimer: Important this section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756 .
    How to back up and restore the registry in Windowshttp://goo.gl/UPP7r)
    a) Click on Start.
    b) Type regedit in the start search and click Enter.
    c) Move to the location mentioned below.
    HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\Windows
    d) In the right column, you will find key Device, change the value to your Printer name.
    e) It is of the format for example: "HP LaserJet 4250 PCL6,winspool,Ne03:".
    f) Right click on the value and click on Rename, change it to your printer name.
    If I have helped you in any way click the Kudos button to say Thanks.
    The community works together, click Accept as Solution on the post that solves your issue for other members of the community to benefit from the solution.
    - Friendship is magical.

  • I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    I was updated my Iphone 4s from computer(ITunes).ITunes get error and update failed.(When Iphone is preparing.).And now ı can't use my IPhone.At the screen there is a USB cable and up of the screen there is ITunes' logo.PLEASE HELP!

    Read what i say. Put iPhone in DFU mode. Connect with USB cable and restore.
    Read:
    http://www.apple.com/support/iphone/assistant/restore/

  • My lap top wont import pictures from auto play. it keeps saying there is a file error and a device connected to the computer isnt working properly. i have tried going into the internal storage to copy and paste the pictures but this wont work either.

    my pictures from my i phone 4s wont import from auto play. a message keeps coming up saying there is an error and a device is not working properly. also i have tried going into the internal storage to copy and paste them but that wont work either. the page either stops responding or the picture simply dont copy. does any1 have any idea why this is happening. it has never happened before and only seems to be happening since i started using i cloud storage instead of synching my phone with the lap top.

    I have decided to dedicate this thread to the wonderful errors of Lion OSX. Each time I find a huge problem with Lion I will make note of it here.
    Today I discovered a new treasure of doggie poop in Lion. No Save As......
    I repeat. No Save As. In text editor I couldn't save the file with a new extension. I finally accomplished this oh so majorly difficult task (because we all know how difficult it should be to save a file with a new extension) by pressing duplicate and then saving a copy of the file with a new extension. Yet then I had to delete the first copy and send it to trash. And of course then I have to secure empty trash because if I have to do this the rest of my mac's life I will be taking up a quarter of percentage of space with duplicate files. So this is the real reason they got rid of Save As: so that it would garble up some extra GB on the ole hard disk.
    So about 20 minutes of my time were wasted while doing my homework and studying for an exam because I had to look up "how to save a file with a new extension in  mac Lion" and then wasted time sitting here and ranting on this forum until someone over at Apple wakes up from their OSX-coma.
    are you freaking kidding me Apple? I mean REALLY?!!!! who the heck designed this?!!! I want to know. I want his or her name and I want to sit down with them and have a long chat. and then I'd probably splash cold water on their face to wake them up.
    I am starting to believe that Apple is Satan.

  • When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    When I open itunes to play content I've already purchased and while attempting to view trailers for movies in the itunes store, I receive a generic error message from windows, and I'm directed to reinstall the latest version of itunes.  Not a fix.  Help?

    after perusing other subjects with playback issues: 
    this is the fix: 
    -Launch Control Panel - Double click Quicktime, If you do not see quicktime, look on the top left side of control panel and switch to classic view. This will then allow you to see Quicktime.
    -Now click the advanced tab and click on Safe Mode GDI Only, Apply, then ok.

  • I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope y

    I am facing a problem while working in Muse... The issue is I cannot delete a page from my plan, when I am trying to delete it showing an error and the application shuts down. I am working on an emergency project which I got to submit it tomorrow I hope you will find a solution for the same.Help with using Adobe Muse CC

    Thanks,
    I have tried with a new site it's working perfectly.
    See the screenshot of the error.
    Thanks for your support Rohit

Maybe you are looking for