How to prevent a TCP connection that is closed when the VI who opened it terminated.

Hello everyone.

I'm developing an application based on the servers and clients communicate through TCP in LabVIEW 2012.

When the Server/client opens a TCP connection, it starts an asynchronosly running "Connection Manager", to which connection reference that takes so all communication happening. It all works very well.

-J' have a situation where a client connection manager can be informed of another 'new' server. I would like to open the connection (to see if it is still valid) and then pass this reference of connection to the main client code to spawn a new connection manager. This avoids lock me up the Client code main with an ish timeout if the 'new' server does not really accept connections.

The problem is that if the connection manager that opens the connection to the 'new' server is stopped, then it seems to destroy the reference he opened. This means that the other connection manager that has been happily character with the 'new' server has closed TCP communications (I get an error code 1 on an entry).

I created an example to illustrate the issue which should be used as follows:

1 run server.vi - he will listen for a connection on the specified port on his comics.

2. run Launcher.vi CH - it will open a connection to the server and pass the TCP reference to an instance of connection Handler.vi, which he started.

3. the connection manager needs to send data to the server

4. stop the Launcher.vi CH

5. the will of Handler.vi connection error.

Any suggestion would be appreciated.

See you soon

John

Do not perform the opening and closing of the TCP connection in Subvi. Do this to master VI.

Tags: NI Software

Similar Questions

  • How we prevent OIF to modify ObAccessClient.xml configure when OAM?

    I'm integrating OIF OAM.
    I generated the ObAccessClient.xml using configureAccessGate. noticed that the OAM hostname and port are internal address that not accessible from the OIF, I modified manually to be external address.
    However, when I click on "Set up Oracle Access Manager" of the OIF 'Modules for the integration of Service Provider', I noticed the host and port in this file (ObAccessClient.xml) has changed to be the internal address. so, I got connection time-out error when the OIF tries to configure OAM with her internal address.

    However prevent this from happening?

    Thank you

    When you configute a AccessGate, you specify the details of an access server so that she can make an initial connection. However, after that, the access server queries the AccessGate configuration information (and access servers it connects to that defined in the access System Console) and sends this information to the AccessGate, which then stores this information in the ObAccessClient.xml file.

    This is so that if you make configuration changes to the AccessGate in the Console of the system access, they are returned to the AccessGate who will then use the file at the next startup.

    Kind regards
    Colin

  • How to display a hidden shortcut that is pinned to the Start Menu?

    HIDDEN PIN TO THE MENU SHORTCUT START

    How to display a hidden shortcut that is pinned to the Start Menu? This problem occurs very simply but does not quite simply. I've pinned a shortcut to the Start Menu before you uncheck the hidden attribute (knew I had) causing the shortcut to be recorded without being visible. When I tried to pin it again I was alerted to his presence by the fact that the second pinning made an extension of title (2). When I tried to change the title, I received the message that a link of this title was already present. I don't want to stay as a situation lasting this is why I need instructions on how to change it. I could just change the title of the second pinning something close but different but then I would have two shortcuts to the same program pinned on my Start Menu, without being able to be removed. I just * because if I can tell. I could uninstall the program and then run another program looking for broken shortcuts to 'fix' and then (I guess that means deletion when they can't be 'fixed') but I would like to avoid the extra steps for pedestrians to the advantage of learning a new technique of Windows if such jurisdiction exists. Could use this help as soon as POSSIBLE. Thank you.

    C:\Users\\AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\StartMenu

    Just tested myself and my shortcut is there.

  • How to create a date field that is fixed at the signing?

    Hello

    I created a series of PDF forms on Adobe Pro XI which are designed to be filled out using Adobe Reader (where are saved as Adobe Reader Extended). Once the form is complete there are fields of signature that the user who digitally sign then it disables the specific form fields of editing more far. Next to the signature field, I have a date field that, at present, is using JavaScript to automatically generate the date of business at the opening. However, the question that I have is that I want this field date which will be fixed when the form is signed, rather than update again when the form is opened. Is this possible?

    The document JavaScript that I use to generate the date currently is:

    this.getField("Date1").value = util.printd ("dd/mmm/yyyy", new Date());

    But obviously, this is independent of the signature field.

    How can I create a date field which is set by the current date at the signing?

    I am very new to Adobe in general so I don't have much of an idea about how to go about doing this. Could someone please help me to do it if possible?

    Thank you

    KC

    Go to the properties of the field of Signature and on the signing tab, add

    Copy the following code in the section previous "this script is run when the field is signed.

  • How can I place a captcha before a html code that is displayed when the captcha is finished?

    andrebertel.com/support

    I don't like my Skype appearing automatically... I have block 2 robots... can I place a captcha before a html code that is displayed when the captcha is finished?

    You can add a form with only the email field and the captcha and set up the landing page as the page where the content html is placed, so that users will have to enter captcha to land on this page apart from that, you need to use the coding customized for adding verification captcha to the content of the page.

    Thank you

    Sanjit

  • HP Pavillion DV5020 that blanks out when the power cord is not plugged in.

    I have a HP Pavillion DV5020 that white outside when the power cord is not plugged in.  Then, when it is in it's very well and when he's not even starts not with the screen committed.  It is NOT the function sreensaver.  Can I plug an external monitor and see what happens, but the maternal lines white leaves display off whenever it is on battery power.

    Anyone seen this before?

    g

    I would recommend to go ahead and reset the computer of hard edge. This is one of the best steps for these types of troubleshooting questions. Here is a link that will guide you through the steps on how to perform a hard reset: http://goo.gl/6mk6K

    I would like to know how it works and post back with all new details.

    Thank you!
    Sean

  • Do WLST exception like ' target the exception that is thrown when the application deployment: no such file or directory found in the location of the specified application: "all administration server application deployment

    Hi all

    I'm trying to deploy an application to the administrator of the server using WLST and I had followed steps below.

    (1) I ran setDomainEnv.cmd

    It was performed without error.

    (2) connect to the Server Admin

    Connect ('USERNAME', 'PASSWORD', ' t3: / / localhost:7001', adminServerName = "AdminServer")

    (3) to deploy the application

    deploy ('benefits', 'C:\Users\suhas\Desktop\benefits.war' target = 'AdminServer')

    Traceback (innermost last):

    Folder "system <>", line 1, in?

    File '< iostream >", line 246, to deploy

    File "< iostream >", line of 1848, in raiseWLSTException

    WLSTException: Error occurred when executing deploy: target the exception that is thrown when the application deployment: no such file or directory found in the location of the specified application: C:\Users\suhas\Desktoenefits.war : no such file or directory found in the location of the specified application: C:\Users\suhas\Desktoenefits.war

    DumpStack() to view the full stacktrace

    WLS: serverConfig/test_domain / >

    I'm the exception above, I gave the exact war file path while the deploy command of race but represented except the application path refers to a path that does not exist.

    I, e. instead of display C:\Users\suhas\Desktop\benefits.war C:\Users\suhas\Desktoenefits.war appear

    Please help me solve this problem.

    Thank you and best regards,

    Suhas

    You can use the script here

    Automation of the deployment of the application on Oracle Weblogic Server

    Use a backslash instead of the forward slash... and type it instead of copy paste...

  • How to move the tablespace SYSAUX ASM file system when the database is opened?

    OS: RHEL 5.9 with UEK

    Database version: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    On a stand-alone server network infrastructure.

    According to me, that if I put the database in montage mode or disconnect SYSAUX, I can move the ASM filesystem SYSAUX tablespace by issuing the following instructions:

    • format of backup as copy tablespace SYSAUX "+ SYSTEM";
    • tablespace SYSAUX switch copy;

    But I want to know how I can move the ASM filesystem SYSAUX tablespace when the database is opened.

    Thank you.

    The two doc tells how to move sysaux when the database is opened:

    How do I move the TABLESPACE SYSAUX (Doc ID 301186.1)

    http://Paul.CLAESSEN.org/?p=79

    This method may not work if any process uses sysaux. You will need to stop car he like sb said.

  • I received an email with an attachment that I downloaded, when I go to open the windows media center file opens but I can't find file what I do

    I received an email with an attachment that I downloaded, when I go to open the windows media center file opens but I can't find file what I do

    I was able to open using AbiWord, thanks for the reply

  • THAT means itmean when the message appears asking if I want to disable ad - ons. What happens if I click Yes?

    THAT means itmean when the message appears asking if I want to disable ad - ons. What happens if I click Yes?

    Can help the post marked 'answer' Steven S. in the following link: http://answers.microsoft.com/en-us/ie/forum/ie9-windows_vista/turn-off-the-yellow-disable-add-ons-box-in-ie-9/b656efb7-335a-4967-9856-55f9a9e8eae6

    There are additional General information about the modules at: http://windows.microsoft.com/en-US/windows7/Internet-Explorer-add-ons-frequently-asked-questions

  • What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images?

    What kind of image is in a document. INDD so when the file is opened you get the message 'document contains 6 links to sources that are missing' and when you click OK to recreate a link to missing files, the document opens with the images? Missing images are not on my computer, but when the document opens the images are there. I can copy and paste the INDD images in Illustrator. Y files/images/I am able to copy and paste the images that have been incorporated into the INDD file in AI of the INDD file? If this is not what type of image am I copy and paste? Can I take the images that I stuck in there and place them in a new INDD document and have the images to reproduce without problems?

    The images could be anything - check the links Panel.

    What you see (and copy) is just the screen preview, not the actual image data.

  • How can I set up a structure of the event that sends text when the user presses the button "Return"?

    I'm new to programming of the Structure of the event.  I am trying a program which causes the content of a control to the string to be processed when the user presses the button back in after typing in the control of the chain.  I think (I hope!) that it is simple, I just can't understand how do.

    Basically, I would take the attached VI and change so that the user can send the value of control 'String In' to the indicator "String Out" either by pressing the 'Return' key or press the button 'send string. '

    Any help would be greatly appreciated.

    This example has nothing to do with the RETURN key specifically.  It fires all simply whenever the value of the control is changed.  If you click outside the text box or on another still controls the value changes and still the event is raised.  This is often the desired so if it works in your application, you good to go.

    You CAN ONLY answer a particular key if you wish.  Set your event to meet 'This VI' > key down.  Then, read the proposal Vcle on the left side of the structure of the event and compare it to the RETURN (for example).  The Boolean result of the comparison gets connected to a structure to deal with your code to run inside.  You can also wire Vcle directly to a case structure and execute different code based on which key was pressed last.

  • How we prevent scrollbars on spreads with an Image on the two Pages?

    Has anyone noticed that a spread with a large image (or graphic) stretching across two pages creates a vertical scrolling between two pages, whenever the iBook Viewer window size is adjusted? No idea how to prevent this? I guess I have to divide my images into two halves?

    In the EPUB export dialog box, select: "convert across landscape Page.

  • Content that is not when the headset is connected

    I have an early 2015 MacBook Air 13 "El Capitan (version 10.11.5) running

    1.6 Intel Core i5 to Ghz, 4 GB RAM

    When I plug the headphones into the 3.5 mm headphone jack, the system recognizes as being connected, but something strange is happening. It won't play audio on the computer or the web. For example, iTunes will just sit at 0:00 on the right track even if the play button alternate in the play "arrow" and symbol scoring break, but the track does not play. It's the same thing with web content in safari and google chrome. For example, YouTube and SoundCloud will be right there to 0:00. Even ads will not play.

    The audio adjustment recognizes the optional headset sound output preferences. I have a pair of headphones usb that works perfectly all the time. Operation of the speaker is never a problem via the speakers integrated or output with an external monitor via thunderbolt. There is no red light in the 3.5 mm hole. Headphones can even control the break reading with built in mic button function, but its simply change the symbol on the screen.

    Help.

    Try a reset of the NVRAM:

    https://support.Apple.com/en-us/HT204063

    If no success, make an appointment at an Apple store genius bar for a FREE evaluation.

    Ciao.

  • When I click on a link that I searched in a search engine a new faucet is opened. How can I change it so that it remains in the same tab, in that I tried

    When I click on the link in a search engine. allows you to use Google for instance and say that I find the camden wyoming fire company. When I click on the link to the website a new tab opens with the web site. . How can I change it so that it uses the same tap in that I tried

    Hello to bratman0, by default google results should already open in the same tab, if they don't please ensure that you have not set to open a new window browser for them within the parameters of google: https://support.google.com/websearch/answer/425

Maybe you are looking for

  • A project now lets FCPX down.

    Just a specific project.  It started this morning.  I tried all sorts of things without success.  It is a 5-minute project that I invested at least 36 hours.  How can I solve this problem?

  • More large hard drive for Compaq Presario CQ56-103SA

    Hello I have a Presario, model CQ56 (103SA), the hard drive that I want to upgrade. Is this possible?  As the laptop has Windows 7 preinstalled, how can I do to get re-installed? Thank you and best regards, Ed434

  • Problem with video calling

    Dear community of Skype,These days, I have a weird problem with my Skype. I want to use the video calling option but my video is all messed up. So you can see what is my problem, I have included a screenshot. In the screenshot its my webcam that mess

  • Worst customer service

  • laptop not charging

    HP2000-369WM Notebook Laptop my shows (plugged in, does not support). why it does not load the battery?