How to clear the error 314101

I am trying to create a mechanism of robust communication between a cRIO and a desktop application HMI. I tried to use the network stream I could avoid a lot of pitfalls in the management of a TCP connection. My RT code must be written to operate, and must recover gracefully network disconnections and brutal power loss. I can simulate these things quite effectively pulling the Ethernet cable or hit the button to Abort in LV

My goal of RT has a drive with the endpoint name ' commlink/drive '. My HMI has a burner with the name "commlink/recorder. HMI tries to establish the connection: he gave the Player URL ' / //commlink/player. This set works very well on the first pitch, but not after abandonment to the RT code. On the next run, the RT code often receives the error 314101 (endpoint with the same name already exists.) to create network Stream Reader Endpoint VI. I can't understand how to clear this error in order to recreate my end point and restore the comm link. Does anyone know how? Calling the destroy Stream Endpoint VI with refnum workflow does not work, and there are no other screws or properties that look like they manage the connection management.

I know I'm coming to the end of the conversation, but maybe some of this information will still be useful.  While network streams were designed to manage multiple connection/disconnection cycles with the underlying TCP/IP connection on the network seamlessly, they were not intended to perfectly manage and survive many lives or running instances application with endpoints.  All this is still possible, it will take more work on the part of the implementer.  An important thing to remember when using network flow, is that once you've managed to connect the two end points, the destruction of one of the endpoints (via normal stop or an accident) will require the destruction of the other end.  This means that you cannot simply reuse on RT target endpoint to communicate with several sessions of HMI.  Instead, you will have to destroy endpoint on the target of RT and create another endpoint (probably with the same name) for the next session.

To do this, I recommend a state machine that is basically:

  1. Create an endpoint - you can do either with an infinite time-out or a continuous loop with a timeout if you need meet orders of demolition/judgment of the user.
  2. Continuous read/write in the flow in a loop.  If at any time you receive a fatal error of read/write, leave the loop.
  3. Destroy the end point and return to the State first, where you can wait for the next connection.

I would avoid going down the road of trapping of the specific error codes and writing conditional logic for each of them.  Network stream API was designed such that for most / all cases, you should should not do this.  If you have a healthy stream that can still move the data, you will not be getting errors from the read or write call (apart from a few things matter as if we were trying to read from an endpoint unique writing of corner).  If you get an error in reading or writing, it usually means your workflow is dead and you need to create a new one if you want to continue to communicate with the remote application.

If you follow the above, I think that you are 90-95% of the way.  As the article you link above mentions, there are additional considerations to take into account if you need to tolerate the application crashes / accidents of remote endpoint.  In these scenearios, you basically have one of the three results of the application that always uses the end point which don't collide:

  1. Demand will start to return errors:  In some scenarios, we can detect the remote application is crashed, abnormally terminated, or whatever.  In these cases, the read/write will return an error and the same pattern described above should work.
  2. The flow will introduce a disconnected state and stay offline:  This would generally happen with a fall in demand.  In these cases, we cannot tell if the connectivity loss is due to a problem with the application or poor network conditions / remote computer.  If you need to detect and recover from this scenario, you can do as a section of the link recommend you and write a timer that resets the stream network if the flow remains disconnected for a period of time.  This could be incorporated in step 2 of the above state machine quite easily.
  3. The flow will continue to make a State connected, even if the remote application is no longer functional:  This should rarely occur and would occur only when the application on the remote computer hung or an impasse, but the network computer stack is still in operational condition.  In this case, we cannot differentiate between a suspended application and the other simply has all the data to send.  If you need to detect and recover from this condition, the best thing to do is probably to create a second timer that resets the stream if it's too long you've changed successfully read/written all the data.

I must emphasize scenarios 2 and 3 can be greatly simplified if you care to detecting the crash & block until another application attempts to connect to the application that is still ongoing.  For example, restarting the application has crashed/hung will recreate an end point and try to re-establish the connection of flow.  At this point, the application which is still running will go account he communicated with endpoint remote must have crashed and raises an error.  At this point, the same state machine mentioned above should be sufficient to re-establish the connection.  I think that this part could be more difficult in LV 2010 since the first attempt to apply newly restarted it also throw an error when you try to reconnect to the remote application.  This will occur until the endpoint in the live application was also destroyed which means that you would have to execute a loop on creating calling until she succeeded.  In 2011, we changed the behavior so the call to create the newly restarted application would cause the remote application to start return errors, but now we are still trying to establish the connection on the newly restarted application for up to the timeout limit.  If you use a state similar to the above machine, you should be able to reconnect without having to write a loop around the call to Create in the newly restarted application.

Tags: NI Software

Similar Questions

  • How to clear the error message

    The regelarly message appears in Windows Mail, and I can't delete it. Otherwise email works fine, but it is an annoyance.
     
    The message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Mail" and read the section "I have problems sending e-mail". If you need help to determine the appropriate server settings, contact your e-mail service provider.
     
    The rejected e-mail address was ' tot * address email is removed from the privacy *'. 'Birthday late!', account: "mail.bellsouth.net", server: 'mail.bellsouth.net', Protocol: SMTP, server response: 501 need user@domain to ', Port: 25, secure (SSL): no, Server error: 501, error number: 0x800CCC79

    Go to the Outbox and make sure that you have seen. Current view is set to show all messages.  Then, if there is a message, delete it.  You can also try to compact and repair the datbase and see if it suits it (see www.oehelp.com/WMUTil/)

    Steve

  • How to clear the error message for the particular component

    Greetings,
    I display message of successful Transaction after Commit Transaction success using the af:Message component, which is locked in PanelGroupLayout. I am programmatically displaying the message Transaction successful for PanelGroupLayout in which the Message label is present in the Commit method of action. After validation, action if I have no action to "CreateInsert" the message of successful Transaction get not allowed. I want to erase the message for the PanelGroupLayout component. I use JDeveloper11g release 2 Please help...

    Edited by: 899000 November 24, 2011 03:32

    Edited by: 899000 November 24, 2011 04:04

    You can call getMessages() on the FacesContext, to browse and delete (s) you want

    I have not tried, but Google should find you some examples.

  • How to remove windows live mail error ID 0x80048820__windows live mail how to clear 0x80048820___windows live error mail how do I clear the error ox80048820___

    Windows live mail how do I clear the error ID ox80048820

    All 'Live' programs have their own forums. The experts he can better help you.

    Windows Live Mail Forum
    http://www.windowslivehelp.com/forums.aspx?ProductID=15
    Bruce Hagen
    MS - MVP October 1, 2004 ~ September 30, 2010
    Imperial Beach, CA

  • How to clear the history of cats?

    Hello

    How to clear the history of cats for each new session?

    Thank you

    Pascale

    Hello Claudia,.

    Can you please check if the user that you are trying to connect with is a "presenter or host? If the user is not presenter or host, and is just a participant user won't be able to clear the history of cats. And in this case, you will most likely the error you get. Please try to give such a user the role 'Presenter' or ' home' then try again and see if it works.

    Let us know if this helped.

    Thank you

    Avinash

  • How to clear the hard drive on my old iMac of 2008?

    I have a 2008 iMac I want to recycle. How to clear the hard drive?

    (What is PPC?)

    PPC stands for Power PC. Is the name used to refer to the old Macs that uses a Motorola processor instead of Intel chips used today. To clear your old Mac follow the advice in this document from Apple... What to do before you sell or give away your Mac - Apple Support

  • How to clear the cache of firefox

    How to clear the cache of firefox

    Settings-Advanced below 'Network' and clear here

    https://support.Mozilla.org/ru/KB/Kak-ochistit-KESH-Firefox?redirectlocale=ru & redirectslug = Kak-ochistit-Kesh

  • How to clear the history?

    How to clear the history?

    https://support.Mozilla.org/en-us/KB/how-do-i-clear-private-data-Firefox-Android

  • How to fix the error with the code: 0xe7210001 failed to load powrprof, object: cls

    Hello

    Dose anyone know how to fix the error with the code: 0xe7210001, message: unable to load powrprof, object: CLSD-no-it is found;
    OR: Fingerprintsoftware OR error: replicas THotkey.exe message window and the computer freezes

    Maleware scanned and virus, also in safe mode, found no infection, reinstalled driver fingerprint, but nothing has changed.

    grateful for the help!

    Hello

    > message: unable to load powrprof, object: CLSD-no-it is found;
    In my view, this would mean that there is a problem with Toshiba Power Saver
    What laptop Toshiba, you have exactly?

    Maybe reinstall Power Saver could help. You can find it on the official website of Toshiba.

  • Portege Z930 - how to clear the memory of the fingerprint sensor?

    Hello

    Tell me how to clear the memory of the fingerprint sensor?
    Reinstall the operating system and now I can not add your impressions.

    They have their No....

    > Reinstall the operating system and now I can not add your impressions.
    Stand by. You have reinstalled OS using original recovery image?

  • Re: How to clear the model of Toshiba satellite PS271L - 6K 906 CMOS PASSWORD?

    In: Toshiba

    How to clear the model Toshiba Satellite PS271L - 6K 906 CMOS PASSWORD?
    Please respond to my E-mail [email protected]
    Thank you

    To: King

    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?MessageID=127837
    Read this thread very carefully!

  • How to clear the cache in 9.0.3

    Techno-bouffon here, in conflict on how to clear the cache in 9.0.3 (OS X 10.11.3 El Capitan). Some recommend to delete entire cache folder. Others say just clear com.apple.Safari, which I did. So... what happens if I delete the contents of the entire folder Caches? (I have nothing special set up on this computer.)

    Open Safari Preferences--> advanced.  Downstairs, make sure that ' see her develop menu in the menu bar "is checked.  Then go up to develop-> empty Caches.

  • How to clear the cmos on satellite p20 552 settings?

    How to clear the cmos on satellite p20 552 settings?

    Hello

    I guess you want to remove the BIOS password. Am I wrong?

  • How to clear the print queue on a printer hp x 6420

    How to clear the print queue on printer HP 4620?

    Hello

    From the desktop, hold down the Windows key and press R.  In the run window, type services.msc and press to enter.  Scroll down to the print spooler service, right click and select Properties, then click the Stop button.  Now search for C:\Windows\System32\Spool\PRINTERS, then delete the work inside this folder - you may need to click a command prompt to get the authority to open the PRINTERS folder.

    Restart the computer and you should find that the documents have been deleted.

    Kind regards

    DP - K

  • How to explain the error in the executable file?

    As everyone knows, there are 3 parts to the cluster of error: status and source code. The State's flag, the code is the error code and the source is where Labview think that the error occurred. Normally, when I'm in the environment labview course I can just right mouse click the error and click "explain the error" and a description and detailed error possible cause rises.

    However, when I create an executable I don't know how to explain the error to the user, such as labview.

    When an error occurs that I wish I had a popup that says code error, source and EXPLANATION. The code and the only source is so enigmatic sound quite panic inducing the user, whether or not the error is unrecoverable/crash-inducing. Also this would save me having to search the online error code.

    How to make the explanation of the error code? There is a vi that I can enter an error code and get the explanation string?

    There is probably something simple I forget but I couldn't find the answer in my research. Thanks in advance for your help.

    Simple error handler and screw General Error Handler?

Maybe you are looking for

  • Changed group policy settings but now Windows is to appear this message to restart again!

    I currently have windows 7 Professional 64 and I changed the settings of group policy to stop this annoying nagging screen pop to the top telling me to restart the computer after an update, but recently he has returned once again, and I made no chang

  • Basics of Microsoft secuity Code error 0 x 80070002

    Without doubt, this began with a virus.  Essentials was not working properly so I tried to delete.  It is not deleted, does not work is just in limbo. This code help?  What should I do?

  • HP Pavilion 15-ak112nl Gaming: Hp 15-ak112nl RAM compatibility

    Hello I would like to know if HP 15-ak112nl supports DDR3 and DDR4 RAM. If so, I would like to know if this RAM is compatible: Thank you.

  • Presario CQ70 does not start

    Computer does not start. Automatic start of repair can not solve the problem. Description of the problem: StartupRepairV2 AutoFailover 6.0.6001.18000.6.0.6001.18000 6 45879 SystemRestore NoRootCause NoRootCause 1 0 0 6.0.6001.2.1.0.256.1 3082'd appre

  • Printing different pictures on one sheet

    Despite the help instructions, I am unable to find out how to print four different photos on an A4 page.  I can print the same photo four times, but not four different.  Can someone please explain to me how this is done?  I had no problem on my old d