Retry making connection

Hi all, I have to make a connection through TCP/IP to a device to read some values. But when the machine where the device is installed on has no power supply, my device also has no power suply and the connection will fail. Now i had the idea to retry to make a connection every couple of minutes when an error is detected. In this case the program does not stop running an will connect automaticly when there is a possibility to connect. How can i solve this or are there any other suggestions for the problem?
Best Regards
Stefvg
Solved!
Go to Solution.

Hi, I've implemented the Subvi in my vi and everything works just fine. But i am using some while loops and sequence structures in my program. Is it possible to add a button (or buttons) to abort an action and stop the entire program. An example: when i am trying to make a connection i am in the subvi until a connection is made or i push the emergency stop button. Now i actually want to stop making a connection when pushed at a button whitout stopping the whole program (with the emergency button). Or i want a button that stops the program no matter in which loop the program is in. Is this possible or not? I've added my program in attatchment.
Best Regards
Stefvg
Attachments:
oplossing2.vi ‏70 KB

Similar Messages

  • Error while making connection with remote oracle database

    Dear,
    I am trying to make connection with oracle database but when i run java file it's raise an error "classnotfoundexception oracle.jdbc.driver.oracledriver"
    DriverManager.getConnection(
      "jdbc:oracle:thin:@erp:1521:ORCL", "apps",
      "apps");
    Pls any body have idea.
    Thanks.

    Thanks for support.
    Below is error which i am getting while making connection with remote database.
    C:\Program Files\Java\jdk1.7.0_05\bin>java OracleJDBC
    -------- Oracle JDBC Connection Testing ------
    Where is your Oracle JDBC Driver?
    java.lang.ClassNotFoundException: oracle.jdbc.driver.OracleDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:186)
            at OracleJDBC.main(OracleJDBC.java:13)
    Advice.

  • There was a problem connecting to the Server. Touch Retry to connect again, or OK to Exit" HELP!

    There was a problem connecting to the Server. Touch Retry to connect again, or OK to Exit."
    I have a newer model HP Photosmart Plus (Print/Scan/Copy/Web)
    Keep getting this error message.  Have pressed Retry, have exited and tried again.  No results.  Have shut off/unplugged/restarted printer and computer several times, but this keeps popping up as soon as I press "Apps".  All I can access is "quick forms", and they don't print correctly (layouts are strange).  Anyone know how to fix this?

    Hope you are doing well TFam5;
    Are you having this problem constantly?
    I want to help but in order to do so I will need more information in regards your devices and configuration, please include all this,.
    What is the operating system that your system utilizes?
    Use this example as a guide Windows 7 home premium 64 bits. The reason we ask your Operating system in all post in due to the fact that I want provide you with detailed suggestion and in other to accomplish some of the instructions that we will provide are operating system dependent or different in different versions of the OS, in short words if you want me to guide thru the process I will need the operating system, the version and the intructiosn width (32 or 64 bits)
    What is the complete printer model?
    HP Photosmart Plus All-in-One Printer - B209a ›
    HP Photosmart Plus e-All-in-One Printer - B210a ›
    HP Photosmart Plus e-All-in-One Printer - B210b ›
    HP Photosmart Plus e-All-in-One Printer - B210c ›
    HP Photosmart Plus e-All-in-One Printer - B210e ›
    Some printer models have as much as 6 different versions is important to know which version exactly do you own in order for me to provide accurate links for your product If you are having issues with your finding the complete version of your product please visit this site. http://h10025.www1.hp.com/ewfrf/wc/document?tmp_renderType=findModel&cc=us&dlc=en&docname=bpy21016&l...
    Provide this info and I will do my best to help you.
    Regards.
    RobertoR

    You can say THANKS by clicking the KUDOS STAR. If my suggestion resolves your issue Mark as a "SOLUTION" this way others can benefit Thanks in Advance!

  • My Gmail is stuck and tells me to retry to connect to the Internet

    My Gmail is stuck and tells me to retry to connect to the Internet

    Brad805 - My phone is locked and I have forgotten the pw.  However, when I plug my phone in to the computer to Restore it, it give me this message:  The iPhone “my name is here" iPhone” cannot be used because it requires iTunes version 11.1 or later. Go to www.itunes.com to download the latest version of iTunes.  I cannot update itunes on my iphone because it is locked and I don't remember the pw. 

  • Mach_kernel making connections to random ip?

    Hi guys,
    I hope someone can give me some explanation. I bought first gen macbook, install little snitch and leave it on 24/7. Later, I enabled remote login and remote management function in case it's stolen.
    Then, I just found out from litte snitch that /mach_kernel making connection to some random ip's. I was afraid because remote management was enabled, so I disabled it and still little snitch found it access random ip. Is this a normal behaviour? or someone/automated program just brute forced my mac? and what is weird is little snitch do not ask me whether to block it or not. I'm not sure either whether this connection from outside into my mac or from my mac to outside. anyway i took a screenshot of it.
    http://www.flickr.com/photos/insaturday/2620995356/

    Those connections from the kernel are caused by bittorrent connections. They are nothing to worry about if you are running torrent connections and in your screenshot you have Transmission running so that is the explanation.

  • Losing connection to external drives, tried disc utility got a message "No live updatin...? Retried new connections; is there a way to test the external usb hub?  The drives will occasionally display in Apple profile.  Any help would be deeply appreciated

    Losing connection to external drives, tried disc utility got a message "No live updatin...? Retried new connections; is there a way to test the external usb hub?  The drives will occasionally display in Apple profile.  Any help would be deeply appreciated

    It's not just you, I can't authorise my phone. It seemed to go down just after I started the update (it wasn't my fault though). I am using chrome, and it does not seem to be a firewall issue, or the bannerblock issue that I read about else where, since I dont have that program installed. Strange though how the support forum is still running. If I go to http://www.apple.com/support I get nothing, but googling topics allows me to see em.

  • HT1476 i plug in my phone to the  charger and i tried with two different cables, and it seems like it is not making connection to the clable?

    i plug in my phone to the  charger and i tried with two different cables, and it seems like it is not making connection to the clable. but it is not charging. what are some possible ways o fix that?

    When you plug in your charger and attach it to the MBP, initially the light will turn green.  If the MBP needs charging, a few seconds later the light will turn amber.  That is normal.  If your symptoms are different, then they may or may not be a problem.
    Ciao.

  • Retreive External data from SQL making connection to SQL server take a long time

    I have an Excel pivottable based on a view from SQL server. The view gets data from 2 databases on the sames server. I have the sames login for both databases and also the same rights (datareader, datawriter and owner). When running the view from within
    the SQL Server management tool it goes quick. In Excel once the connection is made everything goes fast. Only making the connection takes a very long time. When I use a view with data from a single database then everything is fine and goes fast.
    Example of the situation: I use the example view below in an excel pivot. This gives as result that the connection takes very long.
    SQLServer A
    View CustomerInfo which contains the following query.
    Select * FROM databaseA.dbo.Customers as Customers
    CROSS APPLY
    SELECT *
    FROM databaseB.dbo.Contacts as Contacts
    Where Customers.Number = Contacts.CustomerNumber
    ) AS Contactdata
    When I remove the CROSS APPLY part, the connection is made directly
    We login to SQL with normal logon  (not windows security) The user has the same rights on both databases.
    I hope the problem is clear. Does anyone have an idea of how I can solve this problem?

    -1* ( prior dataid ) = parentid
    is it multiplying -1 times the prior dataid ?that's exactly what it's doing
    you need:
    prior dataid = ABS(parentid);
    not knowing you're data, and therefore assuming that dataid is always positive (since it doesn't have an ABS), and that parentid can be positive or negative, your criteria becomes
    parentid = prior dataid (handles both are positive)
    or parentid = negative of prior dataid (handles parentid is neg, dataid is pos)
    since the "prior" must be right next to the column (dataid), I put parens around the whole thing, and then mult by -1

  • Help on Livecycle/DSN...API or some type of Active X solution to help making connection

    I have a solution that I'm trying to come up with.
    LiveCycle is a relatively handy tool for automating input from ODBC data
    sources to download to forms
    What we would like to do is automate the process of setting up the DSN used
    by LiveCycle and automate the process of making the connection to that DSN
    to populate the fields in the forms. Automating the DSN setup is done. But
    what I'm looking for is an API or some type of Active X solution to help
    with making the connection, populating the forms using LiveCycle and
    printing the PDF output file. Can you help me with this?
    Currently I'm using LiveCycle Designer 8.0 as part of the Adobe Acrobat
    suite. Can I use this, or do I need to look at a different software package?
    Thank you for any assistance you can provide me with.

    Hiho Ashley,
    Iam sorry that I can´t answer your question about the Active-X-Stuff and I truely doubt, that you will look in this thread again. But Iam interested in your solution for automated build of an DSN. Is it within the PDF-File, so not every user wanting the the PDF to be filled have to settle up an extra connection? And does it work, if the user has no permission to make a DSN on his own?
    Hope, someone can reply
    Greetings

  • Retrying Pool Connections

    Hello,
    I'm trying to make my JDBCConnectionPools retry connecting to the database if
    the initial attempt fails but I have not been successful. I have set ConnectionCreationRetryFrequencySeconds="30"
    in the config.xml. I have started WLS when the database server was still recovering
    databases, and received the connection exceptions but saw no attempt to reconnect.
    Resetting the pools via the console did not establish a connection. Is there
    some other setting that I'm missing?
    Thanks,
    Bob

    Joseph Weinstein wrote:
    Bob Stevenson wrote:
    Hello,
    I'm trying to make my JDBCConnectionPools retry connecting to the database if
    the initial attempt fails but I have not been successful. I have set ConnectionCreationRetryFrequencySeconds="30"
    in the config.xml. I have started WLS when the database server was still recovering
    databases, and received the connection exceptions but saw no attempt to reconnect.
    Resetting the pools via the console did not establish a connection. Is there
    some other setting that I'm missing?
    Hi again. I', wrong. This property is as advertised, and should have the pool continue trying to
    make connections if it fails initially. COuld you turn on JDBC logging and tell me if you see any SQLExceptions
    as the pool starts up, and then later as it should be continuing to connect?
    thanks,
    Joe
    >
    >>
    Thanks,
    BobHi. I am researching this new parameter, and it's looking to me like it means the same as
    LoginDelaySeconds, ie: it just has to do with when the pool is creating connections,
    some DBMSes can't handle lots of new connection requests in a tight loop, so we offer
    a configurable delay. This has nothing to do with retrying to make a given connection.
    One easy thing to do is to configure the pool to have an initial size of zero, so it doesn't
    try to make any connections at startup. When the pool is used by applications, it will
    make connections to populate itself as needed. Note though that some EJB deployments
    etc do need connections to be available at startup...
    Joe

  • FACETIME freezing up on IPAD shortly after making connectivity?

    I've restored the IPAD....shortly after FACETIME did work..approx for 1 hour - no problem.  Then another night....connected with individual and after a moment or so, screen froze...no sound...all I see is a frozen picture of individual.  Tried to reconnect...get error...person on Facetime Not Available.  Tried numerous times - gave up.  Next day, I d retored IPAD once again.  Note:  Have not problem accessing internet.  Tried making contact, okay for a moment...froze once again.  Tried contacting, Factime Not Available with that individual.  All connections are fine with wifi/router/modem..again, no problem linking with internet.  What gives with this?

    Dear Rob,
    I am having exactly the same problem as you with Facetime. Facetime would, in the middle of the conversation, simply quit. And I would have to restart the Ipad 2 to make it work again.
    Safari would do that from time to time as well (but less frequently)

  • IPod headphone-jack no longer making connection

    The headphone-jack connection is worn-out. I've tried using 3 different headphones with the same male specifications and music was still audible from the iPod and not through any of the headphones. Thus, I am sure that the iPod headphone-jack is malfunctioning. It was purchased about a year ago, but it only has a one year warranty and I no longer have the receipt.
    Any suggestions? It would be much appreciated.

    jenrss wrote:
    The headphone-jack connection is worn-out. I've tried using 3 different headphones with the same male specifications and music was still audible from the iPod and not through any of the headphones. Thus, I am sure that the iPod headphone-jack is malfunctioning. It was purchased about a year ago, but it only has a one year warranty and I no longer have the receipt.
    Any suggestions? It would be much appreciated.
    The earphones must be pushed very hard into the iPod. So hard, that the white part of the plug must touch the iPod in order for the external speakers to turn off. You will hear a click.
    If you do a forum search, you will find this same solution. If it does not work, you will need to take your iPod to an apple store or call the Apple iPod tech support if still under warranty or you have Apple Care.  You may have a hardware problem.

  • Making connect against SID high available

    Hi Forum,
    is there any way to make applications that use host/port/SID to connect to the database high available? The background of my question is that we have a legacy application that does not support to connect via servicename to our RAC database. The configuration dialog has no options to use a servicename, you can just enter host/port/sid.
    Now is there anyway to trick this application so that the sid/host can be failed over? The host could be tricked via virtual IP that could be provided by the grid infrastructure, but what about the SID? Is there some kind of "virtual SID" out there?
    Thanks in advance
    Thomas

    Hi,
    If you are lucky, you may be able to trick the application in giving a whole (DESCRIPTION........) tnsnames entry as the host and not using the "port" and "sid" entry in that masks.
    As a normal SQLNET/JDBC client will understand
    @(DESCRIPTION = (ADDRESS = ...))
    equally as
    @host:port:sid
    this could work. If it does then you got no problems, because you can specify the services there with all failover stuff.
    If this does not work, maybe 11gR2 server pools can help you. It will not provide you a load balancing though, just HA.
    With 11gR2 server pools/policy managed, the database SID is not fixed on a server, but will failover to other nodes.
    So lets assume you have 3 servers, and your policy managed database is running on node 1 and 2.
    Furthermore assume, that the policy for the database is minimum 2 servers and maximum 2 servers.
    In this constellation instance on node 1 will be DBNAME_1 and on node 2 DBNAME_2.
    If first server fails, the DBNAME_1 instance will automatically be started on the free node (server 3), and your clients would still be able to connect to the SID.
    The tricky part now is to manage that the additional VIP and listener you created are failing over to server 3 as well and not to server 2.
    But with a correct settings in the clusterware for the newly created VIP that should be addressable (look at the clusterware administration guide Chapter 5).
    Hope that helps
    Sebastian

  • How to disable confirmation dialog when making connection??

    Hi,
    I am trying to use the BT interface on the cell phone to connect with another BT device. However, when the connect.open() fuction is called, a dialog asking for confirmation of the connection will show up. Is there any way I can eliminate the dialog and just establish the BT connection when another device directly when the connect.open() method is called??

    Hi,
    >>however I do not want to see the confirmation message each time data is submitted,  because my loop is paused each time the confirmation message appears, and the only way to resume it, is to click "ok". 
    Sorry, disabling the confirmation message is not possible.  The confirmation is always enabled.
    Thanks,
    Lucia

  • Cisco RV016 making connections drop

    Hi,
    My cisco rv016 is currently set to load balance 2 lines and soon 3.
    However some connections that are active here are with servers and FTP clients.
    With load balancing active it appears that people are getting their sessions timed out rather frequently.
    MySQL database connections
    SSH connections
    FTP, SFTP connections are the ones that spring to mine straight away.
    Any advice?
    Thanks

    Right now I'm testing on a single access point (autonomous) with WEP! The same laptop works fine without the Cisco client. Usually it is several hours, 12 or more when it happens, but I've seen it less than that. And I've seen it up for over a day and a half. At this point I just don't trust the client to roll out to a larger audience.

Maybe you are looking for

  • Chrome - Adobe-Acrobat/Reader can not be used to view PDF files in a web browser.

    I can't view PDF files via Chrome (it works on Internet Explorer but I prefer Chrome)  -  the error below has arisen recently on Chrome, though I can't see what has changed. "Acrobat plug-in The Adobe-Acrobat/Reader that is running can not be used to

  • After a memory upgrade programme no longer  working

    Mac Mini as server running OS 10.5.8. I just put in 1 GB of new memory in my server (Mac Mini) so now it has two modules one 256 and one 1GB. Nothing else changed. Since doing that Ovolab Phlink (is my 'answering machine' programme) stopped working.

  • Writing data from array to file

    May i know how to write string from a array into a file. I have use string tokenizer to extract every line from a file using readline and use stringtokenizer to spilt the line using tab delimiter for processing. But if i want to write data from array

  • Xml parsing exception

    Hi, I am having xml content as a string like below <?xml version="1.0" encoding="UTF-8"?> <TransactionResponse> <InterchangeControlHeader> <AuthorInfoQualifier>00</AuthorInfoQualifier> <AuthorInformation> </AuthorInformation> </InterchangeControlHead

  • Change/ Add screen in Group Box specify tab layout for Asset master Record

    Hi All, I need to add or change group box in specify tab layout for Asset Master Record. Please advice where i can change or create new Group Box. Thanks & Regards, Pankaj